Crate lis3dh_async
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.
Structs
Sensor configuration options
Data status structure. Decoded from the
STATUS_REG
register.Information about what is stored in the FIFO
Configure which events on which axes trigger an interrupt.
LIS3DH
driver.Marker to indicate I2C is used to communicate with the Lis3dh
Marker to indicate SPI is used to communicate with the Lis3dh
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.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.