Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

adc.c File Reference


Detailed Description

AVR adc driver.


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_shortADC_buffer = NULL


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