Macros | |
#define | ZB_ZLL_DEVICE_VER_DIMMABLE_LIGHT 0 |
#define | ZB_ZLL_DIMMABLE_LIGHT_IN_CLUSTER_NUM 7 |
#define | ZB_ZLL_DIMMABLE_LIGHT_OUT_CLUSTER_NUM 1 |
#define | ZB_ZLL_DIMMABLE_LIGHT_REPORT_ATTR_COUNT (ZB_ZCL_ON_OFF_REPORT_ATTR_COUNT + ZB_ZCL_LEVEL_CONTROL_REPORT_ATTR_COUNT) |
#define | ZB_ZLL_DIMMABLE_LIGHT_CVC_ATTR_COUNT 1 |
#define | ZB_ZLL_DECLARE_DIMMABLE_LIGHT_CLUSTER_LIST(cluster_list_name,basic_attr_list,identify_attr_list,groups_attr_list,scenes_attr_list,on_off_attr_list,level_control_attr_list,commissioning_declare_both) |
Declare cluster list for Dimmable light device. More... | |
#define | ZB_ZCL_DECLARE_ZLL_DIMMABLE_LIGHT_SIMPLE_DESC(ep_name, ep_id, in_clust_num, out_clust_num) |
Declare simple descriptor for Dimmable light device. More... | |
#define | ZB_ZLL_DECLARE_DIMMABLE_LIGHT_EP(ep_name, ep_id, cluster_list) |
Declare endpoint for dimmable light device. More... | |
#define | ZB_ZLL_DECLARE_DIMMABLE_LIGHT_CTX(device_ctx, ep_name) ZBOSS_DECLARE_DEVICE_CTX_1_EP(device_ctx, ep_name) |
ZLL Dimmable light device.
Dimmable light device has 6 clusters (see spec 5.2.3):
Sample use Dimmable light device
See ll/all_devices test
#define ZB_ZCL_DECLARE_ZLL_DIMMABLE_LIGHT_SIMPLE_DESC | ( | ep_name, | |
ep_id, | |||
in_clust_num, | |||
out_clust_num | |||
) |
Declare simple descriptor for Dimmable light device.
ep_name | - endpoint variable name. |
ep_id | [IN] - endpoint ID. |
in_clust_num | [IN] - number of supported input clusters. |
out_clust_num | [IN] - number of supported output clusters. |
#define ZB_ZLL_DECLARE_DIMMABLE_LIGHT_CLUSTER_LIST | ( | cluster_list_name, | |
basic_attr_list, | |||
identify_attr_list, | |||
groups_attr_list, | |||
scenes_attr_list, | |||
on_off_attr_list, | |||
level_control_attr_list, | |||
commissioning_declare_both | |||
) |
Declare cluster list for Dimmable light device.
cluster_list_name | [IN] - cluster list variable name. |
basic_attr_list | [IN] - attribute list for Basic cluster. |
identify_attr_list | [IN] - attribute list for Identify cluster. |
groups_attr_list | [IN] - attribute list for Groups cluster. |
scenes_attr_list | [IN] - attribute list for Scenes cluster. |
on_off_attr_list | [IN] - attribute list for On/Off cluster. |
level_control_attr_list | [IN] - attribute list for Level Control cluster. |
commissioning_declare_both | [IN] - determines Commissioning cluster role: ZB_TRUE implies both client and server, and ZB_FALSE implies server role only. |
#define ZB_ZLL_DECLARE_DIMMABLE_LIGHT_EP | ( | ep_name, | |
ep_id, | |||
cluster_list | |||
) |
Declare endpoint for dimmable light device.
ep_name | [IN] - endpoint variable name. |
ep_id | [IN] - endpoint ID. |
cluster_list | [IN] - endpoint cluster list. |
#define ZB_ZLL_DEVICE_VER_DIMMABLE_LIGHT 0 |
Device version
#define ZB_ZLL_DIMMABLE_LIGHT_IN_CLUSTER_NUM 7 |
Dimmable light input clusters number.
#define ZB_ZLL_DIMMABLE_LIGHT_OUT_CLUSTER_NUM 1 |
Dimmable light output clusters number.