Best and quickest way to clear the LSM6DSL's FIFO when full.
We use the LSM6DSL chip's accelerometer without the gryo in FIFO mode 110b Continuous mode. (If the FIFO is full, the new sample overwrites the older one.) Every fixed period I read the FIFO1 & FIFO2 status bytes and read the number of unread words (BDU bit in CTRL3_C (12h) to 1). Rarely I read a fifo status word value of 0xE000. Watermark,Overrun,smart full bits are raised but the number of words not read is zero. When this happens I need to reset our last periodic check which reads samples for a specific number of seconds and no overruns can be tolerated. The FIFO full state happens rarely and sometimes I have not been able to clear this situation. How should I clear the FIFO starting my sampling over, the best and quickest way?
