Go to the source code of this file.
Defines | |
#define | AT91_ADC_INITIAL_MODE SINGLE_CONVERSION |
#define | AT91_ADC_INITIAL_PRESCALE 55 |
#define | AT91_ADC_BUF_SIZE 16 |
#define | _adc_buf_head AT91_ADC_BUF_SIZE |
#define | _adc_buf_tail AT91_ADC_BUF_SIZE+1 |
Functions | |
int | ADCBufRead (u_short channel, u_short *read) |
Reads data from the adc buffer. | |
void | ADCSetMode (TADCMode mode) |
Sets the data aquisition mode for the adc. | |
void | ADCEnableChannel (TADCChannel channel) |
Enable a channel used to sample when conversion started. | |
void | ADCDisableChannel (TADCChannel channel) |
Disable a channel. | |
void | ADCSetPrescale (u_int prescale) |
Set the prescaler for the adc. | |
void | ADCStartConversion (void) |
Start conversion. | |
void | ADCInit (void) |
Initialize the adc to the configured default values and enable interrupt. | |
Variables | |
u_short ** | ADC_Buffer = NULL |