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.