pub struct LP_APM { /* private fields */ }
Expand description
Low-power Access Permission Management Controller
Implementations§
source§impl LP_APM
impl LP_APM
sourcepub const PTR: *const RegisterBlock = {0x600b3800 as *const lp_apm::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x600b3800 as *const lp_apm::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 region_filter_en(&self) -> ®ION_FILTER_EN
pub fn region_filter_en(&self) -> ®ION_FILTER_EN
0x00 - Region filter enable register
sourcepub fn region0_addr_start(&self) -> ®ION0_ADDR_START
pub fn region0_addr_start(&self) -> ®ION0_ADDR_START
0x04 - Region address register
sourcepub fn region0_addr_end(&self) -> ®ION0_ADDR_END
pub fn region0_addr_end(&self) -> ®ION0_ADDR_END
0x08 - Region address register
sourcepub fn region0_pms_attr(&self) -> ®ION0_PMS_ATTR
pub fn region0_pms_attr(&self) -> ®ION0_PMS_ATTR
0x0c - Region access authority attribute register
sourcepub fn region1_addr_start(&self) -> ®ION1_ADDR_START
pub fn region1_addr_start(&self) -> ®ION1_ADDR_START
0x10 - Region address register
sourcepub fn region1_addr_end(&self) -> ®ION1_ADDR_END
pub fn region1_addr_end(&self) -> ®ION1_ADDR_END
0x14 - Region address register
sourcepub fn region1_pms_attr(&self) -> ®ION1_PMS_ATTR
pub fn region1_pms_attr(&self) -> ®ION1_PMS_ATTR
0x18 - Region access authority attribute register
sourcepub fn m0_status_clr(&self) -> &M0_STATUS_CLR
pub fn m0_status_clr(&self) -> &M0_STATUS_CLR
0xcc - M0 status clear register
sourcepub fn m0_exception_info0(&self) -> &M0_EXCEPTION_INFO0
pub fn m0_exception_info0(&self) -> &M0_EXCEPTION_INFO0
0xd0 - M0 exception_info0 register
sourcepub fn m0_exception_info1(&self) -> &M0_EXCEPTION_INFO1
pub fn m0_exception_info1(&self) -> &M0_EXCEPTION_INFO1
0xd4 - M0 exception_info1 register
sourcepub fn clock_gate(&self) -> &CLOCK_GATE
pub fn clock_gate(&self) -> &CLOCK_GATE
0xec - clock gating register