LFCLK clock driver.
More...
|
|
#define | NRFX_CLOCK_LFCLK_LFRC_EVT_OFFSET 32 |
| | Symbol specifying driver event offset for LFRC hardware events.
|
| |
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 system 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 (HFCLK or XO) 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 nrfx_clock_lfclk module.
After initialization, the module is in power off state (clocks are 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 state.
XTAL source is assumed for domains with multiple sources.
- Parameters
-
| [out] | p_clk_src | Pointer to a clock source that is running. Set to NULL if not needed. |
- Return values
-
| true | The clock domain is running. |
| false | The clock domain is not running. |