pub struct Qmi { /* private fields */ }
Expand description
QSPI Memory Interface. Provides a memory-mapped interface to up to two SPI/DSPI/QSPI flash or PSRAM devices. Also provides a serial interface for programming and configuration of the external device.
Implementations§
Source§impl Qmi
impl Qmi
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn direct_csr(self) -> Reg<DirectCsr, RW>
pub const fn direct_csr(self) -> Reg<DirectCsr, RW>
Control and status for direct serial mode Direct serial mode allows the processor to send and receive raw serial frames, for programming, configuration and control of the external memory devices. Only SPI mode 0 (CPOL=0 CPHA=0) is supported.
pub const fn mem(self, n: usize) -> Mem
Sourcepub const fn atrans(self, n: usize) -> Reg<Atrans, RW>
pub const fn atrans(self, n: usize) -> Reg<Atrans, RW>
Configure address translation for XIP virtual addresses 0x000000 through 0x3fffff (a 4 MiB window starting at +0 MiB). Address translation allows a program image to be executed in place at multiple physical flash addresses (for example, a double-buffered flash image for over-the-air updates), without the overhead of position-independent code. At reset, the address translation registers are initialised to an identity mapping, so that they can be ignored if address translation is not required. Note that the XIP cache is fully virtually addressed, so a cache flush is required after changing the address translation.