Microchip® Advanced Software Framework

system_gclk_gen_config Struct Reference

Generic Clock Generator configuration structure.

Configuration structure for a Generic Clock Generator channel. This structure should be initialized by the system_gclk_gen_get_config_defaults() function before being modified by the user application.

#include <gclk.h>

Data Fields

uint32_t division_factor
 Integer division factor of the clock output compared to the input. More...
 
bool high_when_disabled
 If true, the generator output level is high when disabled. More...
 
bool output_enable
 If true, enables GCLK generator clock output to a GPIO pin. More...
 
bool run_in_standby
 If true, the clock is kept enabled during device standby mode. More...
 
uint8_t source_clock
 Source clock input channel index, see the system_clock_source. More...
 

uint32_t system_gclk_gen_config::division_factor

Integer division factor of the clock output compared to the input.

Referenced by system_gclk_gen_get_config_defaults(), and system_gclk_gen_set_config().

bool system_gclk_gen_config::high_when_disabled

If true, the generator output level is high when disabled.

Referenced by system_gclk_gen_get_config_defaults(), and system_gclk_gen_set_config().

bool system_gclk_gen_config::output_enable

If true, enables GCLK generator clock output to a GPIO pin.

Referenced by init_dfll(), system_gclk_gen_get_config_defaults(), and system_gclk_gen_set_config().

bool system_gclk_gen_config::run_in_standby

If true, the clock is kept enabled during device standby mode.

Referenced by system_gclk_gen_get_config_defaults(), and system_gclk_gen_set_config().

uint8_t system_gclk_gen_config::source_clock