#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_callback | The signal callback. |
[out] | p_session_id | Pointer to the id of the session that was opened. |
- Return values
-
0 | Request was successful. |
-NRF_ENOMEM | All sessions are already open. |