nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ mpsl_tx_power_radio_supported_power_adjust()

mpsl_tx_power_t mpsl_tx_power_radio_supported_power_adjust ( mpsl_tx_power_t  req_radio_power,
int8_t  tx_power_ceiling 
)

#include <mpsl/include/mpsl_tx_power.h>

Adjusts TX power to a value supported by the RADIO peripheral.

Parameters
[in]req_radio_powerRequested TX power desired for RADIO peripheral.
[in]tx_power_ceilingFlag to get ceiling or floor of requested RADIO TX power level.
Returns
RADIO TX power that is supported by the RADIO peripheral. If req_radio_power is less than the minimum TX power supported, the minimum supported TX power is returned. If req_radio_power is more than the maximum TX power supported, the maximum supported TX power is returned. Otherwise the closest supported value that is, depending on tx_power_ceiling, less or more, or equal to req_radio_power is returned.