Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
|
File containing API's for the Offloaded raw TX feature. More...
Data Structures | |
struct | nrf_wifi_off_raw_tx_stats |
This structure defines the Offloaded raw tx debug statistics. More... | |
struct | nrf_wifi_off_raw_tx_conf |
| |
Macros | |
#define | NRF_WIFI_OFF_RAW_TX_FRAME_SIZE_MIN 26 |
#define | NRF_WIFI_OFF_RAW_TX_FRAME_SIZE_MAX 600 |
#define | NRF_WIFI_COUNTRY_CODE_LEN 2 |
Enumerations | |
enum | nrf_wifi_off_raw_tx_rate { RATE_1M , RATE_2M , RATE_5_5M , RATE_11M , RATE_6M , RATE_9M , RATE_12M , RATE_18M , RATE_24M , RATE_36M , RATE_48M , RATE_54M , RATE_MCS0 , RATE_MCS1 , RATE_MCS2 , RATE_MCS3 , RATE_MCS4 , RATE_MCS5 , RATE_MCS6 , RATE_MCS7 , RATE_MAX } |
| |
enum | nrf_wifi_off_raw_tx_he_gi { HE_GI_800NS , HE_GI_1600NS , HE_GI_3200NS , HE_GI_MAX } |
| |
enum | nrf_wifi_off_raw_tx_he_ltf { HE_LTF_3200NS , HE_LTF_6400NS , HE_LTF_12800NS , HE_LTF_MAX } |
| |
enum | nrf_wifi_off_raw_tx_tput_mode { TPUT_MODE_LEGACY , TPUT_MODE_HT , TPUT_MODE_VHT , TPUT_MODE_HE_SU , TPUT_MODE_HE_ER_SU , TPUT_MODE_HE_TB , TPUT_MODE_MAX } |
| |
Functions | |
int | nrf70_off_raw_tx_init (uint8_t *mac_addr, unsigned char *country_code) |
Initialize the nRF70 for operating in the offloaded raw TX mode. | |
void | nrf70_off_raw_tx_deinit (void) |
Initialize the nRF70 for operating in the offloaded raw TX mode. | |
int | nrf70_off_raw_tx_conf_update (struct nrf_wifi_off_raw_tx_conf *conf) |
Update the configured offloaded raw TX parameters. | |
int | nrf70_off_raw_tx_start (struct nrf_wifi_off_raw_tx_conf *conf) |
Start the offloaded raw TX. | |
int | nrf70_off_raw_tx_stop (void) |
Stop the offloaded raw TX. | |
int | nrf70_off_raw_tx_mac_addr_get (uint8_t *mac_addr) |
Get the MAC address of the nRF70 device. | |
int | nrf70_off_raw_tx_stats (struct nrf_wifi_off_raw_tx_stats *off_raw_tx_stats) |
Get statistics of the offloaded raw TX. | |
File containing API's for the Offloaded raw TX feature.
#define NRF_WIFI_COUNTRY_CODE_LEN 2 |
#define NRF_WIFI_OFF_RAW_TX_FRAME_SIZE_MAX 600 |
#define NRF_WIFI_OFF_RAW_TX_FRAME_SIZE_MIN 26 |
#include <zephyr/drivers/wifi/nrfwifi/off_raw_tx/off_raw_tx_api.h>
Enumerator | |
---|---|
HE_GI_800NS | 800 ns |
HE_GI_1600NS | 1600 ns |
HE_GI_3200NS | 3200 ns |
HE_GI_MAX | Invalid value. |
#include <zephyr/drivers/wifi/nrfwifi/off_raw_tx/off_raw_tx_api.h>
Enumerator | |
---|---|
HE_LTF_3200NS | 3.2us |
HE_LTF_6400NS | 6.4us |
HE_LTF_12800NS | 12.8us |
HE_LTF_MAX | Invalid value. |
#include <zephyr/drivers/wifi/nrfwifi/off_raw_tx/off_raw_tx_api.h>
#include <zephyr/drivers/wifi/nrfwifi/off_raw_tx/off_raw_tx_api.h>
int nrf70_off_raw_tx_conf_update | ( | struct nrf_wifi_off_raw_tx_conf * | conf | ) |
#include <zephyr/drivers/wifi/nrfwifi/off_raw_tx/off_raw_tx_api.h>
Update the configured offloaded raw TX parameters.
conf | Configuration parameters to be updated for the offloaded raw TX operation. |
This function is used to update configured parameters for offloaded raw TX operation. This function should be used to when the parameters need to be updated during an ongoing raw TX operation without having to stop it.
0 | If the operation was successful. |
-1 | If the operation failed. |
void nrf70_off_raw_tx_deinit | ( | void | ) |
#include <zephyr/drivers/wifi/nrfwifi/off_raw_tx/off_raw_tx_api.h>
Initialize the nRF70 for operating in the offloaded raw TX mode.
This function is deinitializes the nRF70 device.
#include <zephyr/drivers/wifi/nrfwifi/off_raw_tx/off_raw_tx_api.h>
Initialize the nRF70 for operating in the offloaded raw TX mode.
mac_addr | MAC address to be used for the nRF70 device. |
country_code | Country code to be set for regularity domain. |
This function is initializes the nRF70 device for offloaded raw TX mode by:
The mac_addr parameter is used to set the MAC address of the nRF70 device. This address can be used to override the MAC addresses programmed in the OTP and the value configured (if any) in CONFIG_WIFI_FIXED_MAC_ADDRESS. The priority order in which the MAC address values for the nRF70 device are used is:
0 | If the operation was successful. |
-1 | If the operation failed. |
int nrf70_off_raw_tx_mac_addr_get | ( | uint8_t * | mac_addr | ) |
#include <zephyr/drivers/wifi/nrfwifi/off_raw_tx/off_raw_tx_api.h>
Get the MAC address of the nRF70 device.
mac_addr | Buffer to store the MAC address. |
This function is used to get the MAC address of the nRF70 device. The MAC address is stored in the buffer pointed by mac_addr. The MAC address is expected to be a 6 byte value.
0 | If the operation was successful. |
-1 | If the operation failed. |
int nrf70_off_raw_tx_start | ( | struct nrf_wifi_off_raw_tx_conf * | conf | ) |
#include <zephyr/drivers/wifi/nrfwifi/off_raw_tx/off_raw_tx_api.h>
Start the offloaded raw TX.
conf | Configuration parameters necessary for the offloaded raw TX operation. |
This function is used to start offloaded raw TX operation. When this function is invoked the nRF70 device will start transmitting frames as per the configuration specified by conf
.
0 | If the operation was successful. |
-1 | If the operation failed. |
int nrf70_off_raw_tx_stats | ( | struct nrf_wifi_off_raw_tx_stats * | off_raw_tx_stats | ) |
#include <zephyr/drivers/wifi/nrfwifi/off_raw_tx/off_raw_tx_api.h>
Get statistics of the offloaded raw TX.
off_raw_tx_stats | Statistics of the offloaded raw TX operation. |
This function is used to get statistics of offloaded raw TX operation. When this function is invoked the nRF70 device will show statistics.
0 | If the operation was successful. |
-1 | If the operation failed. |
int nrf70_off_raw_tx_stop | ( | void | ) |
#include <zephyr/drivers/wifi/nrfwifi/off_raw_tx/off_raw_tx_api.h>
Stop the offloaded raw TX.
This function is used to stop offloaded raw TX operation. When this function is invoked the nRF70 device will stop transmitting frames.
0 | If the operation was successful. |
-1 | If the operation failed. |