6.6.4.1.2 Function dac_get_config_defaults()

Initializes a DAC configuration structure to defaults.

void dac_get_config_defaults( struct dac_config *const config)

Initializes a given DAC configuration structure to a set of known default values. This function should be called on any new instance of the configuration structures before being modified by the user application.

The default configuration is as follows:
  • 1V from internal bandgap reference

  • Drive the DAC output to the VOUT pin

  • Right adjust data

  • GCLK generator 0 (GCLK main) clock source

  • The output buffer is disabled when the chip enters STANDBY sleep mode

Table 6-6. Parameters
Data directionParameter nameDescription

[out]

config

Configuration structure to initialize to default values