Developing with ZBOSS for Zigbee
Comcast security sensor

Macros

#define ZB_HA_COMCAST_SECURITY_SENSOR_VER   0
 
#define ZB_HA_COMCAST_SECURITY_SENSOR_IN_CLUSTER_NUM   9
 
#define ZB_HA_COMCAST_SECURITY_SENSOR_OUT_CLUSTER_NUM   1
 
#define ZB_HA_COMCAST_SECURITY_SENSOR_REPORT_ATTR_COUNT
 
#define ZB_HA_DECLARE_COMCAST_SECURITY_SENSOR_CLUSTER_LIST( cluster_list_name, basic_attr_list, identify_attr_list, ias_zone_attr_list, poll_ctrl_attr_list, temp_meas_attr_list, power_config_attr_list, diagnostic_attr_list, ota_upgrade_attr_list, illuminance_measurement_attr_list, rel_humidity_measurement_attr_list)
 Declare cluster list for IAS Zone. More...
 
#define ZB_HA_DECLARE_COMCAST_SECURITY_SENSOR_SIMPLE_DESC( ep_name, ep_id, in_clust_num, out_clust_num)
 Declare simple descriptor for IAS Zone. More...
 
#define ZB_HA_DECLARE_COMCAST_SECURITY_SENSOR_EP(ep_name, ep_id, cluster_list)
 Declare endpoint for IAS Ancillary Control Equipment. More...
 
#define ZB_HA_DECLARE_COMCAST_SECURITY_SENSOR_CTX(device_ctx, ep_name)   ZBOSS_DECLARE_DEVICE_CTX_1_EP(device_ctx, ep_name)
 

Detailed Description

Macro Definition Documentation

◆ ZB_HA_COMCAST_SECURITY_SENSOR_IN_CLUSTER_NUM

#define ZB_HA_COMCAST_SECURITY_SENSOR_IN_CLUSTER_NUM   9

Output clusters number.

◆ ZB_HA_COMCAST_SECURITY_SENSOR_REPORT_ATTR_COUNT

#define ZB_HA_COMCAST_SECURITY_SENSOR_REPORT_ATTR_COUNT
Value:
(ZB_ZCL_TEMP_MEASUREMENT_REPORT_ATTR_COUNT + ZB_ZCL_IAS_ZONE_REPORT_ATTR_COUNT + \
ZB_ZCL_POWER_CONFIG_BAT_PACK_2_REPORT_ATTR_COUNT + ZB_ZCL_REL_HUMIDITY_MEASUREMENT_REPORT_ATTR_COUNT + \
ZB_ZCL_ILLUMINANCE_MEASUREMENT_REPORT_ATTR_COUNT)

◆ ZB_HA_COMCAST_SECURITY_SENSOR_VER

#define ZB_HA_COMCAST_SECURITY_SENSOR_VER   0

Input clusters number.

◆ ZB_HA_DECLARE_COMCAST_SECURITY_SENSOR_CLUSTER_LIST

#define ZB_HA_DECLARE_COMCAST_SECURITY_SENSOR_CLUSTER_LIST (   cluster_list_name,
  basic_attr_list,
  identify_attr_list,
  ias_zone_attr_list,
  poll_ctrl_attr_list,
  temp_meas_attr_list,
  power_config_attr_list,
  diagnostic_attr_list,
  ota_upgrade_attr_list,
  illuminance_measurement_attr_list,
  rel_humidity_measurement_attr_list 
)

Declare cluster list for IAS Zone.

Parameters
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.
ias_zone_attr_list[IN] - attribute list for IAS Zone cluster.
poll_ctrl_attr_list[IN] - attribute list for Poll Control cluster.
temp_meas_attr_list[IN] - attribute list for IAS Zone cluster.
power_config_attr_list[IN] - attribute list for Power configuration cluster.
diagnostic_attr_list[IN] - attribute list for Diagnostics cluster.
ota_upgrade_attr_list[IN] - attribute list for OTA Upgrade cluster.
illuminance_measurement_attr_list[IN] - attribute list for Illuminance measurement cluster.
rel_humidity_measurement_attr_list[IN] - attribute list for Relative Humidity Measurement cluster.

◆ ZB_HA_DECLARE_COMCAST_SECURITY_SENSOR_EP

#define ZB_HA_DECLARE_COMCAST_SECURITY_SENSOR_EP (   ep_name,
  ep_id,
  cluster_list 
)
Value:
ZBOSS_DEVICE_DECLARE_REPORTING_CTX(reporting_info## device_ctx_name, \
ZB_HA_COMCAST_SECURITY_SENSOR_REPORT_ATTR_COUNT); \
ZB_HA_DECLARE_COMCAST_SECURITY_SENSOR_SIMPLE_DESC( \
ep_name, \
ep_id, \
ZB_HA_COMCAST_SECURITY_SENSOR_OUT_CLUSTER_NUM); \
ZB_AF_DECLARE_ENDPOINT_DESC( \
ep_name, \
ep_id, \
0, \
NULL, \
ZB_ZCL_ARRAY_SIZE( \
cluster_list, \
cluster_list, \
(zb_af_simple_desc_1_1_t*)&simple_desc_##ep_name, \
ZB_HA_COMCAST_SECURITY_SENSOR_REPORT_ATTR_COUNT, reporting_info## device_ctx_name, \
0, NULL)

Declare endpoint for IAS Ancillary Control Equipment.

Parameters
ep_name[IN] - endpoint variable name.
ep_id[IN] - endpoint ID.
cluster_list[IN] - endpoint cluster list.

◆ ZB_HA_DECLARE_COMCAST_SECURITY_SENSOR_SIMPLE_DESC

#define ZB_HA_DECLARE_COMCAST_SECURITY_SENSOR_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_IAS_ZONE_ID, /* TODO: actually, device id should be changed */ \
ZB_HA_COMCAST_SECURITY_SENSOR_VER, \
0, \
in_clust_num, \
out_clust_num, \
{ \
ZB_ZCL_CLUSTER_ID_BASIC, \
ZB_ZCL_CLUSTER_ID_IDENTIFY, \
ZB_ZCL_CLUSTER_ID_IAS_ZONE, \
ZB_ZCL_CLUSTER_ID_POLL_CONTROL, \
ZB_ZCL_CLUSTER_ID_TEMP_MEASUREMENT, \
ZB_ZCL_CLUSTER_ID_POWER_CONFIG, \
ZB_ZCL_CLUSTER_ID_DIAGNOSTICS, \
ZB_ZCL_CLUSTER_ID_ILLUMINANCE_MEASUREMENT, \
ZB_ZCL_CLUSTER_ID_REL_HUMIDITY_MEASUREMENT, \
ZB_ZCL_CLUSTER_ID_OTA_UPGRADE \
} \
}

Declare simple descriptor for IAS Zone.

Parameters
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.
Note
in_clust_num, out_clust_num should be defined by numeric constants, not variables or any definitions, because these values are used to form simple descriptor type name.
ZBOSS_DEVICE_DECLARE_REPORTING_CTX
#define ZBOSS_DEVICE_DECLARE_REPORTING_CTX(rep_ctx, rep_count)
Definition: zboss_api_af.h:610
ZB_AF_HA_PROFILE_ID
#define ZB_AF_HA_PROFILE_ID
Definition: zboss_api_af.h:287
ZB_DECLARE_SIMPLE_DESC
#define ZB_DECLARE_SIMPLE_DESC(in_clusters_count, out_clusters_count)
Definition: zboss_api_af.h:237
zb_zcl_cluster_desc_s
ZCL cluster description.
Definition: zb_zcl_common.h:127
ZB_HA_COMCAST_SECURITY_SENSOR_IN_CLUSTER_NUM
#define ZB_HA_COMCAST_SECURITY_SENSOR_IN_CLUSTER_NUM
Definition: zb_comcast_security_sensor.h:53