analogdevicesinc / no-OS

Software drivers in C for systems without an operating system
http://analogdevicesinc.github.io/no-OS/
Other
874 stars 1.63k forks source link

drivers: imu: adis: Rework burst read API #2159

Closed rbolboac closed 2 months ago

rbolboac commented 2 months ago

Pull Request Description

Rework burst read API such that it can be used for devices which have 32-bit temperature data and 32-bit data counter. Furthermore, some devices support burst reading with 16-bit LSB first, while other support burst reading with 16-bit MSB first in burst data, thus memcpy cannot be used anymore to simply copy the whole burst data, instead, a burst data structure has been created which should be populated accordingly by each driver. The iio_adis generic implementation now populates the iio buffer using this structure. Rework the unit tests accordingly.

PR Type

PR Checklist