nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ mpsl_fem_pa_power_control_set()

int32_t mpsl_fem_pa_power_control_set ( mpsl_fem_pa_power_control_t  pa_power_control)

#include <mpsl/fem/include/protocol/mpsl_fem_protocol_api.h>

Sets the PA power control.

Setting the PA power control informs the FEM implementation how the PA is to be controlled before the next transmission.

The PA power control set by this function is to be applied to control signals or parameters. What signals and parameters are controlled and how does it happen depends on implementation of given FEM. The meaning of pa_power_control parameter is fully FEM type-dependent. For FEM type-independent protocol implementation please use the function mpsl_fem_tx_power_split and provide outcome of this function returned by the parameter p_tx_power_split to the call to mpsl_fem_pa_power_control_set. For applications intended for testing the FEM itself when mpsl_fem_tx_power_split is not used you must make the pa_power_control parameter on your own.

Note
The PA power control set by this function will be applied to radio transmissions following the call. If the function is called during radio transmission or during ramp-up for transmission it is unspecified if the control is applied.
Parameters
[in]pa_power_controlPA power control to be applied to the FEM.
Return values
0PA power control has been applied successfully.
-NRF_EINVALPA power control could not be applied. Provided pa_power_control is invalid.