I\'m reading some values from a single byte. I\'m told in the user-manual that this one byte contains 3 different values. There\'s a table that looks like this:
Potayto, potahto.
You'd use shifts and masks to flatten out the undesired bits, like such:
byte b = something; // b is our byte int size = b & 0x7; int scale = (b >> 3) & 0x3; int position = (b >> 5) & 0x7;