2.6.4.1.2 Function adc_get_config_defaults()

Initializes an ADC configuration structure to defaults.

void adc_get_config_defaults( struct adc_config *const config)

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

The default configuration is as follows:
  • GCLK generator 0 (GCLK main) clock source

  • Internal bandgap reference

  • Div 2 clock prescaler

  • 12-bit resolution

  • Window monitor disabled

  • Positive input on ADC PIN 1

  • Negative input on Internal ground

  • Averaging disabled

  • Oversampling disabled

  • Right adjust data

  • Single-ended mode

  • Free running disabled

  • All events (input and generation) disabled

  • ADC run in standby disabled

  • ADC On demand disabled

  • No sampling time compensation

  • Disable the positive input sequense

  • No reference compensation

  • No gain/offset correction

  • No added sampling time

Table 2-9. Parameters
Data directionParameter nameDescription

[out]

config

Pointer to configuration struct to initialize to default values