L3G4200D Arduino Unified Sensor Library

Values for REG_CTRL_4, which is used for setting the gyroscope range. More...

Output register configuration

These values of REG_CTRL_4 control how the X, Y, and Z axis output registers contain and update their values.

These values can be or'd with other CTRL_4 values when writing to REG_CTRL_4.

#define CTRL4_UPDATE_MSB_AND_LSB_TOGETHER   (0b1 << 7)
 REG_CTRL_4 value to indicate that the high byte and low byte of each output register should not update when we've read one but not the other.
 
#define CTRL4_LSB_AT_LOWER_ADDRESS   (0b0 << 6)
 REG_CTRL_4 value to indicate that the low byte of each output register is at the lower address (as is displayed in the datasheet).
 
#define CTRL4_MSB_AT_LOWER_ADDRESS   (0b1 << 6)
 REG_CTRL_4 value to indicate that the high byte of each output register is at the higher address.
 

Gyro range settings

These values of REG_CTRL_4 control the current range of the gyroscope

These values can be or'd with other CTRL4_ values when writing to REG_CTRL_4

See also
gyroRange_t
#define CTRL4_FULL_SCALE_250DPS   (0b00 << 4)
 REG_CTRL_4 value for a gyroscope range of 250 deg/s. Corresponds to GYRO_RANGE_4_DOT_36_RAD_PER_SEC (4.36 rad/s).
 
#define CTRL4_FULL_SCALE_500DPS   (0b01 << 4)
 REG_CTRL_4 value for a gyroscope range of 500 deg/s. Corresponds to GYRO_RANGE_8_DOT_73_RAD_PER_SEC (8.73 rad/s).
 
#define CTRL4_FULL_SCALE_2000DPS   (0b10 << 4)
 REG_CTRL_4 value for a gyroscope range of 2000 deg/s. Corresponds to GYRO_RANGE_34_DOT_91_RAD_PER_SEC (34.91 rad/s).
 

Detailed Description

Values for REG_CTRL_4, which is used for setting the gyroscope range.