embassy-net-esp-hosted

Crates

git

Versions

default

Flavors

HdCommand

Enum HdCommand 

Source
pub enum HdCommand {
    WriteReg = 1,
    ReadReg = 2,
    WriteDma = 3,
    ReadDma = 4,
    WriteDone = 7,
    ReadDone = 8,
    Int1 = 9,
}
Expand description

Represents a command on the half-duplex SPI interface.

Variants§

§

WriteReg = 1

Write to a 32-bit buffer register on the co-processor.

§

ReadReg = 2

Read from a 32-bit buffer register on the co-processor

§

WriteDma = 3

Write data to the co-processor.

§

ReadDma = 4

Read data from the co-processor.

§

WriteDone = 7

End of write.

§

ReadDone = 8

CMD8 - End of read.

§

Int1 = 9

CMD9 - The host is done with the register read. The co-processor can de-assert Data_Ready.

Implementations§

Source§

impl HdCommand

Source

pub fn dual_spi(self) -> u8

Returns the command opcode for Dual SPI mode.

Source

pub fn quad_spi(self) -> u8

Returns the command opcode for Quad SPI mode.

Trait Implementations§

Source§

impl Clone for HdCommand

Source§

fn clone(&self) -> HdCommand

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for HdCommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.