nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ mpsl_lib_init()

int32_t mpsl_lib_init ( void  )

#include <include/mpsl/mpsl_lib.h>

Initialize MPSL and attach interrupt handlers.

This routine initializes MPSL (via mpsl_init) after it has been uninitialized via mpsl_lib_uninit, and attaches all required interrupt handlers.

Precondition
This method requires CONFIG_MPSL_DYNAMIC_INTERRUPTS to be enabled and MPSL to have been previously uninitialized via mpsl_lib_uninit.
Note
After successful execution of this method, any existing interrupt handlers will be detached from RADIO_IRQn, RTC0_IRQn, and TIMER0_IRQn.
Return values
0MPSL enabled successfully.
-NRF_EPERMOperation is not supported or MPSL is already initialized.
-NRF_EINVALInvalid parameters supplied to MPSL.