NHS31xx SW API
ACCEL_INTERRUPT_STATUS_T Struct Reference

Detailed Description

Provides information about the current state of the accelerometer. To be refreshed when an interrupt is raised by the accelerometer. The information is assembled from multiple registers and translated into a non-accelerometer-specific format

Data Fields

bool thresholdsExceeded
 
ACCEL_AXES_FLAGS_T flags
 
bool orientationChanged
 
int tiltStatus
 
bool timerExpired
 

Field Documentation

◆ thresholdsExceeded

bool thresholdsExceeded

true when an acceleration higher than the upper level, or lower than the upper level has been detected.

◆ flags

If thresholdsExceeded is true, this structure lists which axes were experiencing the measured acceleration.

◆ orientationChanged

bool orientationChanged

true when an orientation change has been detected, given the programmed constraints.

◆ tiltStatus

int tiltStatus

If orientationChanged is true, this field lists the new orientation as a bitmask of OR'd enumerations of ACCEL_TILT_STATUS_T.

◆ timerExpired

bool timerExpired

true when the accelerometer has sampled acceleration values for the configured time duration.

See also
Accel_TimerSet

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