From 10b712e48a9b7a9bdc0304631c23cd569a8b941e Mon Sep 17 00:00:00 2001 From: skarg Date: Fri, 18 Mar 2005 22:11:00 +0000 Subject: [PATCH] added common object data --- bacnet-stack/bacdef.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bacnet-stack/bacdef.h b/bacnet-stack/bacdef.h index d09a7513..f7e9c8c3 100644 --- a/bacnet-stack/bacdef.h +++ b/bacnet-stack/bacdef.h @@ -45,6 +45,16 @@ // Array index 0=size of array, n=array element n, MAX=all array elements #define BACNET_ARRAY_ALL (~0) +// embedded systems need fixed name sizes +#define MAX_OBJECT_NAME 10 +// device object properties +typedef struct BACnet_Object_Data +{ + uint32_t Object_Identifier + char Object_Name[MAX_OBJECT_NAME]; + BACNET_OBJECT_TYPE Object_Type; +} BACNET_OBJECT_DATA; + #define MAX_MAC_LEN 8 struct BACnet_Device_Address { // mac_len = 0 if global address