Crates.io | icm20948 |
lib.rs | icm20948 |
version | 0.0.1 |
source | src |
created_at | 2021-09-29 22:59:57.301178 |
updated_at | 2021-09-29 22:59:57.301178 |
description | A bus-agnostic driver for the icm20948 accelerometer, gyro and compass. |
homepage | |
repository | |
max_upload_size | |
id | 458427 |
size | 34,986 |
A platform and bus agnostic Rust driver for the TDK ICM20948, based on the embedded-hal traits.
Currently the docs can be found at https://pointswaves.gitlab.io/icm20948-rs/icm20948/index.html
The lib contains code for the ICM and code to wrap I2C and SPI buses in structs to effectively mange byte based registers
The code to abstract the buses and provide boiler plate for accessing sub byte structures with in bytes based registers is being developed along side the ICM code but will be moved to its own crate once it is more mature.
The library uses the BitByteStructs for a lot of the boiler plate when reading and writing to the ICM20948s registers. This lib is currently also acting as a example of how to use BitByteStruts but if a better way to mange them comes up then this create may swap over.
The library currently work to retrieve the Acceleration and Gyro data from the ICM over I2C but the library aims to provide this data and the magnetic data over I2C or SPI.
Be published to crates.io