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
[ ] Bug fix (change that fixes an issue)
[x] New feature (change that adds new functionality)
[ ] Breaking change (has dependencies in other repos or will cause CI to fail)
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