I2C specific sequence

Hi,

I have an KX224 accelerometer and I want to read its buffer using I2C. There is a "Sequence 4" in datasheet (http://kionixfs.kionix.com/en/datasheet/KX224-1053-Specifications-Rev-2.0.pdf - page 21) which is supposed to replicate in order to read the buffer, but I don't know how to do it. Can someone help me?

Thanks,
Gabriel

This repository has example code for the KX224 accel.

That code is a basic one and it is not using the buffer.

What does the "buffer" contain? There are functions to get the scaled accel data and the raw accel data.

The buffer contains accelerometer data. In order to read it, you have to read one register with one byte. Because the buffer actually contains 2048 bytes, you have to send ACK after each reading to update the next value from the FIFO.