• 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 __APP_SPP_H__
16 #define __APP_SPP_H__
17 #if APP_SUPPORT_SPP == 1
18 
19 #include "cs_adp_api.h"
20 
21 
22 typedef void(*app_spp_tx_done_t)(void);
23 void app_spp_register_tx_done(app_spp_tx_done_t callback);
24 void app_spp_msg_handle(CS_EVENT *event);
25 void app_spp_connect(BT_ADDR * bdaddr);
26 void app_spp_send_data(uint8_t* ptrData, uint16_t length);
27 
28 #if MAX_THROUGHPUT_TEST == 1
29 void app_spp_connect_test(void);
30 #endif
31 
32 #endif
33 #endif
34