11#ifndef __TKL_BLUETOOTH_MESH_DEVICE_H__
12#define __TKL_BLUETOOTH_MESH_DEVICE_H__
model handle.
Definition: tkl_bluetooth_mesh_def.h:64
This is tuya tal_adc file
MESH_FEATURE_T
mesh node feature.
Definition: tkl_bluetooth_mesh_def.h:71
OPERATE_RET tkl_mesh_node_default_ttl_set(UCHAR_T ttl)
Set the node defalut ttl.
USHORT_T tkl_mesh_primary_ele_addr_get(VOID)
Get the mesh node primary element address.
OPERATE_RET tkl_mesh_provision_data_set(UCHAR_T prov_en, TKL_NET_PROV_DATA_T *prov_data, TKL_APP_KEY_DATA_T *app_key)
Update the mesh network provision data and the app key data. Use this function node can provision its...
OPERATE_RET tkl_mesh_access_rsp_data_send(USHORT_T src_addr, USHORT_T dst_addr, UINT_T opcode, UCHAR_T *data, USHORT_T data_len)
Send mesh data to unicast/group addr.
VOID tkl_mesh_uuid_set(UCHAR_T *uuid)
Init the mesh node uuid.
VOID tkl_mesh_network_relay_retransmit_get(UCHAR_T *cnt, UCHAR_T *step)
Get the network layer retransmit parameters.
OPERATE_RET tkl_mesh_group_addr_sub_set(USHORT_T opcode, USHORT_T ele_addr, USHORT_T sub_addr, UINT_T model_id)
Function to subscribe a group address for a model of the element.
OPERATE_RET tkl_mesh_access_normal_data_send(USHORT_T src_addr, USHORT_T dst_addr, UINT_T opcode, UCHAR_T *data, USHORT_T data_len, USHORT_T appkey_idx)
Send mesh data to unicast/group addr.
VOID tkl_mesh_seq_cache_reset(USHORT_T addr)
Reset the seq cache.
VOID tkl_mesh_network_reset_in_ram(VOID)
Reset the mesh node into unprovision state. The unprovision state only keep in ram,...
VOID tkl_mesh_network_transmit_get(UCHAR_T *cnt, UCHAR_T *step)
Get the network layer retransmit parameters.
OPERATE_RET tkl_mesh_net_state_cb_register(TKL_MESH_NET_STATE_CB_T mesh_net_state_cb)
Function to register a mesh net state callback into tkl.
UCHAR_T tkl_mesh_get_if_prov_success(VOID)
Get the mesh node provision state.
VOID tkl_mesh_node_unprovision_beacon_enable(UCHAR_T enable)
Close the mesh node mesh beacon. Only use in unprovision state.
VOID tkl_mesh_network_recover(VOID)
Recover the mesh node into provision state. Node recover into provision state with the network parame...
VOID tkl_mesh_device_key_update(UCHAR_T *key)
Set the mesh node device key.
VOID tkl_mesh_network_transmit_set(UCHAR_T cnt, UCHAR_T step)
Set the network layer retransmit parameters.
VOID tkl_mesh_primary_ele_addr_set(USHORT_T addr, int flash_save_en)
Set the mesh node primary element address.
VOID tkl_mesh_mode_identity_set(VOID)
Set the node PB-GATT ADV use identity type.
OPERATE_RET tkl_mesh_model_register(UCHAR_T element_index, TKL_MESH_MODEL_HADLE_T *pmodel_info)
Function to register a model into the element.
VOID tkl_mesh_composition_data_set(USHORT_T company_id, USHORT_T product_id, USHORT_T version_id)
Init the mesh node composition data(head).
VOID tkl_mesh_node_param_save_all(VOID)
Save all mesh param into flash.
UCHAR_T tkl_mesh_node_features_get(MESH_FEATURE_T featrue)
Get the node feature.
VOID tkl_mesh_node_pbgatt_adv_enable(UCHAR_T enable)
Close the mesh node gatt adv. Only use in unprovision state.
VOID tkl_mesh_network_relay_retransmit_set(UCHAR_T cnt, UCHAR_T step)
Set the network layer relay retransmit parameters.
USHORT_T * tkl_mesh_group_addr_sub_list_get(USHORT_T ele_idx, UINT_T model_id)
Function to get the subscribe addr list of a model of the element.
UCHAR_T tkl_mesh_node_default_ttl_get(void)
Get the node defalut ttl.
OPERATE_RET tkl_mesh_model_appkey_bind_all(UINT16_T appkey_idx)
Bind all the model use the appkey index input.
OPERATE_RET tkl_mesh_element_register(USHORT_T element_index)
Function to register a elemennt.
VOID tkl_mesh_network_reset(VOID)
Reset the mesh node into unprovision state. The unprovision state should store in flash,...
VOID tkl_mesh_device_key_get(UCHAR_T *key)
get the mesh node device key.
OPERATE_RET tkl_mesh_node_features_set(MESH_FEATURE_T featrue, UCHAR_T enable)
Set the node feature.