Struct HP_SYS

Source
pub struct HP_SYS { /* private fields */ }
Expand description

High-Power System

Implementations§

Source§

impl HP_SYS

Source

pub const PTR: *const RegisterBlock = {0x500e5000 as *const hp_sys::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 ver_date(&self) -> &VER_DATE

0x00 - NA

Source

pub fn clk_en(&self) -> &CLK_EN

0x04 - NA

Source

pub fn cpu_intr_from_cpu_0(&self) -> &CPU_INTR_FROM_CPU_0

0x10 - NA

Source

pub fn cpu_intr_from_cpu_1(&self) -> &CPU_INTR_FROM_CPU_1

0x14 - NA

Source

pub fn cpu_intr_from_cpu_2(&self) -> &CPU_INTR_FROM_CPU_2

0x18 - NA

Source

pub fn cpu_intr_from_cpu_3(&self) -> &CPU_INTR_FROM_CPU_3

0x1c - NA

Source

pub fn cache_clk_config(&self) -> &CACHE_CLK_CONFIG

0x20 - NA

Source

pub fn cache_reset_config(&self) -> &CACHE_RESET_CONFIG

0x24 - NA

Source

pub fn dma_addr_ctrl(&self) -> &DMA_ADDR_CTRL

0x2c - NA

Source

pub fn tcm_ram_wrr_config(&self) -> &TCM_RAM_WRR_CONFIG

0x34 - NA

Source

pub fn tcm_sw_parity_bwe_mask(&self) -> &TCM_SW_PARITY_BWE_MASK

0x38 - NA

Source

pub fn tcm_ram_pwr_ctrl0(&self) -> &TCM_RAM_PWR_CTRL0

0x3c - NA

Source

pub fn l2_rom_pwr_ctrl0(&self) -> &L2_ROM_PWR_CTRL0

0x40 - NA

Source

pub fn probea_ctrl(&self) -> &PROBEA_CTRL

0x50 - NA

Source

pub fn probeb_ctrl(&self) -> &PROBEB_CTRL

0x54 - NA

Source

pub fn probe_out(&self) -> &PROBE_OUT

0x5c - NA

Source

pub fn l2_mem_ram_pwr_ctrl0(&self) -> &L2_MEM_RAM_PWR_CTRL0

0x60 - NA

Source

pub fn cpu_corestalled_st(&self) -> &CPU_CORESTALLED_ST

0x64 - NA

Source

pub fn crypto_ctrl(&self) -> &CRYPTO_CTRL

0x70 - NA

Source

pub fn gpio_o_hold_ctrl0(&self) -> &GPIO_O_HOLD_CTRL0

0x74 - NA

Source

pub fn gpio_o_hold_ctrl1(&self) -> &GPIO_O_HOLD_CTRL1

0x78 - NA

Source

pub fn rdn_eco_cs(&self) -> &RDN_ECO_CS

0x7c - NA

Source

pub fn cache_apb_postw_en(&self) -> &CACHE_APB_POSTW_EN

0x80 - NA

Source

pub fn l2_mem_subsize(&self) -> &L2_MEM_SUBSIZE

0x84 - NA

Source

pub fn l2_mem_int_raw(&self) -> &L2_MEM_INT_RAW

0x9c - NA

Source

pub fn l2_mem_int_st(&self) -> &L2_MEM_INT_ST

0xa0 - NA

Source

pub fn l2_mem_int_ena(&self) -> &L2_MEM_INT_ENA

0xa4 - NA

Source

pub fn l2_mem_int_clr(&self) -> &L2_MEM_INT_CLR

0xa8 - NA

Source

pub fn l2_mem_l2_ram_ecc(&self) -> &L2_MEM_L2_RAM_ECC

0xac - NA

Source

pub fn l2_mem_int_record0(&self) -> &L2_MEM_INT_RECORD0

0xb0 - NA

Source

pub fn l2_mem_int_record1(&self) -> &L2_MEM_INT_RECORD1

0xb4 - NA

Source

pub fn l2_mem_l2_cache_ecc(&self) -> &L2_MEM_L2_CACHE_ECC

0xc4 - NA

Source

pub fn l1cache_bus0_id(&self) -> &L1CACHE_BUS0_ID

0xc8 - NA

Source

pub fn l1cache_bus1_id(&self) -> &L1CACHE_BUS1_ID

0xcc - NA

Source

pub fn l2_mem_rdn_eco_cs(&self) -> &L2_MEM_RDN_ECO_CS

0xd8 - NA

Source

pub fn l2_mem_rdn_eco_low(&self) -> &L2_MEM_RDN_ECO_LOW

0xdc - NA

Source

pub fn l2_mem_rdn_eco_high(&self) -> &L2_MEM_RDN_ECO_HIGH

0xe0 - NA

Source

pub fn tcm_rdn_eco_cs(&self) -> &TCM_RDN_ECO_CS

0xe4 - NA

Source

pub fn tcm_rdn_eco_low(&self) -> &TCM_RDN_ECO_LOW

0xe8 - NA

Source

pub fn tcm_rdn_eco_high(&self) -> &TCM_RDN_ECO_HIGH

0xec - NA

Source

pub fn gpio_ded_hold_ctrl(&self) -> &GPIO_DED_HOLD_CTRL

0xf0 - NA

Source

pub fn l2_mem_sw_ecc_bwe_mask(&self) -> &L2_MEM_SW_ECC_BWE_MASK

0xf4 - NA

Source

pub fn usb20otg_mem_ctrl(&self) -> &USB20OTG_MEM_CTRL

0xf8 - NA

Source

pub fn tcm_int_raw(&self) -> &TCM_INT_RAW

0xfc - need_des

Source

pub fn tcm_int_st(&self) -> &TCM_INT_ST

0x100 - need_des

Source

pub fn tcm_int_ena(&self) -> &TCM_INT_ENA

0x104 - need_des

Source

pub fn tcm_int_clr(&self) -> &TCM_INT_CLR

0x108 - need_des

Source

pub fn tcm_parity_int_record(&self) -> &TCM_PARITY_INT_RECORD

0x10c - need_des

Source

pub fn l1_cache_pwr_ctrl(&self) -> &L1_CACHE_PWR_CTRL

0x110 - NA

Source

pub fn l2_cache_pwr_ctrl(&self) -> &L2_CACHE_PWR_CTRL

0x114 - NA

Source

pub fn cpu_waiti_conf(&self) -> &CPU_WAITI_CONF

0x118 - CPU_WAITI configuration register

Source

pub fn core_debug_runstall_conf(&self) -> &CORE_DEBUG_RUNSTALL_CONF

0x11c - Core Debug runstall configure register

Source

pub fn core_ahb_timeout(&self) -> &CORE_AHB_TIMEOUT

0x120 - need_des

Source

pub fn core_ibus_timeout(&self) -> &CORE_IBUS_TIMEOUT

0x124 - need_des

Source

pub fn core_dbus_timeout(&self) -> &CORE_DBUS_TIMEOUT

0x128 - need_des

Source

pub fn icm_cpu_h2x_cfg(&self) -> &ICM_CPU_H2X_CFG

0x138 - need_des

Source

pub fn peri1_apb_postw_en(&self) -> &PERI1_APB_POSTW_EN

0x13c - NA

Source

pub fn bitscrambler_peri_sel(&self) -> &BITSCRAMBLER_PERI_SEL

0x140 - Bitscrambler Peri Sel

Source

pub fn apb_sync_postw_en(&self) -> &APB_SYNC_POSTW_EN

0x144 - N/A

Source

pub fn gdma_ctrl(&self) -> &GDMA_CTRL

0x148 - N/A

Source

pub fn gmac_ctrl0(&self) -> &GMAC_CTRL0

0x14c - N/A

Source

pub fn gmac_ctrl1(&self) -> &GMAC_CTRL1

0x150 - N/A

Source

pub fn gmac_ctrl2(&self) -> &GMAC_CTRL2

0x154 - N/A

Source

pub fn vpu_ctrl(&self) -> &VPU_CTRL

0x158 - N/A

Source

pub fn usbotg20_ctrl(&self) -> &USBOTG20_CTRL

0x15c - N/A

Source

pub fn tcm_err_resp_ctrl(&self) -> &TCM_ERR_RESP_CTRL

0x160 - need_des

Source

pub fn l2_mem_refresh(&self) -> &L2_MEM_REFRESH

0x164 - NA

Source

pub fn tcm_init(&self) -> &TCM_INIT

0x168 - NA

Source

pub fn tcm_parity_check_ctrl(&self) -> &TCM_PARITY_CHECK_CTRL

0x16c - need_des

Source

pub fn design_for_verification0(&self) -> &DESIGN_FOR_VERIFICATION0

0x170 - need_des

Source

pub fn design_for_verification1(&self) -> &DESIGN_FOR_VERIFICATION1

0x174 - need_des

Source

pub fn psram_flash_addr_interchange(&self) -> &PSRAM_FLASH_ADDR_INTERCHANGE

0x180 - need_des

Source

pub fn ahb2axi_bresp_err_int_raw(&self) -> &AHB2AXI_BRESP_ERR_INT_RAW

0x188 - NA

Source

pub fn ahb2axi_bresp_err_int_st(&self) -> &AHB2AXI_BRESP_ERR_INT_ST

0x18c - need_des

Source

pub fn ahb2axi_bresp_err_int_ena(&self) -> &AHB2AXI_BRESP_ERR_INT_ENA

0x190 - need_des

Source

pub fn ahb2axi_bresp_err_int_clr(&self) -> &AHB2AXI_BRESP_ERR_INT_CLR

0x194 - need_des

Source

pub fn l2_mem_err_resp_ctrl(&self) -> &L2_MEM_ERR_RESP_CTRL

0x198 - need_des

Source

pub fn l2_mem_ahb_buffer_ctrl(&self) -> &L2_MEM_AHB_BUFFER_CTRL

0x19c - need_des

Source

pub fn core_dmactive_lpcore(&self) -> &CORE_DMACTIVE_LPCORE

0x1a0 - need_des

Source

pub fn core_err_resp_dis(&self) -> &CORE_ERR_RESP_DIS

0x1a4 - need_des

Source

pub fn core_timeout_int_raw(&self) -> &CORE_TIMEOUT_INT_RAW

0x1a8 - Hp core bus timeout interrupt raw register

Source

pub fn core_timeout_int_st(&self) -> &CORE_TIMEOUT_INT_ST

0x1ac - masked interrupt register

Source

pub fn core_timeout_int_ena(&self) -> &CORE_TIMEOUT_INT_ENA

0x1b0 - masked interrupt register

Source

pub fn core_timeout_int_clr(&self) -> &CORE_TIMEOUT_INT_CLR

0x1b4 - interrupt clear register

Source

pub fn gpio_o_hys_ctrl0(&self) -> &GPIO_O_HYS_CTRL0

0x1c0 - NA

Source

pub fn gpio_o_hys_ctrl1(&self) -> &GPIO_O_HYS_CTRL1

0x1c4 - NA

Source

pub fn rsa_pd_ctrl(&self) -> &RSA_PD_CTRL

0x1d0 - rsa pd ctrl register

Source

pub fn ecc_pd_ctrl(&self) -> &ECC_PD_CTRL

0x1d4 - ecc pd ctrl register

Source

pub fn rng_cfg(&self) -> &RNG_CFG

0x1d8 - rng cfg register

Source

pub fn uart_pd_ctrl(&self) -> &UART_PD_CTRL

0x1dc - ecc pd ctrl register

Source

pub fn peri_mem_clk_force_on(&self) -> &PERI_MEM_CLK_FORCE_ON

0x1e0 - hp peri mem clk force on regpster

Trait Implementations§

Source§

impl Debug for HP_SYS

Source§

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

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

impl Deref for HP_SYS

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Send for HP_SYS

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.