| BLDC control on ATAVRMC303 with ATxMega128A1

Macros
ADC Channel Selection
ADC Module » ADC Macros

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

Collaboration diagram for ADC Channel Selection:

## Macros
#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.

## Macro Definition Documentation

## ◆ Clear_adc_mux

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

Definition at line 84 of file adc_drv.h.

## ◆ Select_adc_channel

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

Definition at line 85 of file adc_drv.h.