pub enum AltConfigSwitchSource {
None = 0,
NoMotion = 1,
AnyMotion = 2,
Flat = 3,
Orientation = 4,
StepDetector = 5,
StepCounter = 6,
SignificantMotion = 7,
Tilt = 8,
Tap = 9,
}Expand description
Supported feature-engine sources that can switch between user and alternate sensor configurations.
The BMI323 datasheet describes these as switch sources A..I. This API
names them by their corresponding feature interrupts instead.
Variants§
None = 0
Disable automatic switching for this direction.
NoMotion = 1
Source A: no-motion.
AnyMotion = 2
Source B: any-motion.
Flat = 3
Source C: flat.
Orientation = 4
Source D: orientation.
StepDetector = 5
Source E: step detector.
StepCounter = 6
Source F: step-counter watermark.
SignificantMotion = 7
Source G: significant motion.
Tilt = 8
Source H: tilt.
Tap = 9
Source I: tap.
Trait Implementations§
Source§impl Clone for AltConfigSwitchSource
impl Clone for AltConfigSwitchSource
Source§fn clone(&self) -> AltConfigSwitchSource
fn clone(&self) -> AltConfigSwitchSource
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 AltConfigSwitchSource
impl Debug for AltConfigSwitchSource
Source§impl Format for AltConfigSwitchSource
impl Format for AltConfigSwitchSource
Source§impl PartialEq for AltConfigSwitchSource
impl PartialEq for AltConfigSwitchSource
impl Copy for AltConfigSwitchSource
impl Eq for AltConfigSwitchSource
impl StructuralPartialEq for AltConfigSwitchSource
Auto Trait Implementations§
impl Freeze for AltConfigSwitchSource
impl RefUnwindSafe for AltConfigSwitchSource
impl Send for AltConfigSwitchSource
impl Sync for AltConfigSwitchSource
impl Unpin for AltConfigSwitchSource
impl UnsafeUnpin for AltConfigSwitchSource
impl UnwindSafe for AltConfigSwitchSource
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