Loading...
Searching...
No Matches

Event interrupt generator configuration (axis movement and wake-up) More...

Detailed Description

Event interrupt generator configuration (axis movement and wake-up)

memset to 0 to disable all interrupt conditions (default)

Definition at line 1263 of file l3gxxxx.h.

#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.
 

Field Documentation

◆ and_or

bool l3gxxxx_int_event_cfg_t::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.

Definition at line 1280 of file l3gxxxx.h.

◆ counter_mode

bool l3gxxxx_int_event_cfg_t::counter_mode

DCRM is not documented and not used therefore.

Definition at line 1290 of file l3gxxxx.h.

◆ duration

uint8_t l3gxxxx_int_event_cfg_t::duration

Duration in 1/ODR an interrupt condition has to be given before the interrupt is generated.

Definition at line 1285 of file l3gxxxx.h.

◆ filter

l3gxxxx_filter_sel_t l3gxxxx_int_event_cfg_t::filter

HPF and LPF2 filter selection used for threshold comparison.

Definition at line 1277 of file l3gxxxx.h.

◆ latch

bool l3gxxxx_int_event_cfg_t::latch

Latch the interrupt when true until the interrupt source has been read by function l3gxxxx_wait_int.

Definition at line 1283 of file l3gxxxx.h.

◆ wait

bool l3gxxxx_int_event_cfg_t::wait

When true, duration is also used when interrupt condition in no longer given before interrupt signal is reset.

Definition at line 1287 of file l3gxxxx.h.

◆ x_high_enabled

bool l3gxxxx_int_event_cfg_t::x_high_enabled

Interrupt enabled for |X| > X threshold (X high event)

Definition at line 1269 of file l3gxxxx.h.

◆ x_low_enabled

bool l3gxxxx_int_event_cfg_t::x_low_enabled

Interrupt enabled for |X| < X threshold (X low event)

Definition at line 1268 of file l3gxxxx.h.

◆ x_threshold

uint16_t l3gxxxx_int_event_cfg_t::x_threshold

X threshold value in full scale / INT16_MAX.

Definition at line 1264 of file l3gxxxx.h.

◆ y_high_enabled

bool l3gxxxx_int_event_cfg_t::y_high_enabled

Interrupt enabled for |Y| > Y threshold (Y high event)

Definition at line 1272 of file l3gxxxx.h.

◆ y_low_enabled

bool l3gxxxx_int_event_cfg_t::y_low_enabled

Interrupt enabled for |Y| < Y threshold (Y low event)

Definition at line 1271 of file l3gxxxx.h.

◆ y_threshold

uint16_t l3gxxxx_int_event_cfg_t::y_threshold

Y threshold value in full scale / INT16_MAX.

Definition at line 1265 of file l3gxxxx.h.

◆ z_high_enabled

bool l3gxxxx_int_event_cfg_t::z_high_enabled

Interrupt enabled for |Z| > Z threshold (Y high event)

Definition at line 1275 of file l3gxxxx.h.

◆ z_low_enabled

bool l3gxxxx_int_event_cfg_t::z_low_enabled

Interrupt enabled for |Z| < Z threshold (Z low event)

Definition at line 1274 of file l3gxxxx.h.

◆ z_threshold

uint16_t l3gxxxx_int_event_cfg_t::z_threshold

Z threshold value in full scale / INT16_MAX.

Definition at line 1266 of file l3gxxxx.h.


The documentation for this struct was generated from the following file: