Definition in file adc.c.
Go to the source code of this file.
Defines | |
#define | ADC_INITIAL_CHANNEL ADC0 |
#define | ADC_INITIAL_REF AVCC |
#define | ADC_INITIAL_MODE SINGLE_CONVERSION |
#define | ADC_INITIAL_PRESCALE ADC_PRESCALE_DIV64 |
#define | ADC_BUF_SIZE 16 |
#define | AVR_SLEEP_CTRL_REG MCUCR |
#define | _adc_buf_head ADC_BUF_SIZE |
#define | _adc_buf_tail ADC_BUF_SIZE+1 |
Functions | |
int | ADCBufRead (u_short *buf, u_short *read) |
int | ADCBufWrite (u_short *buf, u_short *write) |
void | ADCBufInit (u_short *buf) |
void | ADCInit (void) |
Initialize the adc to the configured default values and enable interrupt. | |
void | ADCSetRef (adc_ref_t reference) |
void | ADCSetMode (adc_mode_t mode) |
Sets the data aquisition mode for the adc. | |
u_char | ADCSetPrescale (u_char prescalar) |
void | ADCSetChannel (adc_channel_t adc_channel) |
void | ADCBufferFlush (void) |
void | ADCStartConversion (void) |
Start conversion. | |
void | ADCStartLowNoiseConversion (void) |
void | ADCStopConversion (void) |
u_char | ADCRead (u_short *value) |
adc_mode_t | ADCGetMode (void) |
Variables | |
u_char | adc_sleep_mode = SLEEP_MODE_ADC |
adc_mode_t | current_mode = ADC_OFF |
u_short * | ADC_buffer = NULL |