• 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 _CSBLE_H_
16 #define _CSBLE_H_
17 /*chipsea_ohos proguard begin*/
18 #include "cs_proguard.h"
19 /*chipsea_ohos proguard end*/
20 
21 typedef void (*BleDeInitCallback)(uint8_t flag, uint8_t status);
22 extern BleDeInitCallback ble_callback;
23 
24 void cs_ble_init(void);
25 void cs_ble_deinit(void);
26 void cs_ble_reset(void);
27 void cs_ble_schedule(void);
28 bool cs_ble_tx_rx_allow_sleep(void);
29 bool cs_ble_stack_allow_sleep(void);
30 #endif
31