Struct embedded_hal_async::spi::ExclusiveDevice
source · pub struct ExclusiveDevice<BUS, CS, D> { /* private fields */ }
Expand description
Implementations§
source§impl<BUS, CS, D> ExclusiveDevice<BUS, CS, D>
impl<BUS, CS, D> ExclusiveDevice<BUS, CS, D>
Trait Implementations§
source§impl<BUS, CS, D> ErrorType for ExclusiveDevice<BUS, CS, D>
impl<BUS, CS, D> ErrorType for ExclusiveDevice<BUS, CS, D>
source§impl<Word: Copy + 'static, BUS, CS, D> SpiDevice<Word> for ExclusiveDevice<BUS, CS, D>
impl<Word: Copy + 'static, BUS, CS, D> SpiDevice<Word> for ExclusiveDevice<BUS, CS, D>
source§fn transaction(
&mut self,
operations: &mut [Operation<'_, Word>],
) -> Result<(), Self::Error>
fn transaction( &mut self, operations: &mut [Operation<'_, Word>], ) -> 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
source§impl<Word: Copy + 'static, BUS, CS, D> SpiDevice<Word> for ExclusiveDevice<BUS, CS, D>
impl<Word: Copy + 'static, BUS, CS, D> SpiDevice<Word> for ExclusiveDevice<BUS, CS, D>
source§async fn transaction(
&mut self,
operations: &mut [Operation<'_, Word>],
) -> Result<(), Self::Error>
async fn transaction( &mut self, operations: &mut [Operation<'_, Word>], ) -> Result<(), Self::Error>
Perform a transaction against the device. Read more
source§async fn read(&mut self, buf: &mut [Word]) -> Result<(), Self::Error>
async fn read(&mut self, buf: &mut [Word]) -> Result<(), Self::Error>
Do a read within a transaction. Read more
source§async fn write(&mut self, buf: &[Word]) -> Result<(), Self::Error>
async fn write(&mut self, buf: &[Word]) -> Result<(), Self::Error>
Do a write within a transaction. Read more
Auto Trait Implementations§
impl<BUS, CS, D> Freeze for ExclusiveDevice<BUS, CS, D>
impl<BUS, CS, D> RefUnwindSafe for ExclusiveDevice<BUS, CS, D>
impl<BUS, CS, D> Send for ExclusiveDevice<BUS, CS, D>
impl<BUS, CS, D> Sync for ExclusiveDevice<BUS, CS, D>
impl<BUS, CS, D> Unpin for ExclusiveDevice<BUS, CS, D>
impl<BUS, CS, D> UnwindSafe for ExclusiveDevice<BUS, CS, D>
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