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
15#ifndef __FMAC_API_H__
16#define __FMAC_API_H__
17
18#include "host_rpu_sys_if.h"
21#include "util.h"
22
23
37
51 void *os_dev_ctx);
52
53
72 struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx,
73#if defined(NRF_WIFI_LOW_POWER) || defined(__DOXYGEN__)
74 int sleep_type,
75#endif /* NRF_WIFI_LOW_POWER */
76 unsigned int phy_calib,
77 enum op_band op_band,
78 bool beamforming,
79 struct nrf_wifi_tx_pwr_ctrl_params *tx_pwr_ctrl,
81 struct nrf_wifi_board_params *board_params,
82 unsigned char *country_code);
83
96 struct nrf_wifi_offload_ctrl_params *off_ctrl_params,
97 struct nrf_wifi_offload_tx_ctrl *off_tx_params);
98
109
120
133 struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx,
135
149 enum rpu_op_mode op_mode,
150 struct rpu_off_raw_tx_op_stats *stats);
151
155#endif /* __FMAC_API_H__ */
enum nrf_wifi_status nrf_wifi_off_raw_tx_fmac_stats_get(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, enum rpu_op_mode op_mode, struct rpu_off_raw_tx_op_stats *stats)
Issue a request to get stats from the RPU.
enum nrf_wifi_status nrf_wifi_off_raw_tx_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_off_raw_tx_fmac_conf(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, struct nrf_wifi_offload_ctrl_params *off_ctrl_params, struct nrf_wifi_offload_tx_ctrl *off_tx_params)
Configure the offloaded raw TX parameters.
struct nrf_wifi_fmac_priv * nrf_wifi_off_raw_tx_fmac_init(void)
Initialize the UMAC IF layer.
struct nrf_wifi_fmac_dev_ctx * nrf_wifi_off_raw_tx_fmac_dev_add(struct nrf_wifi_fmac_priv *fpriv, void *os_dev_ctx)
Adds a RPU instance.
enum nrf_wifi_status nrf_wifi_off_raw_tx_fmac_start(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx)
Start the offloaded raw TX.
enum nrf_wifi_status nrf_wifi_off_raw_tx_fmac_stop(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx)
Stop the offloaded raw TX.
enum nrf_wifi_status nrf_wifi_off_raw_tx_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.
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 char rf_params[200]
Definition host_rpu_sys_if.h:3
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
nrf_wifi_status
The status of an operation performed by the RPU driver.
Definition osal_structs.h:39
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
This structure defines the offloaded raw tx control information.
Definition host_rpu_sys_if.h:1353
This structure defines the offloading raw tx parameters.
Definition host_rpu_sys_if.h:1370
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
Structure to hold per device host and firmware statistics.
Definition fmac_structs.h:41