LIS2DW12 fifo bypass-to-continuous mode
Hello,
I am working on the LIS2DW12 accelerometer, and I need to use the bypass-to-continuous mode for the fifo buffer. The idea is that the accelerometer is in bypass mode when it is inactive and not moving. When the accelerometer is moving and active, it goes into fifo continuous mode. Then the fifo threshold interrupt starts triggering which tells my application to read the fifo.
Reading the fifo buffer when there is a threshold interrupt works just fine for what I've done. My problem is I can't figure out how to tie the bypass-to-continuous trigger to an interrupt of choice. I have sleep state configured for my application, so I would preferably have sleep state "active" as the accelerometer's queue to exit bypass mode and start outputting its data to the fifo buffer in continuous mode. Then the accelerometer would revert back to bypass mode when the accelerometer goes to sleep state "inactive." I read the application note for the bypass-to-continuous section, and all it tells you is to read the interrupt generation section of the document. It doesn't elaborate on how to use your configured interrupts to trigger the fifo mode change between bypass and continuous.
Please let me know if you know how to configure the accelerometer bypass-to-continuous mode trigger for an event of choice.
