HFCLK CLOCK peripheral driver.
More...
|
|
typedef void(* | nrfx_clock_hfclk_event_handler_t) (void) |
| | HFCLK event handler.
|
| |
|
| int | nrfx_clock_hfclk_init (nrfx_clock_hfclk_event_handler_t event_handler) |
| | Function for initializing internal structures in the HFCLK clock.
|
| |
| bool | nrfx_clock_hfclk_init_check (void) |
| | Function for checking if the HFCLK driver is initialized.
|
| |
|
void | nrfx_clock_hfclk_uninit (void) |
| | Function for uninitializing the HFCLK clock.
|
| |
|
void | nrfx_clock_hfclk_start (void) |
| | Function for starting the HFCLK clock.
|
| |
|
void | nrfx_clock_hfclk_stop (void) |
| | Function for stopping the HFCLK clock.
|
| |
| NRFX_STATIC_INLINE bool | nrfx_clock_hfclk_running_check (nrf_clock_hfclk_t *p_clk_src) |
| | Function for checking the HFCLK state.
|
| |
|
void | nrfx_clock_hfclk_irq_handler (void) |
| | HFCLK interrupt handler.
|
| |
HFCLK CLOCK peripheral driver.
◆ nrfx_clock_hfclk_init()
Function for initializing internal structures in the HFCLK clock.
After initialization, the HFCLK 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_hfclk_init_check()
| bool nrfx_clock_hfclk_init_check |
( |
void | | ) |
|
Function for checking if the HFCLK driver is initialized.
- Return values
-
| true | Driver is already initialized. |
| false | Driver is not initialized. |
◆ nrfx_clock_hfclk_running_check()
| NRFX_STATIC_INLINE bool nrfx_clock_hfclk_running_check |
( |
nrf_clock_hfclk_t * | p_clk_src | ) |
|
Function for checking the HFCLK state.
- Parameters
-
| [out] | p_clk_src | Pointer to a clock source that is running. |
- Return values
-
| true | The HFCLK is running. |
| false | The HFCLK is not running. |