Hello! I am currently working with an LSM6DS0 IMU (3D accelerometer + 3D gyroscope), and I would like to use the embedded FIFO in Continuous mode. I have a question regarding the sequence of the samples in the FIFO and what is the proper way to read
As far as I can understand from the datasheet, the FIFO is shared and there is no guarantee in the sequence of the samples. For instance, accelerometer and gyroscope samples can be interleaved (e.g. first 2 samples are 3-axial accelerometer measurements and then the 3rd sample is a 3-axial gyroscope measurement e.t.c.). Without knowing the exact sequence how can I read data from FIFO? Does the MEMS sensor know that when I read for example from the OUT_X_G it should shift the oldest gyro measurement to the data register so I can read it out? (I suppose not because if the gyro and accel measurements are interleaved in the FIFO how it can keep track of where it is?).
