Expand description
§LIS2DTW12
A platform agnostic driver to interface with the LIS2DTW12 (3-axis accelerometer + temperature sensor).
The driver uses the embedded-hal traits and supports interfaces with I2C and SPI.
The driver supports async and blocking modes, selectable with the async and blocking features.
Modules§
- interface
- Interface module, contains the
Interfacetrait and re-exports thei2candspimodules
Structs§
- Acceleration
Data - Acceleration data
- AllInterrupt
Sources - Struct representation of the All Interrupt Sources register
- AllSources
- Struct representation of the 5 SRC registers combined
- Event
Status - Struct representation of the Status DUP (Event status) register
- Fifo
Samples Status - FIFO Samples Status
- Int1
PadConfig - INT1 PAD Configuration
- Int2
PadConfig - INT2 PAD Configuration
- Lis2dtw12
- LIS2DTW12 driver
- RawAcceleration
Data - RAW acceleration data
- SixD
Source - 6D source
- Status
- Struct representation of the Status register
- TapSource
- Tap source
- Wake
UpSource - Wake-up source
Enums§
- Bandwidth
Selection - Digital filtering cutoff selection / Bandwidth selection
- Fifo
Mode - Fifo Mode
- Free
Fall Threshold - Free-fall Threshold @ FS = ±2 g
- Full
Scale - Full-scale selection
- Mode
- Operating Mode See the datasheet section 3.2.1 (Operating modes) for more info
- Output
Data Rate - Output Data Rate
- Sign
- Sign of the tap event
- TapPriority
- Tap Priority axis selection for tap detection
- Threshold6D
- Thresholds for 4D/6D function @ FS = ±2 g