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

XO24M clock driver. More...

Macros

#define NRFX_CLOCK_XO24M_EVT_HFCLK24M_STARTED   NRFX_BITMASK_TO_BITPOS(NRF_CLOCK_INT_HFCLK24M_STARTED_MASK)
 XO24M clock event.

Typedefs

typedef void(* nrfx_clock_xo24m_event_handler_t) (void)
 XO24M clock event handler.

Functions

int nrfx_clock_xo24m_init (nrfx_clock_xo24m_event_handler_t event_handler)
 Function for initializing the XO24M driver.
void nrfx_clock_xo24m_uninit (void)
 Function for uninitializing the XO24M driver.
bool nrfx_clock_xo24m_init_check (void)
 Function for checking if the XO24M driver is initialized.
void nrfx_clock_xo24m_start (void)
 Function for starting the XO24M clock.
void nrfx_clock_xo24m_stop (void)
 Function for stopping the XO24M clock.
NRFX_STATIC_INLINE bool nrfx_clock_xo24m_running_check (void)
 Function for checking the XO24M clock state..
void nrfx_clock_xo24m_irq_handler (void)
 XO24M interrupt handler.

Detailed Description

XO24M clock driver.

Macro Definition Documentation

◆ NRFX_CLOCK_XO24M_EVT_HFCLK24M_STARTED

#define NRFX_CLOCK_XO24M_EVT_HFCLK24M_STARTED   NRFX_BITMASK_TO_BITPOS(NRF_CLOCK_INT_HFCLK24M_STARTED_MASK)

XO24M clock event.

HFCLK24M has been started.

Function Documentation

◆ nrfx_clock_xo24m_init()

int nrfx_clock_xo24m_init ( nrfx_clock_xo24m_event_handler_t event_handler)

Function for initializing the XO24M driver.

After initialization, the 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_xo24m_init_check()

bool nrfx_clock_xo24m_init_check ( void )

Function for checking if the XO24M driver is initialized.

Return values
trueDriver is already initialized.
falseDriver is not initialized.

◆ nrfx_clock_xo24m_running_check()

NRFX_STATIC_INLINE bool nrfx_clock_xo24m_running_check ( void )

Function for checking the XO24M clock state..

XTAL source is assumed for domains with multiple sources.

Return values
trueThe XO24M clock is running.
falseThe XO24M clock is not running.