Developing with ZBOSS SDK for Zigbee
|
Macros | |
#define | ZB_HA_DEVICE_VER_COMBINED_INTERFACE 0 |
#define | ZB_HA_DECLARE_COMBINED_INTERFACE_CLUSTER_LIST( cluster_list_name, basic_attr_list, identify_attr_list) |
Declare cluster list for Combined interface device. More... | |
#define | ZB_ZCL_DECLARE_COMBINED_INTERFACE_SIMPLE_DESC(ep_name, ep_id, in_clust_num, out_clust_num) |
Declare simple descriptor for Combined interface device. More... | |
#define | ZB_HA_DECLARE_COMBINED_INTERFACE_EP(ep_name, ep_id, cluster_list) |
Declare endpoint for Combined Interface device. More... | |
#define | ZB_HA_DECLARE_COMBINED_INTERFACE_CTX(device_ctx, ep_name) ZBOSS_DECLARE_DEVICE_CTX_1_EP(device_ctx, ep_name) |
Declare Combined Interface device context. More... | |
Combined Interface device has 3 clusters (see spec 7.4.8):
Combined Interface device sample
Declaring clusters:
Registering device list:
Example of command handler:
The Combined Interface device sample can be found in /application/HA_samples/combined_interface
#define ZB_HA_DECLARE_COMBINED_INTERFACE_CLUSTER_LIST | ( | cluster_list_name, | |
basic_attr_list, | |||
identify_attr_list | |||
) |
Declare cluster list for Combined interface device.
cluster_list_name | - cluster list variable name |
basic_attr_list | - attribute list for Basic cluster |
identify_attr_list | - attribute list for Identify cluster |
#define ZB_HA_DECLARE_COMBINED_INTERFACE_CTX | ( | device_ctx, | |
ep_name | |||
) | ZBOSS_DECLARE_DEVICE_CTX_1_EP(device_ctx, ep_name) |
Declare Combined Interface device context.
device_ctx | - device context variable name. |
ep_name | - endpoint variable name. |
#define ZB_HA_DECLARE_COMBINED_INTERFACE_EP | ( | ep_name, | |
ep_id, | |||
cluster_list | |||
) |
Declare endpoint for Combined Interface device.
ep_name | - endpoint variable name |
ep_id | - endpoint ID |
cluster_list | - endpoint cluster list |
#define ZB_HA_DEVICE_VER_COMBINED_INTERFACE 0 |
Combined interface device version
#define ZB_ZCL_DECLARE_COMBINED_INTERFACE_SIMPLE_DESC | ( | ep_name, | |
ep_id, | |||
in_clust_num, | |||
out_clust_num | |||
) |
Declare simple descriptor for Combined interface device.
ep_name | - endpoint variable name |
ep_id | - endpoint ID |
in_clust_num | - number of supported input clusters |
out_clust_num | - number of supported output clusters |