Struct Optr
#[repr(transparent)]pub struct Optr(pub u32);Expand description
FLASH option register.
Tuple Fields§
§0: u32Implementations§
§impl Optr
impl Optr
pub fn set_bor_lev(&mut self, val: BorLev)
pub fn set_bor_lev(&mut self, val: BorLev)
BOR reset level.
pub fn set_bdrst_por(&mut self, val: bool)
pub fn set_bdrst_por(&mut self, val: bool)
Backup domain reset with power-on reset.
pub fn set_nrst_stop(&mut self, val: bool)
pub fn set_nrst_stop(&mut self, val: bool)
Reset generation in Stop mode.
pub const fn nrst_stdby(&self) -> bool
pub const fn nrst_stdby(&self) -> bool
Reset generation in Standby mode.
pub fn set_nrst_stdby(&mut self, val: bool)
pub fn set_nrst_stdby(&mut self, val: bool)
Reset generation in Standby mode.
pub fn set_nrst_shdw(&mut self, val: bool)
pub fn set_nrst_shdw(&mut self, val: bool)
Reset generation in Shutdown mode.
pub fn set_sram1_rst(&mut self, val: bool)
pub fn set_sram1_rst(&mut self, val: bool)
SRAM1 erase upon system reset.
pub fn set_iwdg_sw(&mut self, val: bool)
pub fn set_iwdg_sw(&mut self, val: bool)
Independent watchdog selection.
pub fn set_iwdg_stop(&mut self, val: bool)
pub fn set_iwdg_stop(&mut self, val: bool)
Independent watchdog counter freeze in Stop mode.
pub const fn iwdg_stdby(&self) -> bool
pub const fn iwdg_stdby(&self) -> bool
Independent watchdog counter freeze in Standby mode.
pub fn set_iwdg_stdby(&mut self, val: bool)
pub fn set_iwdg_stdby(&mut self, val: bool)
Independent watchdog counter freeze in Standby mode.
pub fn set_wwdg_sw(&mut self, val: bool)
pub fn set_wwdg_sw(&mut self, val: bool)
Window watchdog selection.
pub fn set_swap_bank(&mut self, val: bool)
pub fn set_swap_bank(&mut self, val: bool)
Swap banks.
pub fn set_dualbank(&mut self, val: bool)
pub fn set_dualbank(&mut self, val: bool)
Dual-bank on 512-Kbyte flash memory devices.
pub fn set_sram2_pe(&mut self, val: bool)
pub fn set_sram2_pe(&mut self, val: bool)
SRAM2 parity check enable.
pub fn set_sram2_rst(&mut self, val: bool)
pub fn set_sram2_rst(&mut self, val: bool)
SRAM2 erase when system reset.
pub fn set_nswboot0(&mut self, val: bool)
pub fn set_nswboot0(&mut self, val: bool)
Software BOOT0.
pub fn set_nboot0(&mut self, val: bool)
pub fn set_nboot0(&mut self, val: bool)
NBOOT0 option bit.
pub const fn io_vdd_hslv(&self) -> bool
pub const fn io_vdd_hslv(&self) -> bool
High-speed I/O at low Vless thansub>DD less than/sub>voltage configuration bit.
pub fn set_io_vdd_hslv(&mut self, val: bool)
pub fn set_io_vdd_hslv(&mut self, val: bool)
High-speed I/O at low Vless thansub>DD less than/sub>voltage configuration bit.
pub const fn io_vddio2_hslv(&self) -> bool
pub const fn io_vddio2_hslv(&self) -> bool
High-speed I/O at low Vless thansub>DDIO2less than/sub> voltage configuration bit.
pub fn set_io_vddio2_hslv(&mut self, val: bool)
pub fn set_io_vddio2_hslv(&mut self, val: bool)
High-speed I/O at low Vless thansub>DDIO2less than/sub> voltage configuration bit.