Expand description
Platform-agnostic LIS2DH12 accelerometer driver which uses I2C via
embedded-hal and implements the Accelerometer trait
from the accelerometer crate.
Structs§
- Data
Status - Data status structure, decoded from STATUS_REG register
- Error
- Accelerometer errors, generic around another error type
Erepresenting an (optional) cause of this error. - F32x3
- 3-dimensional XYZ vector of
f32values - I16x3
- 3-dimensional XYZ vector of
i16values - Int
- Interrupt setting and status
- Lis2dh12
LIS2DH12driver
Enums§
- Addr
Detection Error - Errors returned from the detect_i2c_addr
- Aoi6d
- AOI-6D Interrupt mode
- Error
Kind - Kinds of accelerometer errors
- Fifo
Mode - FIFO mode selection
- Full
Scale - Full-scale selection
- Mode
- Operating mode
- Odr
- Output Data Rate
- Slave
Addr - Possible slave addresses
Traits§
- Accelerometer
- Accelerometer trait which provides g-normalized readings.
- RawAccelerometer
- Read raw acceleration vectors of type
V: Vector.
Functions§
- detect_
i2c_ addr - This function tries to detect the I2C address of the device by scanning all possible I2C addresses.