LFRC clock driver.
More...
|
|
#define | NRFX_CLOCK_LFRC_EVT_OFFSET 32 |
| | Symbol specifying driver event offset for LFRC hardware events.
|
LFRC clock driver.
◆ nrfx_clock_lfrc_event_handler_t
LFRC event handler.
- Parameters
-
◆ nrfx_clock_lfrc_evt_type_t
Clock events.
| Enumerator |
|---|
| NRFX_CLOCK_LFRC_EVT_CAL_DONE | Calibration has been done.
|
◆ nrfx_clock_lfrc_calibrating_check()
| int nrfx_clock_lfrc_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_lfrc_calibration_start()
| int nrfx_clock_lfrc_calibration_start |
( |
void | | ) |
|
Function for starting the calibration of internal LFRC.
This function starts the calibration process. The process cannot be aborted. LFRC 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_lfrc_init()
Function for initializing internal structures in the nrfx_clock_lfrc driver.
After initialization, the driver 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_lfrc_init_check()
| bool nrfx_clock_lfrc_init_check |
( |
void | | ) |
|
Function for checking if the LFRC driver is initialized.
- Return values
-
| true | Driver is already initialized. |
| false | Driver is not initialized. |