Crate lis3dh[][src]

Expand description

Platform-agnostic LIS3DH accelerometer driver which uses I²C via embedded-hal. This driver implements the Accelerometer and RawAccelerometer traits from the accelerometer crate.


pub use accelerometer;


Sensor configuration options

Data status structure. Decoded from the STATUS_REG register.

LIS3DH driver.

Marker to indicate I2C is used to communicate with the Lis3dh

Marker to indicate SPI is used to communicate with the Lis3dh


Output data rate.

Accelerometer errors, generic around another error type E representing an (optional) cause of this error.

Operating mode.

Full-scale selection.

Possible I²C slave addresses.