Ok, i have to learn that bit position is alway? in reverse order.
so it becomes:
bit7: CTL
bit6: DST
bit5: ACK
bit0-4: ID
Bit desc: C D A I I I I I
Bit position: 7 6 5 4 3 2 1 0
Bit Set: 0 0 1 0 0 0 0 1
In this case the ack bit has been set and the id = 00001
Hm, let me ask you this, do you know any good understandable tutorial regarding this? (bit manipulation, extraction, conversion, whatever it is called).
I see 4bits (8 / 2) far more often than 5, hence my quick (and bad) answer
As a programmer, you may know that there are some “reflex numbers” like this one which comes to mind almost immediately as soon as you speak of bytes and bits operations. No need to think, they come faster than anything else, even when not appropriate like here :