11#ifndef __TAL_BLUETOOTH_MESH_DEVICE_H__
12#define __TAL_BLUETOOTH_MESH_DEVICE_H__
42OPERATE_RET
tal_mesh_data_send(USHORT_T src_addr, USHORT_T dst_addr, UINT_T opcode, UCHAR_T *data, USHORT_T data_len);
141VOID
tal_firmware_infor_set(UCHAR_T is_key, UCHAR_T *product_id, UCHAR_T *product_key, UINT_T version, UINT_T mesh_category, UCHAR_T need_publish_addr);
MESH_NETWORK_STATE_SET_T
Definition: tal_bluetooth_mesh_def.h:414
OPERATE_RET(* tal_mesh_msg_recv_cb)(TAL_MESH_ACCESS_MSG_T *msg_raw, TAL_MESH_NET_PARAM_T *net_param)
Definition: tal_bluetooth_mesh_def.h:421
MESH_PROVISION_TYPE_T
Definition: tal_bluetooth_mesh_def.h:407
TUYA_WEAK_ATTRIBUTE VOID tal_mesh_state_callback(TAL_MESH_NET_STATE_T state)
The callback to recieve the network state.
USHORT_T * tal_group_addr_sub_list_get(USHORT_T ele_idx, USHORT_T model_id)
Function to get the subscribe addr list of a model of the element.
OPERATE_RET tal_mesh_msg_recv_cb_init(tal_mesh_msg_recv_cb access_data_cb)
Register the mesh access app data callback .
USHORT_T tal_primary_ele_addr_get(VOID)
Get the mesh node primary element address.
VOID tal_mesh_uuid_set(UCHAR_T *uuid)
Init the mesh node uuid.
OPERATE_RET tal_model_register(USHORT_T element_index, UINT_T model_id)
Function to register a model into the element.
OPERATE_RET tal_mesh_ble_recv_cb_init(TAL_BLE_EVT_FUNC_CB ble_event)
Register the ble gap & gatt data callback .
OPERATE_RET tal_element_register(USHORT_T element_index)
Function to register a elemennt.
OPERATE_RET tal_group_addr_sub_set(UINT_T opcode, USHORT_T ele_index, USHORT_T group_addr)
Function to subscribe a group address for a model of the element.
VOID tal_mesh_node_provision_enable(MESH_PROVISION_TYPE_T enable)
Function to enable/disable the provision. If node is unprovision state,using disable param will close...
OPERATE_RET tal_mesh_data_send(USHORT_T src_addr, USHORT_T dst_addr, UINT_T opcode, UCHAR_T *data, USHORT_T data_len)
Function to send mesh data to unicast/group addr
VOID tal_firmware_infor_set(UCHAR_T is_key, UCHAR_T *product_id, UCHAR_T *product_key, UINT_T version, UINT_T mesh_category, UCHAR_T need_publish_addr)
Set the firmware information which mesh provision use.
OPERATE_RET tal_mesh_network_state_set(MESH_NETWORK_STATE_SET_T net_state)
Set the mesh node network state.
UCHAR_T tal_get_if_prov_success(VOID)
Get the mesh node provision state.
VOID tal_primary_ele_addr_set(USHORT_T addr, int flash_save_en)
Set the mesh node primary element address.
VOID tal_mesh_fast_prov_enable(UCHAR_T enable)
Enable/Disable mesh fast provision.