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§

pub use accelerometer;

Structs§

Configuration
Sensor configuration options
DataStatus
Data status structure. Decoded from the STATUS_REG register.
Duration
FifoStatus
Information about what is stored in the FIFO
Interrupt1
Interrupt2
InterruptConfig
Configure which events on which axes trigger an interrupt.
InterruptSource
IrqPin1Config
IrqPin2Config
Lis3dh
LIS3DH driver.
Lis3dhI2C
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§

ClickCount
DataRate
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 or Position.
Error
Accelerometer errors, generic around another error type E representing an (optional) cause of this error.
FifoMode
FIFO behavior. See the spec for full details.
InterruptMode
When to generate an interrupt.
LatchInterruptRequest
Latch (keep active) the interrupt until the get_irq_src is read.
Mode
Operating mode.
Range
Full-scale selection.
Register
Enumerate all device registers.
SlaveAddr
Possible I²C slave addresses.

Traits§

IrqPin
Lis3dhCore