pub struct FLASH { /* private fields */ }Expand description
FLASH address block description
Implementations§
Source§impl FLASH
impl FLASH
Sourcepub const PTR: *const RegisterBlock = {0x40022000 as *const stm32h503::flash::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40022000 as *const stm32h503::flash::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 optsr2_cur(&self) -> &OPTSR2_CUR
pub fn optsr2_cur(&self) -> &OPTSR2_CUR
0x70 - FLASH option status register 2
Sourcepub fn optsr2_prg(&self) -> &OPTSR2_PRG
pub fn optsr2_prg(&self) -> &OPTSR2_PRG
0x74 - FLASH option status register 2
Sourcepub fn nsbootr_cur(&self) -> &NSBOOTR_CUR
pub fn nsbootr_cur(&self) -> &NSBOOTR_CUR
0x80 - FLASH non-secure unique boot entry register
Sourcepub fn nsbootr_prg(&self) -> &NSBOOTR_PRG
pub fn nsbootr_prg(&self) -> &NSBOOTR_PRG
0x84 - FLASH non-secure unique boot entry address
Sourcepub fn otpblr_cur(&self) -> &OTPBLR_CUR
pub fn otpblr_cur(&self) -> &OTPBLR_CUR
0x90 - FLASH non-secure OTP block lock
Sourcepub fn otpblr_prg(&self) -> &OTPBLR_PRG
pub fn otpblr_prg(&self) -> &OTPBLR_PRG
0x94 - FLASH non-secure OTP block lock
Sourcepub fn wrpsgn1r_cur(&self) -> &WRPSGN1R_CUR
pub fn wrpsgn1r_cur(&self) -> &WRPSGN1R_CUR
0xe8 - FLASH write sector protection for Bank1
Sourcepub fn wrpsgn1r_prg(&self) -> &WRPSGN1R_PRG
pub fn wrpsgn1r_prg(&self) -> &WRPSGN1R_PRG
0xec - FLASH write sector protection for Bank1
Sourcepub fn wrpsgn2r_cur(&self) -> &WRPSGN2R_CUR
pub fn wrpsgn2r_cur(&self) -> &WRPSGN2R_CUR
0x1e8 - FLASH write sector protection for Bank2
Sourcepub fn wrpsgn2r_prg(&self) -> &WRPSGN2R_PRG
pub fn wrpsgn2r_prg(&self) -> &WRPSGN2R_PRG
0x1ec - FLASH write sector protection for Bank2