1 /****************************************************************************** 2 * Copyright (c) 2022 Telink Semiconductor (Shanghai) Co., Ltd. ("TELINK") 3 * All rights reserved. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 *****************************************************************************/ 18 #ifndef BQB_LL_H_ 19 #define BQB_LL_H_ 20 21 typedef struct { 22 u16 testAclConnEvent_cnt; 23 u16 testAclConnEvent_numMax; 24 25 u16 testCisConnEvent_cnt; 26 u16 testCisConnEvent_numMax; 27 28 bool testAclConnPktMaxEnFlg; 29 bool testCisConnPktMaxEnFlg; 30 } st_bqb_ll_t; 31 32 extern st_bqb_ll_t bltBQB; 33 34 extern u64 bqbIrqEvt_mask; 35 36 void tp_set_acl_conn_event_max(u16 m); 37 void tp_set_cis_conn_event_max(u16 m); 38 39 void test_case_function_register(char *testcase, callback_testcase_t func); 40 int exe_lower_tester_command(u8 *cmd); 41 42 void blc_bqb_ll_main_loop(void); 43 44 void tp_set_adv_pkt_max(u16 m); 45 void tp_enable_advData_inrease(u8 en, s8 step); 46 47 void tp_AdvAddress_companyId_exchange(void); 48 void tp_AdvAddress_companyAssignId_exchange(void); 49 void tp_AdvAddress_companyId_companyAssignId_mismatch(void); 50 51 void tp_enable_adv_scanRsp_Bad_CRC(u8 advBadCrc, u8 scanRspBadCrc); 52 53 void tp_set_conn_pkt_max(u32 m); 54 55 void tp_flip_access_address(int n); 56 void tp_set_test_data(u8 type, u8 len, u8 d, int pkts); 57 void tp_set_manual_timeout(u32 timeout); 58 void tp_disable_more_data(u8 disable); 59 void tp_enbale_print_rcvd_data_connect(u8 en); 60 void tp_enbale_rcvd_l2cap_data_callback(u8 en); 61 void tp_disable_data_len_exchange(u8 en); 62 void tp_set_brx_missing_time(u32 time_ms); 63 void tp_set_brx_missing_delay_intervals(int interval_num); 64 void tp_enable_conn_pkt_Bad_CRC(u8 connBadCrc); 65 66 void tp_set_adv_pkt_max(u16 m); 67 void tp_disable_more_data(u8 disable); 68 void tp_set_conn_pkt_max(u32 m); 69 void tp_phy_req_col(u8 en); 70 void tp_phy_req_skip(u8 en); 71 void tp_phy_req_nochange(u8 en); 72 void tp_phy_no_common(u8 en); 73 void tp_set_test_data(u8 type, u8 len, u8 d, int pkts); 74 void tp_enbale_rcvd_l2cap_data_callback(u8 en); 75 76 void tp_set_test_pkt(u8 num); 77 void tp_SetPhyUpdate_Same(u8 en); 78 void tp_set_PhyUpdate_InsInPast(u8 en); 79 void tp_set_PhyReq_TO(u8 en); 80 void tp_set_DiffProc_ChnMap(u8 en); 81 void tp_set_DiffProc_ConUp(u8 en); 82 void tp_setRecv_no(u8 num); 83 void tp_set_PhyInd_TO(u8 en); 84 void tp_set_NoPhyReqChan(u8 en); 85 void tp_set_NoPhyRspChan(u8 en); 86 87 #endif /* LL_BQB_H_ */ 88