Struct mcxn947_pac::BSP32_0
source · pub struct BSP32_0 { /* private fields */ }
Expand description
CoolFlux BSP32
Implementations§
source§impl BSP32_0
impl BSP32_0
sourcepub const PTR: *const RegisterBlock = {0x40032000 as *const bsp32_0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40032000 as *const bsp32_0::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 offset_pmem(&self) -> &OFFSET_PMEM
pub fn offset_pmem(&self) -> &OFFSET_PMEM
0x00 - Offset address register for program memory
sourcepub fn offset_xmem(&self) -> &OFFSET_XMEM
pub fn offset_xmem(&self) -> &OFFSET_XMEM
0x04 - Offset address register for X-data memory
sourcepub fn offset_ymem(&self) -> &OFFSET_YMEM
pub fn offset_ymem(&self) -> &OFFSET_YMEM
0x08 - Offset address register for Y-data memory
sourcepub fn offset_mailbox(&self) -> &OFFSET_MAILBOX
pub fn offset_mailbox(&self) -> &OFFSET_MAILBOX
0x0c - Offset address register for mailbox peripheral
sourcepub fn interrupts_external(&self) -> &INTERRUPTS_EXTERNAL
pub fn interrupts_external(&self) -> &INTERRUPTS_EXTERNAL
0x10 - External interrupt register
sourcepub fn interrupts_status(&self) -> &INTERRUPTS_STATUS
pub fn interrupts_status(&self) -> &INTERRUPTS_STATUS
0x14 - Interrupt status register
sourcepub fn cf_gating_override(&self) -> &CF_GATING_OVERRIDE
pub fn cf_gating_override(&self) -> &CF_GATING_OVERRIDE
0x18 - CoolFlux BSP32 gating override
sourcepub fn ivt_offset(&self) -> &IVT_OFFSET
pub fn ivt_offset(&self) -> &IVT_OFFSET
0x1c - CoolFlux BSP32 IVT offset register
sourcepub fn sleep_mode(&self) -> &SLEEP_MODE
pub fn sleep_mode(&self) -> &SLEEP_MODE
0x20 - CoolFlux BSP32 sleep mode register
sourcepub fn ivt_disable(&self) -> &IVT_DISABLE
pub fn ivt_disable(&self) -> &IVT_DISABLE
0x34 - CoolFlux BSP32 IVT disable register