pub struct SYS_CFG { /* private fields */ }Expand description
System Configuration
Implementations§
Source§impl SYS_CFG
impl SYS_CFG
Sourcepub const PTR: *const RegisterBlock = {0x3000000 as *const sys_cfg::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x3000000 as *const sys_cfg::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 dsp_boot_rammap(&self) -> &DSP_BOOT_RAMMAP
pub fn dsp_boot_rammap(&self) -> &DSP_BOOT_RAMMAP
0x08 - DSP Boot SRAM Remap Control Register
Sourcepub fn emac_ephy_clk0(&self) -> &EMAC_EPHY_CLK0
pub fn emac_ephy_clk0(&self) -> &EMAC_EPHY_CLK0
0x30 - EMAC-EPHY Clock Register 0
Sourcepub fn sys_ldo_ctrl(&self) -> &SYS_LDO_CTRL
pub fn sys_ldo_ctrl(&self) -> &SYS_LDO_CTRL
0x150 - System LDO Control Register
Sourcepub fn rescal_ctrl(&self) -> &RESCAL_CTRL
pub fn rescal_ctrl(&self) -> &RESCAL_CTRL
0x160 - Resistor Calibration Control Register
Sourcepub fn res240_ctrl(&self) -> &RES240_CTRL
pub fn res240_ctrl(&self) -> &RES240_CTRL
0x168 - 240ohms Resistor Manual Control Register
Sourcepub fn rescal_status(&self) -> &RESCAL_STATUS
pub fn rescal_status(&self) -> &RESCAL_STATUS
0x16c - Resistor Calibration Status Register