Struct stm32_metapac::flash::regs::Optsr
#[repr(transparent)]pub struct Optsr(pub u32);
Expand description
FLASH option status register
Tuple Fields§
§0: u32
Implementations§
§impl Optsr
impl Optsr
pub const fn bor_lev(&self) -> OptsrBorLev
pub const fn bor_lev(&self) -> OptsrBorLev
Brownout level option status bit These bits reflects the power level that generates a system reset. 00 or 11: BOR Level 1, the threshold level is low (around 2.1�V)
pub fn set_bor_lev(&mut self, val: OptsrBorLev)
pub fn set_bor_lev(&mut self, val: OptsrBorLev)
Brownout level option status bit These bits reflects the power level that generates a system reset. 00 or 11: BOR Level 1, the threshold level is low (around 2.1�V)
pub fn set_borh_en(&mut self, val: bool)
pub fn set_borh_en(&mut self, val: bool)
Brownout high enable
pub const fn iwdg_sw(&self) -> OptsrIwdgSw
pub const fn iwdg_sw(&self) -> OptsrIwdgSw
IWDG control mode option status bit
pub fn set_iwdg_sw(&mut self, val: OptsrIwdgSw)
pub fn set_iwdg_sw(&mut self, val: OptsrIwdgSw)
IWDG control mode option status bit
pub const fn wwdg_sw(&self) -> OptsrWwdgSw
pub const fn wwdg_sw(&self) -> OptsrWwdgSw
WWDG control mode option status bit
pub fn set_wwdg_sw(&mut self, val: OptsrWwdgSw)
pub fn set_wwdg_sw(&mut self, val: OptsrWwdgSw)
WWDG control mode option status bit
pub const fn nrst_stop(&self) -> OptsrNrstStop
pub const fn nrst_stop(&self) -> OptsrNrstStop
Core domain Stop entry reset option status bit
pub fn set_nrst_stop(&mut self, val: OptsrNrstStop)
pub fn set_nrst_stop(&mut self, val: OptsrNrstStop)
Core domain Stop entry reset option status bit
pub const fn nrst_stdby(&self) -> OptsrNrstStdby
pub const fn nrst_stdby(&self) -> OptsrNrstStdby
Core domain Standby entry reset option status bit
pub fn set_nrst_stdby(&mut self, val: OptsrNrstStdby)
pub fn set_nrst_stdby(&mut self, val: OptsrNrstStdby)
Core domain Standby entry reset option status bit
pub const fn product_state(&self) -> u8
pub const fn product_state(&self) -> u8
Life state code (based on Hamming 8,4). More information in Section�7.6.11: Product state transitions.
pub fn set_product_state(&mut self, val: u8)
pub fn set_product_state(&mut self, val: u8)
Life state code (based on Hamming 8,4). More information in Section�7.6.11: Product state transitions.
pub const fn io_vdd_hslv(&self) -> OptsrIoVddHslv
pub const fn io_vdd_hslv(&self) -> OptsrIoVddHslv
High-speed IO at low VDD voltage configuration bit. This bit can be set only with VDD below 2.7�V.
pub fn set_io_vdd_hslv(&mut self, val: OptsrIoVddHslv)
pub fn set_io_vdd_hslv(&mut self, val: OptsrIoVddHslv)
High-speed IO at low VDD voltage configuration bit. This bit can be set only with VDD below 2.7�V.
pub const fn io_vddio2_hslv(&self) -> OptsrIoVddioHslv
pub const fn io_vddio2_hslv(&self) -> OptsrIoVddioHslv
High-speed IO at low VDDIO2 voltage configuration bit. This bit can be set only with VDDIO2 below 2.7�V.
pub fn set_io_vddio2_hslv(&mut self, val: OptsrIoVddioHslv)
pub fn set_io_vddio2_hslv(&mut self, val: OptsrIoVddioHslv)
High-speed IO at low VDDIO2 voltage configuration bit. This bit can be set only with VDDIO2 below 2.7�V.
pub const fn iwdg_stop(&self) -> OptsrIwdgStop
pub const fn iwdg_stop(&self) -> OptsrIwdgStop
IWDG Stop mode freeze option status bit When set the independent watchdog IWDG is in system Stop mode.
pub fn set_iwdg_stop(&mut self, val: OptsrIwdgStop)
pub fn set_iwdg_stop(&mut self, val: OptsrIwdgStop)
IWDG Stop mode freeze option status bit When set the independent watchdog IWDG is in system Stop mode.
pub const fn iwdg_stdby(&self) -> OptsrIwdgStdby
pub const fn iwdg_stdby(&self) -> OptsrIwdgStdby
IWDG Standby mode freeze option status bit When set the independent watchdog IWDG is frozen in system Standby mode.
pub fn set_iwdg_stdby(&mut self, val: OptsrIwdgStdby)
pub fn set_iwdg_stdby(&mut self, val: OptsrIwdgStdby)
IWDG Standby mode freeze option status bit When set the independent watchdog IWDG is frozen in system Standby mode.
pub const fn boot_ube(&self) -> OptsrBootUbe
pub const fn boot_ube(&self) -> OptsrBootUbe
Available only on cryptography enabled devices. Unique boot entry control, selects either ST or OEM iRoT for secure boot.
pub fn set_boot_ube(&mut self, val: OptsrBootUbe)
pub fn set_boot_ube(&mut self, val: OptsrBootUbe)
Available only on cryptography enabled devices. Unique boot entry control, selects either ST or OEM iRoT for secure boot.
pub const fn swap_bank(&self) -> OptsrSwapBank
pub const fn swap_bank(&self) -> OptsrSwapBank
Bank swapping option status bit SWAP_BANK reflects whether Bank1 and Bank2 are swapped or not. SWAP_BANK is loaded to SWAP_BANK of FLASH_OPTCR after a reset.
pub fn set_swap_bank(&mut self, val: OptsrSwapBank)
pub fn set_swap_bank(&mut self, val: OptsrSwapBank)
Bank swapping option status bit SWAP_BANK reflects whether Bank1 and Bank2 are swapped or not. SWAP_BANK is loaded to SWAP_BANK of FLASH_OPTCR after a reset.