nRF5 SDK for Thread and Zigbee v2.0.0
Macros
Basic cluster HA extension

Macros

#define ZB_ZCL_DECLARE_BASIC_ATTRIB_LIST_HA_ADDS_FULL(attr_list,zcl_version,app_version,stack_version,hardware_version,manufacturer_name,model_id,date_code,power_source,location_id,ph_env)
 Declare attribute list for Basic cluster with HA additions. More...
 

Detailed Description

Extension for HA devices - DeviceEnable attribute shall be read-only and set to 1.

Macro Definition Documentation

#define ZB_ZCL_DECLARE_BASIC_ATTRIB_LIST_HA_ADDS_FULL (   attr_list,
  zcl_version,
  app_version,
  stack_version,
  hardware_version,
  manufacturer_name,
  model_id,
  date_code,
  power_source,
  location_id,
  ph_env 
)
Value:
zb_bool_t device_enable_##attr_list = ZB_TRUE; \
ZB_ZCL_START_DECLARE_ATTRIB_LIST(attr_list) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_BASIC_ZCL_VERSION_ID, (zcl_version)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_BASIC_APPLICATION_VERSION_ID, (app_version)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_BASIC_STACK_VERSION_ID, (stack_version)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_BASIC_HW_VERSION_ID, (hardware_version)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_BASIC_MANUFACTURER_NAME_ID, (manufacturer_name))\
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_BASIC_MODEL_IDENTIFIER_ID, (model_id)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_BASIC_DATE_CODE_ID, (date_code)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_BASIC_POWER_SOURCE_ID, (power_source)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_BASIC_LOCATION_DESCRIPTION_ID, (location_id)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_BASIC_PHYSICAL_ENVIRONMENT_ID, (ph_env)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_BASIC_DEVICE_ENABLED_ID, \
&(device_enable_##attr_list)) \
ZB_ZCL_FINISH_DECLARE_ATTRIB_LIST
Definition: zb_zcl_basic.h:112
Definition: zb_zcl_basic.h:115
Definition: zb_zcl_basic.h:78
Definition: zb_zcl_basic.h:68
Definition: zb_zcl_basic.h:76
Definition: zb_zcl_basic.h:66
Definition: zb_zcl_basic.h:70
Definition: zb_zcl_basic.h:110
Definition: zb_zcl_basic.h:74
Definition: zb_zcl_basic.h:72
Definition: zb_types.h:101
enum zb_bool_e zb_bool_t
General purpose boolean type.
Definition: zb_types.h:298
Definition: zb_zcl_basic.h:80

Declare attribute list for Basic cluster with HA additions.

Parameters
attr_list[IN] - attribute list name.
zcl_version[IN] - pointer to variable storing ZCL version attribute value.
app_version[IN] - pointer to the variable storing application version.
stack_version[IN] - pointer to the variable storing stack version.
hardware_version[IN] - pointer to the variable storing hardware version.
manufacturer_name[IN] - pointer to the variable storing manufacturer name.
model_id[IN] - pointer to the variable storing model identifier.
date_code[IN] - pointer to the variable storing date code.
power_source[IN] - pointer to variable storing power source attribute value.
location_id[IN] - pointer to variable storing location description attribute value.
ph_env[IN] - pointer to variable storing physical environment attribute value.

Documentation feedback | Developer Zone | Subscribe | Updated