Developing with ZBOSS SDK for Zigbee
|
Macros | |
#define | ZB_HA_DEVICE_VER_LEVEL_CONTROLLABLE_OUTPUT 0 |
#define | ZB_HA_LEVEL_CONTROLLABLE_OUTPUT_IN_CLUSTER_NUM 6 |
#define | ZB_HA_LEVEL_CONTROLLABLE_OUTPUT_OUT_CLUSTER_NUM 0 |
#define | ZB_HA_LEVEL_CONTROLLABLE_OUTPUT_CLUSTER_NUM |
#define | ZB_HA_LEVEL_CONTROLLABLE_OUTPUT_REPORT_ATTR_COUNT (ZB_ZCL_LEVEL_CONTROL_REPORT_ATTR_COUNT + ZB_ZCL_ON_OFF_REPORT_ATTR_COUNT) |
#define | ZB_HA_LEVEL_CONTROLLABLE_OUTPUT_CVC_ATTR_COUNT 1 |
#define | ZB_HA_DECLARE_LEVEL_CONTROLLABLE_OUTPUT_CLUSTER_LIST( cluster_list_name, basic_attr_list, identify_attr_list, scenes_attr_list, groups_attr_list, on_off_attr_list, level_control_attr_list) |
Declare cluster list for Level Controllable Output device. More... | |
#define | ZB_ZCL_DECLARE_LEVEL_CONTROLLABLE_OUTPUT_SIMPLE_DESC( ep_name, ep_id, in_clust_num, out_clust_num) |
#define | ZB_HA_DECLARE_LEVEL_CONTROLLABLE_OUTPUT_EP(ep_name, ep_id, cluster_list) |
Declare endpoint for Level Controllable Output device. More... | |
#define | ZB_HA_DECLARE_LEVEL_CONTROLLABLE_OUTPUT_CTX(device_ctx, ep_name) ZBOSS_DECLARE_DEVICE_CTX_1_EP(device_ctx, ep_name) |
Declare application's device context for Level Control Switch device. More... | |
Level Control device has 6 clusters (see spec 7.4.4):
Sample use Level Control device
Declaring clusters:
Registering device list:
Example of command handler:
The complete set of Level Control device samples can be found in /application/HA_samples/level_control_output
#define ZB_HA_DECLARE_LEVEL_CONTROLLABLE_OUTPUT_CLUSTER_LIST | ( | cluster_list_name, | |
basic_attr_list, | |||
identify_attr_list, | |||
scenes_attr_list, | |||
groups_attr_list, | |||
on_off_attr_list, | |||
level_control_attr_list | |||
) |
Declare cluster list for Level Controllable Output device.
cluster_list_name | - cluster list variable name |
basic_attr_list | - attribute list for Basic cluster |
identify_attr_list | - attribute list for Identify cluster |
scenes_attr_list | - attribute list for Scenes cluster |
groups_attr_list | - attribute list for Groups cluster |
on_off_attr_list | - attribute list for On/Off cluster |
level_control_attr_list | - attribute list for Level Control cluster |
#define ZB_HA_DECLARE_LEVEL_CONTROLLABLE_OUTPUT_CTX | ( | device_ctx, | |
ep_name | |||
) | ZBOSS_DECLARE_DEVICE_CTX_1_EP(device_ctx, ep_name) |
Declare application's device context for Level Control Switch device.
device_ctx | - device context variable |
ep_name | - endpoint variable name |
#define ZB_HA_DECLARE_LEVEL_CONTROLLABLE_OUTPUT_EP | ( | ep_name, | |
ep_id, | |||
cluster_list | |||
) |
Declare endpoint for Level Controllable Output device.
ep_name | - endpoint variable name |
ep_id | - endpoint ID |
cluster_list | - endpoint cluster list |
#define ZB_HA_DEVICE_VER_LEVEL_CONTROLLABLE_OUTPUT 0 |
< Level Controllable Output device version Level Controllable Output IN (server) clusters number
#define ZB_HA_LEVEL_CONTROLLABLE_OUTPUT_CLUSTER_NUM |
#define ZB_HA_LEVEL_CONTROLLABLE_OUTPUT_IN_CLUSTER_NUM 6 |
Level Controllable Output OUT (client) clusters number
#define ZB_ZCL_DECLARE_LEVEL_CONTROLLABLE_OUTPUT_SIMPLE_DESC | ( | ep_name, | |
ep_id, | |||
in_clust_num, | |||
out_clust_num | |||
) |