Enum embedded_hal_mock::eh1::spi::Mode
source · pub enum Mode {
Write,
Transfer,
TransferInplace,
Read,
Flush,
TransactionStart,
TransactionEnd,
Delay(u32),
}
Available on crate feature
eh1
only.Expand description
SPI Transaction mode
Variants§
Write
Write transaction
Transfer
Write and read transaction
TransferInplace
Write and read in-place transaction
Read
After a write transaction in real HW a Read is available
Flush
Flush transaction
TransactionStart
Mark the start of a group of transactions
TransactionEnd
Mark the end of a group of transactions
Delay(u32)
A delay in the SPI transaction with the specified delay in microseconds
Trait Implementations§
source§impl PartialEq for Mode
impl PartialEq for Mode
impl Eq for Mode
impl StructuralEq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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