pub struct BridgeSpi<P> { /* private fields */ }Expand description
An SPI device that carries each transfer to the bridge.
Trait Implementations§
Source§impl<P: Read + Write> SpiDevice for BridgeSpi<P>
impl<P: Read + Write> SpiDevice for BridgeSpi<P>
Source§fn transaction(
&mut self,
operations: &mut [Operation<'_, u8>],
) -> Result<(), UsbError>
fn transaction( &mut self, operations: &mut [Operation<'_, u8>], ) -> Result<(), UsbError>
Perform a transaction against the device. Read more
§fn read(&mut self, buf: &mut [Word]) -> Result<(), Self::Error>
fn read(&mut self, buf: &mut [Word]) -> Result<(), Self::Error>
Do a read within a transaction. Read more
§fn write(&mut self, buf: &[Word]) -> Result<(), Self::Error>
fn write(&mut self, buf: &[Word]) -> Result<(), Self::Error>
Do a write within a transaction. Read more
Auto Trait Implementations§
impl<P> Freeze for BridgeSpi<P>
impl<P> RefUnwindSafe for BridgeSpi<P>
impl<P> Send for BridgeSpi<P>where
P: Send,
impl<P> Sync for BridgeSpi<P>where
P: Send,
impl<P> Unpin for BridgeSpi<P>
impl<P> UnsafeUnpin for BridgeSpi<P>
impl<P> UnwindSafe for BridgeSpi<P>
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