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"
19
20#define TR_DEVICE_MANUFACTURER_ID 0x1570U
21#define TR_GLOBAL_RESPONSE_POLICY ZB_ZCL_DISABLE_DEFAULT_RESPONSE
22
23#define TR_ZCL_NULL_EP_ID 0xFFU
24#define TR_ZCL_NULL_ID 0xFFFFU
25#define TR_ZCL_NON_MANUFACTURER_SPECIFIC 0xFFFFU
26
27
28/**************************************/
29/* All Endpoint(s) Supported Commands */
30/*******************************************/
31/* All Endpoint(s) nvram attribute storage */
32// Generated number of attributes stored in nvram
33#define TR_NUM_NVRAM_ATTR (0)
34
35#define TR_NVRAM_ATTR_STORAGE_CONFIG \
36 { \
37 }
38
39/****************************************/
40/* All Endpoint(s) Default Reporting Configs */
41typedef struct
42{
43 zb_uint8_t direction;
44 zb_uint8_t endpoint;
45 zb_uint16_t cluster_id;
46 zb_uint8_t cluster_role;
47 zb_uint16_t attr_id;
48 zb_uint16_t profile_id;
49 zb_uint16_t manuf_code;
50 zb_uint16_t min_interval;
51 zb_uint16_t max_interval;
52 zb_uint8_t data_type;
53 zb_uint32_t reportable_change;
55
56#ifdef TR_PLUGIN_ATTR_REPORT_TABLE_SIZE
57#define TR_ATTR_REPORT_TABLE_SIZE TR_PLUGIN_ATTR_REPORT_TABLE_SIZE
58#else
59#define TR_ATTR_REPORT_TABLE_SIZE 16
60#endif
61
62#define TR_DEVICE_NUM_DEFAULT_REPORTABLE_ATTRS 0
63/* {direction, endpoint, cluster_id, role, attribute_id, profile_id, manuf_code, min_interval, max_interval, data_type, reportable_change} */
64#define TR_DEVICE_REPORTING_CONFIG_DEFAULTS \
65 { \
66 {}, \
67 }
68
69#define TR_TOTAL_ATTR_REPORT_TABLE_SIZE (TR_ATTR_REPORT_TABLE_SIZE + TR_DEVICE_NUM_DEFAULT_REPORTABLE_ATTRS)
70
71// Structure for cluster id/names
72typedef struct
73{
74 zb_uint16_t cluster_id;
75 zb_char_t *cluster_name;
77
79extern zb_af_device_ctx_t tr_device_ctx;
80extern zb_zcl_reporting_info_t tr_device_reporting_info[TR_TOTAL_ATTR_REPORT_TABLE_SIZE];
81
82extern zb_zcl_diagnostics_ctx_t diagnostics_ctx_zcl;
83
87
88#endif /* TR_ZCL_ENDPOINT_CONFIG_H */
#define TR_TOTAL_ATTR_REPORT_TABLE_SIZE
Definition tr_zcl_endpoint_config.h:69
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 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:413
Definition tr_zcl_endpoint_config.h:456
zb_uint8_t endpoint
Definition tr_nvram_attr.h:23
zb_uint16_t cluster_id
Definition tr_nvram_attr.h:24
zb_uint8_t cluster_role
Definition tr_nvram_attr.h:26
zb_uint16_t manuf_code
Definition tr_nvram_attr.h:27
zb_uint16_t attr_id
Definition tr_nvram_attr.h:25
zb_uint8_t data_type
Definition tr_nvram_attr.h:28