#[non_exhaustive]pub enum Command {
Show 17 variants
None,
_1Bit(u16, DataMode),
_2Bit(u16, DataMode),
_3Bit(u16, DataMode),
_4Bit(u16, DataMode),
_5Bit(u16, DataMode),
_6Bit(u16, DataMode),
_7Bit(u16, DataMode),
_8Bit(u16, DataMode),
_9Bit(u16, DataMode),
_10Bit(u16, DataMode),
_11Bit(u16, DataMode),
_12Bit(u16, DataMode),
_13Bit(u16, DataMode),
_14Bit(u16, DataMode),
_15Bit(u16, DataMode),
_16Bit(u16, DataMode),
}
Available on crate feature
unstable
only.Expand description
SPI commands, each consisting of a 16-bit command value and a data mode.
Used to define specific commands sent over the SPI bus. Can be Command::None if command phase should be suppressed.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No command is sent.
_1Bit(u16, DataMode)
A 1-bit command.
_2Bit(u16, DataMode)
A 2-bit command.
_3Bit(u16, DataMode)
A 3-bit command.
_4Bit(u16, DataMode)
A 4-bit command.
_5Bit(u16, DataMode)
A 5-bit command.
_6Bit(u16, DataMode)
A 6-bit command.
_7Bit(u16, DataMode)
A 7-bit command.
_8Bit(u16, DataMode)
A 8-bit command.
_9Bit(u16, DataMode)
A 9-bit command.
_10Bit(u16, DataMode)
A 10-bit command.
_11Bit(u16, DataMode)
A 11-bit command.
_12Bit(u16, DataMode)
A 12-bit command.
_13Bit(u16, DataMode)
A 13-bit command.
_14Bit(u16, DataMode)
A 14-bit command.
_15Bit(u16, DataMode)
A 15-bit command.
_16Bit(u16, DataMode)
A 16-bit command.
Trait Implementations§
impl Copy for Command
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)