1 /* 2 * Copyright (c) 2021 Bestechnic (Shanghai) Co., Ltd. All rights reserved. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 #ifndef _INTERSYSHCI_PRIV_H__ 16 #define _INTERSYSHCI_PRIV_H__ 17 18 #if defined(__cplusplus) 19 extern "C" { 20 #endif 21 22 #define __rx_queue_support__ 1 23 /* 24 * use "g_intersys_trace_enable" to enable trace instead of _INTERSYS_DATA_TRACE_ 25 * beshci_set_intersys_trace_enable() will releae to custom 26 */ 27 //#define _INTERSYS_DATA_TRACE_ 28 #define _RX_DUMP_LEN_MAX (60) 29 #define _TX_DUMP_LEN_MAX (200) 30 #define BT_THREAD_BUFFER_RETRY_CNT (250) 31 #define ONE_CONTROLLER_LEN (80) 32 #define BT_LOG_HCI_DATA_MAX_LEN (256) 33 34 #define INTERSYSHCI_LOC __attribute__((section(".fast_text_sram"))) 35 36 void beshci_set_intersys_trace_enable(void); 37 bool beshci_get_intersys_trace_enable(void); 38 void beshci_set_supv_hci_buff_trace_enable(void); 39 bool beshci_get_supv_hci_buff_trace_enable(void); 40 void beshci_set_supv_hci_buff_trace_enable_high(void); 41 bool beshci_get_supv_hci_buff_trace_enable_high(void); 42 void beshci_set_a2dp_stream_trace_enable(bool enable); 43 bool beshci_get_a2dp_stream_trace_enable(void); 44 void beshci_set_acl_packet_trace_enable(bool enable); 45 bool beshci_get_acl_packet_trace_enable(void); 46 47 bool beshci_is_packet_blocked_to_traceout(uint8_t *packet_buff, uint32_t buff_len); 48 void beshci_enable_sleep_checker(bool isEnable); 49 void intersys_sleep_checker_ping(void); 50 extern osThreadId intersys_tx_thread_id; 51 52 #if defined(__cplusplus) 53 } 54 #endif 55 56 #endif /* _INTERSYSHCI_PRIV_H__ */ 57