1 /* 2 * Copyright (c) 2021 Chipsea Technologies (Shenzhen) Corp., 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 CSADPTEST 16 #define CSADPTEST 17 /*chipsea_ohos proguard begin*/ 18 #include "cs_proguard.h" 19 /*chipsea_ohos proguard end*/ 20 #include "cs_adp_hfp.h" 21 typedef struct _CS_ADP_TEST_EVENT_{ 22 BT_ADDR bdaddr; 23 U32 testparam; 24 }CS_ADP_TEST_EVENT; 25 26 typedef struct 27 { 28 U8* txbuf; 29 U16 len; 30 } TestTxDone; 31 32 typedef struct 33 { 34 U8* rxbuf; 35 U16 len; 36 } TestRxDone; 37 38 void cs_adp_test_init(void); 39 void cs_adp_test_send_sco_data(CS_ADP_HFP_AUDIO_DATA *buffer); 40 void cs_adp_test_connect(BT_ADDR *Addr); 41 void cs_adp_test_disconnect(void); 42 void cs_adp_test_connect_sco(void); 43 Status_BTDef cs_adp_test_send_data(U8 *data, U16 len, U8 header); 44 45 #endif 46