Struct stm32_metapac::flash::regs::Nssr
#[repr(transparent)]pub struct Nssr(pub u32);
Expand description
FLASH non-secure status register
Tuple Fields§
§0: u32
Implementations§
§impl Nssr
impl Nssr
pub const fn progerr(&self) -> bool
pub const fn progerr(&self) -> bool
Non-secure programming error This bit is set by hardware when a non-secure quad-word address to be programmed contains a value different from all 1 before programming, except if the data to write is all 0. This bit is cleared by writing 1.
pub fn set_progerr(&mut self, val: bool)
pub fn set_progerr(&mut self, val: bool)
Non-secure programming error This bit is set by hardware when a non-secure quad-word address to be programmed contains a value different from all 1 before programming, except if the data to write is all 0. This bit is cleared by writing 1.
pub const fn wrperr(&self) -> bool
pub const fn wrperr(&self) -> bool
Non-secure write protection error This bit is set by hardware when an non-secure address to be erased/programmed belongs to a write-protected part (by WRP, HDP or RDP level 1) of the Flash memory. This bit is cleared by writing 1. Refer to for full conditions of error flag setting.
pub fn set_wrperr(&mut self, val: bool)
pub fn set_wrperr(&mut self, val: bool)
Non-secure write protection error This bit is set by hardware when an non-secure address to be erased/programmed belongs to a write-protected part (by WRP, HDP or RDP level 1) of the Flash memory. This bit is cleared by writing 1. Refer to for full conditions of error flag setting.
pub const fn pgaerr(&self) -> bool
pub const fn pgaerr(&self) -> bool
Non-secure programming alignment error This bit is set by hardware when the first word to be programmed is not aligned with a quad-word address, or the second, third or forth word does not belong to the same quad-word address. This bit is cleared by writing 1.
pub fn set_pgaerr(&mut self, val: bool)
pub fn set_pgaerr(&mut self, val: bool)
Non-secure programming alignment error This bit is set by hardware when the first word to be programmed is not aligned with a quad-word address, or the second, third or forth word does not belong to the same quad-word address. This bit is cleared by writing 1.
pub const fn sizerr(&self) -> bool
pub const fn sizerr(&self) -> bool
Non-secure size error This bit is set by hardware when the size of the access is a byte or half-word during a non-secure program sequence. Only quad-word programming is allowed by means of successive word accesses. This bit is cleared by writing 1.
pub fn set_sizerr(&mut self, val: bool)
pub fn set_sizerr(&mut self, val: bool)
Non-secure size error This bit is set by hardware when the size of the access is a byte or half-word during a non-secure program sequence. Only quad-word programming is allowed by means of successive word accesses. This bit is cleared by writing 1.
pub const fn pgserr(&self) -> bool
pub const fn pgserr(&self) -> bool
Non-secure programming sequence error This bit is set by hardware when programming sequence is not correct. It is cleared by writing 1. Refer to for full conditions of error flag setting.
pub fn set_pgserr(&mut self, val: bool)
pub fn set_pgserr(&mut self, val: bool)
Non-secure programming sequence error This bit is set by hardware when programming sequence is not correct. It is cleared by writing 1. Refer to for full conditions of error flag setting.
pub const fn optwerr(&self) -> bool
pub const fn optwerr(&self) -> bool
Option write error This bit is set by hardware when the options bytes are written with an invalid configuration. It is cleared by writing 1. Refer to for full conditions of error flag setting.
pub fn set_optwerr(&mut self, val: bool)
pub fn set_optwerr(&mut self, val: bool)
Option write error This bit is set by hardware when the options bytes are written with an invalid configuration. It is cleared by writing 1. Refer to for full conditions of error flag setting.
pub const fn bsy(&self) -> bool
pub const fn bsy(&self) -> bool
Non-secure busy This indicates that a Flash memory secure or non-secure operation is in progress. This bit is set at the beginning of a Flash operation and reset when the operation finishes or when an error occurs.
pub fn set_bsy(&mut self, val: bool)
pub fn set_bsy(&mut self, val: bool)
Non-secure busy This indicates that a Flash memory secure or non-secure operation is in progress. This bit is set at the beginning of a Flash operation and reset when the operation finishes or when an error occurs.
pub const fn wdw(&self) -> bool
pub const fn wdw(&self) -> bool
Non-secure wait data to write This bit indicates that the Flash memory write buffer has been written by a secure or non-secure operation. It is set when the first data is stored in the buffer and cleared when the write is performed in the Flash memory.
pub fn set_wdw(&mut self, val: bool)
pub fn set_wdw(&mut self, val: bool)
Non-secure wait data to write This bit indicates that the Flash memory write buffer has been written by a secure or non-secure operation. It is set when the first data is stored in the buffer and cleared when the write is performed in the Flash memory.
pub const fn oem1lock(&self) -> bool
pub const fn oem1lock(&self) -> bool
OEM1 lock This bit indicates that the OEM1 RDP key read during the OBL is not virgin. When set, the OEM1 RDP lock mechanism is active.
pub fn set_oem1lock(&mut self, val: bool)
pub fn set_oem1lock(&mut self, val: bool)
OEM1 lock This bit indicates that the OEM1 RDP key read during the OBL is not virgin. When set, the OEM1 RDP lock mechanism is active.
pub const fn oem2lock(&self) -> bool
pub const fn oem2lock(&self) -> bool
OEM2 lock This bit indicates that the OEM2 RDP key read during the OBL is not virgin. When set, the OEM2 RDP lock mechanism is active.
pub fn set_oem2lock(&mut self, val: bool)
pub fn set_oem2lock(&mut self, val: bool)
OEM2 lock This bit indicates that the OEM2 RDP key read during the OBL is not virgin. When set, the OEM2 RDP lock mechanism is active.
pub const fn pd1(&self) -> bool
pub const fn pd1(&self) -> bool
Bank 1 in power-down mode This bit indicates that the Flash memory bank 1 is in power-down state. It is reset when bank 1 is in normal mode or being awaken.
pub fn set_pd1(&mut self, val: bool)
pub fn set_pd1(&mut self, val: bool)
Bank 1 in power-down mode This bit indicates that the Flash memory bank 1 is in power-down state. It is reset when bank 1 is in normal mode or being awaken.
Trait Implementations§
impl Copy for Nssr
impl Eq for Nssr
impl StructuralPartialEq for Nssr
Auto Trait Implementations§
impl Freeze for Nssr
impl RefUnwindSafe for Nssr
impl Send for Nssr
impl Sync for Nssr
impl Unpin for Nssr
impl UnwindSafe for Nssr
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
)