2018-11-19 11:37 PM
Hi ,
I got a doubt in stream mode in LIS3DSH, if we are using stream mode , if you read the FIFO buffer when it is filled with only 20 samples of 32 ,next sample will be stored in 21 st index of buffer or 0th index of FIFO buffer ???
Thanks for your support,
Regards,
Chaitanya
2018-11-20 01:25 AM
If you read all stored samples in FIFO after the 20th samples was stored, next sample will be stored at 0th index.
2018-11-20 01:42 AM
That means if data is read from FIFO buffer ,buffer index of writing vibration data restarts to 0th index ?
Thanks for your Quick support
Regards,
Chaitanya
2018-11-20 02:07 AM
If you read one data set (X, Y, Z) the index decrease by 1, so if you read all data sets stored in FIFO (the number of data sets is available in FIFO_SRC (2Fh) register), the index will be 0.
2018-11-20 02:19 AM
Understood, Great support.