11#ifndef __TKL_BLUETOOTH_MESH_DEF_H__
12#define __TKL_BLUETOOTH_MESH_DEF_H__
14#include "tuya_cloud_types.h"
15#include "tuya_error_code.h"
16#include "tkl_bluetooth.h"
19#define _PACKED_ __attribute__ ((packed))
23#define _WEAK_ __attribute__((weak))
57 UCHAR_T net_app_idx[3];
66 TKL_MESH_MSG_RECV_CB model_receive;
98 UCHAR_T peer_uuid[16];
101 UCHAR_T node_devkey[16];
166 TKL_MESH_PROVISION_SUCCESS = 0,
167 TKL_MESH_PROVISION_START,
168 TKL_MESH_PROVISION_TIMEOUT,
170 TKL_MESH_RESET_IN_RAM,
171 TKL_MESH_REVERT_IN_MESH,
172 TKL_MESH_GROUP_SUB_ADD,
173 TKL_MESH_GROUP_SUB_DEL,
180typedef VOID(*TKL_MESH_NET_STATE_CB_T)(TKL_MESH_STATE_T state);
mesh access msg parameters.
Definition: tkl_bluetooth_mesh_def.h:28
USHORT_T data_len
Definition: tkl_bluetooth_mesh_def.h:31
UINT_T opcode
Definition: tkl_bluetooth_mesh_def.h:29
UCHAR_T * data
Definition: tkl_bluetooth_mesh_def.h:30
Definition: tkl_bluetooth_mesh_def.h:135
UCHAR_T * p_data
Definition: tkl_bluetooth_mesh_def.h:140
USHORT_T data_len
Definition: tkl_bluetooth_mesh_def.h:139
USHORT_T node_addr
Definition: tkl_bluetooth_mesh_def.h:137
UINT_T opcode
Definition: tkl_bluetooth_mesh_def.h:136
Definition: tkl_bluetooth_mesh_def.h:126
UCHAR_T interval_steps
Definition: tkl_bluetooth_mesh_def.h:129
USHORT_T data_len
Definition: tkl_bluetooth_mesh_def.h:131
UCHAR_T * p_data
Definition: tkl_bluetooth_mesh_def.h:132
UINT_T opcode
Definition: tkl_bluetooth_mesh_def.h:127
UCHAR_T count
Definition: tkl_bluetooth_mesh_def.h:128
Definition: tkl_bluetooth_mesh_def.h:96
USHORT_T node_addr
Definition: tkl_bluetooth_mesh_def.h:100
Definition: tkl_bluetooth_mesh_def.h:148
TKL_MESH_EVT_TYPE_E type
Definition: tkl_bluetooth_mesh_def.h:149
TKL_PRIVATE_BEACON_T beacon_report
Definition: tkl_bluetooth_mesh_def.h:154
TKL_MESH_DATA_RECEIVE_T model_report
Definition: tkl_bluetooth_mesh_def.h:158
TKL_MESH_UNPROV_BEACON_T unprov_report
Definition: tkl_bluetooth_mesh_def.h:153
TKL_MESH_DATA_RECEIVE_T config_report
Definition: tkl_bluetooth_mesh_def.h:157
INT_T state
Definition: tkl_bluetooth_mesh_def.h:150
TKL_MESH_PROV_T prov
Definition: tkl_bluetooth_mesh_def.h:156
Definition: tkl_bluetooth_mesh_def.h:104
USHORT_T local_addr
Definition: tkl_bluetooth_mesh_def.h:105
model handle.
Definition: tkl_bluetooth_mesh_def.h:64
UINT_T model_id
Definition: tkl_bluetooth_mesh_def.h:65
USHORT_T model_handle
Definition: tkl_bluetooth_mesh_def.h:67
network parameters.
Definition: tkl_bluetooth_mesh_def.h:35
UCHAR_T model_index
Definition: tkl_bluetooth_mesh_def.h:38
USHORT_T dst_addr
Definition: tkl_bluetooth_mesh_def.h:37
UCHAR_T ttl
Definition: tkl_bluetooth_mesh_def.h:40
USHORT_T net_key_index
Definition: tkl_bluetooth_mesh_def.h:42
USHORT_T app_key_index
Definition: tkl_bluetooth_mesh_def.h:41
CHAR_T rssi
Definition: tkl_bluetooth_mesh_def.h:43
USHORT_T src_addr
Definition: tkl_bluetooth_mesh_def.h:36
UINT_T seq
Definition: tkl_bluetooth_mesh_def.h:39
Definition: tkl_bluetooth_mesh_def.h:143
USHORT_T node_addr
Definition: tkl_bluetooth_mesh_def.h:144
Definition: tkl_bluetooth_mesh_def.h:111
UINT_T uri_hash
Definition: tkl_bluetooth_mesh_def.h:115
CHAR_T rssi
Definition: tkl_bluetooth_mesh_def.h:116
USHORT_T oob
Definition: tkl_bluetooth_mesh_def.h:114
Definition: tkl_bluetooth_mesh_def.h:119
UCHAR_T length
Definition: tkl_bluetooth_mesh_def.h:121
CHAR_T rssi
Definition: tkl_bluetooth_mesh_def.h:123
UCHAR_T * p_data
Definition: tkl_bluetooth_mesh_def.h:122
Definition: tal_fast_provision_inner.h:45
UCHAR_T flags
Definition: tkl_bluetooth_mesh_def.h:50
USHORT_T key_index
Definition: tkl_bluetooth_mesh_def.h:49
USHORT_T unicast_address
Definition: tkl_bluetooth_mesh_def.h:52
MESH_FEATURE_T
mesh node feature.
Definition: tkl_bluetooth_mesh_def.h:71
@ MESH_FEATURE_FRIEND
Definition: tkl_bluetooth_mesh_def.h:74
@ MESH_FEATURE_LPN
Definition: tkl_bluetooth_mesh_def.h:75
@ MESH_FEATURE_RELAY
Definition: tkl_bluetooth_mesh_def.h:72
@ MESH_FEATURE_PROXY
Definition: tkl_bluetooth_mesh_def.h:73
TKL_MESH_EVT_TYPE_E
Definition: tkl_bluetooth_mesh_def.h:78
@ TKL_MESH_EVT_PRIVATE_BEACON_REPORT
Definition: tkl_bluetooth_mesh_def.h:87
@ TKL_MESH_EVT_MODEL_DATA_RX
Definition: tkl_bluetooth_mesh_def.h:93
@ TKL_MESH_EVT_STACK_RESET
Definition: tkl_bluetooth_mesh_def.h:83
@ TKL_MESH_EVT_STACK_DEINIT
Definition: tkl_bluetooth_mesh_def.h:81
@ TKL_MESH_EVT_UNPROV_BEACON_REPORT
Definition: tkl_bluetooth_mesh_def.h:85
@ TKL_MESH_EVT_CONFIG_DATA_RX
Definition: tkl_bluetooth_mesh_def.h:91
@ TKL_MESH_EVT_STACK_INIT
Definition: tkl_bluetooth_mesh_def.h:79
@ TKL_MESH_EVT_INVITE_EVT
Definition: tkl_bluetooth_mesh_def.h:89