I am using ADXL372 in stream mode to collect sample sets of concurrent 3-axis data using FIFO.
FIFO format :
I have the following understanding
The interrupt will be triggered once 501 samples are available in the format of XYZ, that makes 167 Sample sets.
But, In the example linux driver https://wiki.analog.com/resources/tools-software/linux-drivers/iio-accelerometer/adxl372,
The watermark value is divided based on the fifo format. For Example, Watermark level will be set to 510/3= 170.
Is it that I misinterpreted in a different way?
Would like to know on what basis we should set the watermark level -
No. of samples -> 510
No. of triplets(sample sets) for XYZ format -> 170.
Looking forward for your response.
I think that you might have found a software bug. Currently, the software sets the FIFO_SAMPLES register with the number of sample sets (to a maximum of 170 for 3 axis data, 256 for 2-axis data and 512 for single axis data). However, I think that FIFO_SAMPLES just hods the number of samples, regardless of the FIFO format.
Once I will double check it with the chip designer, I will provide a patch to fix this.
Thanks for the update.