1 /*
2  * Copyright (C) 2015-2020 Alibaba Group Holding Limited
3  */
4 
5 #ifndef _INTERSYSHCI_PRIV_H__
6 #define _INTERSYSHCI_PRIV_H__
7 
8 #if defined(__cplusplus)
9 extern "C" {
10 #endif
11 
12 #define __rx_queue_support__ 1
13 /*
14 * use "g_intersys_trace_enable" to enable trace instead of _INTERSYS_DATA_TRACE_
15 * beshci_set_intersys_trace_enable() will releae to custom
16 */
17 //#define _INTERSYS_DATA_TRACE_
18 #define _RX_DUMP_LEN_MAX (60)
19 #define _TX_DUMP_LEN_MAX (200)
20 #define BT_THREAD_BUFFER_RETRY_CNT (250)
21 #define ONE_CONTROLLER_LEN         (80)
22 #define BT_LOG_HCI_DATA_MAX_LEN    (256)
23 
24 #define INTERSYSHCI_LOC __attribute__((section(".fast_text_sram")))
25 
26 void beshci_set_intersys_trace_enable(void);
27 bool beshci_get_intersys_trace_enable(void);
28 void beshci_set_supv_hci_buff_trace_enable(void);
29 bool beshci_get_supv_hci_buff_trace_enable(void);
30 void beshci_set_a2dp_stream_trace_enable(bool enable);
31 bool beshci_get_a2dp_stream_trace_enable(void);
32 bool beshci_is_packet_blocked_to_traceout(uint8_t *packet_buff, uint32_t buff_len);
33 void beshci_enable_sleep_checker(bool isEnable);
34 
35 void intersys_sleep_checker_ping(void);
36 
37 extern uint32_t BESHCI_tx_flag;
38 extern osThreadId intersys_tx_thread_id;
39 extern intersys_hci_cmd_filter_handler_func intersys_hci_cmd_filter_callback;
40 void trans_adapt_init(void);
41 
42 #if defined(__cplusplus)
43 }
44 #endif
45 
46 #endif /* _INTERSYSHCI_PRIV_H__ */
47