[−][src]Trait adxl355::Accelerometer
Accelerometer trait which provides g-normalized readings.
Associated Types
Loading content...Required methods
fn accel_norm(&mut self) -> Result<F32x3, Error<Self::Error>>
Get normalized ±g reading from the accelerometer.
Ex. {0.0, 5.2, 0.0} - 5.2 g of acceleration in the y-axis
fn sample_rate(&mut self) -> Result<f32, Error<Self::Error>>
Get sample rate of accelerometer data.
Ex. 125.0 - sample rate of 125hz
Implementors
impl<SPI, CS, E, PinError> Accelerometer for Adxl355<SPI, CS> where
SPI: Transfer<u8, Error = E> + Write<u8, Error = E>,
CS: OutputPin<Error = PinError>,
E: Debug,
[src]
SPI: Transfer<u8, Error = E> + Write<u8, Error = E>,
CS: OutputPin<Error = PinError>,
E: Debug,