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

HFCLK192M peripheral driver. More...

Macros

#define NRFX_CLOCK_HFCLK192M_EVT_HFCLK192M_STARTED    NRFX_BITMASK_TO_BITPOS(NRF_CLOCK_INT_HF192M_STARTED_MASK)
 Clock event.
 

Typedefs

typedef void(* nrfx_clock_hfclk192m_event_handler_t) (void)
 Clock event handler.
 

Functions

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

Detailed Description

HFCLK192M peripheral 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 specified clock domain divider.

Returns
Current divider for the specified clock domain.

◆ nrfx_clock_hfclk192m_divider_set()

int nrfx_clock_hfclk192m_divider_set ( nrf_clock_hfclk_div_t div)

Function for setting the specified clock domain divider.

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

◆ nrfx_clock_hfclk192m_init()

int nrfx_clock_hfclk192m_init ( nrfx_clock_hfclk192m_event_handler_t event_handler)

Function for initializing internal structures in the nrfx_clock module.

After initialization, the module is in power off state (clocks are 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 clock 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 specified clock domain state.

XTAL source is assumed for domains with multiple sources.

Parameters
[out]p_clk_srcPointer to a clock source that is running.
Return values
trueThe clock domain is running.
falseThe clock domain is not running.