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

◆ mpsl_fem_prepare_powerdown()

bool mpsl_fem_prepare_powerdown ( NRF_TIMER_Type *  p_instance,
uint32_t  compare_channel,
uint32_t  ppi_id,
uint32_t  event_addr 
)

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

Prepares the Front End Module to switch to the Power Down state.

Deprecated:
This function is deprecated. Use mpsl_fem_disable instead.

This function makes sure the Front End Module shall be switched off in the appropriate time, using the hardware timer and its compare channel. The timer is owned by the protocol and must be started by the protocol. The timer stops after matching the provided compare channel (the call sets the short).

Parameters
[in]p_instanceTimer instance that is used to schedule the transition to the Power Down state.
[in]compare_channelCompare channel to hold a value for the timer.
[in]ppi_idID of the PPI channel used to switch to the Power Down state.
[in]event_addrAddress of the event which shall trigger the Timer start.
Return values
trueWhether the scheduling of the transition was successful.
falseWhether the scheduling of the transition was not successful.