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.
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.
pub fn set_borh_en(&mut self, val: bool)
pub fn set_borh_en(&mut self, val: bool)
Brownout high enable status bit
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_shdw(&self) -> OptsrNrstShdw
pub const fn nrst_shdw(&self) -> OptsrNrstShdw
Core domain Shutdown entry reset option status bit
pub fn set_nrst_shdw(&mut self, val: OptsrNrstShdw)
pub fn set_nrst_shdw(&mut self, val: OptsrNrstShdw)
Core domain Shutdown entry reset 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) -> ProductState
pub const fn product_state(&self) -> ProductState
Life state code (based on Hamming 8,4).
pub fn set_product_state(&mut self, val: ProductState)
pub fn set_product_state(&mut self, val: ProductState)
Life state code (based on Hamming 8,4).
pub const fn io_vdd_hslv(&self) -> OptsrIoVddHslv
pub const fn io_vdd_hslv(&self) -> OptsrIoVddHslv
High-speed IO at low VDD voltage status bit. This bit can be set only with VDD below 2.5 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 status bit. This bit can be set only with VDD below 2.5 V.
pub const fn io_vddio2_hslv(&self) -> OptsrIoVddioHslv
pub const fn io_vddio2_hslv(&self) -> OptsrIoVddioHslv
High-speed IO at low VDDIO2 voltage status bit. This bit can be set only with VDDIO2 below 2.5 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 status bit. This bit can be set only with VDDIO2 below 2.5 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 swap_bank(&self) -> bool
pub const fn swap_bank(&self) -> bool
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: bool)
pub fn set_swap_bank(&mut self, val: bool)
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.
Trait Implementations§
impl Copy for Optsr
impl Eq for Optsr
impl StructuralPartialEq for Optsr
Auto Trait Implementations§
impl Freeze for Optsr
impl RefUnwindSafe for Optsr
impl Send for Optsr
impl Sync for Optsr
impl Unpin for Optsr
impl UnwindSafe for Optsr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)