added comments.
This commit is contained in:
@@ -81,6 +81,7 @@ struct BACnet_Device_Address {
|
||||
};
|
||||
typedef struct BACnet_Device_Address BACNET_ADDRESS;
|
||||
|
||||
/* FIXME: move the string types into their own modules with unit testings */
|
||||
/* bit strings
|
||||
They could be as large as 256/8=32 octets */
|
||||
#define MAX_BITSTRING_BYTES 15
|
||||
@@ -90,16 +91,20 @@ typedef struct BACnet_Bit_String
|
||||
uint8_t value[MAX_BITSTRING_BYTES];
|
||||
} BACNET_BIT_STRING;
|
||||
|
||||
/* FIXME: create some init/add/remove helper functions in a library */
|
||||
typedef struct BACnet_Character_String
|
||||
{
|
||||
size_t length;
|
||||
char value[MAX_APDU];
|
||||
} BACNET_CHARACTER_STRING;
|
||||
|
||||
/* FIXME: convert the bacdcode library to use this for APDU buffer
|
||||
to prevent buffer overflows */
|
||||
/* FIXME: create some init/add/remove helper functions in a library */
|
||||
typedef struct BACnet_Octet_String
|
||||
{
|
||||
size_t length;
|
||||
char value[MAX_APDU];
|
||||
uint8_t value[MAX_APDU];
|
||||
} BACNET_OCTET_STRING;
|
||||
|
||||
/* date */
|
||||
@@ -120,6 +125,9 @@ typedef struct BACnet_Time
|
||||
uint8_t hundredths;
|
||||
} BACNET_TIME;
|
||||
|
||||
/* note: with microprocessors having lots more code space than memory,
|
||||
it might be better to have a packed encoding with a library to
|
||||
easily access the data. */
|
||||
typedef struct BACnet_Object_Id
|
||||
{
|
||||
uint16_t type;
|
||||
|
||||
Reference in New Issue
Block a user