nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ mpsl_timeslot_session_count_set()

int32_t mpsl_timeslot_session_count_set ( void * p_mem,
uint8_t n_sessions )

#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_memPointer 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_sessionsNumber of timeslot sessions. Maximum number of supported timeslot sessions is MPSL_TIMESLOT_CONTEXT_COUNT_MAX.
Return values
0The configuration was applied successfully.
-NRF_EPERMTimeslots need to be configured when no timeslots are open.
-NRF_EINVALInvalid argument provided.
-NRF_EFAULTThe memory is not aligned to a 4-byte boundary.