forked from analogdevicesinc/no-OS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: imu: adis: Rework burst read API
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. Signed-off-by: Ramona Gradinariu <[email protected]>
- Loading branch information
Showing
9 changed files
with
313 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.