pub enum ComparatorLatch {
NonLatching,
Latching,
}Expand description
Whether the comparator latches (Config bit 2).
Variants§
NonLatching
Non-latching: the pin clears once readings return within the thresholds (the default).
Latching
Latching: the pin stays asserted until the conversion data is read.
Trait Implementations§
Source§impl Clone for ComparatorLatch
impl Clone for ComparatorLatch
Source§fn clone(&self) -> ComparatorLatch
fn clone(&self) -> ComparatorLatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ComparatorLatch
Source§impl Debug for ComparatorLatch
impl Debug for ComparatorLatch
impl Eq for ComparatorLatch
Source§impl PartialEq for ComparatorLatch
impl PartialEq for ComparatorLatch
Source§fn eq(&self, other: &ComparatorLatch) -> bool
fn eq(&self, other: &ComparatorLatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComparatorLatch
Auto Trait Implementations§
impl Freeze for ComparatorLatch
impl RefUnwindSafe for ComparatorLatch
impl Send for ComparatorLatch
impl Sync for ComparatorLatch
impl Unpin for ComparatorLatch
impl UnsafeUnpin for ComparatorLatch
impl UnwindSafe for ComparatorLatch
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