1 /**
2  * Copyright (c) 2015, Realsil Semiconductor Corporation. All rights reserved.
3  */
4 
5 #ifndef _HCI_TP_H_
6 #define _HCI_TP_H_
7 
8 #include <stdint.h>
9 #include <stdbool.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 typedef bool (*P_HCI_TP_OPEN_CB)(bool status);
16 
17 typedef bool (*P_HCI_TP_TX_CB)(void);
18 
19 typedef bool (*P_HCI_TP_RX_IND)(void);
20 
21 void hci_tp_open(P_HCI_TP_OPEN_CB open_cb, P_HCI_TP_RX_IND rx_ind);
22 
23 void hci_tp_close(void);
24 
25 void hci_tp_del(void);
26 
27 void hci_tp_config(uint8_t *p_buf, uint16_t len);
28 
29 bool hci_tp_send(uint8_t *p_buf, uint16_t len, P_HCI_TP_TX_CB tx_cb);
30 
31 uint16_t hci_tp_recv(uint8_t *p_buf, uint16_t size);
32 
33 void hci_tp_set_rx_ind(void (*ready_to_rx)(void));
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
39 #endif /* _HCI_TP_H_ */
40