![]() |
nRF5 SDK for Thread and Zigbee v1.0.0
|
Macros | |
#define | ZB_ZLL_DEVICE_VER_ON_OFF_LIGHT 0 |
#define | ZB_ZLL_ON_OFF_LIGHT_IN_CLUSTER_NUM 6 |
#define | ZB_ZLL_ON_OFF_LIGHT_OUT_CLUSTER_NUM 0 |
#define | ZB_ZLL_ON_OFF_LIGHT_REPORT_ATTR_COUNT (ZB_ZCL_ON_OFF_REPORT_ATTR_COUNT) |
#define | ZB_ZLL_DECLARE_ON_OFF_LIGHT_CLUSTER_LIST(cluster_list_name,basic_attr_list,identify_attr_list,groups_attr_list,scenes_attr_list,on_off_attr_list,commissioning_declare_both) |
Declare cluster list for On/Off light device. More... | |
#define | ZB_ZCL_DECLARE_ON_OFF_LIGHT_SIMPLE_DESC(ep_name, ep_id, in_clust_num, out_clust_num) |
Declare simple descriptor for On/Off light device. More... | |
#define | ZB_ZLL_DECLARE_ON_OFF_LIGHT_EP(ep_name, ep_id, cluster_list) |
Declare endpoint for dimmable light device. More... | |
#define | ZB_ZLL_DECLARE_ON_OFF_LIGHT_CTX(device_ctx, ep_name) |
ZLL On/Off light device.
On/Off light device has 5 clusters (see spec 5.2.1):
Sample use On/Off light device
See ll/all_devices test
#define ZB_ZCL_DECLARE_ON_OFF_LIGHT_SIMPLE_DESC | ( | ep_name, | |
ep_id, | |||
in_clust_num, | |||
out_clust_num | |||
) |
Declare simple descriptor for On/Off 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_ON_OFF_LIGHT_CLUSTER_LIST | ( | cluster_list_name, | |
basic_attr_list, | |||
identify_attr_list, | |||
groups_attr_list, | |||
scenes_attr_list, | |||
on_off_attr_list, | |||
commissioning_declare_both | |||
) |
Declare cluster list for On/Off 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. |
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_ON_OFF_LIGHT_CTX | ( | device_ctx, | |
ep_name | |||
) |
#define ZB_ZLL_DECLARE_ON_OFF_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_ON_OFF_LIGHT 0 |
Device version
#define ZB_ZLL_ON_OFF_LIGHT_IN_CLUSTER_NUM 6 |
On/Off light input clusters number.
#define ZB_ZLL_ON_OFF_LIGHT_OUT_CLUSTER_NUM 0 |
On/Off light output clusters number.