nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ mpsl_clock_ctrl_source_register()

int32_t mpsl_clock_ctrl_source_register ( const mpsl_clock_lfclk_ctrl_source_t * p_lfclk_ctrl_source,
const mpsl_clock_hfclk_ctrl_source_t * p_hfclk_ctrl_source )

#include <mpsl/include/mpsl_clock.h>

Register an external clock driver.

When this API is called, MPSL will use an external clock driver instead of the built-in clock driver.

Note
The API must be called before mpsl_init() to enable MPSL use external clock driver.

The API is supported for nRF54h series. It is experimental for nRF52, nRF53 series.

Parameters
[in]p_lfclk_ctrl_sourceA pointer to struct holding the API to LFCLK control.
[in]p_hfclk_ctrl_sourceA pointer to struct holding the API to HFCLK control.
Note
Any of the clock control pointers can't be NULL. In such case the function return -NRF_EINVAL.
Return values
0Clock control API is successfully registered.
-NRF_EPERMClock control API is already initialized.
-NRF_EINVALInvalid parameters supplied.