Struct stm32_metapac::flash::regs::Otpblr
#[repr(transparent)]pub struct Otpblr(pub u32);
Expand description
FLASH non-secure OTP block lock
Tuple Fields§
§0: u32
Implementations§
§impl Otpblr
impl Otpblr
pub const fn lockbl(&self) -> u32
pub const fn lockbl(&self) -> u32
OTP block lock Block n corresponds to OTP 16-bit word 32 x n to 32 x n + 31. LOCKBL[n] = 1 indicates that all OTP 16-bit words in OTP Block n are locked and attempt to program them results in WRPERR. LOCKBL[n] = 0 indicates that all OTP 16-bit words in OTP Block n are not locked. When one block is locked, it is not possible to remove the write protection. LOCKBL bits can be set if the corresponding bit in FLASH_OTPBLR_CUR is cleared.
pub fn set_lockbl(&mut self, val: u32)
pub fn set_lockbl(&mut self, val: u32)
OTP block lock Block n corresponds to OTP 16-bit word 32 x n to 32 x n + 31. LOCKBL[n] = 1 indicates that all OTP 16-bit words in OTP Block n are locked and attempt to program them results in WRPERR. LOCKBL[n] = 0 indicates that all OTP 16-bit words in OTP Block n are not locked. When one block is locked, it is not possible to remove the write protection. LOCKBL bits can be set if the corresponding bit in FLASH_OTPBLR_CUR is cleared.
Trait Implementations§
impl Copy for Otpblr
impl Eq for Otpblr
impl StructuralPartialEq for Otpblr
Auto Trait Implementations§
impl Freeze for Otpblr
impl RefUnwindSafe for Otpblr
impl Send for Otpblr
impl Sync for Otpblr
impl Unpin for Otpblr
impl UnwindSafe for Otpblr
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
)