![]() |
nrfx 4.5.0
|
XO clock driver. More...
Typedefs | |
| typedef void(* | nrfx_clock_xo_event_handler_t) (nrfx_clock_xo_event_type_t event) |
| XO clock event handler. | |
Enumerations | |
| enum | nrfx_clock_xo_event_type_t { NRFX_CLOCK_XO_EVT_HFCLK_STARTED = NRFX_BITMASK_TO_BITPOS(NRF_CLOCK_INT_HF_STARTED_MASK) } |
| XO clock events. More... | |
Functions | |
| int | nrfx_clock_xo_init (nrfx_clock_xo_event_handler_t event_handler) |
| Function for initializing internal structures in the nrfx_clock_xo module. | |
| void | nrfx_clock_xo_uninit (void) |
| Function for uninitializing the clock module. | |
| bool | nrfx_clock_xo_init_check (void) |
| Function for checking if the clock driver is initialized. | |
| void | nrfx_clock_xo_start (void) |
| Function for starting the XO clock. | |
| void | nrfx_clock_xo_stop (void) |
| Function for stopping the XO clock. | |
| NRFX_STATIC_INLINE bool | nrfx_clock_xo_running_check (nrf_clock_hfclk_t *p_clk_src) |
| Function for checking the XO clock state. | |
| void | nrfx_clock_xo_irq_handler (void) |
| XO interrupt handler. | |
XO clock driver.
| typedef void(* nrfx_clock_xo_event_handler_t) (nrfx_clock_xo_event_type_t event) |
XO clock event handler.
| [in] | event | Event. |
| int nrfx_clock_xo_init | ( | nrfx_clock_xo_event_handler_t | event_handler | ) |
Function for initializing internal structures in the nrfx_clock_xo module.
After initialization, the module is in power off state (clocks are not started).
| [in] | event_handler | Event handler provided by the user. If not provided, driver works in blocking mode. |
| 0 | The procedure is successful. |
| -EALREADY | The driver is already initialized. |
| bool nrfx_clock_xo_init_check | ( | void | ) |
Function for checking if the clock driver is initialized.
| true | Driver is already initialized. |
| false | Driver is not initialized. |
| NRFX_STATIC_INLINE bool nrfx_clock_xo_running_check | ( | nrf_clock_hfclk_t * | p_clk_src | ) |
Function for checking the XO clock state.
| [out] | p_clk_src | Pointer to a clock source that is running. |
| true | The XO clock is running. |
| false | The XO clock is not running. |