pub struct DeviceInterfaceAsync<Spi> {
pub spi: Spi,
}Fields§
§spi: SpiThe SPI device used to communicate with the iC-MD device.
Implementations§
Source§impl<Spi> DeviceInterfaceAsync<Spi>
impl<Spi> DeviceInterfaceAsync<Spi>
Trait Implementations§
Source§impl<Spi: SpiDevice> AsyncRegisterInterface for DeviceInterfaceAsync<Spi>
impl<Spi: SpiDevice> AsyncRegisterInterface for DeviceInterfaceAsync<Spi>
Source§async fn write_register(
&mut self,
address: Self::AddressType,
data: &mut [u8],
_metadata: &FieldsetMetadata,
) -> Result<(), Self::Error>
async fn write_register( &mut self, address: Self::AddressType, data: &mut [u8], _metadata: &FieldsetMetadata, ) -> Result<(), Self::Error>
Write the given data to the register located at the given address
Source§async fn read_register(
&mut self,
address: Self::AddressType,
data: &mut [u8],
_metadata: &FieldsetMetadata,
) -> Result<(), Self::Error>
async fn read_register( &mut self, address: Self::AddressType, data: &mut [u8], _metadata: &FieldsetMetadata, ) -> Result<(), Self::Error>
Read the register located at the given address to the given data slice
Source§impl<Spi: Debug> Debug for DeviceInterfaceAsync<Spi>
impl<Spi: Debug> Debug for DeviceInterfaceAsync<Spi>
Source§impl<Spi: SpiDevice> RegisterInterfaceBase for DeviceInterfaceAsync<Spi>
impl<Spi: SpiDevice> RegisterInterfaceBase for DeviceInterfaceAsync<Spi>
Source§type AddressType = u8
type AddressType = u8
The address type used by this interface
Auto Trait Implementations§
impl<Spi> Freeze for DeviceInterfaceAsync<Spi>where
Spi: Freeze,
impl<Spi> RefUnwindSafe for DeviceInterfaceAsync<Spi>where
Spi: RefUnwindSafe,
impl<Spi> Send for DeviceInterfaceAsync<Spi>where
Spi: Send,
impl<Spi> Sync for DeviceInterfaceAsync<Spi>where
Spi: Sync,
impl<Spi> Unpin for DeviceInterfaceAsync<Spi>where
Spi: Unpin,
impl<Spi> UnsafeUnpin for DeviceInterfaceAsync<Spi>where
Spi: UnsafeUnpin,
impl<Spi> UnwindSafe for DeviceInterfaceAsync<Spi>where
Spi: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more