Event interrupt generator configuration (axis movement and wake-up) More...
Event interrupt generator configuration (axis movement and wake-up)
memset to 0 to disable all interrupt conditions (default)
#include <l3gxxxx.h>
Data Fields | |
uint16_t | x_threshold |
X threshold value in full scale / INT16_MAX. | |
uint16_t | y_threshold |
Y threshold value in full scale / INT16_MAX. | |
uint16_t | z_threshold |
Z threshold value in full scale / INT16_MAX. | |
bool | x_low_enabled |
Interrupt enabled for |X| < X threshold (X low event) | |
bool | x_high_enabled |
Interrupt enabled for |X| > X threshold (X high event) | |
bool | y_low_enabled |
Interrupt enabled for |Y| < Y threshold (Y low event) | |
bool | y_high_enabled |
Interrupt enabled for |Y| > Y threshold (Y high event) | |
bool | z_low_enabled |
Interrupt enabled for |Z| < Z threshold (Z low event) | |
bool | z_high_enabled |
Interrupt enabled for |Z| > Z threshold (Y high event) | |
l3gxxxx_filter_sel_t | filter |
HPF and LPF2 filter selection used for threshold comparison. | |
bool | and_or |
Combination of interrupt events (true=AND, false=OR): AND - all enabled axes passed their thresholds OR - at least one axis passed its threshold. | |
bool | latch |
Latch the interrupt when true until the interrupt source has been read by function l3gxxxx_wait_int. | |
uint8_t | duration |
Duration in 1/ODR an interrupt condition has to be given before the interrupt is generated. | |
bool | wait |
When true, duration is also used when interrupt condition in no longer given before interrupt signal is reset. | |
bool | counter_mode |
DCRM is not documented and not used therefore. | |