nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ fem_tx_output_power_prepare()

int8_t fem_tx_output_power_prepare ( int8_t  power,
int8_t *  radio_tx_power,
uint16_t  freq_mhz 
)

#include <include/fem_al/fem_al.h>

Set the front-end module Tx power control and returns output power to be set on the radio peripheral to get requested output power.

This function calculates power value for RADIO peripheral register and sets front-end module Tx power control value.

Note
If the exact value of power cannot be achieved, this function attempts to use less power to not exceed the limits.
Parameters
[in]powerTX power requested for transmission on air.
[out]radio_tx_powerTx power value to be set on the radio peripheral.
[in]freq_mhzFrequency in MHz. The output power is valid only for this frequency.
Returns
The power in dBm that is achieved as device output power. It can be different from the value requested by power.