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: ModeThe operating mode, default Mode::HighResolution.
datarate: DataRateThe output data rate, default DataRate::Hz_400.
enable_x_axis: boolMeasure changes in the x axis, default true.
enable_y_axis: boolMeasure changes in the y axis, default true.
enable_z_axis: boolMeasure changes in the z axis, default true.
block_data_update: boolWhen is data updated
- when
true: only after data is read - when
false: continually
default true
enable_temperature: boolEnable temperature measurements. When set, it implies block_data_update = true.
default: false
Trait Implementations§
source§impl Clone for Configuration
impl Clone for Configuration
source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more