#[repr(u8)]pub enum InterruptOn {
LevelLow,
LevelHigh,
OutOfWindow,
OutOfWindowOrNoTarget,
InWindow,
NewSampleReady,
Unknown(u8),
}Expand description
Interrupt configuration options for the VL53L4CD sensor.
Variants§
LevelLow
Interrupt triggered on level low detection
LevelHigh
Interrupt triggered on level high detection
OutOfWindow
Interrupt triggered when distance is out of threshold window
OutOfWindowOrNoTarget
Interrupt triggered when distance is out of threshold window or no target detected
InWindow
Interrupt triggered when distance is within threshold window
NewSampleReady
Interrupt triggered when new ranging data is available
Unknown(u8)
Custom interrupt configuration value
Trait Implementations§
Source§impl Clone for InterruptOn
impl Clone for InterruptOn
Source§fn clone(&self) -> InterruptOn
fn clone(&self) -> InterruptOn
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 InterruptOn
impl Debug for InterruptOn
Source§impl From<InterruptOn> for u8
impl From<InterruptOn> for u8
Source§fn from(interrupt_on: InterruptOn) -> Self
fn from(interrupt_on: InterruptOn) -> Self
Converts to this type from the input type.
Source§impl From<u8> for InterruptOn
impl From<u8> for InterruptOn
Source§impl PartialEq for InterruptOn
impl PartialEq for InterruptOn
impl Copy for InterruptOn
impl Eq for InterruptOn
impl StructuralPartialEq for InterruptOn
Auto Trait Implementations§
impl Freeze for InterruptOn
impl RefUnwindSafe for InterruptOn
impl Send for InterruptOn
impl Sync for InterruptOn
impl Unpin for InterruptOn
impl UnwindSafe for InterruptOn
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