Developing with ZBOSS for Zigbee

Macros

#define ZB_HA_DEVICE_VER_THERMOSTAT   1
 
#define ZB_HA_DECLARE_THERMOSTAT_CLUSTER_LIST( cluster_list_name, basic_attr_list, identify_attr_list, thermostat_attr_list, fan_control_attr_list, thermostat_ui_config_attr_list)
 Declare cluster list for Thermostat device. More...
 
#define ZB_HA_DECLARE_THERMOSTAT_CLUSTER_LIST_EXT( cluster_list_name, basic_attr_list, identify_attr_list, groups_attr_list, scenes_attr_list, thermostat_attr_list, fan_control_attr_list, thermostat_ui_config_attr_list)
 Declare cluster list for Thermostat device. More...
 
#define ZB_HA_DECLARE_THERMOSTAT_EP(ep_name, ep_id, cluster_list)
 Declare endpoint for Thermostat device. More...
 
#define ZB_HA_DECLARE_THERMOSTAT_CTX(device_ctx, ep_name)   ZBOSS_DECLARE_DEVICE_CTX_1_EP(device_ctx, ep_name)
 Declare application's device context for Thermostat device. More...
 

Detailed Description

Macro Definition Documentation

◆ ZB_HA_DECLARE_THERMOSTAT_CLUSTER_LIST

#define ZB_HA_DECLARE_THERMOSTAT_CLUSTER_LIST (   cluster_list_name,
  basic_attr_list,
  identify_attr_list,
  thermostat_attr_list,
  fan_control_attr_list,
  thermostat_ui_config_attr_list 
)

Declare cluster list for Thermostat 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
thermostat_attr_list- attribute list for Thermostat cluster
fan_control_attr_list- attribute list for Fan Control cluster
thermostat_ui_config_attr_list- attribute list for Thermostat UI Config cluster

◆ ZB_HA_DECLARE_THERMOSTAT_CLUSTER_LIST_EXT

#define ZB_HA_DECLARE_THERMOSTAT_CLUSTER_LIST_EXT (   cluster_list_name,
  basic_attr_list,
  identify_attr_list,
  groups_attr_list,
  scenes_attr_list,
  thermostat_attr_list,
  fan_control_attr_list,
  thermostat_ui_config_attr_list 
)

Declare cluster list for Thermostat 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
groups_attr_list- attribute list for Groups cluster
scenes_attr_list- attribute list for Scenes cluster
thermostat_attr_list- attribute list for Thermostat cluster
fan_control_attr_list- attribute list for Fan Control cluster
thermostat_ui_config_attr_list- attribute list for Thermostat UI Config cluster

◆ ZB_HA_DECLARE_THERMOSTAT_CTX

#define ZB_HA_DECLARE_THERMOSTAT_CTX (   device_ctx,
  ep_name 
)    ZBOSS_DECLARE_DEVICE_CTX_1_EP(device_ctx, ep_name)

Declare application's device context for Thermostat device.

Parameters
device_ctx- device context variable
ep_name- endpoint variable name

◆ ZB_HA_DECLARE_THERMOSTAT_EP

#define ZB_HA_DECLARE_THERMOSTAT_EP (   ep_name,
  ep_id,
  cluster_list 
)
Value:
ZB_ZCL_DECLARE_THERMOSTAT_SIMPLE_DESC(ep_name, ep_id, \
ZB_HA_THERMOSTAT_IN_CLUSTER_NUM, ZB_HA_THERMOSTAT_OUT_CLUSTER_NUM); \
ZBOSS_DEVICE_DECLARE_REPORTING_CTX(reporting_info## device_ctx_name, \
ZB_HA_THERMOSTAT_REPORT_ATTR_COUNT); \
ZB_AF_DECLARE_ENDPOINT_DESC(ep_name, ep_id, ZB_AF_HA_PROFILE_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, \
ZB_HA_THERMOSTAT_REPORT_ATTR_COUNT, reporting_info## device_ctx_name, \
0, NULL)

Declare endpoint for Thermostat device.

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

◆ ZB_HA_DEVICE_VER_THERMOSTAT

#define ZB_HA_DEVICE_VER_THERMOSTAT   1

Thermostat device version number

ZB_AF_HA_PROFILE_ID
#define ZB_AF_HA_PROFILE_ID
Definition: zboss_api_af.h:287
zb_zcl_cluster_desc_s
ZCL cluster description.
Definition: zb_zcl_common.h:127