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§
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 moresource§impl Debug for Configuration
impl Debug for Configuration
source§impl Default for Configuration
impl Default for Configuration
impl Copy 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 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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)