Atmel Software Framework

adc.c File Reference
#include <avr32/io.h>
#include "compiler.h"
#include "adc.h"

Functions

bool adc_check_eoc (volatile avr32_adc_t *adc, uint16_t channel)
 Check channel conversion status. More...
 
bool adc_check_ovr (volatile avr32_adc_t *adc, uint16_t channel)
 Check channel conversion overrun error. More...
 
void adc_configure (volatile avr32_adc_t *adc)
 Configure ADC. More...
 
void adc_disable (volatile avr32_adc_t *adc, uint16_t channel)
 Disable channel. More...
 
void adc_enable (volatile avr32_adc_t *adc, uint16_t channel)
 Enable channel. More...
 
uint32_t adc_get_latest_value (volatile avr32_adc_t *adc)
 Wait for the next converted data and return its value. More...
 
bool adc_get_status (volatile avr32_adc_t *adc, uint16_t channel)
 Get channel 0 to 7 status. More...
 
uint32_t adc_get_value (volatile avr32_adc_t *adc, uint16_t channel)
 Get channel value. More...
 
void adc_start (volatile avr32_adc_t *adc)
 Start analog to digital conversion. More...