• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 _CS_ADP_SPP_H_
16 #define _CS_ADP_SPP_H_
17 /*chipsea_ohos proguard begin*/
18 #include "cs_proguard.h"
19 /*chipsea_ohos proguard end*/
20 #include"bt_types_def.h"
21 
22 typedef struct _CS_ADP_SPP_EVENT_{
23     BT_ADDR bdaddr;
24     U32 sppparam;
25     U32 sppparam1;
26 }CS_ADP_SPP_EVENT;
27 
28 
29 typedef struct
30 {
31     U8*     pTxBuf;
32     U16     txDataLength;
33 } adpspptxdone;
34 
35 typedef struct
36 {
37     U8*     pRxBuf;
38     U16     RxDataLength;
39 } adpspprxdone;
40 
41 
42 void cs_adp_spp_init(void);
43 void cs_adp_spp_connect(BT_ADDR * bdaddr);
44 void cs_adp_spp_send_data(uint8_t* ptrData, uint16_t length);
45 
46 #endif
47