Microchip® Advanced Software Framework

dac_config Struct Reference

DAC configuration structure.

Configuration structure for a DAC instance. This structure should be initialized by the dac_get_config_defaults() function before being modified by the user application.

#include <dac_feature.h>

Data Fields

enum gclk_generator clock_source
 GCLK generator used to clock the peripheral. More...
 
bool left_adjust
 Left adjusted data. More...
 
enum dac_output output
 Select DAC output. More...
 
enum dac_reference reference
 Reference voltage. More...
 
bool run_in_standby
 The DAC behaves as in normal mode when the chip enters STANDBY sleep mode. More...
 
bool voltage_pump_disable
 Voltage pump disable. More...
 

enum gclk_generator dac_config::clock_source

GCLK generator used to clock the peripheral.

Referenced by dac_get_config_defaults(), dac_init(), and test_dac_init().

bool dac_config::left_adjust

Left adjusted data.

Referenced by _dac_set_config(), and dac_get_config_defaults().

enum dac_output dac_config::output

Select DAC output.

Referenced by _dac_set_config(), and dac_get_config_defaults().

enum dac_reference dac_config::reference

Reference voltage.

Referenced by _dac_set_config(), dac_get_config_defaults(), dac_init(), and test_dac_init().

bool dac_config::run_in_standby

The DAC behaves as in normal mode when the chip enters STANDBY sleep mode.

Referenced by _dac_set_config(), and dac_get_config_defaults().

bool dac_config::voltage_pump_disable

Voltage pump disable.

Referenced by _dac_set_config(), and dac_get_config_defaults().