Developing with ZBOSS
Window Covering Controller

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...
 

Detailed Description

Window Covering Controller device has 3 clusters (see spec 7.6.4):

Window Covering Controller device sample

Example

Macro Definition Documentation

◆ ZB_HA_DECLARE_WINDOW_COVERING_CONTROLLER_CLUSTER_LIST

#define ZB_HA_DECLARE_WINDOW_COVERING_CONTROLLER_CLUSTER_LIST (   cluster_list_name,
  basic_attr_list,
  identify_attr_list 
)
Value:
zb_zcl_cluster_desc_t cluster_list_name[] = \
{ \
ZB_ZCL_CLUSTER_DESC( \
ZB_ZCL_ARRAY_SIZE(identify_attr_list, zb_zcl_attr_t), \
(identify_attr_list), \
), \
ZB_ZCL_CLUSTER_DESC( \
ZB_ZCL_ARRAY_SIZE(basic_attr_list, zb_zcl_attr_t), \
(basic_attr_list), \
), \
ZB_ZCL_CLUSTER_DESC( \
0, \
NULL, \
), \
ZB_ZCL_CLUSTER_DESC( \
0, NULL, \
) \
}
ZCL cluster description.
Definition: zb_zcl_common.h:146
Definition: zb_zcl_common.h:256
Definition: zb_zcl_common.h:219
Definition: zb_zcl_common.h:215
#define ZB_ZCL_MANUF_CODE_INVALID
Internal invalid manufacturer code value.
Definition: zb_zcl_common.h:333
ZCL attribute definition structure.
Definition: zb_zcl_common.h:632
Definition: zb_zcl_common.h:204
Definition: zb_zcl_common.h:202

Declare cluster list for window covering controller device.

Parameters
cluster_list_name- cluster list variable name
basic_attr_list- attribute list for Basic cluster
identify_attr_list- attribute list for Identify cluster

◆ ZB_HA_DECLARE_WINDOW_COVERING_CONTROLLER_CTX

#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.

Parameters
device_ctx- device context variable
ep_name- endpoint variable name

◆ ZB_HA_DECLARE_WINDOW_COVERING_CONTROLLER_EP

#define ZB_HA_DECLARE_WINDOW_COVERING_CONTROLLER_EP (   ep_name,
  ep_id,
  cluster_list 
)
Value:
ep_id, \
ZB_HA_WINDOW_COVERING_CONTROLLER_IN_CLUSTER_NUM, \
ZB_HA_WINDOW_COVERING_CONTROLLER_OUT_CLUSTER_NUM); \
ZB_AF_DECLARE_ENDPOINT_DESC(ep_name, ep_id, \
0, \
NULL, \
ZB_ZCL_ARRAY_SIZE(cluster_list, zb_zcl_cluster_desc_t), \
cluster_list, \
(zb_af_simple_desc_1_1_t*)&simple_desc_##ep_name, \
0, NULL, /* No reporting ctx */ \
0, NULL) /* No CVC ctx */
ZCL cluster description.
Definition: zb_zcl_common.h:146
Definition: zboss_api_af.h:314
#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.
Definition: zb_ha_window_covering_controller.h:154

Declare endpoint for window covering controller device.

Parameters
ep_name- endpoint variable name
ep_id- endpoint ID
cluster_list- endpoint cluster list

◆ ZB_HA_DEVICE_VER_WINDOW_COVERING_CONTROLLER

#define ZB_HA_DEVICE_VER_WINDOW_COVERING_CONTROLLER   0

< window covering controller device version

◆ ZB_ZCL_DECLARE_WINDOW_COVERING_CONTROLLER_SIMPLE_DESC

#define ZB_ZCL_DECLARE_WINDOW_COVERING_CONTROLLER_SIMPLE_DESC (   ep_name,
  ep_id,
  in_clust_num,
  out_clust_num 
)
Value:
ZB_DECLARE_SIMPLE_DESC(in_clust_num, out_clust_num); \
ZB_AF_SIMPLE_DESC_TYPE(in_clust_num, out_clust_num) simple_desc_##ep_name = \
{ \
ep_id, \
ZB_AF_HA_PROFILE_ID, \
ZB_HA_WINDOW_COVERING_CONTROLLER_DEVICE_ID, \
ZB_HA_DEVICE_VER_WINDOW_COVERING_CONTROLLER, \
0, \
in_clust_num, \
out_clust_num, \
{ \
ZB_ZCL_CLUSTER_ID_BASIC, \
ZB_ZCL_CLUSTER_ID_IDENTIFY, \
ZB_ZCL_CLUSTER_ID_WINDOW_COVERING, \
ZB_ZCL_CLUSTER_ID_IDENTIFY, \
} \
}
#define ZB_DECLARE_SIMPLE_DESC(in_clusters_count, out_clusters_count)
Definition: zboss_api_af.h:206

Declare simple descriptor for window covering controller device.

Parameters
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