nrfx 4.5.0
Loading...
Searching...
No Matches
HFCLK192M driver

HFCLK192M clock driver. More...

Macros

#define NRFX_CLOCK_HFCLK192M_EVT_HFCLK192M_STARTED    NRFX_BITMASK_TO_BITPOS(NRF_CLOCK_INT_HF192M_STARTED_MASK)
 HFCLK192M clock event.

Typedefs

typedef void(* nrfx_clock_hfclk192m_event_handler_t) (void)
 HFCLK192M clock event handler.

Functions

int nrfx_clock_hfclk192m_init (nrfx_clock_hfclk192m_event_handler_t event_handler)
 Function for initializing internal structures in the HFCLK192M driver.
void nrfx_clock_hfclk192m_uninit (void)
 Function for uninitializing the HFCLK192M driver.
bool nrfx_clock_hfclk192m_init_check (void)
 Function for checking if the HFCLK192M driver is initialized.
void nrfx_clock_hfclk192m_start (void)
 Function for starting the HFCLK192M clock.
void nrfx_clock_hfclk192m_stop (void)
 Function for stopping the HFCLK192M clock.
NRFX_STATIC_INLINE bool nrfx_clock_hfclk192m_running_check (nrf_clock_hfclk_t *p_clk_src)
 Function for checking the HFCLK192M clock state.
int nrfx_clock_hfclk192m_divider_set (nrf_clock_hfclk_div_t div)
 Function for setting the HFCLK192M clock divider.
NRFX_STATIC_INLINE nrf_clock_hfclk_div_t nrfx_clock_hfclk192m_divider_get (void)
 Function for getting the HFCLK192M clock divider.
void nrfx_clock_hfclk192m_irq_handler (void)
 HFCLK192M interrupt handler.

Detailed Description

HFCLK192M clock driver.

Function Documentation

◆ nrfx_clock_hfclk192m_divider_get()

NRFX_STATIC_INLINE nrf_clock_hfclk_div_t nrfx_clock_hfclk192m_divider_get ( void )

Function for getting the HFCLK192M clock divider.

Returns
Current divider for the HFCLK192M clock.

◆ nrfx_clock_hfclk192m_divider_set()

int nrfx_clock_hfclk192m_divider_set ( nrf_clock_hfclk_div_t div)

Function for setting the HFCLK192M clock divider.

Parameters
[in]divNew divider for the HFCLK192M clock.
Return values
0Divider successfully set.
-EINVALDivider not supported by the HFCLK192M clock.

◆ nrfx_clock_hfclk192m_init()

int nrfx_clock_hfclk192m_init ( nrfx_clock_hfclk192m_event_handler_t event_handler)

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_handlerEvent handler provided by the user. If not provided, driver works in blocking mode.
Return values
0The procedure is successful.
-EALREADYThe 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
trueDriver is already initialized.
falseDriver 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_srcPointer to a clock source that is running.
Return values
trueThe HFCLK192M clock is running.
falseThe HFCLK192M clock is not running.