pub struct HP_APM { /* private fields */ }
Expand description
HP_APM Peripheral
Implementations§
source§impl HP_APM
impl HP_APM
sourcepub const PTR: *const RegisterBlock = {0x60099000 as *const hp_apm::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x60099000 as *const hp_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 region(&self, n: usize) -> ®ION
pub fn region(&self, n: usize) -> ®ION
0x04..0xc4 - Cluster REGION%s, containing REGION*_ADDR_START, REGION*_ADDR_END, REGION*_PMS_ATTR
sourcepub fn region_iter(&self) -> impl Iterator<Item = ®ION>
pub fn region_iter(&self) -> impl Iterator<Item = ®ION>
Iterator for array of: 0x04..0xc4 - Cluster REGION%s, containing REGION*_ADDR_START, REGION*_ADDR_END, REGION*_PMS_ATTR
sourcepub fn m(&self, n: usize) -> &M
pub fn m(&self, n: usize) -> &M
0xc8..0x108 - Cluster M%s, containing M?_STATUS, M?_STATUS_CLR, M?_EXCEPTION_INFO0, M?_EXCEPTION_INFO1
sourcepub fn m_iter(&self) -> impl Iterator<Item = &M>
pub fn m_iter(&self) -> impl Iterator<Item = &M>
Iterator for array of: 0xc8..0x108 - Cluster M%s, containing M?_STATUS, M?_STATUS_CLR, M?_EXCEPTION_INFO0, M?_EXCEPTION_INFO1
sourcepub fn clock_gate(&self) -> &CLOCK_GATE
pub fn clock_gate(&self) -> &CLOCK_GATE
0x10c - clock gating register