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 #include "wb_coex.h" 18 19 static struct coex_controller g_coex_controller; 20 wb_coex_wifi_on_get(void)21int wb_coex_wifi_on_get(void) 22 { 23 return g_coex_controller.wifi_on; 24 } 25 wb_coex_wifi_on_set(int on)26void wb_coex_wifi_on_set(int on) 27 { 28 g_coex_controller.wifi_on = (uint8_t)on; 29 } 30 wb_coex_bt_on_get(void)31int wb_coex_bt_on_get(void) 32 { 33 return g_coex_controller.bt_on; 34 } 35 wb_coex_bt_on_set(int on)36void wb_coex_bt_on_set(int on) 37 { 38 g_coex_controller.bt_on = (uint8_t)on; 39 } 40 wb_coex_wifi_connected_get(void)41int wb_coex_wifi_connected_get(void) 42 { 43 return g_coex_controller.wifi_connected; 44 } 45 wb_coex_wifi_connected_set(int connected)46void wb_coex_wifi_connected_set(int connected) 47 { 48 g_coex_controller.wifi_connected = (uint8_t)connected; 49 } 50 wb_coex_bt_connected_get(void)51int wb_coex_bt_connected_get(void) 52 { 53 return g_coex_controller.bt_connected; 54 } 55 wb_coex_bt_connected_set(int connected)56void wb_coex_bt_connected_set(int connected) 57 { 58 g_coex_controller.bt_connected = (uint8_t)connected; 59 } 60 wb_coex_bt_a2dp_on_get(void)61int wb_coex_bt_a2dp_on_get(void) 62 { 63 return g_coex_controller.a2dp_on; 64 } 65 wb_coex_bt_a2dp_on_set(int on)66void wb_coex_bt_a2dp_on_set(int on) 67 { 68 g_coex_controller.a2dp_on = (uint8_t)on; 69 } 70 wb_coex_bt_sco_on_get(void)71int wb_coex_bt_sco_on_get(void) 72 { 73 return g_coex_controller.sco_on; 74 } 75 wb_coex_bt_sco_on_set(int on)76void wb_coex_bt_sco_on_set(int on) 77 { 78 g_coex_controller.sco_on = (uint8_t)on; 79 } 80