Logo
Developing with ZBOSS for Zigbee
zb_ha_erl_gw_device.h File Reference
#include "zcl/zb_zcl_time.h"

Macros

#define ZB_HA_DEVICE_VER_ERL_GW   0
 
#define ZB_HA_ERL_GW_DEVICE_ID   0
 
#define ERL_GW_TIME_STATUS_INITIAL   ((1 << ZB_ZCL_TIME_MASTER) | (1 << ZB_ZCL_TIME_MASTER_ZONE_DST))
 
#define ZB_HA_ERL_GW_IN_CLUSTER_NUM   3
 
#define ZB_HA_ERL_GW_OUT_CLUSTER_NUM   7
 
#define ZB_HA_ERL_GW_CLUSTER_NUM   (ZB_HA_ERL_GW_IN_CLUSTER_NUM + ZB_HA_ERL_GW_OUT_CLUSTER_NUM)
 
#define ZB_HA_ERL_GW_REPORT_ATTR_COUNT   0
 
#define ZB_HA_DECLARE_ERL_GW_CLUSTER_LIST( cluster_list_name, basic_attr_list, identify_attr_list, time_attr_list)
 Declare cluster list for ERL GW device. More...
 
#define ZB_ZCL_DECLARE_ERL_GW_SIMPLE_DESC(ep_name, ep_id, in_clust_num, out_clust_num)
 
#define ZB_HA_DECLARE_ERL_GW_EP(ep_name, ep_id, cluster_list)
 Declare endpoint for ERL GW device. More...
 
#define ZB_HA_DECLARE_ERL_GW_CTX(device_ctx, ep_name)   ZBOSS_DECLARE_DEVICE_CTX_1_EP(device_ctx, ep_name)
 Declare ERL GW device context. More...
 

Macro Definition Documentation

§ ERL_GW_TIME_STATUS_INITIAL

#define ERL_GW_TIME_STATUS_INITIAL   ((1 << ZB_ZCL_TIME_MASTER) | (1 << ZB_ZCL_TIME_MASTER_ZONE_DST))

§ ZB_HA_DECLARE_ERL_GW_CLUSTER_LIST

#define ZB_HA_DECLARE_ERL_GW_CLUSTER_LIST (   cluster_list_name,
  basic_attr_list,
  identify_attr_list,
  time_attr_list 
)

Declare cluster list for ERL GW device.

Parameters
cluster_list_name- cluster list variable name
on_off_switch_config_attr_list- attribute list for On/off switch configuration cluster
basic_attr_list- attribute list for Basic cluster
identify_attr_list- attribute list for Identify cluster

§ ZB_HA_DECLARE_ERL_GW_CTX

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

Declare ERL GW device context.

Parameters
device_ctx- device context variable name.
ep_name- endpoint variable name.

§ ZB_HA_DECLARE_ERL_GW_EP

#define ZB_HA_DECLARE_ERL_GW_EP (   ep_name,
  ep_id,
  cluster_list 
)
Value:
ep_name, \
ep_id, \
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)
#define ZB_AF_HA_PROFILE_ID
Definition: zboss_api_af.h:287
ZCL cluster description.
Definition: zb_zcl_common.h:129
#define ZB_HA_ERL_GW_IN_CLUSTER_NUM
Definition: zb_ha_erl_gw_device.h:37
#define ZB_HA_ERL_GW_OUT_CLUSTER_NUM
Definition: zb_ha_erl_gw_device.h:38
#define ZB_ZCL_DECLARE_ERL_GW_SIMPLE_DESC(ep_name, ep_id, in_clust_num, out_clust_num)
Definition: zb_ha_erl_gw_device.h:139
Definition: zboss_api_af.h:260

Declare endpoint for ERL GW device.

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

§ ZB_HA_DEVICE_VER_ERL_GW

#define ZB_HA_DEVICE_VER_ERL_GW   0

ERL GW device version

§ ZB_HA_ERL_GW_CLUSTER_NUM

#define ZB_HA_ERL_GW_CLUSTER_NUM   (ZB_HA_ERL_GW_IN_CLUSTER_NUM + ZB_HA_ERL_GW_OUT_CLUSTER_NUM)

§ ZB_HA_ERL_GW_DEVICE_ID

#define ZB_HA_ERL_GW_DEVICE_ID   0

§ ZB_HA_ERL_GW_IN_CLUSTER_NUM

#define ZB_HA_ERL_GW_IN_CLUSTER_NUM   3

§ ZB_HA_ERL_GW_OUT_CLUSTER_NUM

#define ZB_HA_ERL_GW_OUT_CLUSTER_NUM   7

§ ZB_HA_ERL_GW_REPORT_ATTR_COUNT

#define ZB_HA_ERL_GW_REPORT_ATTR_COUNT   0

§ ZB_ZCL_DECLARE_ERL_GW_SIMPLE_DESC

#define ZB_ZCL_DECLARE_ERL_GW_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_ERL_GW_DEVICE_ID, \
ZB_HA_DEVICE_VER_ERL_GW, \
0, \
in_clust_num, \
out_clust_num, \
{ \
ZB_ZCL_CLUSTER_ID_BASIC, \
ZB_ZCL_CLUSTER_ID_IDENTIFY, \
ZB_ZCL_CLUSTER_ID_TIME, \
ZB_ZCL_CLUSTER_ID_IDENTIFY, \
ZB_ZCL_CLUSTER_ID_METER_IDENTIFICATION, \
ZB_ZCL_CLUSTER_ID_ELECTRICAL_MEASUREMENT, \
ZB_ZCL_CLUSTER_ID_DIAGNOSTICS, \
ZB_ZCL_CLUSTER_ID_METERING, \
ZB_ZCL_CLUSTER_ID_MESSAGING, \
ZB_ZCL_CLUSTER_ID_DAILY_SCHEDULE, \
} \
}
#define ZB_DECLARE_SIMPLE_DESC(in_clusters_count, out_clusters_count)
Definition: zboss_api_af.h:237