nRF WiFi
Loading...
Searching...
No Matches
fmac_api.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
16#ifndef __FMAC_API_RT_H__
17#define __FMAC_API_RT_H__
18
19#include "osal_api.h"
20#include "host_rpu_umac_if.h"
21#include "host_rpu_data_if.h"
22#include "host_rpu_sys_if.h"
23
24#include "fmac_structs.h"
25#include "fmac_cmd.h"
26#include "fmac_event.h"
28
29
44
45
58 struct rpu_conf_params *params);
59
72 struct rpu_conf_params *params);
73
86 struct rpu_conf_params *params);
87
88
107 enum nrf_wifi_rf_test rf_test_type,
108 void *cap_data,
109 unsigned short int num_samples,
110 unsigned short int capture_timeout,
111 unsigned char lna_gain,
112 unsigned char bb_gain,
113 unsigned char *timeout_status);
114
115
130 unsigned char enable,
131 signed char tone_freq,
132 signed char tx_power);
133
134
135
148 unsigned char enable);
149
150
151
163
176
188
189
202 unsigned char value);
203
216
217
231 void *os_dev_ctx);
232
233
252#if defined(NRF_WIFI_LOW_POWER) || defined(__DOXYGEN__)
253 int sleep_type,
254#endif /* NRF_WIFI_LOW_POWER */
255 unsigned int phy_calib,
256 enum op_band op_band,
257 bool beamforming,
258 struct nrf_wifi_tx_pwr_ctrl_params *tx_pwr_ctrl,
260 struct nrf_wifi_board_params *board_params,
261 unsigned char *country_code);
262
263
271
298 enum rpu_op_mode op_mode,
299 struct rpu_rt_op_stats *stats);
300
304#endif /* __FMAC_API_RT_H__ */
enum nrf_wifi_status nrf_wifi_rt_fmac_rf_test_tx_tone(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, unsigned char enable, signed char tone_freq, signed char tx_power)
Start/Stop RF TX tone test in radio test mode.
enum nrf_wifi_status nrf_wifi_rt_fmac_rf_get_bat_volt(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx)
Logs the battery voltage in milliVolts.
enum nrf_wifi_status nrf_wifi_rt_fmac_radio_test_init(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, struct rpu_conf_params *params)
Initialize the RPU for radio tests.
enum nrf_wifi_status nrf_wifi_rt_fmac_rf_test_dpd(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, unsigned char enable)
Start/Stop RF DPD test in radio test mode.
enum nrf_wifi_status nrf_wifi_rt_fmac_dev_init(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, int sleep_type, unsigned int phy_calib, enum op_band op_band, bool beamforming, struct nrf_wifi_tx_pwr_ctrl_params *tx_pwr_ctrl, struct nrf_wifi_tx_pwr_ceil_params *tx_pwr_ceil_params, struct nrf_wifi_board_params *board_params, unsigned char *country_code)
Initialize a RPU instance.
enum nrf_wifi_status nrf_wifi_rt_fmac_rf_get_temp(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx)
Get temperature in Fahrenheit using temperature sensor.
enum nrf_wifi_status nrf_wifi_rt_fmac_rf_test_compute_xo(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx)
Get XO calibrated value.
enum nrf_wifi_status nrf_wifi_rt_fmac_stats_get(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, enum rpu_op_mode op_mode, struct rpu_rt_op_stats *stats)
Issue a request to get stats from the RPU.
void nrf_wifi_rt_fmac_dev_deinit(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx)
De-initialize a RPU instance.
enum nrf_wifi_status nrf_wifi_rt_fmac_rf_params_get(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, struct nrf_wifi_phy_rf_params *rf_params)
Get the RF parameters to be programmed to the RPU.
enum nrf_wifi_status nrf_wifi_rt_fmac_prog_rx(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, struct rpu_conf_params *params)
Start RX tests in radio test mode.
enum nrf_wifi_status nrf_wifi_rt_fmac_rf_get_rf_rssi(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx)
Get RF RSSI status.
enum nrf_wifi_status nrf_wifi_rt_fmac_set_xo_val(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, unsigned char value)
Set XO adjustment value.
struct nrf_wifi_fmac_dev_ctx * nrf_wifi_rt_fmac_dev_add(struct nrf_wifi_fmac_priv *fpriv, void *os_dev_ctx)
Adds a RPU instance.
struct nrf_wifi_fmac_priv * nrf_wifi_rt_fmac_init(void)
Initialize the UMAC IF layer.
enum nrf_wifi_status nrf_wifi_rt_fmac_prog_tx(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, struct rpu_conf_params *params)
Start TX tests in radio test mode.
enum nrf_wifi_status nrf_wifi_rt_fmac_rf_test_rx_cap(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, enum nrf_wifi_rf_test rf_test_type, void *cap_data, unsigned short int num_samples, unsigned short int capture_timeout, unsigned char lna_gain, unsigned char bb_gain, unsigned char *timeout_status)
Start RF test capture in radio test mode.
rpu_op_mode
This enum provides a list of different operating modes.
Definition host_rpu_sys_if.h:65
op_band
This enum defines different types of operating bands.
Definition host_rpu_sys_if.h:846
unsigned int tx_power
Definition host_rpu_sys_if.h:41
unsigned char rf_params[200]
Definition host_rpu_sys_if.h:3
unsigned char enable
Definition host_rpu_sys_if.h:9
unsigned int phy_calib
Definition host_rpu_sys_if.h:10
signed int op_mode
Definition host_rpu_sys_if.h:29
unsigned char country_code[2]
Definition host_rpu_sys_if.h:17
unsigned char bb_gain
Definition host_rpu_sys_if.h:77
unsigned short int capture_timeout
Definition host_rpu_sys_if.h:81
unsigned char lna_gain
Definition host_rpu_sys_if.h:75
nrf_wifi_status
The status of an operation performed by the RPU driver.
Definition osal_structs.h:39
Header containing event specific declarations in the Radio test mode for the FMAC IF Layer of the Wi-...
nrf_wifi_rf_test
Definition phy_rf_params.h:27
This structure defines board dependent parameters like PCB loss.
Definition host_rpu_sys_if.h:831
struct nrf_wifi_tx_pwr_ceil_params * tx_pwr_ceil_params
Definition fmac_structs_common.h:187
void * os_dev_ctx
Definition fmac_structs_common.h:157
struct nrf_wifi_fmac_priv * fpriv
Definition fmac_structs_common.h:155
Structure to hold common fmac dev context parameter data.
Definition fmac_structs_common.h:153
Structure to hold common fmac priv parameter data.
Definition fmac_structs_common.h:140
Definition phy_rf_params_common.h:320
This structure defines the parameters used to control the max transmit (TX) power in both frequency b...
Definition phy_rf_params_common.h:425
This structure defines the parameters used to control the transmit (TX) power.
Definition host_rpu_sys_if.h:764
This structure describes different Physical Layer (PHY) configuration parameters used in RF test and ...
Definition host_rpu_sys_if.h:1044
Structure to hold per device host and firmware statistics.
Definition fmac_structs.h:54