159 /* String Lengths for Device Object properties that may be changed |
159 /* String Lengths for Device Object properties that may be changed |
160 * (written to) over the BACnet network. |
160 * (written to) over the BACnet network. |
161 * Maximum sizes excluding nul terminator . |
161 * Maximum sizes excluding nul terminator . |
162 */ |
162 */ |
163 #define STRLEN_X(minlen, str) (((minlen)>sizeof(str))?(minlen):sizeof(str)) |
163 #define STRLEN_X(minlen, str) (((minlen)>sizeof(str))?(minlen):sizeof(str)) |
164 #define MAX_DEV_NAME_LEN STRLEN_X(32, "%(BACnet_Device_Name)s") /* Device name */ |
164 #define MAX_DEV_NAME_LEN STRLEN_X(%(BACnet_Param_String_Size)d, "%(BACnet_Device_Name)s") /* Device name */ |
165 #define MAX_DEV_LOC_LEN STRLEN_X(64, BACNET_DEVICE_LOCATION) /* Device location */ |
165 #define MAX_DEV_LOC_LEN STRLEN_X(%(BACnet_Param_String_Size)d, BACNET_DEVICE_LOCATION) /* Device location */ |
166 #define MAX_DEV_MOD_LEN STRLEN_X(32, BACNET_DEVICE_MODEL_NAME) /* Device model name */ |
166 #define MAX_DEV_MOD_LEN STRLEN_X(%(BACnet_Param_String_Size)d, BACNET_DEVICE_MODEL_NAME) /* Device model name */ |
167 #define MAX_DEV_VER_LEN STRLEN_X(16, BACNET_DEVICE_APPSOFT_VER) /* Device application software version */ |
167 #define MAX_DEV_VER_LEN STRLEN_X(%(BACnet_Param_String_Size)d, BACNET_DEVICE_APPSOFT_VER) /* Device application software version */ |
168 #define MAX_DEV_DESC_LEN STRLEN_X(64, BACNET_DEVICE_DESCRIPTION) /* Device description */ |
168 #define MAX_DEV_DESC_LEN STRLEN_X(%(BACnet_Param_String_Size)d, BACNET_DEVICE_DESCRIPTION) /* Device description */ |
|
169 |
169 |
170 |
170 /** Structure to define the Object Properties common to all Objects. */ |
171 /** Structure to define the Object Properties common to all Objects. */ |
171 typedef struct commonBacObj_s { |
172 typedef struct commonBacObj_s { |
172 |
173 |
173 /** The BACnet type of this object (ie, what class is this object from?). |
174 /** The BACnet type of this object (ie, what class is this object from?). |