title: Append bits to beginning and end of 10-bit integer
body: <p>The SPI device I'm using needs 4 bits appended to the left of a 10-bit value, and 2-bits appended to the right.</p>
  
  <p>For example, suppose you have a 10-bit value:</p>
  
  <pre><code>0110100110 - or 422
  </code></pre>
  
  <p>We want to add <code>0110</code> to the left side, and <code>00</code> to the right side.</p>
  
  <p>So the result would be:</p>
  
  <pre><code>0110011010011000
  </code></pre>
  
  <p>How would I do this?</p>