Digi XBee(R) ANSI C Host Library
Files | Data Structures | Macros

Files

file  zcl_bacnet.h
 Macros associated with supporting BACnet under ZigBee.
 

Data Structures

struct  zcl_binary_output_attr_t
 
struct  zcl_binary_output_t
 

Macros

#define ZCL_BACNET_PROFILE   0x0105
 
#define ZCL_BACNET_DEV_CONSTRUCTED   0x000A
 
#define ZCL_BACNET_DEV_TUNNELED   0x000B
 
#define ZCL_BACNET_ATTR_ACKED_TRANSITIONS   0x0000
 
#define ZCL_BACNET_ATTR_ACTIVE_TEXT   0x0004
 
#define ZCL_BACNET_ATTR_ALARM_VALUE   0x0006
 
#define ZCL_BACNET_ATTR_STATE_TEXT   0x000E
 
#define ZCL_BACNET_ATTR_CHANGE_OF_STATE_COUNT   0x000F
 
#define ZCL_BACNET_ATTR_CHANGE_OF_STATE_TIME   0x0010
 
#define ZCL_BACNET_ATTR_NOTIFICATION_CLASS   0x0011
 
#define ZCL_BACNET_ATTR_COV_INCREMENT   0x0016
 
#define ZCL_BACNET_ATTR_DEADBAND   0x0019
 
#define ZCL_BACNET_ATTR_DESCRIPTION   0x001C
 
#define ZCL_BACNET_ATTR_DEVICE_TYPE   0x001F
 
#define ZCL_BACNET_ATTR_ELAPSED_ACTIVE_TIME   0x0021
 
#define ZCL_BACNET_ATTR_EVENT_ENABLE   0x0023
 
#define ZCL_BACNET_ATTR_EVENT_STATE   0x0024
 
#define ZCL_BACNET_ATTR_FAULT_VALUES   0x0025
 
#define ZCL_BACNET_ATTR_FEEDBACK_VALUE   0x0028
 
#define ZCL_BACNET_ATTR_HIGH_LIMIT   0x002D
 
#define ZCL_BACNET_ATTR_INACTIVE_TEXT   0x002E
 
#define ZCL_BACNET_ATTR_LIMIT_ENABLE   0x0034
 
#define ZCL_BACNET_ATTR_LOW_LIMIT   0x003B
 
#define ZCL_BACNET_ATTR_MAX_PRESENT_VALUE   0x0041
 
#define ZCL_BACNET_ATTR_MINIMUM_OFF_TIME   0x0042
 
#define ZCL_BACNET_ATTR_MINIMUM_ON_TIME   0x0043
 
#define ZCL_BACNET_ATTR_MIN_PRESENT_VALUE   0x0045
 
#define ZCL_BACNET_ATTR_NOTIFY_TYPE   0x0048
 
#define ZCL_BACNET_ATTR_NUMBER_OF_STATES   0x004A
 
#define ZCL_BACNET_ATTR_OBJECT_IDENTIFIER   0x004B
 
#define ZCL_BACNET_ATTR_OBJECT_NAME   0x004D
 
#define ZCL_BACNET_ATTR_OBJECT_TYPE   0x004F
 
#define ZCL_BACNET_ATTR_OUT_OF_SERVICE   0x0051
 
#define ZCL_BACNET_ATTR_POLARITY   0x0054
 
#define ZCL_BACNET_ATTR_PRESENT_VALUE   0x0055
 
#define ZCL_BACNET_ATTR_PRIORITY_ARRAY   0x0057
 
#define ZCL_BACNET_ATTR_RELIABILITY   0x0067
 
#define ZCL_BACNET_ATTR_RELINQUISH_DEFAULT   0x0068
 
#define ZCL_BACNET_ATTR_RESOLUTION   0x006A
 
#define ZCL_BACNET_ATTR_STATUS_FLAGS   0x006F
 
#define ZCL_BACNET_ATTR_TIME_DELAY   0x0071
 
#define ZCL_BACNET_ATTR_TIME_OF_AT_RESET   0x0072
 
#define ZCL_BACNET_ATTR_TIME_OF_SC_RESET   0x0073
 
#define ZCL_BACNET_ATTR_ENGINEERING_UNITS   0x0075
 
#define ZCL_BACNET_ATTR_UPDATE_INTERVAL   0x0076
 
#define ZCL_BACNET_ATTR_EVENT_TIME_STAMPS   0x0082
 
#define ZCL_BACNET_ATTR_PROFILE_NAME   0x00A8
 
#define ZCL_BACNET_ATTR_APPLICATION_TYPE   0x0100
 
#define ZCL_BACNET_STATUS_FLAG_IN_ALARM   (1<<0)
 
#define ZCL_BACNET_STATUS_FLAG_FAULT   (1<<1)
 
#define ZCL_BACNET_STATUS_FLAG_OVERRIDDEN   (1<<2)
 
#define ZCL_BACNET_STATUS_FLAG_OUT_OF_SERVICE   (1<<3)
 
#define ZCL_BACNET_POLARITY_NORMAL   0
 
#define ZCL_BACNET_POLARITY_REVERSE   1
 
#define ZCL_BINARY_OUTPUT_VARS(var, desc, zbot, value_write, status_read)
 
#define ZCL_BINARY_OUTPUT_EXTERN(var)
 
#define ZCL_BACNET_ENDPOINT(id, profile, name)
 Create an entry in the endpoint table for a constructed BACnet device. More...
 

Detailed Description

Macro Definition Documentation

#define ZCL_BACNET_ENDPOINT (   id,
  profile,
  name 
)
Value:
{ id, profile, zcl_invalid_cluster, &name ## _ep_state, \
ZCL_BACNET_DEV_CONSTRUCTED, 0x00, name ## _cluster_table }
int zcl_invalid_cluster(const wpan_envelope_t FAR *envelope, wpan_ep_state_t FAR *ep_state)
Called if a request comes in for an invalid endpoint/cluster combination.
Definition: zigbee_zcl.c:1701

Create an entry in the endpoint table for a constructed BACnet device.

Parameter name should refer to a wpan_ep_state_t global (named {name}_ep_state) and a const array of wpan_cluster_table_entry_t (named {name}_cluster_table).

#define ZCL_BINARY_OUTPUT_EXTERN (   var)
Value:
extern wpan_ep_state_t var ## _ep_state; \
extern const wpan_cluster_table_entry_t var ## _cluster_table[]
Information on each cluster associated with an endpoint.
Definition: aps.h:199
Volatile part of an endpoint record used to track conversations (requests waiting for responses)...
Definition: aps.h:529
#define ZCL_BINARY_OUTPUT_VARS (   var,
  desc,
  zbot,
  value_write,
  status_read 
)
Value:
const zcl_binary_output_attr_t var ## _attr = { \
{ ZCL_BACNET_ATTR_ACTIVE_TEXT, ZCL_ATTRIB_FLAG_READONLY, \
ZCL_TYPE_STRING_CHAR, desc " ON" }, \
{ ZCL_BACNET_ATTR_DESCRIPTION, ZCL_ATTRIB_FLAG_READONLY, \
{ ZCL_BACNET_ATTR_INACTIVE_TEXT, ZCL_ATTRIB_FLAG_READONLY, \
ZCL_TYPE_STRING_CHAR, desc " OFF" }, \
{ ZCL_BACNET_ATTR_OUT_OF_SERVICE, ZCL_ATTRIB_FLAG_READONLY, \
ZCL_TYPE_LOGICAL_BOOLEAN, &zbot.out_of_service }, \
{ { ZCL_BACNET_ATTR_PRESENT_VALUE, ZCL_ATTRIB_FLAG_FULL, \
ZCL_TYPE_LOGICAL_BOOLEAN, &zbot.present_value \
}, 0, 0, NULL, value_write }, \
{ { ZCL_BACNET_ATTR_STATUS_FLAGS, \
ZCL_TYPE_BITMAP_8BIT, &zbot.status_flags \
}, 0, 0, status_read, NULL }, \
const zcl_attribute_tree_t var ## _tree[] = \
{ { ZCL_MFG_NONE, &var ## _attr.active_text, NULL } }; \
const wpan_cluster_table_entry_t var ## _cluster_table[] = \
{ ZCL_CLUST_BINARY_OUT, \
var ## _tree, \
}, \
}; \
wpan_ep_state_t var ## _ep_state;
Information on each cluster associated with an endpoint.
Definition: aps.h:199
#define ZCL_TYPE_STRING_CHAR
First octet is number of characters in string or 0xff for invalid.
Definition: zcl_types.h:223
#define WPAN_CLUST_ENTRY_LIST_END
Macro for a wpan_cluster_table_entry_t that can be used to mark the end of the table.
Definition: aps.h:287
#define ZCL_CLUST_ENTRY_IDENTIFY_SERVER
Macro to add an Identify Server cluster to an endpoint&#39;s cluster table.
Definition: zcl_identify.h:53
Definition: zcl_bacnet.h:95
int zcl_general_command(const wpan_envelope_t FAR *envelope, void FAR *context)
Handler for ZCL General Commands.
Definition: zigbee_zcl.c:1802
#define ZCL_CLUST_ENTRY_BASIC_SERVER
Macro used to add a Basic Cluster Server to an endpoint&#39;s cluster table.
Definition: zcl_basic.h:120
#define ZCL_ATTRIB_FLAG_FULL
If set, this is part of a zcl_attribute_full_t structure.
Definition: zcl.h:759
Definition: zcl.h:854
#define WPAN_CLUST_FLAG_SERVER
alias name for input cluster (uses ZCL terminology)
Definition: aps.h:234
#define ZCL_ATTRIB_FLAG_READONLY
attribute is read-only
Definition: zcl.h:745
#define ZCL_ATTRIBUTE_END_OF_LIST
Attribute ID for end of list marker.
Definition: zcl.h:851