LIS2DW12 - Requirement of latching for inactivity/activity and FIFO mode of bypass-continuous
Greetings
I am trying to utilise the FIFO of the LIS2DW12, in bypass-continuous mode, which requires the latched-interrupt bit (LIR) in CTRL3 register to be set, as stated in the application note AN5038.
In the ISR for the FIFO_FTH, I am reading the output registers, resetting the fifo by putting it into bypass mode, then putting it into bypass-continuous mode. The interrupt to trigger the chip is a wake-up event.
I want to also utilise the inactivity/activity functionality of the accelerometer, allowing it to save power. This requires the LIR bit of CTRL3 register to be in a reset state.
How does one propose I work around the contradiction of either setting the LIR bit or not?
