Struct driver_cp2130::Spi
source · pub struct Spi { /* private fields */ }
Expand description
Spi object implements embedded-hal SPI traits for the CP2130
Trait Implementations§
source§impl SpiDevice for Spi
impl SpiDevice for Spi
source§fn transaction(
&mut self,
operations: &mut [SpiOp<'_, u8>]
) -> Result<(), Self::Error>
fn transaction( &mut self, operations: &mut [SpiOp<'_, 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 Freeze for Spi
impl RefUnwindSafe for Spi
impl Send for Spi
impl Sync for Spi
impl Unpin for Spi
impl UnwindSafe for Spi
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