1
Fork 0

made name more generic

This commit is contained in:
Andy Killorin 2025-03-14 20:56:55 -04:00
parent 1287701c0f
commit cb0c56cf14
Signed by: ank
GPG key ID: 23F9463ECB67FE8C
2 changed files with 2 additions and 8 deletions

View file

@ -8,9 +8,3 @@ embedded-hal = "1.0.0"
embedded-hal-async = "1.0.0"
embassy-embedded-hal = {version = "0.3.0", git="https://github.com/embassy-rs/embassy", rev = "c39076724f052fed6781b056bb79c9fa576b87a3"}
nalgebra = "0.31.4"
[features]
default = ["ADIS1647x-1"]
ADIS1647x-1 = []
ADIS1647x-2 = []
ADIS1647x-3 = []

View file

@ -46,12 +46,12 @@ impl Model {
}
}
pub struct ADIS16475<T> where T: SpiBus {
pub struct ADIS1647X<T> where T: SpiBus {
bus: T,
model: Model
}
impl<T: SpiBus> ADIS16475<T> {
impl<T: SpiBus> ADIS1647X<T> {
pub async fn new(bus: T) -> Result<Self, T::Error> {
//let bus = BlockingAsync::new(bus);