TuyaOS
结构体 | 枚举 | 函数
tkl_endpoint_register.h 文件参考

Common process - endpoint register 更多...

#include "tuya_zigbee_stack.h"
#include "tuya_cloud_types.h"
tkl_endpoint_register.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

结构体

struct  TKL_ENDPOINT_T
 

枚举

enum  TKL_DEV_VER_E { DEV_VER_ZHA = 0x00 , DEV_VER_ZG30 , DEV_VER_ZLL }
 

函数

BOOL_T tkl_zg_attr_get (TKL_CLUSTER_TRIPLET_T *triplet, UINT16_T attr_id, TKL_ATTR_T *out_attr)
 get attribute details 更多...
 
UINT8_T tkl_zg_endpoint_count_get (VOID_T)
 get the total number of endpoints 更多...
 
OPERATE_RET tkl_zg_endpoint_register (CONST TKL_ENDPOINT_T *ep_desc, UINT8_T sums)
 endpoint used by dynamically registered uplayer, only be called once in the initialization process. 更多...
 
TKL_DEV_VER_E tkl_zg_endpoint_to_device_version (UINT8_T ep_id)
 [TUYA_WEAK_ATTRIBUTE function],set device version according to ep_id 更多...
 
BOOL_T tkl_zg_match_cluster (TKL_CLUSTER_TRIPLET_T *triplet)
 match cluster on endpoint 更多...
 

详细描述

Common process - endpoint register

版本
1.0.0
日期
2021-04-21

枚举类型说明

◆ TKL_DEV_VER_E

枚举值
DEV_VER_ZHA 

Zigbee HA

DEV_VER_ZG30 

Zigbee3.0

DEV_VER_ZLL 

Zigbee Light link

函数说明

◆ tkl_zg_attr_get()

BOOL_T tkl_zg_attr_get ( TKL_CLUSTER_TRIPLET_T triplet,
UINT16_T  attr_id,
TKL_ATTR_T out_attr 
)

get attribute details

参数
[in]ep_idendpoint id
[in]attr_idattribute id
[out]out_attrattribute details output
返回
TRUE/ FALSE

◆ tkl_zg_endpoint_count_get()

UINT8_T tkl_zg_endpoint_count_get ( VOID_T  )

get the total number of endpoints

参数
[in]

return endpoint number

◆ tkl_zg_endpoint_register()

OPERATE_RET tkl_zg_endpoint_register ( CONST TKL_ENDPOINT_T ep_desc,
UINT8_T  sums 
)

endpoint used by dynamically registered uplayer, only be called once in the initialization process.

参数
[in]ep_descpoint to endpoint list
[in]sumsendpoint number
返回
0: success Other: fail

◆ tkl_zg_endpoint_to_device_version()

TKL_DEV_VER_E tkl_zg_endpoint_to_device_version ( UINT8_T  ep_id)

[TUYA_WEAK_ATTRIBUTE function],set device version according to ep_id

参数
[in]ep_id
返回
TKL_DEV_VER_T

◆ tkl_zg_match_cluster()

BOOL_T tkl_zg_match_cluster ( TKL_CLUSTER_TRIPLET_T triplet)

match cluster on endpoint

参数
[in]tripletpoint to cluster triplet
返回
TRUE/ FALSE