pub struct OTFDEC1_S { /* private fields */ }Expand description
OTFDEC register bank
Implementations§
Source§impl OTFDEC1_S
impl OTFDEC1_S
Sourcepub const PTR: *const RegisterBlock = {0x56005000 as *const stm32h533::otfdec1::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x56005000 as *const stm32h533::otfdec1::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 privcfgr(&self) -> &PRIVCFGR
pub fn privcfgr(&self) -> &PRIVCFGR
0x10 - OTFDEC privileged access control configuration register
Sourcepub fn r1startaddr(&self) -> &R1STARTADDR
pub fn r1startaddr(&self) -> &R1STARTADDR
0x24 - OTFDEC region 1 start address register
Sourcepub fn r2startaddr(&self) -> &R2STARTADDR
pub fn r2startaddr(&self) -> &R2STARTADDR
0x54 - OTFDEC region 2 start address register
Sourcepub fn r3startaddr(&self) -> &R3STARTADDR
pub fn r3startaddr(&self) -> &R3STARTADDR
0x84 - OTFDEC region 3 start address register
Sourcepub fn r4startaddr(&self) -> &R4STARTADDR
pub fn r4startaddr(&self) -> &R4STARTADDR
0xb4 - OTFDEC region 4 start address register