title: c compound assignment increment only right bits
body: <p>I am new to C and working with a serial device and I have this line:</p>
  
  <pre><code>short DA, DacData;    
  DA=0xFFF;
  DacData = ((channel&amp;0x03)&lt;&lt;14)|((serialA&amp;0x03)&lt;&lt;12)|(DA&amp;0x6AA);
  </code></pre>
  
  <p>How do I increment only the last part of DacData (DA&amp;0x6AA) in my loop? Thanks in advance!</p>