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]
|
||||
use delta::{DeltaAngle, DeltaVelocity};
|
||||
use embassy_embedded_hal::adapter::BlockingAsync;
|
||||
use embedded_hal_async::spi::{SpiBus, SpiDevice};
|
||||
use embedded_hal_async::spi::SpiDevice;
|
||||
use nalgebra::Vector3;
|
||||
use registers::*;
|
||||
|
||||
|
@ -46,12 +45,12 @@ impl Model {
|
|||
}
|
||||
}
|
||||
|
||||
pub struct ADIS1647X<T> where T: SpiBus {
|
||||
pub struct ADIS1647X<T> where T: SpiDevice {
|
||||
bus: T,
|
||||
model: Model
|
||||
}
|
||||
|
||||
impl<T: SpiBus> ADIS1647X<T> {
|
||||
impl<T: SpiDevice> ADIS1647X<T> {
|
||||
pub async fn new(bus: T) -> Result<Self, T::Error> {
|
||||
//let bus = BlockingAsync::new(bus);
|
||||
|
||||
|
|
Loading…
Reference in a new issue