#[repr(u8)]pub enum ProtocolMode {
Single = 1,
Dual = 2,
Quad = 3,
}
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 = 1
Only a single IO line (IO0) is used for transmit and a separate line (IO1) is used for receive.
Dual = 2
Two IO lines (IO0 and IO1) are used for transmit/receive.
Quad = 3
All four IO lines are used for transmit/receive.
Trait Implementations§
Source§impl Clone for ProtocolMode
impl Clone for ProtocolMode
Source§fn clone(&self) -> ProtocolMode
fn clone(&self) -> ProtocolMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for ProtocolMode
Auto Trait Implementations§
impl Freeze for ProtocolMode
impl RefUnwindSafe for ProtocolMode
impl Send for ProtocolMode
impl Sync for ProtocolMode
impl Unpin for ProtocolMode
impl UnwindSafe for ProtocolMode
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