| BLDC control on ATAVRMC303 with ATxMega128A1

Macros
ADC Vref Configuration
ADC Module » ADC Macros

Configure the Vref. More...

Collaboration diagram for ADC Vref Configuration:

## Macros
#define | Enable_external_vref() (ADCB.REFCTRL = ADC_REFSEL_EXT_gc)
#define | Enable_internal_vref() (ADCB.REFCTRL = ADC_REFSEL_INT1V_gc)
#define | Enable_internal_vref_decoupled() (ADCB.REFCTRL = ADC_REFSEL_INT1VDECOUPLED_gc)
#define | Enable_vcc_vref() (ADCB.REFCTRL = ADC_REFSEL_INTVCC_gc)
#define | Enable_vcc_vref_decoupled() (ADCB.REFCTRL = ADC_REFSEL_INTVCCDECOUPLED_gc)

## Detailed Description

Configure the Vref.

## Macro Definition Documentation

## ◆ Enable_external_vref

#define Enable_external_vref | ( |  | ) | (ADCB.REFCTRL = ADC_REFSEL_EXT_gc)

Definition at line 60 of file adc_drv.h.

## ◆ Enable_internal_vref

#define Enable_internal_vref | ( |  | ) | (ADCB.REFCTRL = ADC_REFSEL_INT1V_gc)

Definition at line 56 of file adc_drv.h.

## ◆ Enable_internal_vref_decoupled

#define Enable_internal_vref_decoupled | ( |  | ) | (ADCB.REFCTRL = ADC_REFSEL_INT1VDECOUPLED_gc)

Definition at line 57 of file adc_drv.h.

## ◆ Enable_vcc_vref

#define Enable_vcc_vref | ( |  | ) | (ADCB.REFCTRL = ADC_REFSEL_INTVCC_gc)

Definition at line 58 of file adc_drv.h.

Referenced by init_adc().

## ◆ Enable_vcc_vref_decoupled

#define Enable_vcc_vref_decoupled | ( |  | ) | (ADCB.REFCTRL = ADC_REFSEL_INTVCCDECOUPLED_gc)

Definition at line 59 of file adc_drv.h.