Un-refactored property-list module to lower resource requirements on small devices.
This commit is contained in:
@@ -30,7 +30,13 @@
|
||||
#include "bacdef.h"
|
||||
#include "bacstr.h"
|
||||
#include "datetime.h"
|
||||
#if defined (BACAPP_LIGHTING_COMMAND)
|
||||
#include "lighting.h"
|
||||
#endif
|
||||
#if defined (BACAPP_DEVICE_OBJECT_PROP_REF)
|
||||
#include "bacdevobjpropref.h"
|
||||
#endif
|
||||
|
||||
|
||||
struct BACnet_Application_Data_Value;
|
||||
typedef struct BACnet_Application_Data_Value {
|
||||
@@ -77,6 +83,10 @@ typedef struct BACnet_Application_Data_Value {
|
||||
#endif
|
||||
#if defined (BACAPP_LIGHTING_COMMAND)
|
||||
BACNET_LIGHTING_COMMAND Lighting_Command;
|
||||
#endif
|
||||
#if defined (BACAPP_DEVICE_OBJECT_PROP_REF)
|
||||
BACNET_DEVICE_OBJECT_PROPERTY_REFERENCE
|
||||
Device_Object_Property_Reference;
|
||||
#endif
|
||||
} type;
|
||||
/* simple linked list if needed */
|
||||
|
||||
@@ -1788,4 +1788,43 @@ typedef enum BACnetWriteStatus {
|
||||
BACNET_WRITE_STATUS_FAILED = 3
|
||||
} BACNET_WRITE_STATUS;
|
||||
|
||||
/* BACnetNetworkType ::= ENUMERATED */
|
||||
typedef enum {
|
||||
PORT_TYPE_ETHERNET = 0,
|
||||
PORT_TYPE_ARCNET = 1,
|
||||
PORT_TYPE_MSTP = 2,
|
||||
PORT_TYPE_PTP = 3,
|
||||
PORT_TYPE_LONTALK = 4,
|
||||
PORT_TYPE_BIP = 5,
|
||||
PORT_TYPE_ZIGBEE = 6,
|
||||
PORT_TYPE_VIRTUAL = 7,
|
||||
PORT_TYPE_NON_BACNET = 8
|
||||
/* Enumerated values 0-63 are reserved for definition by ASHRAE.
|
||||
Enumerated values 64-255 may be used by others subject to the
|
||||
procedures and constraints described in Clause 23.*/
|
||||
} BACNET_PORT_TYPE;
|
||||
|
||||
/* BACnetNetworkNumberQuality ::= ENUMERATED */
|
||||
typedef enum {
|
||||
PORT_QUALITY_UNKNOWN = 0,
|
||||
PORT_QUALITY_LEARNED = 1,
|
||||
PORT_QUALITY_LEARNED_CONFIGURED = 2,
|
||||
PORT_QUALITY_CONFIGURED = 3
|
||||
} BACNET_PORT_QUALITY;
|
||||
|
||||
/* BACnetNetworkPortCommand :: = ENUMERATED */
|
||||
typedef enum {
|
||||
PORT_COMMAND_IDLE = 0,
|
||||
PORT_COMMAND_DISCARD_CHANGES = 1,
|
||||
PORT_COMMAND_RENEW_FD_REGISTRATION = 2,
|
||||
PORT_COMMAND_RESTART_SLAVE_DISCOVERY = 3,
|
||||
PORT_COMMAND_RENEW_DHCP = 4,
|
||||
PORT_COMMAND_RESTART_AUTONEGOTIATION = 5,
|
||||
PORT_COMMAND_DISCONNECT = 6,
|
||||
PORT_COMMAND_RESTART_PORT = 7
|
||||
/* Enumerated values 0-127 are reserved for definition by ASHRAE.
|
||||
Enumerated values 128-255 may be used by others subject to the
|
||||
procedures and constraints described in Clause 23. */
|
||||
} BACNET_PORT_COMMAND;
|
||||
|
||||
#endif /* end of BACENUM_H */
|
||||
|
||||
@@ -127,36 +127,37 @@
|
||||
defined(BACAPP_DATE) || \
|
||||
defined(BACAPP_TIME) || \
|
||||
defined(BACAPP_LIGHTING_COMMAND) || \
|
||||
defined(BACAPP_DEVICE_OBJECT_PROP_REF) || \
|
||||
defined(BACAPP_OBJECT_ID))
|
||||
#define BACAPP_ALL
|
||||
#endif
|
||||
|
||||
#if defined (BACAPP_ALL)
|
||||
#define BACAPP_NULL
|
||||
#define BACAPP_BOOLEAN
|
||||
#define BACAPP_UNSIGNED
|
||||
#define BACAPP_SIGNED
|
||||
#define BACAPP_REAL
|
||||
#define BACAPP_DOUBLE
|
||||
#define BACAPP_OCTET_STRING
|
||||
#define BACAPP_CHARACTER_STRING
|
||||
#define BACAPP_BIT_STRING
|
||||
#define BACAPP_ENUMERATED
|
||||
#define BACAPP_DATE
|
||||
#define BACAPP_TIME
|
||||
#define BACAPP_OBJECT_ID
|
||||
#define BACAPP_LIGHTING_COMMAND
|
||||
#define BACAPP_NULL
|
||||
#define BACAPP_BOOLEAN
|
||||
#define BACAPP_UNSIGNED
|
||||
#define BACAPP_SIGNED
|
||||
#define BACAPP_REAL
|
||||
#define BACAPP_DOUBLE
|
||||
#define BACAPP_OCTET_STRING
|
||||
#define BACAPP_CHARACTER_STRING
|
||||
#define BACAPP_BIT_STRING
|
||||
#define BACAPP_ENUMERATED
|
||||
#define BACAPP_DATE
|
||||
#define BACAPP_TIME
|
||||
#define BACAPP_OBJECT_ID
|
||||
#define BACAPP_DEVICE_OBJECT_PROP_REF
|
||||
#define BACAPP_LIGHTING_COMMAND
|
||||
#elif defined (BACAPP_MINIMAL)
|
||||
#define BACAPP_NULL
|
||||
#define BACAPP_BOOLEAN
|
||||
#define BACAPP_UNSIGNED
|
||||
#define BACAPP_SIGNED
|
||||
#define BACAPP_REAL
|
||||
#define BACAPP_CHARACTER_STRING
|
||||
#define BACAPP_ENUMERATED
|
||||
#define BACAPP_DATE
|
||||
#define BACAPP_TIME
|
||||
#define BACAPP_OBJECT_ID
|
||||
#define BACAPP_NULL
|
||||
#define BACAPP_BOOLEAN
|
||||
#define BACAPP_UNSIGNED
|
||||
#define BACAPP_SIGNED
|
||||
#define BACAPP_REAL
|
||||
#define BACAPP_CHARACTER_STRING
|
||||
#define BACAPP_ENUMERATED
|
||||
#define BACAPP_DATE
|
||||
#define BACAPP_TIME
|
||||
#define BACAPP_OBJECT_ID
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user