pub struct Cmp { /* private fields */ }Expand description
Low-power comparator. Registers require word writes; byte, halfword and word reads are supported. Input connections are instance-specific.
Implementations§
Source§impl Cmp
impl Cmp
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn csr(self) -> Reg<Csr, RW>
pub const fn csr(self) -> Reg<Csr, RW>
Comparator status. CFR/CFF/RRF are write-one-to-clear, COUT is read-only. DMA can clear edge flags.
Trait Implementations§
impl Copy for Cmp
impl Eq for Cmp
impl Send for Cmp
impl StructuralPartialEq for Cmp
impl Sync for Cmp
Auto Trait Implementations§
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