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§
pub use accelerometer;
Structs§
- Configuration
- Sensor configuration options
- Data
Status - Data status structure. Decoded from the
STATUS_REG
register. - Duration
- Fifo
Status - Information about what is stored in the FIFO
- Interrupt1
- Interrupt2
- Interrupt
Config - Configure which events on which axes trigger an interrupt.
- Interrupt
Source - IrqPin1
Config - IrqPin2
Config - Lis3dh
LIS3DH
driver.- Lis3dh
I2C - Marker to indicate I2C is used to communicate with the Lis3dh
- Lis3dhSPI
- Marker to indicate SPI is used to communicate with the Lis3dh
- Threshold
Enums§
- Click
Count - Data
Rate - Output data rate.
- Detect4D
- 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
orPosition
. - Error
- Accelerometer errors, generic around another error type
E
representing an (optional) cause of this error. - Fifo
Mode - FIFO behavior. See the spec for full details.
- Interrupt
Mode - When to generate an interrupt.
- Latch
Interrupt Request - Latch (keep active) the interrupt until the
get_irq_src
is read. - Mode
- Operating mode.
- Range
- Full-scale selection.
- Register
- Enumerate all device registers.
- Slave
Addr - Possible I²C slave addresses.