Expand description
§STMicroelectronics L3GD20 Gyrscope Registers
This crate provides a typed map of the L3GD20’s I²C/SPI registers.
Modules§
- prelude
- Exports commonly used traits.
Structs§
- Control
Register1 CTRL_REG1(20h)- Control
Register2 CTRL_REG2(21h)- Control
Register3 CTRL_REG3(22h)- Control
Register4 CTRL_REG4(23h)- Control
Register5 CTRL_REG5(24h)- Fifo
Control Register FIFO_CTRL_REG(2Eh)- Fifo
Source Register FIFO_CTRL_REG(2Fh)- Int1
Configuration Register INT1_CFG(30h)- Int1
Duration Register INT1_DURATION(38h)- Int1
Source RegisterA INT1_SRC(31h)- Int1
Threshold RegisterXH INT1_TSH_XH(32h)- Int1
Threshold RegisterXL INT1_TSH_XL(33h)- Int1
Threshold RegisterYH INT1_TSH_YH(34h)- Int1
Threshold RegisterYL INT1_TSH_YL(35h)- Int1
Threshold RegisterZH INT1_TSH_ZH(36h)- Int1
Threshold RegisterZL INT1_TSH_ZL(37h)- OutX
High OUT_X_H(29h)- OutXLow
OUT_X_L(28h)- OutY
High OUT_Y_H(2Bh)- OutYLow
OUT_Y_L(2Ah)- OutZ
High OUT_Z_H(2Dh)- OutZLow
OUT_Z_L(2Ch)- Reference
Register - Reference / Data capture register.
- Status
Register STATUS_REG(27h)- Temperature
Register OUT_TEMP(26h)- WhoAmI
WHO_AM_I(0Fh)
Enums§
- Bandwidth
- Bandwidth
- Fifo
Mode - FIFO mode configuration.
- Highpass
Filter Mode - High-pass filter mode.
- Output
Data Rate - Gyroscope Output Data Rate
- Register
Address - Register addresses specific to the Gyroscope sensor.
- Sensitivity
- Gyroscope sensitivity (full scale selection).
Constants§
- DEFAULT_
DEVICE_ ADDRESS - The I²C bus address.
Traits§
- Register
- A sensor register.
- Writable
Register - A writable sensor register.