Trait lis2dh12::Accelerometer [−][src]
pub trait Accelerometer {
type Error: Debug;
fn accel_norm(&mut self) -> Result<F32x3, Error<Self::Error>>;
fn sample_rate(&mut self) -> Result<f32, Error<Self::Error>>;
}
Expand description
Accelerometer trait which provides g-normalized readings.
Associated Types
Required methods
Get normalized ±g reading from the accelerometer.
Ex. {0.0, 5.2, 0.0} - 5.2 g of acceleration in the y-axis