pub enum OperatingMode {
Normal,
LowPower,
}Expand description
Sensor operating mode.
The LIS2DE12 is an 8-bit-only device: the LPen bit in CTRL_REG1 must always be set to ‘1’
per the datasheet (“must be set to ‘1’ for the correct operation of the device”). There is no
10-bit normal mode. Both variants behave identically; Normal is kept only for API
compatibility and is deprecated.
Variants§
Normal
👎Deprecated:
LIS2DE12 is always 8-bit; LPen must always be 1. Use LowPower instead.
Deprecated — LIS2DE12 does not support 10-bit mode. Use LowPower instead.
LowPower
8-bit low-power mode (the only valid mode for LIS2DE12).
Trait Implementations§
Source§impl Clone for OperatingMode
impl Clone for OperatingMode
Source§fn clone(&self) -> OperatingMode
fn clone(&self) -> OperatingMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OperatingMode
impl Debug for OperatingMode
Source§impl PartialEq for OperatingMode
impl PartialEq for OperatingMode
Source§fn eq(&self, other: &OperatingMode) -> bool
fn eq(&self, other: &OperatingMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OperatingMode
impl Eq for OperatingMode
impl StructuralPartialEq for OperatingMode
Auto Trait Implementations§
impl Freeze for OperatingMode
impl RefUnwindSafe for OperatingMode
impl Send for OperatingMode
impl Sync for OperatingMode
impl Unpin for OperatingMode
impl UnsafeUnpin for OperatingMode
impl UnwindSafe for OperatingMode
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