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

◆ mpsl_timeslot_session_open()

int32_t mpsl_timeslot_session_open ( mpsl_timeslot_callback_t  mpsl_timeslot_signal_callback,
mpsl_timeslot_session_id_t p_session_id 
)

#include <mpsl/include/mpsl_timeslot.h>

Opens a session for timeslot requests.

Note
Only one session can be open at a time.
mpsl_timeslot_signal_callback(MPSL_TIMESLOT_SIGNAL_START) will be called when the timeslot starts. From this point the RADIO, TIMER0, AAR, and CCM peripherals can be freely accessed by the application.
mpsl_timeslot_signal_callback(MPSL_TIMESLOT_SIGNAL_TIMER0) is called whenever the TIMER0 interrupt occurs.
mpsl_timeslot_signal_callback(MPSL_TIMESLOT_SIGNAL_RADIO) is called whenever the RADIO interrupt occurs.
If the low frequency clock is not running when this function is called, the function will wait until the low frequency clock has started. See mpsl_clock_lfclk_cfg_t::skip_wait_lfclk_started.
Parameters
[in]mpsl_timeslot_signal_callbackThe signal callback.
[out]p_session_idPointer to the id of the session that was opened.
Return values
0Request was successful.
-NRF_ENOMEMAll sessions are already open.