L3G4200D Arduino Unified Sensor Library
|
Values for REG_CTRL_1, which is used for bandwidth, data rate, and power selection. More...
Output data rate and filtering | |
These values of REG_CTRL_1 set the output data rate and the "low-pass" filtering bandwidth. The low-pass filtering is for "smoothing out" changes that occur too quickly to be useful. These values can be or'd with other | |
#define | CTRL1_RATE_100HZ_CUTOFF_12HZ5 (0b0000 << 4) |
REG_CTRL_1 value for a 100 Hz data rate and a 12.5 Hz cutoff. | |
#define | CTRL1_RATE_100HZ_CUTOFF_25HZ (0b0001 << 4) |
REG_CTRL_1 value for a 100 Hz data rate and a 25 Hz cutoff. | |
#define | CTRL1_RATE_200HZ_CUTOFF_12HZ5 (0b0100 << 4) |
REG_CTRL_1 value for a 200 Hz data rate and a 12.5 Hz cutoff. | |
#define | CTRL1_RATE_200HZ_CUTOFF_25HZ (0b0101 << 4) |
REG_CTRL_1 value for a 200 Hz data rate and a 25 Hz cutoff. | |
#define | CTRL1_RATE_200HZ_CUTOFF_50HZ (0b0110 << 4) |
REG_CTRL_1 value for a 200 Hz data rate and a 50 Hz cutoff. | |
#define | CTRL1_RATE_200HZ_CUTOFF_70HZ (0b0111 << 4) |
REG_CTRL_1 value for a 200 Hz data rate and a 70 Hz cutoff. | |
#define | CTRL1_RATE_400HZ_CUTOFF_20HZ (0b1000 << 4) |
REG_CTRL_1 value for a 400 Hz data rate and a 20 Hz cutoff. | |
#define | CTRL1_RATE_400HZ_CUTOFF_25HZ (0b1001 << 4) |
REG_CTRL_1 value for a 400 Hz data rate and a 2 Hz cutoff. | |
#define | CTRL1_RATE_400HZ_CUTOFF_50HZ (0b1010 << 4) |
REG_CTRL_1 value for a 400 Hz data rate and a 50 Hz cutoff. | |
#define | CTRL1_RATE_400HZ_CUTOFF_110HZ (0b1011 << 4) |
REG_CTRL_1 value for a 400 Hz data rate and a 110 Hz cutoff. | |
#define | CTRL1_RATE_800HZ_CUTOFF_30HZ (0b1100 << 4) |
REG_CTRL_1 value for a 800 Hz data rate and a 30 Hz cutoff. | |
#define | CTRL1_RATE_800HZ_CUTOFF_35HZ (0b1101 << 4) |
REG_CTRL_1 value for a 800 Hz data rate and a 35 Hz cutoff. | |
#define | CTRL1_RATE_800HZ_CUTOFF_50HZ (0b1110 << 4) |
REG_CTRL_1 value for a 800 Hz data rate and a 50 Hz cutoff. | |
#define | CTRL1_RATE_800HZ_CUTOFF_110HZ (0b1111 << 4) |
REG_CTRL_1 value for a 800 Hz data rate and a 110 Hz cutoff. | |
Power and axes settings | |
These values of REG_CTRL_1 set the power mode of the chip as a whole and for each of the X, Y, and Z axes. Turning off unncesseary axes saves power. These values can be or'd with other | |
#define | CTRL1_POWER_DOWN (0b0000 << 0) |
REG_CTRL_1 value to power down the gyroscope. | |
#define | CTRL1_SLEEP (0b1000 << 0) |
REG_CTRL_1 value to put the gyroscope in sleep mode - on, but with no gyroscope axes enabled. | |
#define | CTRL1_X_ONLY (0b1001 << 0) |
REG_CTRL_1 value to enable the X-axis only. | |
#define | CTRL1_Y_ONLY (0b1010 << 0) |
REG_CTRL_1 value to enable the Y-axis only. | |
#define | CTRL1_Z_ONLY (0b1100 << 0) |
REG_CTRL_1 value to enable the Z-axis only. | |
#define | CTRL1_XY (0b1011 << 0) |
REG_CTRL_1 value to enable the X and Y axes only. | |
#define | CTRL1_YZ (0b1110 << 0) |
REG_CTRL_1 value to enable the Y and Z axes only. | |
#define | CTRL1_XZ (0b1101 << 0) |
REG_CTRL_1 value to enable the X and Z axes only. | |
#define | CTRL1_XYZ (0b1111 << 0) |
REG_CTRL_1 value to enable all axes. This is probably what you want. | |
Values for REG_CTRL_1, which is used for bandwidth, data rate, and power selection.