embassy-stm32

Crates

git

Versions

stm32h562ag

Flavors

๐Ÿ“ฃ We want to hear from you! Fill the Rust Embedded 2024 micro-survey.

Struct embassy_stm32::ospi::Config

source ยท
pub struct Config {
Show 14 fields pub fifo_threshold: FIFOThresholdLevel, pub memory_type: MemoryType, pub device_size: MemorySize, pub chip_select_high_time: ChipSelectHighTime, pub free_running_clock: bool, pub clock_mode: bool, pub wrap_size: WrapSize, pub clock_prescaler: u8, pub sample_shifting: bool, pub delay_hold_quarter_cycle: bool, pub chip_select_boundary: u8, pub delay_block_bypass: bool, pub max_transfer: u8, pub refresh: u32,
}
Expand description

OPSI driver config.

Fieldsยง

ยงfifo_threshold: FIFOThresholdLevel

Fifo threshold used by the peripheral to generate the interrupt indicating data or space is available in the FIFO

ยงmemory_type: MemoryType

Indicates the type of external device connected

ยงdevice_size: MemorySize

Defines the size of the external device connected to the OSPI corresponding to the number of address bits required to access the device

ยงchip_select_high_time: ChipSelectHighTime

Sets the minimum number of clock cycles that the chip select signal must be held high between commands

ยงfree_running_clock: bool

Enables the free running clock

ยงclock_mode: bool

Sets the clock level when the device is not selected

ยงwrap_size: WrapSize

Indicates the wrap size corresponding to the external device configuration

ยงclock_prescaler: u8

Specified the prescaler factor used for generating the external clock based on the AHB clock

ยงsample_shifting: bool

Allows the delay of 1/2 cycle the data sampling to account for external signal delays

ยงdelay_hold_quarter_cycle: bool

Allows hold to 1/4 cycle the data

ยงchip_select_boundary: u8

Enables the transaction boundary feature and defines the boundary to release the chip select

ยงdelay_block_bypass: bool

Enbales the delay block bypass so the sampling is not affected by the delay block

ยงmax_transfer: u8

Enables communication regulation feature. Chip select is released when the other OctoSpi requests access to the bus

ยงrefresh: u32

Enables the refresh feature, chip select is released every refresh + 1 clock cycles

Trait Implementationsยง

sourceยง

impl Clone for Config

sourceยง

fn clone(&self) -> Config

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 Config

sourceยง

fn default() -> Self

Returns the โ€œdefault valueโ€ for a type. Read more
sourceยง

impl Copy for Config

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> CloneToUninit for T
where T: Clone,

sourceยง

unsafe fn clone_to_uninit(&self, dst: *mut T)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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>,

sourceยง

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

sourceยง

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.