Crate lis2dtw12

Crate lis2dtw12 

Source
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 Interface trait and re-exports the i2c and spi modules

Structs§

AccelerationData
Acceleration data
AllInterruptSources
Struct representation of the All Interrupt Sources register
AllSources
Struct representation of the 5 SRC registers combined
EventStatus
Struct representation of the Status DUP (Event status) register
FifoSamplesStatus
FIFO Samples Status
Int1PadConfig
INT1 PAD Configuration
Int2PadConfig
INT2 PAD Configuration
Lis2dtw12
LIS2DTW12 driver
RawAccelerationData
RAW acceleration data
SixDSource
6D source
Status
Struct representation of the Status register
TapSource
Tap source
WakeUpSource
Wake-up source

Enums§

BandwidthSelection
Digital filtering cutoff selection / Bandwidth selection
FifoMode
Fifo Mode
FreeFallThreshold
Free-fall Threshold @ FS = ±2 g
FullScale
Full-scale selection
Mode
Operating Mode See the datasheet section 3.2.1 (Operating modes) for more info
OutputDataRate
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