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) |
Variables | |
u_char | adc_sleep_mode = SLEEP_MODE_ADC |
adc_mode_t | current_mode = ADC_OFF |
u_short * | ADC_buffer = NULL |