Microchip® Advanced Software Framework

system_clock_source_xosc32k_config Struct Reference

Configuration structure for XOSC32K.

External 32KHz oscillator clock configuration structure.

#include <clock_feature.h>

Data Fields

bool enable_1khz_output
 Enable 1KHz output. More...
 
bool enable_32khz_output
 Enable 32KHz output. More...
 
enum system_clock_external external_clock
 External clock type. More...
 
uint32_t frequency
 External clock/crystal frequency. More...
 
bool on_demand
 Run On Demand. More...
 
bool run_in_standby
 Keep the XOSC32K enabled in standby sleep mode. More...
 
enum system_xosc32k_startup startup_time
 Crystal oscillator start-up time. More...
 
bool write_once
 Lock configuration after it has been written, a device reset will release the lock. More...
 

bool system_clock_source_xosc32k_config::enable_1khz_output
bool system_clock_source_xosc32k_config::enable_32khz_output
enum system_clock_external system_clock_source_xosc32k_config::external_clock
uint32_t system_clock_source_xosc32k_config::frequency
bool system_clock_source_xosc32k_config::on_demand

Run On Demand.

If this is set the XOSC32K won't run until requested by a peripheral

Referenced by init_xosc32k(), system_clock_init(), system_clock_source_xosc32k_get_config_defaults(), and system_clock_source_xosc32k_set_config().

bool system_clock_source_xosc32k_config::run_in_standby

Keep the XOSC32K enabled in standby sleep mode.

Referenced by system_clock_init(), system_clock_source_xosc32k_get_config_defaults(), and system_clock_source_xosc32k_set_config().

enum system_xosc32k_startup system_clock_source_xosc32k_config::startup_time
bool system_clock_source_xosc32k_config::write_once

Lock configuration after it has been written, a device reset will release the lock.

Referenced by system_clock_source_xosc32k_get_config_defaults(), and system_clock_source_xosc32k_set_config().