nRF Connect SDK API 0.1.0
|
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.
power
cannot be achieved, this function attempts to use less power to not exceed the limits.[in] | power | TX power requested for transmission on air. |
[out] | radio_tx_power | Tx power value to be set on the radio peripheral. |
[in] | freq_mhz | Frequency in MHz. The output power is valid only for this frequency. |
power
.