pub enum SpiTransfer {
Write {
bytes: Vec<u8>,
},
Read {
len: usize,
},
Transfer {
bytes: Vec<u8>,
},
Delay {
ns: u32,
},
}Expand description
One operation of an SPI transaction, as the driver issued it.
Variants§
Write
The driver wrote these bytes.
Read
The driver asked to read this many bytes.
Transfer
The driver wrote these bytes and read as many back.
Delay
The driver asked the bus to pause inside the transaction.
Trait Implementations§
Source§impl Clone for SpiTransfer
impl Clone for SpiTransfer
Source§fn clone(&self) -> SpiTransfer
fn clone(&self) -> SpiTransfer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpiTransfer
impl Debug for SpiTransfer
impl Eq for SpiTransfer
Source§impl PartialEq for SpiTransfer
impl PartialEq for SpiTransfer
Source§fn eq(&self, other: &SpiTransfer) -> bool
fn eq(&self, other: &SpiTransfer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpiTransfer
Auto Trait Implementations§
impl Freeze for SpiTransfer
impl RefUnwindSafe for SpiTransfer
impl Send for SpiTransfer
impl Sync for SpiTransfer
impl Unpin for SpiTransfer
impl UnsafeUnpin for SpiTransfer
impl UnwindSafe for SpiTransfer
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