L3G4200D Arduino Unified Sensor Library
Modules
Registers

This contains advanced functionality for reading and writing to raw gyroscope registers. If you just want to read gyro data, you probably want Usage or Sensor instead. More...

Modules

 CTRL1
 Values for REG_CTRL_1, which is used for bandwidth, data rate, and power selection.
 
 CTRL2
 Values for REG_CTRL_2, which is used for configuring the high pass filter.
 
 CTRL3
 Values for REG_CTRL_3, which is used for configuring the electrical characteristics of the pins on the chip.
 
 CTRL4
 Values for REG_CTRL_4, which is used for setting the gyroscope range.
 
 CTRL5
 Values for REG_CTRL_5, which is used for enabling different kinds of filtering.
 

Addresses

#define REG_WHO_AM_I   (0x0F)
 The address of the chip ID register. Should always read as 0xd3. More...
 
#define REG_CTRL_1   (0x20)
 The address of CTRL_REG1, which is used for bandwidth, data rate, and power selection. More...
 
#define REG_CTRL_2   (0x21)
 The address of CTRL_REG2, which is used for configuring the high pass filter. More...
 
#define REG_CTRL_3   (0x22)
 The address of CTRL_REG3, which is used for configuring the electrical characteristics of the pins on the chip. More...
 
#define REG_CTRL_4   (0x23)
 The address of CTRL_REG4, which is used for setting the gyroscope range. More...
 
#define REG_CTRL_5   (0x24)
 The address of CTRL_REG5, which is used for enabling different kinds of filtering. More...
 
#define REG_OUT_X_L   (0x28)
 The address of OUT_X_L, which contains the low byte of the X-axis angular data, as two's complement.
 
#define REG_OUT_X_H   (0x29)
 The address of OUT_X_L, which contains the high byte of the X-axis angular data, as two's complement.
 
#define REG_OUT_Y_L   (0x2a)
 The address of OUT_X_H, which contains the low byte of the Y-axis angular data, as two's complement.
 
#define REG_OUT_Y_H   (0x2b)
 The address of OUT_Y_L, which contains the high byte of the Y-axis angular data, as two's complement.
 
#define REG_OUT_Z_L   (0x2c)
 The address of OUT_X_L, which contains the low byte of the Z-axis angular data, as two's complement.
 
#define REG_OUT_Z_H   (0x2d)
 The address of OUT_X_L, which contains the high byte of the Z-axis angular data, as two's complement.
 
#define L3G4200D_CHIP_ID   (0xd3)
 The chip ID constant value of REG_WHO_AM_I: 0xd3. More...
 

Detailed Description

This contains advanced functionality for reading and writing to raw gyroscope registers. If you just want to read gyro data, you probably want Usage or Sensor instead.

See also
L3G4200D_Unified

Macro Definition Documentation

◆ REG_WHO_AM_I

#define REG_WHO_AM_I   (0x0F)

The address of the chip ID register. Should always read as 0xd3.

See also
L3G42000D_CHIP_ID

◆ REG_CTRL_1

#define REG_CTRL_1   (0x20)

The address of CTRL_REG1, which is used for bandwidth, data rate, and power selection.

See also
CTRL1.

◆ REG_CTRL_2

#define REG_CTRL_2   (0x21)

The address of CTRL_REG2, which is used for configuring the high pass filter.

See also
CTRL2.

◆ REG_CTRL_3

#define REG_CTRL_3   (0x22)

The address of CTRL_REG3, which is used for configuring the electrical characteristics of the pins on the chip.

See also
CTRL3.

◆ REG_CTRL_4

#define REG_CTRL_4   (0x23)

The address of CTRL_REG4, which is used for setting the gyroscope range.

See also
CTRL4.

◆ REG_CTRL_5

#define REG_CTRL_5   (0x24)

The address of CTRL_REG5, which is used for enabling different kinds of filtering.

See also
CTRL5.

◆ L3G4200D_CHIP_ID

#define L3G4200D_CHIP_ID   (0xd3)

The chip ID constant value of REG_WHO_AM_I: 0xd3.

This should be the only value ever read from REG_WHO_AM_I. If you get a different value, your wires may not be connected correctly.