atsamd21g::adc::refctrl

Type Alias RefselR

Source
pub type RefselR = FieldReader<Refselselect>;
Expand description

Field REFSEL reader - Reference Selection

Aliased Type§

struct RefselR { /* private fields */ }

Implementations§

Source§

impl RefselR

Source

pub const fn variant(&self) -> Option<Refselselect>

Get enumerated values variant

Source

pub fn is_int1v(&self) -> bool

1.0V voltage reference

Source

pub fn is_intvcc0(&self) -> bool

1/1.48 VDDANA

Source

pub fn is_intvcc1(&self) -> bool

1/2 VDDANA (only for VDDANA > 2.0V)

Source

pub fn is_arefa(&self) -> bool

External reference

Source

pub fn is_arefb(&self) -> bool

External reference