pub struct LP_APM0 { /* private fields */ }
Expand description
LP_APM0 Peripheral
Implementations§
source§impl LP_APM0
impl LP_APM0
sourcepub const PTR: *const RegisterBlock = {0x60099800 as *const lp_apm0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x60099800 as *const lp_apm0::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 region2_addr_start(&self) -> ®ION2_ADDR_START
pub fn region2_addr_start(&self) -> ®ION2_ADDR_START
0x1c - Region address register
sourcepub fn region2_addr_end(&self) -> ®ION2_ADDR_END
pub fn region2_addr_end(&self) -> ®ION2_ADDR_END
0x20 - Region address register
sourcepub fn region2_pms_attr(&self) -> ®ION2_PMS_ATTR
pub fn region2_pms_attr(&self) -> ®ION2_PMS_ATTR
0x24 - Region access authority attribute register
sourcepub fn region3_addr_start(&self) -> ®ION3_ADDR_START
pub fn region3_addr_start(&self) -> ®ION3_ADDR_START
0x28 - Region address register
sourcepub fn region3_addr_end(&self) -> ®ION3_ADDR_END
pub fn region3_addr_end(&self) -> ®ION3_ADDR_END
0x2c - Region address register
sourcepub fn region3_pms_attr(&self) -> ®ION3_PMS_ATTR
pub fn region3_pms_attr(&self) -> ®ION3_PMS_ATTR
0x30 - 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
0xdc - clock gating register