TuyaOS
tkl_zcl_group.h
浏览该文件的文档.
1
11#ifndef __TKL_ZCL_GROUP_H__
12#define __TKL_ZCL_GROUP_H__
13
14
15#ifdef __cplusplus
16 extern "C" {
17#endif
18
19#include "tuya_cloud_types.h"
20
21
22
23typedef VOID_T (*TKL_ADD_GROUP_CB)(UINT8_T ep_id, UINT16_T group_id);
24typedef VOID_T (*TKL_VIEW_GROUP_CB)(UINT8_T ep_id, UINT16_T group_id);
25typedef VOID_T (*TKL_REMOVE_GROUP_CB)(UINT8_T ep_id, UINT16_T group_id);
26
27/*
28 * zigbee group callback collection
29 */
30typedef struct {
31 TKL_ADD_GROUP_CB add_group_cb;
32 TKL_VIEW_GROUP_CB view_group_cb;
33 TKL_REMOVE_GROUP_CB remove_group_cb;
35
36
44
52BOOL_T tkl_zg_find_group(UINT8_T ep_id, UINT16_T group_id);
53
61BOOL_T tkl_zg_add_group(UINT8_T ep_id, UINT16_T group_id);
62
70BOOL_T tkl_zg_remove_group(UINT8_T ep_id, UINT16_T group_id);
71
79
80
81#ifdef __cplusplus
82}
83#endif
84
85#endif
86
Definition: tkl_zcl_group.h:30
BOOL_T tkl_zg_add_group(UINT8_T ep_id, UINT16_T group_id)
add group at location endpoint
BOOL_T tkl_zg_remove_group(UINT8_T ep_id, UINT16_T group_id)
remove group at location endpoint
OPERATE_RET tkl_zg_group_cb_register(TKL_GROUP_CB_T *group_cb)
group callback register
BOOL_T tkl_zg_find_group(UINT8_T ep_id, UINT16_T group_id)
find group on endpoint
VOID_T tkl_zg_clear_all_group(VOID_T)
clear all group