pub enum CompareFunction {
OutsideRange(RangeInclusive<u16>),
LessThan(u16),
GreaterThan(u16),
InsideRange(RangeInclusive<u16>),
}Expand description
Type that specifies the function used for the compare featue of the ADC.
This determines the CVL & CVH values.
Variants§
OutsideRange(RangeInclusive<u16>)
The compare will succeed when the value is not in the specified range
LessThan(u16)
The compare will succeed when the value is lower than the specified value
GreaterThan(u16)
The compare will succeed when the value is higher than the specified value
InsideRange(RangeInclusive<u16>)
The compare will succeed when the value is in the specified range
Trait Implementations§
Source§impl Clone for CompareFunction
impl Clone for CompareFunction
Source§fn clone(&self) -> CompareFunction
fn clone(&self) -> CompareFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompareFunction
impl Debug for CompareFunction
Source§impl PartialEq for CompareFunction
impl PartialEq for CompareFunction
impl Eq for CompareFunction
impl StructuralPartialEq for CompareFunction
Auto Trait Implementations§
impl Freeze for CompareFunction
impl RefUnwindSafe for CompareFunction
impl Send for CompareFunction
impl Sync for CompareFunction
impl Unpin for CompareFunction
impl UnwindSafe for CompareFunction
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