I previously purchased the cn0535 development board and intended to use it in embedded systems on the arm64 platform. Now, the driver for ad7768-1 has been compiled into the Ubuntu system on the embedded platform, and parameters can be configured through the iio device. Data can also be read (terminal hexdump read), but there may be frame loss (read through buffer in continuous mode). If the iio device data file is loaded through QFile on the QT platform and the READ function reads data directly, there may also be frame loss. For example, when an external sine wave signal is connected, the resulting data is roughly still a sine wave signal, but it is discontinuous and intermittent. The data reading rate is set to approximately 32K, which is not fast.
Later, I debugged and replaced the data in ad7768-1 with continuously+1 instead of reading it through hardware sensors, and it was clear that the breakpoint still existed.
So the problem lies in how to read data, so I would like to seek for support. Do anyone have any similar cases or codes? I don't know how to read data properly?