Struct Csr
#[repr(transparent)]pub struct Csr(pub u32);Expand description
Comparator control and status register.
Tuple Fields§
§0: u32Implementations§
§impl Csr
impl Csr
pub fn set_inmsel(&mut self, val: Inm)
pub fn set_inmsel(&mut self, val: Inm)
Comparator signal selector for inverting input INM.
pub fn set_inpsel(&mut self, val: u8)
pub fn set_inpsel(&mut self, val: u8)
Comparator signal selector for non-inverting input INP.
pub const fn winmode(&self) -> WindowMode
pub const fn winmode(&self) -> WindowMode
Comparator non-inverting input selector for window mode.
pub fn set_winmode(&mut self, val: WindowMode)
pub fn set_winmode(&mut self, val: WindowMode)
Comparator non-inverting input selector for window mode.
pub fn set_winout(&mut self, val: WindowOut)
pub fn set_winout(&mut self, val: WindowOut)
Comparator output selector.
pub fn set_polarity(&mut self, val: Polarity)
pub fn set_polarity(&mut self, val: Polarity)
Comparator polarity selector.
pub const fn hyst(&self) -> Hysteresis
pub const fn hyst(&self) -> Hysteresis
Comparator hysteresis selector.
pub fn set_hyst(&mut self, val: Hysteresis)
pub fn set_hyst(&mut self, val: Hysteresis)
Comparator hysteresis selector.
pub fn set_pwrmode(&mut self, val: PowerMode)
pub fn set_pwrmode(&mut self, val: PowerMode)
Comparator power mode selector.
pub fn set_blanksel(&mut self, val: Blanking)
pub fn set_blanksel(&mut self, val: Blanking)
Comparator blanking source selector.
Trait Implementations§
impl Copy for Csr
impl Eq for Csr
impl StructuralPartialEq for Csr
Auto Trait Implementations§
impl Freeze for Csr
impl RefUnwindSafe for Csr
impl Send for Csr
impl Sync for Csr
impl Unpin for Csr
impl UnwindSafe for Csr
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