HFCLK192M clock driver.
More...
|
|
typedef void(* | nrfx_clock_hfclk192m_event_handler_t) (void) |
| | HFCLK192M clock event handler.
|
HFCLK192M clock driver.
◆ nrfx_clock_hfclk192m_divider_get()
Function for getting the HFCLK192M clock divider.
- Returns
- Current divider for the HFCLK192M clock.
◆ nrfx_clock_hfclk192m_divider_set()
Function for setting the HFCLK192M clock divider.
- Parameters
-
| [in] | div | New divider for the HFCLK192M clock. |
- Return values
-
| 0 | Divider successfully set. |
| -EINVAL | Divider not supported by the HFCLK192M clock. |
◆ nrfx_clock_hfclk192m_init()
Function for initializing internal structures in the HFCLK192M driver.
After initialization, the HFCLK192M 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_hfclk192m_init_check()
| bool nrfx_clock_hfclk192m_init_check |
( |
void | | ) |
|
Function for checking if the HFCLK192M driver is initialized.
- Return values
-
| true | Driver is already initialized. |
| false | Driver is not initialized. |
◆ nrfx_clock_hfclk192m_running_check()
| NRFX_STATIC_INLINE bool nrfx_clock_hfclk192m_running_check |
( |
nrf_clock_hfclk_t * | p_clk_src | ) |
|
Function for checking the HFCLK192M clock state.
- Parameters
-
| [out] | p_clk_src | Pointer to a clock source that is running. |
- Return values
-
| true | The HFCLK192M clock is running. |
| false | The HFCLK192M clock is not running. |