![]() |
nrfxlib API 3.4.99
|
| int32_t mpsl_init | ( | mpsl_clock_lfclk_cfg_t const * | p_clock_config, |
| IRQn_Type | low_prio_irq, | ||
| mpsl_assert_handler_t | p_assert_handler ) |
#include <mpsl.h>
MPSL initialization.
| [in] | p_clock_config | Clock configuration. If NULL the LF clock will be configured as an RC source with rc_ctiv = MPSL_RECOMMENDED_RC_CTIV, .rc_temp_ctiv = MPSL_RECOMMENDED_RC_TEMP_CTIV, and .accuracy_ppm = MPSL_DEFAULT_CLOCK_ACCURACY_PPM. The parameter is not used when external clock driver is registered mpsl_clock_ctrl_source_register(). |
| [in] | low_prio_irq | IRQ to pend when low priority processing should be executed. The application shall call mpsl_low_priority_process after this IRQ has occurred. |
| [in] | p_assert_handler | Pointer to MPSL assert handler. |
| 0 | MPSL is successfully initialized. |
| -NRF_EPERM | MPSL is already initialized. |
| -NRF_EINVAL | Invalid parameters supplied. |