I am very new to c++ programming. I need to fill in the header fields, one of which is bitmapped field with 4 subfield. I don't know to create the value for that field. Can someone help me out please?
Below Text explains in detail:
Properties is a Bitmapped field with four subfields. The most significant bit shall be used to indicate whether or not receipt of the message shall be acknowledged. When the bit is “1,” an acknowledgement shall be sent: if “0,” an acknowledgement shall not be sent. The next seven bits (bits 14:8) shall indicate the IDD version number.
No ACK = 0, ACK =1
15 - Most Significant bit
Version
Range 0......127
Draft STANAG 4586 Edition 3 for Ratification = 30 Future Drafts/Editions...31 -127
14 13 12 11 10 9 8 - bits position
Checksum Length
No Checksum =0
2 bytes = 01 4 bytes = 10
7 6 - - bits position
Reserved for Future Use
543210 - - bits position
Thanks