pub struct Spi<T: SpiPeripheral> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<T: SpiPeripheral> SetConfig for Spi<T>
impl<T: SpiPeripheral> SetConfig for Spi<T>
Source§type ConfigError = SpiError
type ConfigError = SpiError
The error type that can occur if
set_config fails.Source§fn set_config(&mut self, config: &Self::Config) -> Result<(), Self::ConfigError>
fn set_config(&mut self, config: &Self::Config) -> Result<(), Self::ConfigError>
Set the configuration of the driver.
Source§impl<T: SpiPeripheral> SpiDevice for Spi<T>
impl<T: SpiPeripheral> SpiDevice for Spi<T>
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<T> Freeze for Spi<T>where
T: Freeze,
impl<T> RefUnwindSafe for Spi<T>where
T: RefUnwindSafe,
impl<T> Send for Spi<T>where
T: Send,
impl<T> Sync for Spi<T>where
T: Sync,
impl<T> Unpin for Spi<T>where
T: Unpin,
impl<T> UnsafeUnpin for Spi<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Spi<T>where
T: 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