pub struct PDS { /* private fields */ }
Expand description
Power-Down Sleep control
Implementations§
Source§impl PDS
impl PDS
Sourcepub const PTR: *const RegisterBlock = {0x2000e000 as *const pds::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x2000e000 as *const pds::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 pds_gpio_i_set(&self) -> &PDS_GPIO_I_SET
pub fn pds_gpio_i_set(&self) -> &PDS_GPIO_I_SET
0x30 - pds_gpio_i_set.
Sourcepub fn pds_gpio_pd_set(&self) -> &PDS_GPIO_PD_SET
pub fn pds_gpio_pd_set(&self) -> &PDS_GPIO_PD_SET
0x34 - pds_gpio_pd_set.
Sourcepub fn pds_gpio_int(&self) -> &PDS_GPIO_INT
pub fn pds_gpio_int(&self) -> &PDS_GPIO_INT
0x40 - pds_gpio_int.
Sourcepub fn pds_gpio_stat(&self) -> &PDS_GPIO_STAT
pub fn pds_gpio_stat(&self) -> &PDS_GPIO_STAT
0x44 - pds_gpio_stat.
Sourcepub fn cpu_core_cfg1(&self) -> &CPU_CORE_CFG1
pub fn cpu_core_cfg1(&self) -> &CPU_CORE_CFG1
0x114 - cpu_core_cfg1.
Sourcepub fn cpu_core_cfg14(&self) -> &CPU_CORE_CFG14
pub fn cpu_core_cfg14(&self) -> &CPU_CORE_CFG14
0x148 - cpu_core_cfg14.
Sourcepub fn rc32m_ctrl0(&self) -> &RC32M_CTRL0
pub fn rc32m_ctrl0(&self) -> &RC32M_CTRL0
0x300 - rc32m_ctrl0.
Sourcepub fn rc32m_ctrl1(&self) -> &RC32M_CTRL1
pub fn rc32m_ctrl1(&self) -> &RC32M_CTRL1
0x304 - rc32m_ctrl1.
Sourcepub fn rc32m_ctrl2(&self) -> &RC32M_CTRL2
pub fn rc32m_ctrl2(&self) -> &RC32M_CTRL2
0x308 - rc32m_ctrl2.
Sourcepub fn pu_rst_clkpll(&self) -> &PU_RST_CLKPLL
pub fn pu_rst_clkpll(&self) -> &PU_RST_CLKPLL
0x400 - pu_rst_clkpll.
Sourcepub fn usb_phy_ctrl(&self) -> &USB_PHY_CTRL
pub fn usb_phy_ctrl(&self) -> &USB_PHY_CTRL
0x504 - usb_phy_ctrl.