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
impl Clone for QspiConfig
source§fn clone(&self) -> QspiConfig
fn clone(&self) -> QspiConfig
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 moresource§impl Default for QspiConfig
impl Default for QspiConfig
impl Copy for QspiConfig
Auto Trait Implementations§
impl RefUnwindSafe for QspiConfig
impl Send for QspiConfig
impl Sync for QspiConfig
impl Unpin for QspiConfig
impl UnwindSafe for QspiConfig
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