pub struct MovementIntConfig {
pub mode: MovementIntMode,
pub enable: MovementInterrupts,
pub threshold: u8,
pub duration: u8,
pub latch: bool,
pub only_4d: bool,
pub high_pass_filter: bool,
}Expand description
Movement interrupt configuration
Fields§
§mode: MovementIntModeMovement interrupt mode
enable: MovementInterruptsInterrupts to enable
threshold: u8Interrupt threshold
duration: u8Minimum duration of the interrupt event for it to be recognized
latch: boolLatch interrupt request Cleared by reading movement interrupt source
only_4d: boolEnable 4D-detection: Disables the Z-axis
high_pass_filter: boolEnable high-pass filter
Trait Implementations§
Source§impl Clone for MovementIntConfig
impl Clone for MovementIntConfig
Source§fn clone(&self) -> MovementIntConfig
fn clone(&self) -> MovementIntConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MovementIntConfig
Auto Trait Implementations§
impl Freeze for MovementIntConfig
impl RefUnwindSafe for MovementIntConfig
impl Send for MovementIntConfig
impl Sync for MovementIntConfig
impl Unpin for MovementIntConfig
impl UnwindSafe for MovementIntConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)