pub struct Configuration {
pub mode: Mode,
pub datarate: DataRate,
pub range: Range,
pub enable_new_acceleration_interrupt: bool,
pub motion_detection: Option<MotionDetctionConfiguration>,
}Expand description
Sensor configuration options
Fields§
§mode: ModeThe operating mode, default Mode::HighResolution.
datarate: DataRateThe output data rate, default DataRate::Hz_6_25.
range: RangeThe output acceleration range , default Range::G2.
enable_new_acceleration_interrupt: boolThe reporting of the availability of new acceleration data as an interrupt , default false
motion_detection: Option<MotionDetctionConfiguration>The Wake-Up (motion detect) function, default None
Trait Implementations§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
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 moreimpl Copy for Configuration
Source§impl Debug for Configuration
impl Debug for Configuration
Auto Trait Implementations§
impl Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnsafeUnpin for Configuration
impl UnwindSafe for Configuration
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