TuyaOS
tkl_binding_table.h
浏览该文件的文档.
1
11#ifndef __TKL_BINDING_TABLE_H__
12#define __TKL_BINDING_TABLE_H__
13
14
15#ifdef __cplusplus
16 extern "C" {
17#endif
18
19#include "tuya_cloud_types.h"
20
21
22typedef UINT8_T EUI64_T[8];
23
24/*
25 * zigbee binding table type
26 */
27typedef enum {
32
33/*
34 * zigbee binding table
35 */
36typedef struct {
38 UINT8_T local_ep;
39 UINT8_T remote_ep;
40 UINT16_T cluster;
41 // 64bits destination MAC, for unicasts.
42 // 16bits multicast group id, for multicasts.
43 EUI64_T address;
45
53
61
69
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif
Definition: tkl_binding_table.h:36
UINT8_T remote_ep
remote endpoint
Definition: tkl_binding_table.h:39
TKL_BIND_TYPE_E type
binding type
Definition: tkl_binding_table.h:37
UINT8_T local_ep
local endpoint
Definition: tkl_binding_table.h:38
UINT16_T cluster
cluster id
Definition: tkl_binding_table.h:40
BOOL_T tkl_zg_add_binding(TKL_BINDING_TABLE_T *entry)
add binding entry to table
TKL_BIND_TYPE_E
Definition: tkl_binding_table.h:27
@ TUYA_MULTICAST_BINDING
multicast binding, 16bits address is group id
Definition: tkl_binding_table.h:30
@ TUYA_UNICAST_BINDING
unicast binding, 64bits address is destination MAC
Definition: tkl_binding_table.h:29
@ TUYA_UNUSED_BINDING
binding table entry is not used
Definition: tkl_binding_table.h:28
BOOL_T tkl_zg_remove_binding(TKL_BINDING_TABLE_T *entry)
remove binding entry from table
BOOL_T tkl_zg_clear_all_binding(VOID_T)
remove clear binding table