pub struct SpiDevice<NSS> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<NSS: OutputPin> SpiDevice for SpiDevice<NSS>
impl<NSS: OutputPin> SpiDevice for SpiDevice<NSS>
Source§fn transaction(
&mut self,
operations: &mut [Operation<'_, u8>],
) -> Result<(), Self::Error>
fn transaction( &mut self, operations: &mut [Operation<'_, u8>], ) -> Result<(), Self::Error>
Perform a transaction against the device. Read more
Source§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
Source§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<NSS> Freeze for SpiDevice<NSS>where
NSS: Freeze,
impl<NSS> RefUnwindSafe for SpiDevice<NSS>where
NSS: RefUnwindSafe,
impl<NSS> Send for SpiDevice<NSS>where
NSS: Send,
impl<NSS> Sync for SpiDevice<NSS>where
NSS: Sync,
impl<NSS> Unpin for SpiDevice<NSS>where
NSS: Unpin,
impl<NSS> UnwindSafe for SpiDevice<NSS>where
NSS: 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