| BLDC control on ATAVRMC303 with ATxMega128A1

Macros
ADC Alignement Configuration
ADC Module » ADC Macros

Configure the Result alignement. More...

Collaboration diagram for ADC Alignement Configuration:

## Macros
#define | Left_adjust_adc_result() (ADCB.CTRLA |= ADC_RESOLUTION_LEFT12BIT_gc)
#define | Right_adjust_adc_result() (ADCB.CTRLA = ((ADCB.CTRLA & ~ ADC_RESOLUTION_LEFT12BIT_gc) | ADC_RESOLUTION_12BIT_gc))

## Detailed Description

Configure the Result alignement.

## Macro Definition Documentation

## ◆ Left_adjust_adc_result

#define Left_adjust_adc_result | ( |  | ) | (ADCB.CTRLA |= ADC_RESOLUTION_LEFT12BIT_gc)

Definition at line 42 of file adc_drv.h.

Referenced by init_adc().

## ◆ Right_adjust_adc_result

#define Right_adjust_adc_result | ( |  | ) | (ADCB.CTRLA = ((ADCB.CTRLA & ~ ADC_RESOLUTION_LEFT12BIT_gc) | ADC_RESOLUTION_12BIT_gc))

Definition at line 41 of file adc_drv.h.