at91_adc.h File Reference

Go to the source code of this file.
enum  adc_mode_type {
  ADC_OFF, FREE_RUNNING, SINGLE_CONVERSION, ADC_OFF,
  FREE_RUNNING_T0, FREE_RUNNING_T1, FREE_RUNNING_T2, FREE_RUNNING_EXT,
  SINGLE_CONVERSION
}
enum  adc_channel_type {
  ADC0 = 0, ADC1 = 1, ADC2 = 2, ADC3 = 3,
  ADC4 = 4, ADC5 = 5, ADC6 = 6, ADC7 = 7,
  ADC0 = 0, ADC1 = 1, ADC2 = 2, ADC3 = 3,
  ADC4 = 4, ADC5 = 5, ADC6 = 6, ADC7 = 7,
  ADC_MAX_CHANNEL = 8
}
typedef enum adc_mode_type TADCMode
typedef enum adc_channel_type TADCChannel
void ADCInit (void)
 Initialize the adc to the configured default values and enable interrupt.
void ADCStartConversion (void)
 Start conversion.
void ADCSetPrescale (u_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 (u_short channel, u_short *read)
 Reads data from the adc buffer.


Typedef Documentation

typedef enum adc_mode_type TADCMode


Enumeration Type Documentation

Enumerator:
ADC_OFF 
FREE_RUNNING 
SINGLE_CONVERSION 
ADC_OFF 
FREE_RUNNING_T0 
FREE_RUNNING_T1 
FREE_RUNNING_T2 
FREE_RUNNING_EXT 
SINGLE_CONVERSION 

Definition at line 69 of file at91_adc.h.

Enumerator:
ADC0 
ADC1 
ADC2 
ADC3 
ADC4 
ADC5 
ADC6 
ADC7 
ADC0 
ADC1 
ADC2 
ADC3 
ADC4 
ADC5 
ADC6 
ADC7 
ADC_MAX_CHANNEL 

Definition at line 85 of file at91_adc.h.


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