sam4l

Module adc

Source
Expand description

Implementation of the SAM4L ADCIFE.

This is an implementation of the SAM4L analog to digital converter. It is bare-bones because it provides little flexibility on how samples are taken. Currently, all samples:

  • are 12 bits
  • use the ground pad as the negative reference
  • use a VCC/2 positive reference
  • use a gain of 0.5x
  • are left justified

Samples can either be collected individually or continuously at a specified frequency.

Structs§

  • ADC driver code for the SAM4L.
  • Representation of an ADC channel on the SAM4L.
  • Memory mapped registers for the ADC.

Enums§