pub struct Flexspi { /* private fields */ }Expand description
FlexSPI
Implementations§
Source§impl Flexspi
impl Flexspi
Sourcepub const PTR: *const RegisterBlock = {0x40134000 as *const flexspi::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40134000 as *const flexspi::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
Sourcepub fn ahbrxbuf0cr0(&self) -> &Ahbrxbuf0cr0
pub fn ahbrxbuf0cr0(&self) -> &Ahbrxbuf0cr0
0x20 - AHB RX Buffer 0 Control Register 0
Sourcepub fn ahbrxbuf1cr0(&self) -> &Ahbrxbuf1cr0
pub fn ahbrxbuf1cr0(&self) -> &Ahbrxbuf1cr0
0x24 - AHB RX Buffer 1 Control Register 0
Sourcepub fn ahbrxbuf2cr0(&self) -> &Ahbrxbuf2cr0
pub fn ahbrxbuf2cr0(&self) -> &Ahbrxbuf2cr0
0x28 - AHB RX Buffer 2 Control Register 0
Sourcepub fn ahbrxbuf3cr0(&self) -> &Ahbrxbuf3cr0
pub fn ahbrxbuf3cr0(&self) -> &Ahbrxbuf3cr0
0x2c - AHB RX Buffer 3 Control Register 0
Sourcepub fn ahbrxbuf4cr0(&self) -> &Ahbrxbuf4cr0
pub fn ahbrxbuf4cr0(&self) -> &Ahbrxbuf4cr0
0x30 - AHB RX Buffer 4 Control Register 0
Sourcepub fn ahbrxbuf5cr0(&self) -> &Ahbrxbuf5cr0
pub fn ahbrxbuf5cr0(&self) -> &Ahbrxbuf5cr0
0x34 - AHB RX Buffer 5 Control Register 0
Sourcepub fn ahbrxbuf6cr0(&self) -> &Ahbrxbuf6cr0
pub fn ahbrxbuf6cr0(&self) -> &Ahbrxbuf6cr0
0x38 - AHB RX Buffer 6 Control Register 0
Sourcepub fn ahbrxbuf7cr0(&self) -> &Ahbrxbuf7cr0
pub fn ahbrxbuf7cr0(&self) -> &Ahbrxbuf7cr0
0x3c - AHB RX Buffer 7 Control Register 0
Sourcepub fn flshcr1(&self, n: usize) -> &Flshcr1
pub fn flshcr1(&self, n: usize) -> &Flshcr1
0x70..0x80 - Flash Control Register 1
Sourcepub fn flshcr1_iter(&self) -> impl Iterator<Item = &Flshcr1>
pub fn flshcr1_iter(&self) -> impl Iterator<Item = &Flshcr1>
Iterator for array of: 0x70..0x80 - Flash Control Register 1
Sourcepub fn flshcr2(&self, n: usize) -> &Flshcr2
pub fn flshcr2(&self, n: usize) -> &Flshcr2
0x80..0x90 - Flash Control Register 2
Sourcepub fn flshcr2_iter(&self) -> impl Iterator<Item = &Flshcr2>
pub fn flshcr2_iter(&self) -> impl Iterator<Item = &Flshcr2>
Iterator for array of: 0x80..0x90 - Flash Control Register 2
Sourcepub fn dllcr(&self, n: usize) -> &Dllcr
pub fn dllcr(&self, n: usize) -> &Dllcr
0xc0..0xc8 - DLL Control Register 0
Sourcepub fn dllcr_iter(&self) -> impl Iterator<Item = &Dllcr>
pub fn dllcr_iter(&self) -> impl Iterator<Item = &Dllcr>
Iterator for array of: 0xc0..0xc8 - DLL Control Register 0
Sourcepub fn ahbspndsts(&self) -> &Ahbspndsts
pub fn ahbspndsts(&self) -> &Ahbspndsts
0xec - AHB Suspend Status Register
Sourcepub fn rfdr_iter(&self) -> impl Iterator<Item = &Rfdr>
pub fn rfdr_iter(&self) -> impl Iterator<Item = &Rfdr>
Iterator for array of: 0x100..0x180 - IP RX FIFO Data Register x