Enum stm32_hal2::qspi::ProtocolMode
source · [−]#[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
sourceimpl Clone for ProtocolMode
impl Clone for ProtocolMode
sourcefn clone(&self) -> ProtocolMode
fn clone(&self) -> ProtocolMode
Returns a copy of the value. Read more
1.0.0 · sourcefn 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 RefUnwindSafe for ProtocolMode
impl Send for ProtocolMode
impl Sync for ProtocolMode
impl Unpin for ProtocolMode
impl UnwindSafe for ProtocolMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more