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

◆ mpsl_clock_hfclk_request()

int32_t mpsl_clock_hfclk_request ( mpsl_clock_hfclk_callback_t hfclk_started_callback)

#include <mpsl/include/mpsl_clock.h>

Request the high frequency crystal oscillator.

Deprecated
Use mpsl_clock_hfclk_src_request instead. This function will be removed in a future release.

Will start the high frequency crystal oscillator, the startup time of the crystal varies and the mpsl_clock_hfclk_is_running function can be polled to check if it has started.

See also
mpsl_clock_hfclk_is_running
mpsl_clock_hfclk_release
Note
Don't use this API if the integration layer of MPSL provides a driver that uses this function. This is the case for applications in the nRF Connect SDK where there is a clock control driver with a corresponding on/off manager.
This API is not supported when an external clock driver has been registered. See also mpsl_clock_ctrl_source_register().
Parameters
[in]hfclk_started_callbackFunction to be called when the high frequency clock is started. On nRF54L series SoCs the callback is called when the clock has started and is stable (EVENT_XOTUNED has occurred). The callback will be executed in the context as mpsl_low_priority_process.
Return values
0Success