bus -> device
This commit is contained in:
parent
cb0c56cf14
commit
0069f7bc97
1 changed files with 3 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
use delta::{DeltaAngle, DeltaVelocity};
|
use delta::{DeltaAngle, DeltaVelocity};
|
||||||
use embassy_embedded_hal::adapter::BlockingAsync;
|
use embedded_hal_async::spi::SpiDevice;
|
||||||
use embedded_hal_async::spi::{SpiBus, SpiDevice};
|
|
||||||
use nalgebra::Vector3;
|
use nalgebra::Vector3;
|
||||||
use registers::*;
|
use registers::*;
|
||||||
|
|
||||||
|
@ -46,12 +45,12 @@ impl Model {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct ADIS1647X<T> where T: SpiBus {
|
pub struct ADIS1647X<T> where T: SpiDevice {
|
||||||
bus: T,
|
bus: T,
|
||||||
model: Model
|
model: Model
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: SpiBus> ADIS1647X<T> {
|
impl<T: SpiDevice> ADIS1647X<T> {
|
||||||
pub async fn new(bus: T) -> Result<Self, T::Error> {
|
pub async fn new(bus: T) -> Result<Self, T::Error> {
|
||||||
//let bus = BlockingAsync::new(bus);
|
//let bus = BlockingAsync::new(bus);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue