Struct stm32_hal2::qspi::QspiConfig

source ·
pub struct QspiConfig {
    pub protocol_mode: ProtocolMode,
    pub data_mode: DataMode,
    pub clock_division: u8,
    pub address_size: AddressSize,
    pub dummy_cycles: u8,
    pub sampling_edge: SamplingEdge,
    pub fifo_threshold: u8,
    pub mem_size: u32,
}
Expand description

A structure for specifying QSPI configuration.

Fields§

§protocol_mode: ProtocolMode

Note: For configuration purposes, use IndirectRead or Indirect Write

§data_mode: DataMode§clock_division: u8

Dide the QSPI kernel clock by this to get the QSPI speed. Defaults to 4.

§address_size: AddressSize§dummy_cycles: u8§sampling_edge: SamplingEdge§fifo_threshold: u8§mem_size: u32

Size of memory, in megabytes. (not megabits). Defaults to 64M-bits (8 M-bytes)

Trait Implementations§

source§

impl Clone for QspiConfig

source§

fn clone(&self) -> QspiConfig

Returns a copy 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 Default for QspiConfig

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for QspiConfig

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> 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>,

§

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>,

§

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.