#include <mpsl/include/mpsl_timeslot.h>
Set or update the MPSL timeslot configuration.
- Note
- Resource configuration can only be performed when all timeslots are closed.
- Parameters
-
[in] | p_mem | Pointer to a memory location for timeslot sessions. The size of the memory block needs to be at least n_sessions * MPSL_TIMESLOT_CONTEXT_SIZE bytes. The memory needs to reside in RAM. The pointer needs to be aligned to a 4-byte boundary. |
[in] | n_sessions | Number of timeslot sessions. Maximum number of supported timeslot sessions is MPSL_TIMESLOT_CONTEXT_COUNT_MAX. |
- Return values
-
0 | The configuration was applied successfully. |
-NRF_EPERM | Timeslots need to be configured when no timeslots are open. |
-NRF_EINVAL | Invalid argument provided. |
-NRF_EFAULT | The memory is not aligned to a 4-byte boundary. |