Enum embedded_hal::blocking::spi::Operation
source · pub enum Operation<'a, W: 'static> {
Write(&'a [W]),
Transfer(&'a mut [W]),
}
Expand description
Operation for transactional SPI trait
This allows composition of SPI operations into a single bus transaction
Variants§
Write(&'a [W])
Write data from the provided buffer, discarding read data
Transfer(&'a mut [W])
Write data out while reading data into the provided buffer
Trait Implementations§
source§impl<'a, W: PartialEq + 'static> PartialEq<Operation<'a, W>> for Operation<'a, W>
impl<'a, W: PartialEq + 'static> PartialEq<Operation<'a, W>> for Operation<'a, W>
impl<'a, W: 'static> StructuralPartialEq for Operation<'a, W>
Auto Trait Implementations§
impl<'a, W> RefUnwindSafe for Operation<'a, W>where W: RefUnwindSafe,
impl<'a, W> Send for Operation<'a, W>where W: Send + Sync,
impl<'a, W> Sync for Operation<'a, W>where W: Sync,
impl<'a, W> Unpin for Operation<'a, W>
impl<'a, W> !UnwindSafe for Operation<'a, W>
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