Skip to main content

PsramTimingParams

Struct PsramTimingParams 

Source
pub struct PsramTimingParams {
    pub clock_source: PsramFunctionClockConfig,
    pub clock: u32,
    pub mr0_rl: u8,
    pub mr4_wl: u8,
    pub rd_dummy_bits: u8,
    pub wr_dummy_bits: u8,
    pub reg_dummy_bits: u32,
}
Available on crate feature unstable only.
Expand description

PSRAM timing parameters.

These values should be tuned together with the source clock frequency. The source clock frequency must be an integer multiple of the PSRAM frequency.

Fields§

§clock_source: PsramFunctionClockConfig

PSRAM clock source.

§clock: u32

Bus clock frequency in MHz. Must divide the source clock evenly.

§mr0_rl: u8

MR0.read_latency field value (cycles = 2 * value + 6).

§mr4_wl: u8

MR4.wr_latency field value.

§rd_dummy_bits: u8

Read dummy length in bits for sync data reads (cache path).

For N dummy bits, configure reg_dummy_bits to N - 1.

§wr_dummy_bits: u8

Write dummy length in bits for sync data writes (cache path).

For N dummy bits, configure reg_dummy_bits to N - 1.

§reg_dummy_bits: u32

Register-read dummy length for direct command path (MSPI3).

Implementations§

Source§

impl PsramTimingParams

Source

pub const MHZ_20: Self

Preset for 20 MHz clock speed.

Source

pub const MHZ_80: Self

Preset for 80 MHz clock speed.

Source

pub const MHZ_125: Self

Preset for 125 MHz clock speed.

Source

pub const MHZ_200: Self

Preset for 200 MHz clock speed.

Source

pub const MHZ_250: Self

Preset for 250 MHz clock speed.

Trait Implementations§

Source§

impl Clone for PsramTimingParams

Source§

fn clone(&self) -> PsramTimingParams

Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for PsramTimingParams

Source§

impl Debug for PsramTimingParams

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PsramTimingParams

Source§

fn default() -> Self

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

impl PartialEq for PsramTimingParams

Source§

fn eq(&self, other: &PsramTimingParams) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable)§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PsramTimingParams

Auto Trait Implementations§

§

impl Freeze for PsramTimingParams

§

impl RefUnwindSafe for PsramTimingParams

§

impl Send for PsramTimingParams

§

impl Sync for PsramTimingParams

§

impl Unpin for PsramTimingParams

§

impl UnsafeUnpin for PsramTimingParams

§

impl UnwindSafe for PsramTimingParams

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

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> Same for T

Source§

type Output = T

Should always be Self
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

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.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.