Type Alias avr_device::attiny85::adc::admux::REFS_W

source ·
pub type REFS_W<'a, const O: u8> = FieldWriterSafe<'a, u8, ADMUX_SPEC, u8, REFS_A, 2, O>;
Expand description

Field REFS writer - Reference Selection Bits

Aliased Type§

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

Implementations§

source§

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

source

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

Vcc used as Voltage Reference, disconnected from Aref

source

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

External Voltage Reference at AREF pin, Internal Voltage Reference turned off

source

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

Internal Voltage Reference (1.1V when REFS2 is cleared, 2.56V when REFS2 is set) without external bypass

source

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

Internal 2.56V Voltage Reference with external bypass capacitor at AREF pin (REFS2 must be set)