HFXO Manager

Description

Data Structures

struct sl_hfxo_manager_sleepy_xtal_settings
Sleepy Crystal settings.

Functions

void sl_hfxo_manager_init_hardware (void)
HFXO Manager module hardware specific initialization.
sl_status_t sl_hfxo_manager_init (void)
Initialize HFXO Manager module.
sl_status_t sl_hfxo_manager_update_sleepy_xtal_settings (sl_hfxo_manager_sleepy_xtal_settings_t *settings)
Updates Sleepy Crystal settings.
void sl_hfxo_manager_notify_consecutive_failed_startups (void)
When this callback function is called, it means that HFXO failed twice in a row to start with normal configurations.
void sl_hfxo_manager_irq_handler (void)
HFXO Manager HFXO interrupt handler.

Function Documentation

sl_hfxo_manager_init_hardware()

void sl_hfxo_manager_init_hardware ( void )

HFXO Manager module hardware specific initialization.

sl_hfxo_manager_init()

sl_status_t sl_hfxo_manager_init ( void )

Initialize HFXO Manager module.

Returns
Status Code.

sl_hfxo_manager_update_sleepy_xtal_settings()

sl_status_t sl_hfxo_manager_update_sleepy_xtal_settings ( sl_hfxo_manager_sleepy_xtal_settings_t * settings )

Updates Sleepy Crystal settings.

Parameters
settings Pointer to settings structure
Returns
Status Code.
Note
Those settings are temporarily used to force oscillation on sleepy crystal. Default values should be enough to wake-up sleepy crystals. Otherwise, this function can be used.

sl_hfxo_manager_notify_consecutive_failed_startups()

void sl_hfxo_manager_notify_consecutive_failed_startups ( void )

When this callback function is called, it means that HFXO failed twice in a row to start with normal configurations.

This may mean that there is a bad crystal. When getting this callback, HFXO is running but its properties (frequency, precision) are not guaranteed. This should be considered as an error situation.

sl_hfxo_manager_irq_handler()

void sl_hfxo_manager_irq_handler ( void )

HFXO Manager HFXO interrupt handler.

Note
This function must be called by the HFXO interrupt handler in order to support the HFXO Manager module. This function handles the HFXO_IF_RDY, HFXO_IF_DNSERR and HFXO_XTALCTRL_SKIPCOREBIASOPT interrupt flags.