Struct stm32_metapac::flash::regs::Otplsr
#[repr(transparent)]pub struct Otplsr(pub u32);
Expand description
FLASH OTP lock status register.
Tuple Fields§
§0: u32
Implementations§
§impl Otplsr
impl Otplsr
pub const fn otpl(&self) -> u16
pub const fn otpl(&self) -> u16
OTP lock n Block n corresponds to OTP 16-bit word 32 x n to 32 x n + 31. OTPL[n] = 1 indicates that all OTP 16-bit words in OTP Block n are locked and can no longer be programmed. OTPL[n] = 0 indicates that all OTP 16-bit words in OTP Block n are not locked and can still be modified.
pub fn set_otpl(&mut self, val: u16)
pub fn set_otpl(&mut self, val: u16)
OTP lock n Block n corresponds to OTP 16-bit word 32 x n to 32 x n + 31. OTPL[n] = 1 indicates that all OTP 16-bit words in OTP Block n are locked and can no longer be programmed. OTPL[n] = 0 indicates that all OTP 16-bit words in OTP Block n are not locked and can still be modified.
Trait Implementations§
impl Copy for Otplsr
impl Eq for Otplsr
impl StructuralPartialEq for Otplsr
Auto Trait Implementations§
impl Freeze for Otplsr
impl RefUnwindSafe for Otplsr
impl Send for Otplsr
impl Sync for Otplsr
impl Unpin for Otplsr
impl UnwindSafe for Otplsr
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
)