pub struct Qspi<MODE> { /* fields omitted */ }
Implementations
Enable the clocks for the qspi peripheral in single data rate mode assuming 120mhz system clock, for 4mhz spi mode 0 operation.
Run a generic command that neither takes nor receives data
Run one of the read commands
Run one of the write commands
Run one of the erase commands
Quad Fast Read a sequential block of memory to buf Note: Hardcodes 8 dummy cycles
Page Program a sequential block of memory to addr.
Note more than page size bytes are sent to the device, some bytes will be discarded. Check your device for specific handling.
Operations available in XIP mode
Latches the peripheral in a read/execute state, so it can be used to read or execute directly from flash.
Set the clock divider, relative to the main clock
This fn safely subtracts 1 from your input value as the underlying fn is SCK Baud = MCKL / (value + 1)
ex if MCLK is 120mhz value 0 is reduced to 0 results in 120mhz clock value 1 is reduced to 0 results in 120mhz clock value 2 is reduced to 1 results in 60mhz clock
Auto Trait Implementations
impl<MODE> RefUnwindSafe for Qspi<MODE> where
MODE: RefUnwindSafe,
impl<MODE> UnwindSafe for Qspi<MODE> where
MODE: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.