Type Alias PRESC_R

Source
pub type PRESC_R = FieldReader<PRESC>;
Expand description

Field PRESC reader - ADC prescaler Set and cleared by software to select the frequency of the clock to the ADC. Other: Reserved Note: Software is allowed to write these bits only when the ADC is disabled (ADCAL=0, ADSTART=0, ADSTP=0, ADDIS=0 and ADEN=0).

Aliased Type§

struct PRESC_R { /* private fields */ }

Implementations§

Source§

impl PRESC_R

Source

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

Get enumerated values variant

Source

pub fn is_div1(&self) -> bool

Input ADC clock not divided

Source

pub fn is_div2(&self) -> bool

Input ADC clock divided by 2

Source

pub fn is_div4(&self) -> bool

Input ADC clock divided by 4

Source

pub fn is_div6(&self) -> bool

Input ADC clock divided by 6

Source

pub fn is_div8(&self) -> bool

Input ADC clock divided by 8

Source

pub fn is_div10(&self) -> bool

Input ADC clock divided by 10

Source

pub fn is_div12(&self) -> bool

Input ADC clock divided by 12

Source

pub fn is_div16(&self) -> bool

Input ADC clock divided by 16

Source

pub fn is_div32(&self) -> bool

Input ADC clock divided by 32

Source

pub fn is_div64(&self) -> bool

Input ADC clock divided by 64

Source

pub fn is_div128(&self) -> bool

Input ADC clock divided by 128

Source

pub fn is_div256(&self) -> bool

Input ADC clock divided by 256