Struct Sr
#[repr(transparent)]pub struct Sr(pub u32);Expand description
FLASH nonsecure status register.
Tuple Fields§
§0: u32Implementations§
§impl Sr
impl Sr
pub const fn set_progerr(&mut self, val: bool)
pub const fn set_progerr(&mut self, val: bool)
Nonsecure programming error.
pub const fn set_wrperr(&mut self, val: bool)
pub const fn set_wrperr(&mut self, val: bool)
Nonsecure write protection error.
pub const fn set_pgaerr(&mut self, val: bool)
pub const fn set_pgaerr(&mut self, val: bool)
Nonsecure programming alignment error.
pub const fn set_sizerr(&mut self, val: bool)
pub const fn set_sizerr(&mut self, val: bool)
Nonsecure size error.
pub const fn set_pgserr(&mut self, val: bool)
pub const fn set_pgserr(&mut self, val: bool)
Nonsecure programming sequence error.
pub const fn set_optwerr(&mut self, val: bool)
pub const fn set_optwerr(&mut self, val: bool)
Option write error.
pub const fn set_oem1lock(&mut self, val: bool)
pub const fn set_oem1lock(&mut self, val: bool)
OEM1 lock.
pub const fn set_oem2lock(&mut self, val: bool)
pub const fn set_oem2lock(&mut self, val: bool)
OEM2 lock.
Trait Implementations§
impl Copy for Sr
impl Eq for Sr
impl StructuralPartialEq for Sr
Auto Trait Implementations§
impl Freeze for Sr
impl RefUnwindSafe for Sr
impl Send for Sr
impl Sync for Sr
impl Unpin for Sr
impl UnwindSafe for Sr
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