Developing with ZBOSS
|
Macros | |
#define | ZB_HA_DEVICE_VER_WINDOW_COVERING_CONTROLLER 0 |
#define | ZB_HA_DECLARE_WINDOW_COVERING_CONTROLLER_CLUSTER_LIST( cluster_list_name, basic_attr_list, identify_attr_list) |
Declare cluster list for window covering controller device. More... | |
#define | ZB_ZCL_DECLARE_WINDOW_COVERING_CONTROLLER_SIMPLE_DESC( ep_name, ep_id, in_clust_num, out_clust_num) |
Declare simple descriptor for window covering controller device. More... | |
#define | ZB_HA_DECLARE_WINDOW_COVERING_CONTROLLER_EP(ep_name, ep_id, cluster_list) |
Declare endpoint for window covering controller device. More... | |
#define | ZB_HA_DECLARE_WINDOW_COVERING_CONTROLLER_CTX(device_ctx, ep_name) ZBOSS_DECLARE_DEVICE_CTX_1_EP(device_ctx, ep_name) |
Declare application's device context for Window Covering Controller device. More... | |
Window Covering Controller device has 3 clusters (see spec 7.6.4):
Window Covering Controller device sample
Declaring clusters:
Registering device list:
Example of command handler:
The complete set of Window Covering Controller device samples can be found in /application/HA_samples/window_covering_controller
#define ZB_HA_DECLARE_WINDOW_COVERING_CONTROLLER_CLUSTER_LIST | ( | cluster_list_name, | |
basic_attr_list, | |||
identify_attr_list | |||
) |
Declare cluster list for window covering controller 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_WINDOW_COVERING_CONTROLLER_CTX | ( | device_ctx, | |
ep_name | |||
) | ZBOSS_DECLARE_DEVICE_CTX_1_EP(device_ctx, ep_name) |
Declare application's device context for Window Covering Controller device.
device_ctx | - device context variable |
ep_name | - endpoint variable name |
#define ZB_HA_DECLARE_WINDOW_COVERING_CONTROLLER_EP | ( | ep_name, | |
ep_id, | |||
cluster_list | |||
) |
Declare endpoint for window covering controller device.
ep_name | - endpoint variable name |
ep_id | - endpoint ID |
cluster_list | - endpoint cluster list |
#define ZB_HA_DEVICE_VER_WINDOW_COVERING_CONTROLLER 0 |
< window covering controller device version
#define ZB_ZCL_DECLARE_WINDOW_COVERING_CONTROLLER_SIMPLE_DESC | ( | ep_name, | |
ep_id, | |||
in_clust_num, | |||
out_clust_num | |||
) |
Declare simple descriptor for window covering controller 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 |