Crate lis3dh

source ·
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.

Re-exports§

Structs§

Enums§

  • Output data rate.
  • 4D detection is a subset of the 6D detection where detection on the Z axis is disabled. This setting only has effect when the interrupt mode is either Movement or Position.
  • Accelerometer errors, generic around another error type E representing an (optional) cause of this error.
  • FIFO behavior. See the spec for full details.
  • When to generate an interrupt.
  • Latch (keep active) the interrupt until the get_irq_src is read.
  • Operating mode.
  • Full-scale selection.
  • Enumerate all device registers.
  • Possible I²C slave addresses.

Traits§