LFCLK clock driver.
More...
LFCLK clock driver.
◆ nrfx_clock_lfclk_event_handler_t
LFCLK event handler.
- Parameters
-
◆ nrfx_clock_lfclk_evt_type_t
Clock events.
| Enumerator |
|---|
| NRFX_CLOCK_LFCLK_EVT_LFCLK_STARTED | LFCLK has been started.
|
◆ nrfx_clock_lfclk_calibrating_check()
| int nrfx_clock_lfclk_calibrating_check |
( |
void | | ) |
|
Function for checking if calibration is in progress.
This function indicates that the clock is in calibration phase.
- Return values
-
| 0 | The procedure is successful. |
| -EBUSY | Clock is in the calibration phase. |
◆ nrfx_clock_lfclk_calibration_start()
| int nrfx_clock_lfclk_calibration_start |
( |
void | | ) |
|
Function for starting the calibration of internal LFCLK.
This function starts the calibration process. The process cannot be aborted. LFCLK and and high-frequency clock must be running before this function is called.
- Return values
-
| 0 | The procedure is successful. |
| -EINPROGRESS | The low-frequency or high-frequency clock is off. |
| -EBUSY | Clock is in the calibration phase. |
◆ nrfx_clock_lfclk_calibration_timer_start()
| void nrfx_clock_lfclk_calibration_timer_start |
( |
uint8_t | interval | ) |
|
Function for starting calibration timer.
- Parameters
-
| [in] | interval | Time after which the CTTO event and interrupt will be generated (in 0.25 s units). |
◆ nrfx_clock_lfclk_init()
Function for initializing internal structures in the LFCLK driver.
After initialization, the LFCLK driver is in power off state (clock is not started).
- Parameters
-
| [in] | event_handler | Event handler provided by the user. If not provided, driver works in blocking mode. |
- Return values
-
| 0 | The procedure is successful. |
| -EALREADY | The driver is already initialized. |
◆ nrfx_clock_lfclk_init_check()
| bool nrfx_clock_lfclk_init_check |
( |
void | | ) |
|
Function for checking if the LFCLK driver is initialized.
- Return values
-
| true | Driver is already initialized. |
| false | Driver is not initialized. |
◆ nrfx_clock_lfclk_running_check()
| NRFX_STATIC_INLINE bool nrfx_clock_lfclk_running_check |
( |
nrf_clock_lfclk_t * | p_clk_src | ) |
|
Function for checking the LFCLK clock state.
- Parameters
-
| [out] | p_clk_src | Pointer to a clock source that is running. Set to NULL if not needed. |
- Return values
-
| true | The LFCLK clock is running. |
| false | The LFCLK clock is not running. |