• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2022 Beken Corporation
2 //
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 #pragma once
16 
17 #include <stdint.h>
18 #include <stdbool.h>
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 int bk_wifi_sta_set_power(int power);
25 int bk_wifi_ap_set_power(int power);
26 uint32_t bk_wifi_get_mac_time(void);
27 int bk_wifi_get_beacon_rssi(void);
28 void bk_wifi_dump_ps_regs(void);
29 uint32_t bk_wifi_get_la_base_address(void);
30 uint32_t bk_wifi_get_mac_base_address(void);
31 void bk_wifi_set_mpb_frameperburst(uint32_t value);
32 uint32_t bk_wifi_get_mpb_frameperburst(void);
33 uint32_t bk_wifi_get_mpb_ctrl(void);
34 void bk_wifi_set_mpb_ctrl(uint32_t value);
35 uint32_t bk_wifi_get_mpb_txv(int reg_idx);
36 void bk_wifi_set_mpb_txv(int reg_idx, uint32_t value);
37 void bk_wifi_set_mpb_payload(uint32_t value);
38 uint32_t bk_wifi_get_mpb_payload(void);
39 void bk_wifi_set_mpb_clken(uint32_t value);
40 void bk_wifi_set_mpb_interframe_delay(uint32_t value);
41 uint32_t bk_wifi_get_monotonic_counter_2_lo(void);
42 void bk_wifi_debug_port_sel_pack(uint8_t debugportsel2, uint8_t debugportsel1);
43 void bk_wifi_phy_wakeup_rf_reinit(void);
44 void bk_wifi_phy_wakeup_wifi_reinit(void);
45 void bk_wifi_get_mac_trx_status(bool reset_status);
46 uint8_t bk_wifi_get_bandw(void);
47 void bk_wifi_get_rx_statistic(uint32_t *RxSuccessCount);
48 void bk_wifi_get_tx_statistic(uint32_t *TxSuccessCount, uint32_t *TxRetryCount, uint32_t *TxFailCount);
49 #ifdef __cplusplus
50 }
51 #endif
52