Struct stm32_metapac::flash::regs::Optsr2
#[repr(transparent)]pub struct Optsr2(pub u32);
Expand description
FLASH option status register 2
Tuple Fields§
§0: u32
Implementations§
§impl Optsr2
impl Optsr2
pub const fn sram13_rst(&self) -> bool
pub const fn sram13_rst(&self) -> bool
SRAM1 and SRAM3 erase upon system reset
pub fn set_sram13_rst(&mut self, val: bool)
pub fn set_sram13_rst(&mut self, val: bool)
SRAM1 and SRAM3 erase upon system reset
pub fn set_sram2_rst(&mut self, val: bool)
pub fn set_sram2_rst(&mut self, val: bool)
SRAM2 erase when system reset
pub const fn bkpram_ecc(&self) -> OptsrBkpramEcc
pub const fn bkpram_ecc(&self) -> OptsrBkpramEcc
Backup RAM ECC detection and correction disable
pub fn set_bkpram_ecc(&mut self, val: OptsrBkpramEcc)
pub fn set_bkpram_ecc(&mut self, val: OptsrBkpramEcc)
Backup RAM ECC detection and correction disable
pub const fn sram3_ecc(&self) -> OptsrSramEcc
pub const fn sram3_ecc(&self) -> OptsrSramEcc
SRAM3 ECC detection and correction disable
pub fn set_sram3_ecc(&mut self, val: OptsrSramEcc)
pub fn set_sram3_ecc(&mut self, val: OptsrSramEcc)
SRAM3 ECC detection and correction disable
pub const fn sram2_ecc(&self) -> OptsrSramEcc
pub const fn sram2_ecc(&self) -> OptsrSramEcc
SRAM2 ECC detection and correction disable
pub fn set_sram2_ecc(&mut self, val: OptsrSramEcc)
pub fn set_sram2_ecc(&mut self, val: OptsrSramEcc)
SRAM2 ECC detection and correction disable
pub fn set_usbpd_dis(&mut self, val: bool)
pub fn set_usbpd_dis(&mut self, val: bool)
USB power delivery configuration option bit
Trait Implementations§
impl Copy for Optsr2
impl Eq for Optsr2
impl StructuralPartialEq for Optsr2
Auto Trait Implementations§
impl Freeze for Optsr2
impl RefUnwindSafe for Optsr2
impl Send for Optsr2
impl Sync for Optsr2
impl Unpin for Optsr2
impl UnwindSafe for Optsr2
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)