Struct mcxn947_pac::FLEXSPI0

source ·
pub struct FLEXSPI0 { /* private fields */ }
Expand description

FlexSPI

Implementations§

source§

impl FLEXSPI0

source

pub const PTR: *const RegisterBlock = {0x400c8000 as *const flexspi0::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

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>§

source

pub fn mcr0(&self) -> &MCR0

0x00 - Module Control 0

source

pub fn mcr1(&self) -> &MCR1

0x04 - Module Control 1

source

pub fn mcr2(&self) -> &MCR2

0x08 - Module Control 2

source

pub fn ahbcr(&self) -> &AHBCR

0x0c - AHB Bus Control

source

pub fn inten(&self) -> &INTEN

0x10 - Interrupt Enable

source

pub fn intr(&self) -> &INTR

0x14 - Interrupt

source

pub fn lutkey(&self) -> &LUTKEY

0x18 - LUT Key

source

pub fn lutcr(&self) -> &LUTCR

0x1c - LUT Control

source

pub fn ahbrxbufcr0(&self, n: usize) -> &AHBRXBUFCR0

0x20..0x40 - AHB Receive Buffer %s Control 0

source

pub fn ahbrxbufcr0_iter(&self) -> impl Iterator<Item = &AHBRXBUFCR0>

Iterator for array of: 0x20..0x40 - AHB Receive Buffer %s Control 0

source

pub fn ahbrxbuf0cr0(&self) -> &AHBRXBUFCR0

0x20 - AHB Receive Buffer 0 Control 0

source

pub fn ahbrxbuf1cr0(&self) -> &AHBRXBUFCR0

0x24 - AHB Receive Buffer 1 Control 0

source

pub fn ahbrxbuf2cr0(&self) -> &AHBRXBUFCR0

0x28 - AHB Receive Buffer 2 Control 0

source

pub fn ahbrxbuf3cr0(&self) -> &AHBRXBUFCR0

0x2c - AHB Receive Buffer 3 Control 0

source

pub fn ahbrxbuf4cr0(&self) -> &AHBRXBUFCR0

0x30 - AHB Receive Buffer 4 Control 0

source

pub fn ahbrxbuf5cr0(&self) -> &AHBRXBUFCR0

0x34 - AHB Receive Buffer 5 Control 0

source

pub fn ahbrxbuf6cr0(&self) -> &AHBRXBUFCR0

0x38 - AHB Receive Buffer 6 Control 0

source

pub fn ahbrxbuf7cr0(&self) -> &AHBRXBUFCR0

0x3c - AHB Receive Buffer 7 Control 0

source

pub fn flashcr0(&self, n: usize) -> &FLASHCR0

0x60..0x70 - Flash Control 0

source

pub fn flashcr0_iter(&self) -> impl Iterator<Item = &FLASHCR0>

Iterator for array of: 0x60..0x70 - Flash Control 0

source

pub fn flashcr0a1(&self) -> &FLASHCR0

0x60 - Flash Control 0

source

pub fn flashcr0a2(&self) -> &FLASHCR0

0x64 - Flash Control 0

source

pub fn flashcr0b1(&self) -> &FLASHCR0

0x68 - Flash Control 0

source

pub fn flashcr0b2(&self) -> &FLASHCR0

0x6c - Flash Control 0

source

pub fn flshcr1(&self, n: usize) -> &FLSHCR1

0x70..0x80 - Flash Control 1

source

pub fn flshcr1_iter(&self) -> impl Iterator<Item = &FLSHCR1>

Iterator for array of: 0x70..0x80 - Flash Control 1

source

pub fn flshcr1a1(&self) -> &FLSHCR1

0x70 - Flash Control 1

source

pub fn flshcr1a2(&self) -> &FLSHCR1

0x74 - Flash Control 1

source

pub fn flshcr1b1(&self) -> &FLSHCR1

0x78 - Flash Control 1

source

pub fn flshcr1b2(&self) -> &FLSHCR1

0x7c - Flash Control 1

source

pub fn flshcr2(&self, n: usize) -> &FLSHCR2

0x80..0x90 - Flash Control 2

source

pub fn flshcr2_iter(&self) -> impl Iterator<Item = &FLSHCR2>

Iterator for array of: 0x80..0x90 - Flash Control 2

source

pub fn flshcr2a1(&self) -> &FLSHCR2

0x80 - Flash Control 2

source

pub fn flshcr2a2(&self) -> &FLSHCR2

0x84 - Flash Control 2

source

pub fn flshcr2b1(&self) -> &FLSHCR2

0x88 - Flash Control 2

source

pub fn flshcr2b2(&self) -> &FLSHCR2

0x8c - Flash Control 2

source

pub fn flshcr4(&self) -> &FLSHCR4

0x94 - Flash Control 4

source

pub fn ipcr0(&self) -> &IPCR0

0xa0 - IP Control 0

source

pub fn ipcr1(&self) -> &IPCR1

0xa4 - IP Control 1

source

pub fn ipcr2(&self) -> &IPCR2

0xa8 - IP Control 2

source

pub fn ipcmd(&self) -> &IPCMD

0xb0 - IP Command

source

pub fn dlpr(&self) -> &DLPR

0xb4 - Data Learning Pattern

source

pub fn iprxfcr(&self) -> &IPRXFCR

0xb8 - IP Receive FIFO Control

source

pub fn iptxfcr(&self) -> &IPTXFCR

0xbc - IP Transmit FIFO Control

source

pub fn dllcr(&self, n: usize) -> &DLLCR

0xc0..0xc8 - DLL Control 0

source

pub fn dllcr_iter(&self) -> impl Iterator<Item = &DLLCR>

Iterator for array of: 0xc0..0xc8 - DLL Control 0

source

pub fn dllcra(&self) -> &DLLCR

0xc0 - DLL Control 0

source

pub fn dllcrb(&self) -> &DLLCR

0xc4 - DLL Control 0

source

pub fn sts0(&self) -> &STS0

0xe0 - Status 0

source

pub fn sts1(&self) -> &STS1

0xe4 - Status 1

source

pub fn sts2(&self) -> &STS2

0xe8 - Status 2

source

pub fn ahbspndsts(&self) -> &AHBSPNDSTS

0xec - AHB Suspend Status

source

pub fn iprxfsts(&self) -> &IPRXFSTS

0xf0 - IP Receive FIFO Status

source

pub fn iptxfsts(&self) -> &IPTXFSTS

0xf4 - IP Transmit FIFO Status

source

pub fn rfdr(&self, n: usize) -> &RFDR

0x100..0x180 - IP Receive FIFO Data x

source

pub fn rfdr_iter(&self) -> impl Iterator<Item = &RFDR>

Iterator for array of: 0x100..0x180 - IP Receive FIFO Data x

source

pub fn tfdr(&self, n: usize) -> &TFDR

0x180..0x200 - IP TX FIFO Data x

source

pub fn tfdr_iter(&self) -> impl Iterator<Item = &TFDR>

Iterator for array of: 0x180..0x200 - IP TX FIFO Data x

source

pub fn lut(&self, n: usize) -> &LUT

0x200..0x300 - Lookup Table x

source

pub fn lut_iter(&self) -> impl Iterator<Item = &LUT>

Iterator for array of: 0x200..0x300 - Lookup Table x

source

pub fn haddrstart(&self) -> &HADDRSTART

0x420 - HADDR REMAP Start Address

source

pub fn haddrend(&self) -> &HADDREND

0x424 - HADDR REMAP END ADDR

source

pub fn haddroffset(&self) -> &HADDROFFSET

0x428 - HADDR Remap Offset

source

pub fn ipedctrl(&self) -> &IPEDCTRL

0x42c - IPED Function Control

source

pub fn ipsnszstart0(&self) -> &IPSNSZSTART0

0x430 - IPS Nonsecure Region 0 Start Address

source

pub fn ipsnszend0(&self) -> &IPSNSZEND0

0x434 - IPS Nonsecure Region 0 End Address

source

pub fn ipsnszstart1(&self) -> &IPSNSZSTART1

0x438 - IPS Nonsecure Region 1 Start Address

source

pub fn ipsnszend1(&self) -> &IPSNSZEND1

0x43c - IPS Nonsecure Region 1 End Address

source

pub fn ahbbufregionstart(&self, n: usize) -> &AHBBUFREGIONSTART

0x440..0x450 - Receive Buffer Start Address of Region %s

source

pub fn ahbbufregionstart_iter(&self) -> impl Iterator<Item = &AHBBUFREGIONSTART>

Iterator for array of: 0x440..0x450 - Receive Buffer Start Address of Region %s

source

pub fn ahbbufregionend(&self, n: usize) -> &AHBBUFREGIONEND

0x444..0x454 - Receive Buffer Region %s End Address

source

pub fn ahbbufregionend_iter(&self) -> impl Iterator<Item = &AHBBUFREGIONEND>

Iterator for array of: 0x444..0x454 - Receive Buffer Region %s End Address

source

pub fn ipedctxctrl0(&self) -> &IPEDCTXCTRL0

0x500 - IPED context control 0

source

pub fn ipedctxctrl1(&self) -> &IPEDCTXCTRL1

0x504 - IPED context control 1

source

pub fn ipedctx(&self, n: usize) -> &IPEDCTX

0x520..0x5c8 - Cluster IPEDCTX%s, containing IPEDCTX?IV0, IPEDCTX?IV1, IPEDCTX?START, IPEDCTX?END, IPEDCTX?AAD0, IPEDCTX?AAD1

source

pub fn ipedctx_iter(&self) -> impl Iterator<Item = &IPEDCTX>

Iterator for array of: 0x520..0x5c8 - Cluster IPEDCTX%s, containing IPEDCTX?IV0, IPEDCTX?IV1, IPEDCTX?START, IPEDCTX?END, IPEDCTX?AAD0, IPEDCTX?AAD1

Trait Implementations§

source§

impl Debug for FLEXSPI0

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for FLEXSPI0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for FLEXSPI0

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.