1#ifndef __TKL_BLUETOOTH_H__
2#define __TKL_BLUETOOTH_H__
4#include "tkl_bluetooth_def.h"
18OPERATE_RET tkl_ble_stack_init(UCHAR_T role);
28OPERATE_RET tkl_ble_stack_deinit(UCHAR_T role);
36OPERATE_RET tkl_ble_stack_gatt_link(USHORT_T *p_link);
44OPERATE_RET tkl_ble_gap_callback_register(CONST TKL_BLE_GAP_EVT_FUNC_CB gap_evt);
52OPERATE_RET tkl_ble_gatt_callback_register(CONST TKL_BLE_GATT_EVT_FUNC_CB gatt_evt);
89OPERATE_RET tkl_ble_gap_adv_stop(VOID);
125OPERATE_RET tkl_ble_gap_scan_stop(VOID);
144OPERATE_RET tkl_ble_gap_disconnect(USHORT_T conn_handle, UCHAR_T hci_reason);
163OPERATE_RET tkl_ble_gap_tx_power_set(UCHAR_T role, INT_T tx_power);
171OPERATE_RET tkl_ble_gap_rssi_get(USHORT_T conn_handle);
299OPERATE_RET tkl_ble_gatts_value_set(USHORT_T conn_handle, USHORT_T char_handle, UCHAR_T *p_data, USHORT_T length);
308OPERATE_RET tkl_ble_gatts_value_get(USHORT_T conn_handle, USHORT_T char_handle, UCHAR_T *p_data, USHORT_T length);
319OPERATE_RET tkl_ble_gatts_value_notify(USHORT_T conn_handle, USHORT_T char_handle, UCHAR_T *p_data, USHORT_T length);
330OPERATE_RET tkl_ble_gatts_value_indicate(USHORT_T conn_handle, USHORT_T char_handle, UCHAR_T *p_data, USHORT_T length);
339OPERATE_RET tkl_ble_gatts_exchange_mtu_reply(USHORT_T conn_handle, USHORT_T server_rx_mtu);
354OPERATE_RET tkl_ble_gattc_all_service_discovery(USHORT_T conn_handle);
366OPERATE_RET tkl_ble_gattc_all_char_discovery(USHORT_T conn_handle, USHORT_T start_handle, USHORT_T end_handle);
377OPERATE_RET tkl_ble_gattc_char_desc_discovery(USHORT_T conn_handle, USHORT_T start_handle, USHORT_T end_handle);
388OPERATE_RET tkl_ble_gattc_write_without_rsp(USHORT_T conn_handle, USHORT_T char_handle, UCHAR_T *p_data, USHORT_T length);
399OPERATE_RET tkl_ble_gattc_write(USHORT_T conn_handle, USHORT_T char_handle, UCHAR_T *p_data, USHORT_T length);
408OPERATE_RET tkl_ble_gattc_read(USHORT_T conn_handle, USHORT_T char_handle);
417OPERATE_RET tkl_ble_gattc_exchange_mtu_request(USHORT_T conn_handle, USHORT_T client_rx_mtu);
442OPERATE_RET tkl_ble_vendor_command_control(USHORT_T opcode, VOID_T *user_data, USHORT_T data_len);
Definition: tkl_bluetooth_def.h:77
GAP address parameters.
Definition: tkl_bluetooth_def.h:72
GAP advertising parameters.
Definition: tkl_bluetooth_def.h:89
Definition of LE connection request parameter.
Definition: tkl_bluetooth_def.h:124
GAP scanning parameters.
Definition: tkl_bluetooth_def.h:109
Definition: tkl_bluetooth_def.h:201