pub struct Qspi<MODE> { /* private fields */ }

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.

Latches the peripheral in a read/execute state, so it can be used to read or execute directly from flash.

Note: Hardcodes 8 dummy cycles.

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

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.