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 StructuralEq for Otplsr
impl StructuralPartialEq for Otplsr
Auto Trait Implementationsยง
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