
Macros | |
| #define | ZB_HA_DEVICE_VER_LEVEL_CONTROL_SWITCH 0 |
| #define | ZB_HA_LEVEL_CONTROL_SWITCH_IN_CLUSTER_NUM 2 |
| #define | ZB_HA_LEVEL_CONTROL_SWITCH_OUT_CLUSTER_NUM 3 |
| #define | ZB_HA_LEVEL_CONTROL_SWITCH_CLUSTER_NUM (ZB_HA_LEVEL_CONTROL_SWITCH_IN_CLUSTER_NUM + ZB_HA_LEVEL_CONTROL_SWITCH_OUT_CLUSTER_NUM) |
| #define | ZB_HA_LEVEL_CONTROL_SWITCH_REPORT_ATTR_COUNT 0 |
| #define | ZB_HA_DECLARE_LEVEL_CONTROL_SWITCH_CLUSTER_LIST( cluster_list_name, basic_attr_list, identify_attr_list) |
| Declare cluster list for Level Control Switch device. More... | |
| #define | ZB_ZCL_DECLARE_LEVEL_CONTROL_SWITCH_SIMPLE_DESC( ep_name, ep_id, in_clust_num, out_clust_num) |
| Declare simple descriptor for Level control switch device. More... | |
| #define | ZB_HA_DECLARE_LEVEL_CONTROL_SWITCH_EP(ep_name, ep_id, cluster_list) |
| Declare endpoint for Level Control Switch device. More... | |
| #define | ZB_HA_DECLARE_LEVEL_CONTROL_SWITCH_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 Switch device has 4 clusters (see spec 7.4.8):
Sample use Level Control Switch device
Declaring clusters:
Registering device list:
Example of command handler:
| #define ZB_HA_DECLARE_LEVEL_CONTROL_SWITCH_CLUSTER_LIST | ( | cluster_list_name, | |
| basic_attr_list, | |||
| identify_attr_list | |||
| ) |
Declare cluster list for Level Control Switch 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_LEVEL_CONTROL_SWITCH_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_CONTROL_SWITCH_EP | ( | ep_name, | |
| ep_id, | |||
| cluster_list | |||
| ) |
Declare endpoint for Level Control Switch device.
| ep_name | - endpoint variable name |
| ep_id | - endpoint ID |
| cluster_list | - endpoint cluster list |
| #define ZB_HA_DEVICE_VER_LEVEL_CONTROL_SWITCH 0 |
Level Control Switch device version
| #define ZB_HA_LEVEL_CONTROL_SWITCH_REPORT_ATTR_COUNT 0 |
Number of attribute for reporting on Level Control Switch device
| #define ZB_ZCL_DECLARE_LEVEL_CONTROL_SWITCH_SIMPLE_DESC | ( | ep_name, | |
| ep_id, | |||
| in_clust_num, | |||
| out_clust_num | |||
| ) |
Declare simple descriptor for Level control switch 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 |