Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn cmd(&self) -> &CMD

0x00 - SPI0 FSM status register

Source

pub const fn ctrl(&self) -> &CTRL

0x08 - SPI0 control register.

Source

pub const fn ctrl1(&self) -> &CTRL1

0x0c - SPI0 control1 register.

Source

pub const fn ctrl2(&self) -> &CTRL2

0x10 - SPI0 control2 register.

Source

pub const fn clock(&self) -> &CLOCK

0x14 - SPI clock division control register.

Source

pub const fn user(&self) -> &USER

0x18 - SPI0 user register.

Source

pub const fn user1(&self) -> &USER1

0x1c - SPI0 user1 register.

Source

pub const fn user2(&self) -> &USER2

0x20 - SPI0 user2 register.

Source

pub const fn rd_status(&self) -> &RD_STATUS

0x2c - SPI0 read control register.

Source

pub const fn misc(&self) -> &MISC

0x34 - SPI0 misc register

Source

pub const fn cache_fctrl(&self) -> &CACHE_FCTRL

0x3c - SPI0 bit mode control register.

Source

pub const fn cache_sctrl(&self) -> &CACHE_SCTRL

0x40 - SPI0 external RAM control register

Source

pub const fn sram_cmd(&self) -> &SRAM_CMD

0x44 - SPI0 external RAM mode control register

Source

pub const fn sram_drd_cmd(&self) -> &SRAM_DRD_CMD

0x48 - SPI0 external RAM DDR read command control register

Source

pub const fn sram_dwr_cmd(&self) -> &SRAM_DWR_CMD

0x4c - SPI0 external RAM DDR write command control register

Source

pub const fn sram_clk(&self) -> &SRAM_CLK

0x50 - SPI0 external RAM clock control register

Source

pub const fn fsm(&self) -> &FSM

0x54 - SPI0 FSM status register

Source

pub const fn int_ena(&self) -> &INT_ENA

0xc0 - SPI0 interrupt enable register

Source

pub const fn int_clr(&self) -> &INT_CLR

0xc4 - SPI0 interrupt clear register

Source

pub const fn int_raw(&self) -> &INT_RAW

0xc8 - SPI0 interrupt raw register

Source

pub const fn int_st(&self) -> &INT_ST

0xcc - SPI0 interrupt status register

Source

pub const fn ddr(&self) -> &DDR

0xd4 - SPI0 flash DDR mode control register

Source

pub const fn spi_smem_ddr(&self) -> &SPI_SMEM_DDR

0xd8 - SPI0 external RAM DDR mode control register

Source

pub const fn spi_fmem_pms_attr(&self, n: usize) -> &SPI_FMEM_PMS_ATTR

0x100..0x110 - MSPI flash ACE section %s attribute register

Source

pub fn spi_fmem_pms_attr_iter(&self) -> impl Iterator<Item = &SPI_FMEM_PMS_ATTR>

Iterator for array of: 0x100..0x110 - MSPI flash ACE section %s attribute register

Source

pub const fn spi_fmem_pms0_attr(&self) -> &SPI_FMEM_PMS_ATTR

0x100 - MSPI flash ACE section 0 attribute register

Source

pub const fn spi_fmem_pms1_attr(&self) -> &SPI_FMEM_PMS_ATTR

0x104 - MSPI flash ACE section 1 attribute register

Source

pub const fn spi_fmem_pms2_attr(&self) -> &SPI_FMEM_PMS_ATTR

0x108 - MSPI flash ACE section 2 attribute register

Source

pub const fn spi_fmem_pms3_attr(&self) -> &SPI_FMEM_PMS_ATTR

0x10c - MSPI flash ACE section 3 attribute register

Source

pub const fn spi_fmem_pms_addr(&self, n: usize) -> &SPI_FMEM_PMS_ADDR

0x110..0x120 - SPI1 flash ACE section %s start address register

Source

pub fn spi_fmem_pms_addr_iter(&self) -> impl Iterator<Item = &SPI_FMEM_PMS_ADDR>

Iterator for array of: 0x110..0x120 - SPI1 flash ACE section %s start address register

Source

pub const fn spi_fmem_pms0_addr(&self) -> &SPI_FMEM_PMS_ADDR

0x110 - SPI1 flash ACE section 0 start address register

Source

pub const fn spi_fmem_pms1_addr(&self) -> &SPI_FMEM_PMS_ADDR

0x114 - SPI1 flash ACE section 1 start address register

Source

pub const fn spi_fmem_pms2_addr(&self) -> &SPI_FMEM_PMS_ADDR

0x118 - SPI1 flash ACE section 2 start address register

Source

pub const fn spi_fmem_pms3_addr(&self) -> &SPI_FMEM_PMS_ADDR

0x11c - SPI1 flash ACE section 3 start address register

Source

pub const fn spi_fmem_pms_size(&self, n: usize) -> &SPI_FMEM_PMS_SIZE

0x120..0x130 - SPI1 flash ACE section %s start address register

Source

pub fn spi_fmem_pms_size_iter(&self) -> impl Iterator<Item = &SPI_FMEM_PMS_SIZE>

Iterator for array of: 0x120..0x130 - SPI1 flash ACE section %s start address register

Source

pub const fn spi_fmem_pms0_size(&self) -> &SPI_FMEM_PMS_SIZE

0x120 - SPI1 flash ACE section 0 start address register

Source

pub const fn spi_fmem_pms1_size(&self) -> &SPI_FMEM_PMS_SIZE

0x124 - SPI1 flash ACE section 1 start address register

Source

pub const fn spi_fmem_pms2_size(&self) -> &SPI_FMEM_PMS_SIZE

0x128 - SPI1 flash ACE section 2 start address register

Source

pub const fn spi_fmem_pms3_size(&self) -> &SPI_FMEM_PMS_SIZE

0x12c - SPI1 flash ACE section 3 start address register

Source

pub const fn spi_smem_pms_attr(&self, n: usize) -> &SPI_SMEM_PMS_ATTR

0x130..0x140 - SPI1 flash ACE section %s start address register

Source

pub fn spi_smem_pms_attr_iter(&self) -> impl Iterator<Item = &SPI_SMEM_PMS_ATTR>

Iterator for array of: 0x130..0x140 - SPI1 flash ACE section %s start address register

Source

pub const fn spi_smem_pms0_attr(&self) -> &SPI_SMEM_PMS_ATTR

0x130 - SPI1 flash ACE section 0 start address register

Source

pub const fn spi_smem_pms1_attr(&self) -> &SPI_SMEM_PMS_ATTR

0x134 - SPI1 flash ACE section 1 start address register

Source

pub const fn spi_smem_pms2_attr(&self) -> &SPI_SMEM_PMS_ATTR

0x138 - SPI1 flash ACE section 2 start address register

Source

pub const fn spi_smem_pms3_attr(&self) -> &SPI_SMEM_PMS_ATTR

0x13c - SPI1 flash ACE section 3 start address register

Source

pub const fn spi_smem_pms_addr(&self, n: usize) -> &SPI_SMEM_PMS_ADDR

0x140..0x150 - SPI1 external RAM ACE section %s start address register

Source

pub fn spi_smem_pms_addr_iter(&self) -> impl Iterator<Item = &SPI_SMEM_PMS_ADDR>

Iterator for array of: 0x140..0x150 - SPI1 external RAM ACE section %s start address register

Source

pub const fn spi_smem_pms0_addr(&self) -> &SPI_SMEM_PMS_ADDR

0x140 - SPI1 external RAM ACE section 0 start address register

Source

pub const fn spi_smem_pms1_addr(&self) -> &SPI_SMEM_PMS_ADDR

0x144 - SPI1 external RAM ACE section 1 start address register

Source

pub const fn spi_smem_pms2_addr(&self) -> &SPI_SMEM_PMS_ADDR

0x148 - SPI1 external RAM ACE section 2 start address register

Source

pub const fn spi_smem_pms3_addr(&self) -> &SPI_SMEM_PMS_ADDR

0x14c - SPI1 external RAM ACE section 3 start address register

Source

pub const fn spi_smem_pms_size(&self, n: usize) -> &SPI_SMEM_PMS_SIZE

0x150..0x160 - SPI1 external RAM ACE section %s start address register

Source

pub fn spi_smem_pms_size_iter(&self) -> impl Iterator<Item = &SPI_SMEM_PMS_SIZE>

Iterator for array of: 0x150..0x160 - SPI1 external RAM ACE section %s start address register

Source

pub const fn spi_smem_pms0_size(&self) -> &SPI_SMEM_PMS_SIZE

0x150 - SPI1 external RAM ACE section 0 start address register

Source

pub const fn spi_smem_pms1_size(&self) -> &SPI_SMEM_PMS_SIZE

0x154 - SPI1 external RAM ACE section 1 start address register

Source

pub const fn spi_smem_pms2_size(&self) -> &SPI_SMEM_PMS_SIZE

0x158 - SPI1 external RAM ACE section 2 start address register

Source

pub const fn spi_smem_pms3_size(&self) -> &SPI_SMEM_PMS_SIZE

0x15c - SPI1 external RAM ACE section 3 start address register

Source

pub const fn pms_reject(&self) -> &PMS_REJECT

0x164 - SPI1 access reject register

Source

pub const fn ecc_ctrl(&self) -> &ECC_CTRL

0x168 - MSPI ECC control register

Source

pub const fn ecc_err_addr(&self) -> &ECC_ERR_ADDR

0x16c - MSPI ECC error address register

Source

pub const fn axi_err_addr(&self) -> &AXI_ERR_ADDR

0x170 - SPI0 AXI request error address.

Source

pub const fn spi_smem_ecc_ctrl(&self) -> &SPI_SMEM_ECC_CTRL

0x174 - MSPI ECC control register

Source

pub const fn timing_cali(&self) -> &TIMING_CALI

0x180 - SPI0 flash timing calibration register

Source

pub const fn din_mode(&self) -> &DIN_MODE

0x184 - MSPI flash input timing delay mode control register

Source

pub const fn din_num(&self) -> &DIN_NUM

0x188 - MSPI flash input timing delay number control register

Source

pub const fn dout_mode(&self) -> &DOUT_MODE

0x18c - MSPI flash output timing adjustment control register

Source

pub const fn spi_smem_timing_cali(&self) -> &SPI_SMEM_TIMING_CALI

0x190 - MSPI external RAM timing calibration register

Source

pub const fn spi_smem_din_mode(&self) -> &SPI_SMEM_DIN_MODE

0x194 - MSPI external RAM input timing delay mode control register

Source

pub const fn spi_smem_din_num(&self) -> &SPI_SMEM_DIN_NUM

0x198 - MSPI external RAM input timing delay number control register

Source

pub const fn spi_smem_dout_mode(&self) -> &SPI_SMEM_DOUT_MODE

0x19c - MSPI external RAM output timing adjustment control register

Source

pub const fn spi_smem_ac(&self) -> &SPI_SMEM_AC

0x1a0 - MSPI external RAM ECC and SPI CS timing control register

Source

pub const fn clock_gate(&self) -> &CLOCK_GATE

0x200 - SPI0 clock gate register

Source

pub const fn xts_plain_base(&self) -> &XTS_PLAIN_BASE

0x300 - The base address of the memory that stores plaintext in Manual Encryption

Source

pub const fn xts_linesize(&self) -> &XTS_LINESIZE

0x340 - Manual Encryption Line-Size register

Source

pub const fn xts_destination(&self) -> &XTS_DESTINATION

0x344 - Manual Encryption destination register

Source

pub const fn xts_physical_address(&self) -> &XTS_PHYSICAL_ADDRESS

0x348 - Manual Encryption physical address register

Source

pub const fn xts_trigger(&self) -> &XTS_TRIGGER

0x34c - Manual Encryption physical address register

Source

pub const fn xts_release(&self) -> &XTS_RELEASE

0x350 - Manual Encryption physical address register

Source

pub const fn xts_destroy(&self) -> &XTS_DESTROY

0x354 - Manual Encryption physical address register

Source

pub const fn xts_state(&self) -> &XTS_STATE

0x358 - Manual Encryption physical address register

Source

pub const fn xts_date(&self) -> &XTS_DATE

0x35c - Manual Encryption version register

Source

pub const fn mmu_item_content(&self) -> &MMU_ITEM_CONTENT

0x37c - MSPI-MMU item content register

Source

pub const fn mmu_item_index(&self) -> &MMU_ITEM_INDEX

0x380 - MSPI-MMU item index register

Source

pub const fn mmu_power_ctrl(&self) -> &MMU_POWER_CTRL

0x384 - MSPI MMU power control register

Source

pub const fn dpa_ctrl(&self) -> &DPA_CTRL

0x388 - SPI memory cryption DPA register

Source

pub const fn registerrnd_eco_high(&self) -> &REGISTERRND_ECO_HIGH

0x3f0 - MSPI ECO high register

Source

pub const fn registerrnd_eco_low(&self) -> &REGISTERRND_ECO_LOW

0x3f4 - MSPI ECO low register

Source

pub const fn date(&self) -> &DATE

0x3fc - SPI0 version control register

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

Source§

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

Source§

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.