Struct lis3dh_async::Configuration
source · pub struct Configuration {
pub mode: Mode,
pub datarate: DataRate,
pub enable_x_axis: bool,
pub enable_y_axis: bool,
pub enable_z_axis: bool,
pub block_data_update: bool,
pub enable_temperature: bool,
}
Expand description
Sensor configuration options
Fields
mode: Mode
The operating mode, default Mode::HighResolution
.
datarate: DataRate
The output data rate, default DataRate::Hz_400
.
enable_x_axis: bool
Measure changes in the x axis, default true
.
enable_y_axis: bool
Measure changes in the y axis, default true
.
enable_z_axis: bool
Measure changes in the z axis, default true
.
block_data_update: bool
When is data updated
- when
true
: only after data is read - when
false
: continually
default true
enable_temperature: bool
Enable temperature measurements. When set, it implies block_data_update = true
.
default: false
Trait Implementations
sourceimpl Clone for Configuration
impl Clone for Configuration
sourcefn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Configuration
impl Debug for Configuration
sourceimpl Default for Configuration
impl Default for Configuration
impl Copy for Configuration
Auto Trait Implementations
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more