atsamd11c::adc::inputctrl

Type Alias GainR

Source
pub type GainR = FieldReader<Gainselect>;
Expand description

Field GAIN reader - Gain Factor Selection

Aliased Type§

struct GainR { /* private fields */ }

Implementations§

Source§

impl GainR

Source

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

Get enumerated values variant

Source

pub fn is_1x(&self) -> bool

1x

Source

pub fn is_2x(&self) -> bool

2x

Source

pub fn is_4x(&self) -> bool

4x

Source

pub fn is_8x(&self) -> bool

8x

Source

pub fn is_16x(&self) -> bool

16x

Source

pub fn is_div2(&self) -> bool

1/2x