#[repr(transparent)]pub struct Comp(pub u32);Expand description
Analog Comparator control register [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Deep Power Down Reset, Software Reset]
Tuple Fields§
§0: u32Implementations§
Source§impl Comp
impl Comp
Sourcepub const fn vrefinput(&self) -> Vrefinput
pub const fn vrefinput(&self) -> Vrefinput
Dedicated control bit to select between internal VREF and VDDA (for the resistive ladder).
Sourcepub const fn set_vrefinput(&mut self, val: Vrefinput)
pub const fn set_vrefinput(&mut self, val: Vrefinput)
Dedicated control bit to select between internal VREF and VDDA (for the resistive ladder).
Sourcepub const fn set_lowpower(&mut self, val: Lowpower)
pub const fn set_lowpower(&mut self, val: Lowpower)
Low power mode.
Sourcepub const fn set_vref(&mut self, val: u8)
pub const fn set_vref(&mut self, val: u8)
Control reference voltage step, per steps of (VREFINPUT/31).
Sourcepub const fn filtercgf_samplemode(&self) -> FiltercgfSamplemode
pub const fn filtercgf_samplemode(&self) -> FiltercgfSamplemode
Control the filtering of the Analog Comparator output.
Sourcepub const fn set_filtercgf_samplemode(&mut self, val: FiltercgfSamplemode)
pub const fn set_filtercgf_samplemode(&mut self, val: FiltercgfSamplemode)
Control the filtering of the Analog Comparator output.
Sourcepub const fn filtercgf_clkdiv(&self) -> FiltercgfClkdiv
pub const fn filtercgf_clkdiv(&self) -> FiltercgfClkdiv
Filter Clock divider.
Sourcepub const fn set_filtercgf_clkdiv(&mut self, val: FiltercgfClkdiv)
pub const fn set_filtercgf_clkdiv(&mut self, val: FiltercgfClkdiv)
Filter Clock divider.
Trait Implementations§
impl Copy for Comp
impl Eq for Comp
impl StructuralPartialEq for Comp
Auto Trait Implementations§
impl Freeze for Comp
impl RefUnwindSafe for Comp
impl Send for Comp
impl Sync for Comp
impl Unpin for Comp
impl UnwindSafe for Comp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more