Trident IoT Zigbee SDK
Loading...
Searching...
No Matches
tr_zcl_endpoint_config.h
Go to the documentation of this file.
1
11#ifndef TR_ZCL_ENDPOINT_CONFIG_H
12#define TR_ZCL_ENDPOINT_CONFIG_H
13
14#include "zb_zcl_common.h"
15#include "zboss_api_internal.h"
16#include "tr_zcl_id.h"
17#include "tr_zcl_type.h"
18#include "tr_zcl_cmd_structs.h"
20
21#define TR_DEVICE_MANUFACTURER_ID 0x1570U
22#define TR_GLOBAL_RESPONSE_POLICY ZB_ZCL_DISABLE_DEFAULT_RESPONSE
23
24#define TR_ZCL_NULL_EP_ID 0xFFU
25#define TR_ZCL_NULL_ID 0xFFFFU
26#define TR_ZCL_NON_MANUFACTURER_SPECIFIC 0xFFFFU
27
28#define TR_DEVICE_EP_COUNT (0)
29
30/**************************************/
31/* All Endpoint(s) Supported Clusters */
32// Generated endpoint count for each cluster
33
34/****************************************/
35/* All Endpoint(s) Supported Attributes */
36// Generated list of all attributes defined for this device
37
38/**************************************/
39/* All Endpoint(s) Supported Commands */
40/*******************************************/
41/* All Endpoint(s) nvram attribute storage */
42// Generated number of attributes stored in nvram
43#define TR_NUM_NVRAM_ATTR (0)
44
45#define TR_NVRAM_ATTR_STORAGE_CONFIG \
46 { \
47 }
48
49/****************************************/
50/* All Endpoint(s) Default Reporting Configs */
51typedef struct
52{
53 zb_uint8_t direction;
54 zb_uint8_t endpoint;
55 zb_uint16_t cluster_id;
56 zb_uint8_t cluster_role;
57 zb_uint16_t attr_id;
58 zb_uint16_t profile_id;
59 zb_uint16_t manuf_code;
60 zb_uint16_t min_interval;
61 zb_uint16_t max_interval;
62 zb_uint8_t data_type;
63 zb_uint32_t reportable_change;
65
66#ifdef TR_PLUGIN_ATTR_REPORT_TABLE_SIZE
67#define TR_ATTR_REPORT_TABLE_SIZE TR_PLUGIN_ATTR_REPORT_TABLE_SIZE
68#else
69#define TR_ATTR_REPORT_TABLE_SIZE 16
70#endif
71
72#define TR_DEVICE_NUM_DEFAULT_REPORTABLE_ATTRS 0
73/* {direction, endpoint, cluster_id, role, attribute_id, profile_id, manuf_code, min_interval, max_interval, data_type, reportable_change} */
74#define TR_DEVICE_REPORTING_CONFIG_DEFAULTS \
75 { \
76 {}, \
77 }
78
79#define TR_TOTAL_ATTR_REPORT_TABLE_SIZE (TR_ATTR_REPORT_TABLE_SIZE + TR_DEVICE_NUM_DEFAULT_REPORTABLE_ATTRS)
80
81// Structure for cluster id/names
82typedef struct
83{
84 zb_uint16_t cluster_id;
85 zb_char_t *cluster_name;
87
89extern zb_af_device_ctx_t tr_device_ctx;
90extern zb_zcl_reporting_info_t tr_device_reporting_info[TR_TOTAL_ATTR_REPORT_TABLE_SIZE];
91
92extern zb_zcl_diagnostics_ctx_t diagnostics_ctx_zcl;
93
97
98#endif /* TR_ZCL_ENDPOINT_CONFIG_H */
zb_uint16_t profile_id
Definition tr_zcl_cmd_structs.h:3928
zb_uint8_t direction
Definition tr_zcl_cmd_structs.h:1564
#define TR_TOTAL_ATTR_REPORT_TABLE_SIZE
Definition tr_zcl_endpoint_config.h:587
zb_af_device_ctx_t tr_device_ctx
tr_cluster_names_t tr_cluster_names[]
void tr_zcl_endpoint_config_reporting_init(void)
zb_zcl_diagnostics_ctx_t diagnostics_ctx_zcl
void tr_zcl_endpoint_config_attr_init(uint8_t endpoint)
void tr_zcl_endpoint_config_init(void)
zb_zcl_reporting_info_t tr_device_reporting_info[TR_TOTAL_ATTR_REPORT_TABLE_SIZE]
ZCL command structure definitions.
ZCL ID definitions.
includes Trident ZCL plugin header files or creates stubs that can be consumed by the end user.
ZCL definitions for types, enums, and data structures.
Definition tr_zcl_endpoint_config.h:560
Definition tr_zcl_endpoint_config.h:591
zb_uint8_t endpoint
Definition tr_nvram_attr.h:176
zb_uint16_t cluster_id
Definition tr_nvram_attr.h:177
zb_uint8_t cluster_role
Definition tr_nvram_attr.h:179
zb_uint16_t manuf_code
Definition tr_nvram_attr.h:180
zb_uint16_t attr_id
Definition tr_nvram_attr.h:178
zb_uint8_t data_type
Definition tr_nvram_attr.h:181