nrfxlib API 2.8.99
|
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.
[in] | req_radio_power | Requested TX power desired for RADIO peripheral. |
[in] | tx_power_ceiling | Flag to get ceiling or floor of requested RADIO TX power level. |
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.