Is there a document similar to i.e. "How to generate a single and double tap interrupts using BMI160 accelerometer"?
I need to fully understand on how to interface with the BMX160 in reading out the acceleromter data using BMX160::get_accel_data and later on on how to read out the data using fifo buffer and various interrupts.
Having a technical document similar to the single and double tap as mentioned before.
1.For the document, you could refer BMX160 data sheet and BMI160 knowledge share in community:
2. You also could refer attached exmaple code to read RAW data, read FIFO data, use TAP feature.
The code for polling looks very similar to the code samples except I don't use a sleep/wait.
There is I think, if I understand the datasheet correctly, a way to check if new data has arrived in the data registers by checking as described in section 2.11.4 the appropiate drdy_ bits in STATUS 0x18 register when polling for (new) data?
Does it mean that a check for a no motion event before checking for the next data drdy event is required?
Check the bit drdy_xxx of 0x1B status register to see if the data was updated.
It means: for example, if you set the ODR bit to 50 Hz, you will see the flag of data update every 20ms, whether the sensor is moving or not.