pub struct CmpRunning<POS, INV, LOCKED = Unlocked> { /* private fields */ }Expand description
The comparator, running.
Once LOCKED is Locked the control register is frozen for good: the
peripheral cannot be stopped and the pins cannot be taken back.
Implementations§
Source§impl<POS, INV> CmpRunning<POS, INV, Unlocked>
impl<POS, INV> CmpRunning<POS, INV, Unlocked>
Sourcepub fn disable(self) -> Cmp<POS, INV>
pub fn disable(self) -> Cmp<POS, INV>
Stops the comparator, handing back the configured but idle peripheral.
Sourcepub fn lock(self) -> CmpRunning<POS, INV, Locked>
pub fn lock(self) -> CmpRunning<POS, INV, Locked>
Freezes the control register until the next system reset.
Nothing clears CMPxLK, so the comparator keeps running for good and the
pins stay with it: the locked type has neither disable nor a way out.
Auto Trait Implementations§
impl<POS, INV, LOCKED = Unlocked> !Sync for CmpRunning<POS, INV, LOCKED>
impl<POS, INV, LOCKED> Freeze for CmpRunning<POS, INV, LOCKED>
impl<POS, INV, LOCKED> RefUnwindSafe for CmpRunning<POS, INV, LOCKED>
impl<POS, INV, LOCKED> Send for CmpRunning<POS, INV, LOCKED>
impl<POS, INV, LOCKED> Unpin for CmpRunning<POS, INV, LOCKED>
impl<POS, INV, LOCKED> UnsafeUnpin for CmpRunning<POS, INV, LOCKED>
impl<POS, INV, LOCKED> UnwindSafe for CmpRunning<POS, INV, LOCKED>
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