nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
fem_al.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <hal/nrf_radio.h>

Go to the source code of this file.

Typedefs

typedef uint8_t fem_tx_power_control
 Type holding Tx power control to be applied to front-end module.
 

Enumerations

enum  fem_antenna { FEM_ANTENNA_1 , FEM_ANTENNA_2 }
 The front-end module (FEM) antennas. More...
 

Functions

int fem_init (NRF_TIMER_Type *timer_instance, uint8_t compare_channel_mask)
 Initialize the front-end module.
 
int fem_power_up (void)
 Power-up the front-end module.
 
int fem_power_down (void)
 Power-down the front-end module.
 
int fem_tx_power_control_set (fem_tx_power_control tx_power_control)
 Configure Tx power control of the front-end module.
 
uint32_t fem_default_ramp_up_time_get (bool rx, nrf_radio_mode_t mode)
 Get the default radio ramp-up time for reception or transmission with a given data rate and modulation.
 
int fem_tx_configure (uint32_t ramp_up_time)
 Configure the front-end module to TX mode (PA).
 
int fem_rx_configure (uint32_t ramp_up_time)
 Configure the front-end module to RX mode (LNA).
 
int fem_txrx_configuration_clear (void)
 Clear up the configuration provided by the fem_tx_configure or fem_rx_configure.
 
void fem_txrx_stop (void)
 Stop the front-end module RX/TX mode immediately.
 
int fem_antenna_select (enum fem_antenna ant)
 Chooses one of two physical antenna outputs.
 
uint32_t fem_radio_tx_ramp_up_delay_get (bool fast, nrf_radio_mode_t mode)
 Get the radio ramp-up time in transmit mode.
 
uint32_t fem_radio_rx_ramp_up_delay_get (bool fast, nrf_radio_mode_t mode)
 Get the radio ramp-up time in receive mode.
 
int8_t fem_tx_output_power_prepare (int8_t power, int8_t *radio_tx_power, uint16_t freq_mhz)
 Set the front-end module Tx power control and returns output power to be set on the radio peripheral to get requested output power.
 
int8_t fem_tx_output_power_check (int8_t power, uint16_t freq_mhz, bool tx_power_ceiling)
 Check a real Tx output power, for the SoC with the front-end module for given parameters.
 
static int8_t fem_tx_output_power_min_get (uint16_t freq_mhz)
 Get the minimum Tx output power for the SoC with the front-end module.
 
static int8_t fem_tx_output_power_max_get (uint16_t freq_mhz)
 Get the maximum Tx output power for the SoC with the front-end module.
 
int8_t fem_default_tx_output_power_get (void)
 Get the front-end module default Tx output power.
 
void fem_errata_25X (nrf_radio_mode_t mode)
 Apply the workaround for the Errata 254, 255, 256, 257 when appropriate.