Nut/OS  4.10.3
API Reference
at91_adc.h File Reference

Header for AT91 Adc driver. More...

This graph shows which files directly or indirectly include this file:

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 (uint32_t 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.


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 76 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 92 of file at91_adc.h.