nrfxlib API 0.1.0
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.

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.
Parameters
[in]hfclk_started_callbackFunction to be called when the high frequency clock is started. The callback will be executed in the context as mpsl_low_priority_process.
Return values
0Success