nrfxlib API 0.1.0
|
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.
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).
[in] | p_instance | Timer instance that is used to schedule the transition to the Power Down state. |
[in] | compare_channel | Compare channel to hold a value for the timer. |
[in] | ppi_id | ID of the PPI channel used to switch to the Power Down state. |
[in] | event_addr | Address of the event which shall trigger the Timer start. |
true | Whether the scheduling of the transition was successful. |
false | Whether the scheduling of the transition was not successful. |