Struct stm32_metapac::flash::regs::Optr
#[repr(transparent)]pub struct Optr(pub u32);
Expand description
option register
Tuple Fields§
§0: u32
Implementations§
§impl Optr
impl Optr
pub const fn rdp(&self) -> Rdp
pub const fn rdp(&self) -> Rdp
Readout protection level Others: Level 1 (memories readout protection active) Note: Refer to Section�7.6.2: Readout protection (RDP) for more details.
pub fn set_rdp(&mut self, val: Rdp)
pub fn set_rdp(&mut self, val: Rdp)
Readout protection level Others: Level 1 (memories readout protection active) Note: Refer to Section�7.6.2: Readout protection (RDP) for more details.
pub const fn bor_lev(&self) -> BorLev
pub const fn bor_lev(&self) -> BorLev
BOR reset level These bits contain the VDD supply level threshold that activates/releases the reset.
pub fn set_bor_lev(&mut self, val: BorLev)
pub fn set_bor_lev(&mut self, val: BorLev)
BOR reset level These bits contain the VDD supply level threshold that activates/releases the 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_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 enable 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_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