L3G4200D Arduino Unified Sensor Library
|
Values for REG_CTRL_2, which is used for configuring the high pass filter. More...
High pass filter setting | |
Values for REG_CTRL_2 that control the high pass filter. The high pass filter rejects movements that are too slow to be useful. The value used for filtering is expressed as a fraction of the clock rate. To figure out the filter frequency, divide the output data rate by the number at the end of these constants. For example, if you want to detect gestures, you might not be interested in various slow movements (which wouldn't be part of a sharp gesture). If your data rate were 200 Hz, and you don't care about gestures that happen over less than 1 second, then you might want HIGH_PASS_DIV_200, since 200 Hz / 200 = 1 Hz. | |
#define | CTRL2_HIGH_PASS_DIV_12 (0b0000 << 0) |
REG_CTRL_2 value for filtering based on the data rate divided by 12. | |
#define | CTRL2_HIGH_PASS_DIV_25 (0b0001 << 0) |
REG_CTRL_2 value for filtering based on the data rate divided by 25. | |
#define | CTRL2_HIGH_PASS_DIV_50 (0b0010 << 0) |
REG_CTRL_2 value for filtering based on the data rate divided by 50. | |
#define | CTRL2_HIGH_PASS_DIV_100 (0b0011 << 0) |
REG_CTRL_2 value for filtering based on the data rate divided by 100. | |
#define | CTRL2_HIGH_PASS_DIV_200 (0b0100 << 0) |
REG_CTRL_2 value for filtering based on the data rate divided by 200. | |
#define | CTRL2_HIGH_PASS_DIV_500 (0b0101 << 0) |
REG_CTRL_2 value for filtering based on the data rate divided by 500. | |
#define | CTRL2_HIGH_PASS_DIV_1000 (0b0110 << 0) |
REG_CTRL_2 value for filtering based on the data rate divided by. More... | |
#define | CTRL2_HIGH_PASS_DIV_2000 (0b0111 << 0) |
REG_CTRL_2 value for filtering based on the data rate divided by. More... | |
#define | CTRL2_HIGH_PASS_DIV_5000 (0b1000 << 0) |
REG_CTRL_2 value for filtering based on the data rate divided by. More... | |
#define | CTRL2_HIGH_PASS_DIV_10000 (0b1001 << 0) |
REG_CTRL_2 value for filtering based on the data rate divided by. More... | |
Values for REG_CTRL_2, which is used for configuring the high pass filter.
#define CTRL2_HIGH_PASS_DIV_1000 (0b0110 << 0) |
REG_CTRL_2 value for filtering based on the data rate divided by.
#define CTRL2_HIGH_PASS_DIV_2000 (0b0111 << 0) |
REG_CTRL_2 value for filtering based on the data rate divided by.
#define CTRL2_HIGH_PASS_DIV_5000 (0b1000 << 0) |
REG_CTRL_2 value for filtering based on the data rate divided by.
#define CTRL2_HIGH_PASS_DIV_10000 (0b1001 << 0) |
REG_CTRL_2 value for filtering based on the data rate divided by.