API Reference lis3dh v#0.1.0

Copy Markdown

Modules

Driver for the STMicroelectronics LIS3DH 3-axis MEMS accelerometer.

Encoding and decoding for the LIS3DH's click / double-click / tap detection engine.

Encoding and decoding of the LIS3DH's CTRL_REG1 (0x20) and CTRL_REG4 (0x23) bytes, plus the per-mode/per-range sensitivity table used for converting raw ADC samples into physical units.

FIFO protocol encoding and decoding for the LIS3DH.

Encoding and decoding for the LIS3DH's inertial interrupt configuration (INT1_CFG, INT1_THS, INT1_DURATION and their INT2_* siblings) plus the per-pin routing bits in CTRL_REG3 and CTRL_REG6 and the latching/4D bits in CTRL_REG5.

Raw register accessors for the LIS3DH.

GenServer that drains the LIS3DH's FIFO and dispatches frames to a subscriber process.