ATMEL: ADC Channel Selection

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

# ADC Channel Selection
[ADC Macros]

Select the ADC channel to be converted. More...

## Defines

#define | Clear_adc_mux() (ADMUX &= ~((1<<MUX3)|(1<<MUX2)|(1<<MUX1)|(1<<MUX0)) )
#define | Select_adc_channel(channel) (Clear_adc_mux(), ADMUX |= (channel) )

## Detailed Description

Select the ADC channel to be converted.

## Define Documentation

#define Clear_adc_mux | ( |  | ) | (ADMUX &= ~((1<<MUX3)|(1<<MUX2)|(1<<MUX1)|(1<<MUX0)) )

Definition at line 109 of file adc_drv.h.

#define Select_adc_channel | ( | channel |  | ) | (Clear_adc_mux(), ADMUX |= (channel) )

Definition at line 110 of file adc_drv.h.