pub struct HyperbusConfig {
pub latency_mode: HyperbusLatencyMode,
pub access_time: u8,
pub rw_recovery_time: u8,
pub write_zero_latency: bool,
}Expand description
HyperBus latency configuration, programmed into OCTOSPI_HLCR.
Required for HyperBus (HyperRAM / HyperFlash) memory-mapped access: the access time
and read-write recovery must match the device datasheet at the chosen bus clock,
analogous to a NOR flash’s dummy-cycle latency. HLCR is the one HyperBus register the
rest of the driver does not touch, so apply this with Ospi::configure_hyperbus
after construction and before enabling memory-mapped mode.
Fields§
§latency_mode: HyperbusLatencyModeLatency mode (fixed = twice the access time, or variable).
access_time: u8Device access time (TACC), in communication-clock cycles.
rw_recovery_time: u8Read-write recovery time (TRWR), in communication-clock cycles.
write_zero_latency: boolApply zero latency on write operations.
Trait Implementations§
Source§impl Clone for HyperbusConfig
impl Clone for HyperbusConfig
Source§fn clone(&self) -> HyperbusConfig
fn clone(&self) -> HyperbusConfig
Returns a duplicate 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 Format for HyperbusConfigwhere
HyperbusLatencyMode: Format,
impl Format for HyperbusConfigwhere
HyperbusLatencyMode: Format,
impl Copy for HyperbusConfig
Auto Trait Implementations§
impl Freeze for HyperbusConfig
impl RefUnwindSafe for HyperbusConfig
impl Send for HyperbusConfig
impl Sync for HyperbusConfig
impl Unpin for HyperbusConfig
impl UnwindSafe for HyperbusConfig
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