IEC_BACNET_BIT_STRING
(STRUCT)
TYPE IEC_BACNET_BIT_STRING : STRUCT
Structure for representing the BACnetBitString type
A Bit String is a BACnet primitive datatype. A Property Contents containing data of this type will have its tag equal to DATA_TYPE_BIT_STRING. A common Property that is represented as a Bit String is the Protocol-Services-Supported Property maintained by each Device object. The actual length of the Bit String (the number of reliable bits in the data field) is indicated by the bitCount field. A Bit String is stored in a fixed length byte array, with a capacity of 80 bits. nn
NOTE: The first Bit in BACnet is the most significant bit in the first octet of the buffer (buffer[0] = (0x80 | 0x40) // setting the first two Bits)
- InOut:
Name
Type
Comment
bitCount
Number of valid bits in buffer
data
ARRAY [0..(BACNET_MAX_BIT_STRING_BUF - 1)] OF IEC_BACNET_BYTE
Buffer for the bit string (the MSB in the first byte of this buffer is bit #0 in BACnet
mask
ARRAY [0..(BACNET_MAX_BIT_STRING_BUF - 1)] OF IEC_BACNET_BYTE
Specifies a mask to disable some bits set above (for internal use only)