#[repr(u8)]
pub enum ProtocolMode {
    Single,
    Dual,
    Quad,
}
Expand description

Sets the Qspi mode to single, dual, or quad. Affects the IMODE, ADMODE, ABMODE, and DMODE fields of the CCR reg. Each of these fields affects a different mode of operation.

Variants

Single

Only a single IO line (IO0) is used for transmit and a separate line (IO1) is used for receive.

Dual

Two IO lines (IO0 and IO1) are used for transmit/receive.

Quad

All four IO lines are used for transmit/receive.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.