I am given 3 bytes defined as:
Obviously, MSB and LSB stand for Most Significant Byte and Least Significant Byte.
How can I derive a 6-digit integer ID code from this in C#?
I have a similar operation in the program that calculates from just an MSB and an LSB to get a resultant integer:
int timer = Convert.ToInt32(msb, 16) << 8 | Convert.ToInt32(lsb, 16);
However, with the added 'middle' byte, I am a bit lost.