LIS2DW12 driver state, owned by the driver.
| Data Fields |
|
bool |
double_tap_detection_enabled |
Double tap detection requested. |
|
bool |
drain_pending |
A FIFO drain stopped for lack of a buffer. |
|
bool |
fifo_on |
The FIFO is batching: a sampling interval and a report latency are set. |
|
uint32_t |
int1_period_ms |
Expected INT1 period in milliseconds. |
|
uint64_t |
int1_time_us |
Time of the last INT1 interrupt, in microseconds of uptime. |
|
bool |
int1_time_valid |
int1_time_us is yet to be used. |
|
struct pbl_wallclock_work |
int1_wdt_timer |
Watchdog timer detecting a stalled INT1 stream. |
|
uint64_t |
last_fifo_read_tick |
Time of the last FIFO read. |
|
uint8_t |
last_sample[LIS2DW12_SAMPLE_SIZE_BYTES] |
Most recent raw sample, returned by reads while streaming. |
|
uint64_t |
last_sample_timestamp_us |
Time of last_sample, in microseconds of uptime. |
|
bool |
last_sample_valid |
last_sample holds a sample. |
|
int32_t |
latency_us |
Report latency requested in microseconds, or PBL_SENSOR_LATENCY_NONE. |
|
uint32_t |
num_recoveries |
Number of stream recoveries performed. |
|
uint8_t |
num_samples |
FIFO watermark in samples, derived from the report latency, 0 for no batches. |
|
uint8_t |
range |
Range in effect, an index among the supported ones. |
|
struct pbl_sensor_rate |
rate |
Measured sampling interval. |
|
uint32_t |
rate_frames |
Frames reported since the last read timed by the INT1 interrupt. |
|
bool |
recovery_deferred |
A stream recovery waits for a buffer to finish draining the FIFO. |
|
bool |
recovery_pending |
A stream recovery is queued. |
|
uint32_t |
req_interval_us |
Sampling interval requested, 0 when only events keep the part sampling. |
|
uint32_t |
sampling_interval_us |
Sampling interval in microseconds, 0 when not sampling. |
|
bool |
shake_detection_enabled |
Shake detection requested. |
|
uint8_t |
shake_stuck_passes |
Consecutive watchdog passes with INT1 stuck high in shake-only mode. |
|
uint8_t |
wk_ths_curr |
Current wake-up (shake) threshold register value. |
|
int32_t |
wk_ths_mm_s2 |
Wake-up (shake) threshold requested, in mm/s². |
|
bool |
wu_active |
Wake-up condition currently asserted, to report a shake once per assertion. |