30 lines
784 B
C
30 lines
784 B
C
#ifndef _BLE_PORT_H_
|
|
#define _BLE_PORT_H_
|
|
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include "bts_le_gap.h"
|
|
#include "bts_br_gap.h"
|
|
#include "bts_gatt_client.h"
|
|
#include "bts_gatt_server.h"
|
|
#include "bts_spp.h"
|
|
|
|
/* GAP SERVICES */
|
|
void register_gap_service_callback(void);
|
|
void svr_ble_adv_start(void);
|
|
/*HFP HF SERVERS */
|
|
void register_hfp_hf_servers_callback(void);
|
|
/* SPP SERVERS */
|
|
int ble_spp_servers_create(const char * name, uint8_t name_len);
|
|
void ble_spp_servers_init(void);
|
|
errcode_t ble_spp_send_data(uint8_t *data, uint16_t len);
|
|
|
|
/*Other functions*/
|
|
void tjd_set_lastconned_addr(const bd_addr_t *bd_addr);
|
|
uint32_t tjd_ble_get_mtu_size(void);
|
|
bool tjd_svr_gatt_get_adv_start_state(void);
|
|
void tjd_svr_gatt_set_adv_start_state(bool state);
|
|
|
|
#endif
|