I'm looking to use the data ready interrupt on the MPU-6886 to know when to get data from the sensor. I've been trying to piece it together from the documentation and other sites, and I think I have the process worked out, and am just hoping someone can verify it for me.
Setup the interrupt handler on GPIO35 to trigger on change
Because there are multiple devices which can trigger an interrupt on GPIO35, we need to read the INT_STATUS register on the MPU-6886 to verify there is data ready, which tells us it was the MPU that triggered the interrupt.
We read the accel and gyro data from the MPU.
Obviously steps 2 & 3 happen outside of the interrupt function.
There is a potential Step 0 where we might have to configure the MPU to on how it triggers the interrupt pin, but going by their documentation, it looks like as long as the interrupt handler is triggered on change, and the INT_STATUS register gets cleared (which happens when we read it) we should be fine.
Overall, does this sound correct?