Defines

# ADC Channel Selection
[ADC Macros]

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

## Defines
#define | MUX4_0_MSK ((1<<MUX4)|(1<<MUX3)|(1<<MUX2)|(1<<MUX1)|(1<<MUX0))
#define | Clear_adc_mux() ADMUX &= ~(MUX4_0_MSK),(ADCSRB &= ~(1<<MUX5))
#define | Select_adc_channel(channel) (Clear_adc_mux(), ADCSRB |= (channel>>5)<<MUX5, ADMUX |= (channel&MUX4_0_MSK))

## Detailed Description

Select the ADC channel to be converted.

## Define Documentation

#define MUX4_0_MSK ((1<<MUX4)|(1<<MUX3)|(1<<MUX2)|(1<<MUX1)|(1<<MUX0))

Definition at line 119 of file adc_drv.h.

#define Clear_adc_mux | ( | ) | ADMUX &= ~(MUX4_0_MSK),(ADCSRB &= ~(1<<MUX5))

Definition at line 120 of file adc_drv.h.

Referenced by ADC_Init(), and ADC_ISR().

#define Select_adc_channel | ( |  | channel ) | (Clear_adc_mux(), ADCSRB |= (channel>>5)<<MUX5, ADMUX |= (channel&MUX4_0_MSK))

Definition at line 121 of file adc_drv.h.

Referenced by ADC_Init(), and ADC_ISR().