• 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 /* create @20200301 by cs*/
16 
17 #ifndef WB_COEX_H
18 #define WB_COEX_H
19 
20 #include <stdint.h>
21 
22 struct coex_controller {
23     uint8_t wifi_on;
24     uint8_t bt_on;
25     uint8_t wifi_connected;
26     uint8_t bt_connected;
27     uint8_t wifi_dhcp;
28     uint8_t a2dp_on;//ftp,opp/hid
29     uint8_t sco_on;
30     uint8_t wifi_deepsleep;
31 };
32 
33 int wb_coex_wifi_on_get(void);
34 
35 void wb_coex_wifi_on_set(int on);
36 
37 int wb_coex_bt_on_get(void);
38 
39 void wb_coex_bt_on_set(int on);
40 
41 int wb_coex_wifi_connected_get(void);
42 
43 void wb_coex_wifi_connected_set(int connected);
44 
45 int wb_coex_bt_connected_get(void);
46 
47 void wb_coex_bt_connected_set(int connected);
48 
49 int wb_coex_bt_a2dp_on_get(void);
50 
51 void wb_coex_bt_a2dp_on_set(int on);
52 
53 int wb_coex_bt_sco_on_get(void);
54 
55 void wb_coex_bt_sco_on_set(int on);
56 
57 #endif
58