Developing with ZBOSS SDK for Zigbee
|
Macros | |
#define | ZB_HA_DEVICE_VER_WINDOW_COVERING 0 |
#define | ZB_HA_DECLARE_WINDOW_COVERING_CLUSTER_LIST( cluster_list_name, basic_attr_list, identify_attr_list, groups_attr_list, scenes_attr_list, window_covering_attr_list) |
Declare cluster list for window covering device. More... | |
#define | ZB_ZCL_DECLARE_WINDOW_COVERING_SIMPLE_DESC(ep_name, ep_id, in_clust_num, out_clust_num) |
Declare simple descriptor for window covering device. More... | |
#define | ZB_HA_DECLARE_WINDOW_COVERING_EP(ep_name, ep_id, cluster_list) |
Declare endpoint for window covering device. More... | |
#define | ZB_HA_DECLARE_WINDOW_COVERING_CTX(device_ctx, ep_name) ZBOSS_DECLARE_DEVICE_CTX_1_EP(device_ctx, ep_name) |
Declare application's device context for Window Covering device. More... | |
Window Covering device has 5 clusters (see spec 7.6.3):
Window Covering device sample
Declaring clusters:
Registering device list:
Example of command handler:
The complete set of Window Covering device samples can be found in /application/HA_samples/window_covering
#define ZB_HA_DECLARE_WINDOW_COVERING_CLUSTER_LIST | ( | cluster_list_name, | |
basic_attr_list, | |||
identify_attr_list, | |||
groups_attr_list, | |||
scenes_attr_list, | |||
window_covering_attr_list | |||
) |
Declare cluster list for window covering device.
cluster_list_name | - cluster list variable name |
basic_attr_list | - attribute list for Basic cluster |
identify_attr_list | - attribute list for Identify cluster |
groups_attr_list | - attribute list for Groups cluster |
scenes_attr_list | - attribute list for Scenes cluster |
window_covering_attr_list | - attribute list for Window covering cluster |
#define ZB_HA_DECLARE_WINDOW_COVERING_CTX | ( | device_ctx, | |
ep_name | |||
) | ZBOSS_DECLARE_DEVICE_CTX_1_EP(device_ctx, ep_name) |
Declare application's device context for Window Covering device.
device_ctx | - device context variable |
ep_name | - endpoint variable name |
#define ZB_HA_DECLARE_WINDOW_COVERING_EP | ( | ep_name, | |
ep_id, | |||
cluster_list | |||
) |
Declare endpoint for window covering device.
ep_name | - endpoint variable name |
ep_id | - endpoint ID |
cluster_list | - endpoint cluster list |
#define ZB_HA_DEVICE_VER_WINDOW_COVERING 0 |
Window covering device version
#define ZB_ZCL_DECLARE_WINDOW_COVERING_SIMPLE_DESC | ( | ep_name, | |
ep_id, | |||
in_clust_num, | |||
out_clust_num | |||
) |
Declare simple descriptor for window covering 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 |