Type Alias avr_device::attiny85::adc::admux::MUX_W

source ·
pub type MUX_W<'a, const O: u8> = FieldWriter<'a, u8, ADMUX_SPEC, u8, MUX_A, 4, O>;
Expand description

Field MUX writer - Analog Channel and Gain Selection Bits

Aliased Type§

struct MUX_W<'a, const O: u8> { /* private fields */ }

Implementations§

source§

impl<'a, const O: u8> MUX_W<'a, O>

source

pub fn adc0(self) -> &'a mut W

Single-ended Input ADC0

source

pub fn adc1(self) -> &'a mut W

Single-ended Input ADC1

source

pub fn adc2(self) -> &'a mut W

Single-ended Input ADC2

source

pub fn adc3(self) -> &'a mut W

Single-ended Input ADC3

source

pub fn adc2_adc2_1x(self) -> &'a mut W

Differential Inputs Positive ADC2 Negative ADC2 1x Gain

source

pub fn adc2_adc2_20x(self) -> &'a mut W

Differential Inputs Positive ADC2 Negative ADC2 20x Gain

source

pub fn adc2_adc3_1x(self) -> &'a mut W

Differential Inputs Positive ADC2 Negative ADC3 1x Gain

source

pub fn adc2_adc3_20x(self) -> &'a mut W

Differential Inputs Positive ADC2 Negative ADC3 20x Gain

source

pub fn adc0_adc0_1x(self) -> &'a mut W

Differential Inputs Positive ADC0 Negative ADC0 1x Gain

source

pub fn adc0_adc0_20x(self) -> &'a mut W

Differential Inputs Positive ADC0 Negative ADC0 20x Gain

source

pub fn adc0_adc1_1x(self) -> &'a mut W

Differential Inputs Positive ADC0 Negative ADC1 1x Gain

source

pub fn adc0_adc1_20x(self) -> &'a mut W

Differential Inputs Positive ADC0 Negative ADC1 20x Gain

source

pub fn adc_vbg(self) -> &'a mut W

Internal Reference (VBG)

source

pub fn adc_gnd(self) -> &'a mut W

0V (GND)

source

pub fn tempsens(self) -> &'a mut W

Temperature sensor