Header file for nX Radio physical layer driver. More...
#include "co_int.h"#include "co_bool.h"#include "mac_types.h"#include "rwnx_config.h"#include "compiler.h"Go to the source code of this file.
Data Structures | |
| struct | phy_channel_info |
| Structure containing the information about the PHY channel that was used for this RX. More... | |
| struct | phy_radar_pulse |
| Structure containing information about radar pulse detected. More... | |
| struct | phy_cfg_tag |
| Structure containing the parameters of the PHY configuration. More... | |
Defines | |
| #define | PHY_UNUSED 0xFF |
| Invalid value for some octet parameters reserved for the future. | |
| #define | PHY_CFG_BUF_SIZE 16 |
| Maximum number of words in the configuration buffer. | |
| #define | PHY_FREQ_5G 5000 |
| 5G lower bound freq | |
PHY INFO related definitions. | |
| #define | PHY_INFO_BAND(__x) ((__x.info1) & 0x000000FF) |
| Macro retrieving the band of the phy channel info. | |
| #define | PHY_INFO_BW(__x) (((__x.info1) & 0x0000FF00) >> 8) |
| Macro retrieving the bandwidth of the phy channel info. | |
| #define | PHY_INFO_CHAN(__x) (((__x.info1) & 0xFFFF0000) >> 16) |
| Macro retrieving the channel of the phy channel info. | |
| #define | PHY_INFO_CENT_FREQ1(__x) ((__x.info2) & 0x0000FFFF) |
| Macro retrieving the center frequency 1 of the phy channel info. | |
| #define | PHY_INFO_CENT_FREQ2(__x) (((__x.info2) & 0xFFFF0000) >> 16) |
| Macro retrieving the center frequency 2 of the phy channel info. | |
Enumerations | |
| enum | { PHY_PRIM, PHY_SEC } |
RF index definitions. More... | |
Functions | |
| void | phy_init (const struct phy_cfg_tag *config) |
| Modem and Radio initialization function. | |
| void | phy_reset (void) |
| Resets some parts of the PHY. | |
| void | phy_get_version (uint32_t *version_1, uint32_t *version_2) |
| PHY version reading function. | |
| void | phy_set_channel (const struct mac_chan_op *chan, uint8_t index) |
| Set channel function. | |
| void | phy_get_channel (struct phy_channel_info *info, uint8_t index) |
| Get channel function. | |
| void | phy_stop (void) |
| PHY stop function. | |
| uint32_t | phy_get_channel_switch_dur (void) |
| Get maximum duration to set a new channel. | |
| __INLINE int | phy_freq_to_channel (uint8_t band, uint16_t freq) |
| Compute the channel number from its center frequency and its band. | |
| __INLINE uint16_t | phy_channel_to_freq (uint8_t band, int channel) |
| Compute the channel frequency from its number and band. | |
| void | phy_mdm_isr (void) |
| Modem interrupt service routine. | |
| void | phy_rc_isr (void) |
| RC interrupt service routine. | |
| bool | phy_has_radar_pulse (int rd_idx) |
| Indicates if the PHY has radar pulses available or not. | |
| bool | phy_get_radar_pulse (int rd_idx, struct phy_radar_pulse *pulse) |
| Read a radar pulse from the FIFO, and writes it to the buffer passed as parameter. | |
| bool | phy_vht_supported (void) |
| Return the VHT capability of the PHY. | |
| bool | phy_he_supported (void) |
| Return the HE capability of the PHY. | |
| bool | phy_uf_supported (void) |
| Return the unsupported HT frame handling capability of the PHY. | |
| void | phy_uf_enable (bool enable) |
| Configure the unsupported HT frame handling capability of the PHY. | |
| bool | phy_ldpc_tx_supported (void) |
| Return the LDPC TX capability of the PHY. | |
| bool | phy_ldpc_rx_supported (void) |
| Return the LDPC RX capability of the PHY. | |
| bool | phy_bfmee_supported (void) |
| Return the Beamformee capability of the PHY. | |
| bool | phy_bfmer_supported (void) |
| Return the Beamformer capability of the PHY. | |
| bool | phy_mu_mimo_rx_supported (void) |
| Return the MU-MIMO RX capability of the PHY. | |
| bool | phy_mu_mimo_tx_supported (void) |
| Return the MU-MIMO TX capability of the PHY. | |
| void | phy_set_aid (uint16_t aid) |
| Set the AID to the PHY, in order to allow correct operation of OFDMA-RX. | |
| uint8_t | phy_get_bw (void) |
| Return the supported BW of the PHY. | |
| uint8_t | phy_get_nss (void) |
| Return the NSS of the PHY. | |
| uint8_t | phy_get_ntx (void) |
| Return the NTX of the PHY. | |
| uint8_t | phy_get_nrx (void) |
| Return the NRX of the PHY. | |
| uint8_t | phy_get_bfr_mem_size (void) |
| Return the size of the BFMER memory in kBytes. | |
| void | phy_get_rf_gain_idx (int8_t *power, uint8_t *idx) |
| Get radio code to set a specific TX power Return the idx to use (set in policy table), to configure a specific TX power. | |
| void | phy_get_rf_gain_capab (int8_t *max, int8_t *min) |
| Get radio's transmission power capabilities. | |
| uint8_t | phy_switch_antenna_paths (void) |
| Switch paths connections. | |
Header file for nX Radio physical layer driver.
Copyright (C) RivieraWaves 2011-2019
Definition in file phy.h.
1.6.1