atsamd21g::adc::avgctrl

Type Alias SamplenumR

Source
pub type SamplenumR = FieldReader<Samplenumselect>;
Expand description

Field SAMPLENUM reader - Number of Samples to be Collected

Aliased Type§

struct SamplenumR { /* private fields */ }

Implementations§

Source§

impl SamplenumR

Source

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

Get enumerated values variant

Source

pub fn is_1(&self) -> bool

1 sample

Source

pub fn is_2(&self) -> bool

2 samples

Source

pub fn is_4(&self) -> bool

4 samples

Source

pub fn is_8(&self) -> bool

8 samples

Source

pub fn is_16(&self) -> bool

16 samples

Source

pub fn is_32(&self) -> bool

32 samples

Source

pub fn is_64(&self) -> bool

64 samples

Source

pub fn is_128(&self) -> bool

128 samples

Source

pub fn is_256(&self) -> bool

256 samples

Source

pub fn is_512(&self) -> bool

512 samples

Source

pub fn is_1024(&self) -> bool

1024 samples