Struct OptsrPrg
#[repr(transparent)]pub struct OptsrPrg(pub u32);Expand description
FLASH option status register
Tuple Fields§
§0: u32Implementations§
§impl OptsrPrg
impl OptsrPrg
pub const fn set_bor_lev(&mut self, val: BorLev)
pub const fn set_bor_lev(&mut self, val: BorLev)
Brownout level option configuration bits.
pub const fn iwdg1_sw(&self) -> bool
pub const fn iwdg1_sw(&self) -> bool
IWDG1 control mode option configuration bit (0: controlled by hardware, 1: controlled by software).
pub const fn set_iwdg1_sw(&mut self, val: bool)
pub const fn set_iwdg1_sw(&mut self, val: bool)
IWDG1 control mode option configuration bit (0: controlled by hardware, 1: controlled by software).
pub const fn iwdg2_sw(&self) -> bool
pub const fn iwdg2_sw(&self) -> bool
IWDG2 control mode option configuration bit (0: controlled by hardware, 1: controlled by software). Only on dual-core devices (RM0399).
pub const fn set_iwdg2_sw(&mut self, val: bool)
pub const fn set_iwdg2_sw(&mut self, val: bool)
IWDG2 control mode option configuration bit (0: controlled by hardware, 1: controlled by software). Only on dual-core devices (RM0399).
pub const fn nrst_stop_d1(&self) -> bool
pub const fn nrst_stop_d1(&self) -> bool
D1 domain DStop entry reset option configuration bit (0: reset generated when entering DStop mode on D1 domain, 1: no reset).
pub const fn set_nrst_stop_d1(&mut self, val: bool)
pub const fn set_nrst_stop_d1(&mut self, val: bool)
D1 domain DStop entry reset option configuration bit (0: reset generated when entering DStop mode on D1 domain, 1: no reset).
pub const fn nrst_stby_d1(&self) -> bool
pub const fn nrst_stby_d1(&self) -> bool
D1 domain DStandby entry reset option configuration bit (0: reset generated when entering DStandby mode on D1 domain, 1: no reset).
pub const fn set_nrst_stby_d1(&mut self, val: bool)
pub const fn set_nrst_stby_d1(&mut self, val: bool)
D1 domain DStandby entry reset option configuration bit (0: reset generated when entering DStandby mode on D1 domain, 1: no reset).
pub const fn iwdg_fz_stop(&self) -> bool
pub const fn iwdg_fz_stop(&self) -> bool
IWDG Stop mode freeze option configuration bit (0: IWDG frozen in Stop mode, 1: IWDG running).
pub const fn set_iwdg_fz_stop(&mut self, val: bool)
pub const fn set_iwdg_fz_stop(&mut self, val: bool)
IWDG Stop mode freeze option configuration bit (0: IWDG frozen in Stop mode, 1: IWDG running).
pub const fn iwdg_fz_sdby(&self) -> bool
pub const fn iwdg_fz_sdby(&self) -> bool
IWDG Standby mode freeze option configuration bit (0: IWDG frozen in Standby mode, 1: IWDG running).
pub const fn set_iwdg_fz_sdby(&mut self, val: bool)
pub const fn set_iwdg_fz_sdby(&mut self, val: bool)
IWDG Standby mode freeze option configuration bit (0: IWDG frozen in Standby mode, 1: IWDG running).
pub const fn st_ram_size(&self) -> StRamSize
pub const fn st_ram_size(&self) -> StRamSize
ST RAM size option configuration bits (RAM reserved to ST secure code).
pub const fn set_st_ram_size(&mut self, val: StRamSize)
pub const fn set_st_ram_size(&mut self, val: StRamSize)
ST RAM size option configuration bits (RAM reserved to ST secure code).
pub const fn set_security(&mut self, val: bool)
pub const fn set_security(&mut self, val: bool)
Security option configuration bit
pub const fn set_boot_cm4(&mut self, val: bool)
pub const fn set_boot_cm4(&mut self, val: bool)
Arm Cortex-M4 boot enable. Only on dual-core devices (RM0399).
pub const fn set_boot_cm7(&mut self, val: bool)
pub const fn set_boot_cm7(&mut self, val: bool)
Arm Cortex-M7 boot enable. Only on dual-core devices (RM0399).
pub const fn nrst_stop_d2(&self) -> bool
pub const fn nrst_stop_d2(&self) -> bool
D2 domain DStop entry reset option configuration bit (0: reset generated when entering DStop mode on D2 domain, 1: no reset). Only on dual-core devices (RM0399).
pub const fn set_nrst_stop_d2(&mut self, val: bool)
pub const fn set_nrst_stop_d2(&mut self, val: bool)
D2 domain DStop entry reset option configuration bit (0: reset generated when entering DStop mode on D2 domain, 1: no reset). Only on dual-core devices (RM0399).
pub const fn nrst_stby_d2(&self) -> bool
pub const fn nrst_stby_d2(&self) -> bool
D2 domain DStandby entry reset option configuration bit (0: reset generated when entering DStandby mode on D2 domain, 1: no reset). Only on dual-core devices (RM0399).
pub const fn set_nrst_stby_d2(&mut self, val: bool)
pub const fn set_nrst_stby_d2(&mut self, val: bool)
D2 domain DStandby entry reset option configuration bit (0: reset generated when entering DStandby mode on D2 domain, 1: no reset). Only on dual-core devices (RM0399).
pub const fn set_io_hslv(&mut self, val: bool)
pub const fn set_io_hslv(&mut self, val: bool)
I/O high-speed at low-voltage (PRODUCT_BELOW_25V)
pub const fn swap_bank_opt(&self) -> bool
pub const fn swap_bank_opt(&self) -> bool
Bank swapping option configuration bit (not on STM32H72x/H73x).
pub const fn set_swap_bank_opt(&mut self, val: bool)
pub const fn set_swap_bank_opt(&mut self, val: bool)
Bank swapping option configuration bit (not on STM32H72x/H73x).