Struct Csr2
#[repr(transparent)]pub struct Csr2(pub u32);Expand description
COMP2 control and status register.
Tuple Fields§
§0: u32Implementations§
§impl Csr2
impl Csr2
pub const fn innsel(&self) -> Comp2Innsel
pub const fn innsel(&self) -> Comp2Innsel
COMP2 input minus selection.
pub const fn set_innsel(&mut self, val: Comp2Innsel)
pub const fn set_innsel(&mut self, val: Comp2Innsel)
COMP2 input minus selection.
pub const fn inpsel(&self) -> Comp2Inpsel
pub const fn inpsel(&self) -> Comp2Inpsel
COMP2 input plus selection.
pub const fn set_inpsel(&mut self, val: Comp2Inpsel)
pub const fn set_inpsel(&mut self, val: Comp2Inpsel)
COMP2 input plus selection.
pub const fn set_lptimin2(&mut self, val: bool)
pub const fn set_lptimin2(&mut self, val: bool)
COMP2 LPTIM1 input 2 propagation bit.
pub const fn set_lptimin1(&mut self, val: bool)
pub const fn set_lptimin1(&mut self, val: bool)
COMP2 LPTIM1 input 1 propagation bit.
pub const fn set_polarity(&mut self, val: Polarity)
pub const fn set_polarity(&mut self, val: Polarity)
COMP2 output polarity selection bit.
Trait Implementations§
impl Copy for Csr2
impl Eq for Csr2
impl StructuralPartialEq for Csr2
Auto Trait Implementations§
impl Freeze for Csr2
impl RefUnwindSafe for Csr2
impl Send for Csr2
impl Sync for Csr2
impl Unpin for Csr2
impl UnsafeUnpin for Csr2
impl UnwindSafe for Csr2
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