made name more generic
This commit is contained in:
parent
1287701c0f
commit
cb0c56cf14
2 changed files with 2 additions and 8 deletions
|
@ -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 = []
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue