#[repr(u8)]pub enum Mode {
Suspend = 0,
Normal = 1,
Single = 2,
Continuous = 3,
}Expand description
Operating mode of the sensor (Datasheet Sec 6.2).
Variants§
Suspend = 0
Suspend Mode (Default): Very low power (~22uA). I2C bus is active, registers can be read/written, but no measurements are taken.
Normal = 1
Normal Mode: Periodic measurements based on the configured ODR (Output Data Rate).
Single = 2
Single Mode: Takes one measurement, updates registers, then automatically transitions to Suspend Mode.
Continuous = 3
Continuous Mode: Continuous measurements at the maximum possible rate (up to 1.5kHz). Required for using the Self-Test function.
Trait Implementations§
impl Copy for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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