at91_adc.h File Reference

Header for AT91 Adc driver. More...

Go to the source code of this file.



enum  TADCMode {
  ADC_OFF, FREE_RUNNING_T0, FREE_RUNNING_T1, FREE_RUNNING_T2,
  FREE_RUNNING_EXT, SINGLE_CONVERSION
}
enum  TADCChannel {
  ADC0 = 0, ADC1 = 1, ADC2 = 2, ADC3 = 3,
  ADC4 = 4, ADC5 = 5, ADC6 = 6, ADC7 = 7,
  ADC_MAX_CHANNEL = 8
}
void ADCInit (void)
 Initialize the adc to the configured default values and enable interrupt.
void ADCStartConversion (void)
 Start conversion.
void ADCSetPrescale (unsigned int prescale)
 Set the prescaler for the adc.
void ADCDisableChannel (TADCChannel channel)
 Disable a channel.
void ADCEnableChannel (TADCChannel channel)
 Enable a channel used to sample when conversion started.
void ADCSetMode (TADCMode mode)
 Sets the data aquisition mode for the adc.
int ADCBufRead (uint16_t channel, uint16_t *read)
 Reads data from the adc buffer.

Detailed Description

Header for AT91 Adc driver.

Definition in file at91_adc.h.


Enumeration Type Documentation

enum TADCMode
Enumerator:
ADC_OFF 
FREE_RUNNING_T0 
FREE_RUNNING_T1 
FREE_RUNNING_T2 
FREE_RUNNING_EXT 
SINGLE_CONVERSION 

Definition at line 76 of file at91_adc.h.

Enumerator:
ADC0 
ADC1 
ADC2 
ADC3 
ADC4 
ADC5 
ADC6 
ADC7 
ADC_MAX_CHANNEL 

Definition at line 92 of file at91_adc.h.


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/