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 stm32h573::flash::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40022000 as *const stm32h573::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 secobkkeyr(&self) -> &SECOBKKEYR
pub fn secobkkeyr(&self) -> &SECOBKKEYR
0x14 - FLASH secure OBK key register
Sourcepub fn secobkcfgr(&self) -> &SECOBKCFGR
pub fn secobkcfgr(&self) -> &SECOBKCFGR
0x44 - FLASH secure OBK configuration register
Sourcepub fn nsepochr_cur(&self) -> &NSEPOCHR_CUR
pub fn nsepochr_cur(&self) -> &NSEPOCHR_CUR
0x60 - FLASH non-secure EPOCH register
Sourcepub fn secepochr_cur(&self) -> &SECEPOCHR_CUR
pub fn secepochr_cur(&self) -> &SECEPOCHR_CUR
0x68 - FLASH secure EPOCH register
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 boot register
Sourcepub fn nsbootr_prg(&self) -> &NSBOOTR_PRG
pub fn nsbootr_prg(&self) -> &NSBOOTR_PRG
0x84 - FLASH non-secure boot register
Sourcepub fn secbootr_cur(&self) -> &SECBOOTR_CUR
pub fn secbootr_cur(&self) -> &SECBOOTR_CUR
0x88 - FLASH secure boot register
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 secwm1r_cur(&self) -> &SECWM1R_CUR
pub fn secwm1r_cur(&self) -> &SECWM1R_CUR
0xe0 - FLASH security watermark for Bank 1
Sourcepub fn secwm1r_prg(&self) -> &SECWM1R_PRG
pub fn secwm1r_prg(&self) -> &SECWM1R_PRG
0xe4 - FLASH security watermark for Bank 1
Sourcepub fn edata1r_cur(&self) -> &EDATA1R_CUR
pub fn edata1r_cur(&self) -> &EDATA1R_CUR
0xf0 - FLASH data sector configuration Bank 1
Sourcepub fn edata1r_prg(&self) -> &EDATA1R_PRG
pub fn edata1r_prg(&self) -> &EDATA1R_PRG
0xf4 - FLASH data sector configuration Bank 1
Sourcepub fn secwm2r_cur(&self) -> &SECWM2R_CUR
pub fn secwm2r_cur(&self) -> &SECWM2R_CUR
0x1e0 - FLASH security watermark for Bank 2
Sourcepub fn secwm2r_prg(&self) -> &SECWM2R_PRG
pub fn secwm2r_prg(&self) -> &SECWM2R_PRG
0x1e4 - FLASH security watermark for Bank 2
Sourcepub fn edata2r_cur(&self) -> &EDATA2R_CUR
pub fn edata2r_cur(&self) -> &EDATA2R_CUR
0x1f0 - FLASH data sectors configuration Bank 2
Sourcepub fn edata2r_prg(&self) -> &EDATA2R_PRG
pub fn edata2r_prg(&self) -> &EDATA2R_PRG
0x1f4 - FLASH data sector configuration Bank 2