Struct stm32_metapac::flash::regs::Secsr
#[repr(transparent)]pub struct Secsr(pub u32);
Expand description
secure status register
Tuple Fields§
§0: u32
Implementations§
§impl Secsr
impl Secsr
pub const fn eop(&self) -> bool
pub const fn eop(&self) -> bool
Secure end of operation This bit is set by hardware when one or more memory secure operation (program/erase) has been completed successfully. This bit is set only if the secure end of operation interrupts are enabled (EOPIE = 1 in SECCR1). This bit is cleared by writing�1.
pub fn set_eop(&mut self, val: bool)
pub fn set_eop(&mut self, val: bool)
Secure end of operation This bit is set by hardware when one or more memory secure operation (program/erase) has been completed successfully. This bit is set only if the secure end of operation interrupts are enabled (EOPIE = 1 in SECCR1). This bit is cleared by writing�1.
pub const fn operr(&self) -> bool
pub const fn operr(&self) -> bool
Secure operation error This bit is set by hardware when a memory secure operation (program/erase) completes unsuccessfully. This bit is set only if secure error interrupts are enabled (SECERRIE = 1). This bit is cleared by writing 1.
pub fn set_operr(&mut self, val: bool)
pub fn set_operr(&mut self, val: bool)
Secure operation error This bit is set by hardware when a memory secure operation (program/erase) completes unsuccessfully. This bit is set only if secure error interrupts are enabled (SECERRIE = 1). This bit is cleared by writing 1.
pub const fn progerr(&self) -> bool
pub const fn progerr(&self) -> bool
Secure programming error This bit is set by hardware when a 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)
Secure programming error This bit is set by hardware when a 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
Secure write protection error This bit is set by hardware when an secure address to be erased/programmed belongs to a write-protected part (by WRP or HDP) of the memory. This bit is cleared by writing 1. Refer to Section�7.3.10: memory errors flags for full conditions of error flag setting.
pub fn set_wrperr(&mut self, val: bool)
pub fn set_wrperr(&mut self, val: bool)
Secure write protection error This bit is set by hardware when an secure address to be erased/programmed belongs to a write-protected part (by WRP or HDP) of the memory. This bit is cleared by writing 1. Refer to Section�7.3.10: memory errors flags for full conditions of error flag setting.
pub const fn pgaerr(&self) -> bool
pub const fn pgaerr(&self) -> bool
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)
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
Secure size error This bit is set by hardware when the size of the access is a byte or half-word during a 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)
Secure size error This bit is set by hardware when the size of the access is a byte or half-word during a 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
Secure programming sequence error This bit is set by hardware when programming sequence is not correct. It is cleared by writing 1. Refer to Section�7.3.10: memory errors flags for full conditions of error flag setting.
pub fn set_pgserr(&mut self, val: bool)
pub fn set_pgserr(&mut self, val: bool)
Secure programming sequence error This bit is set by hardware when programming sequence is not correct. It is cleared by writing 1. Refer to Section�7.3.10: memory errors flags for full conditions of error flag setting.
pub const fn bsy(&self) -> bool
pub const fn bsy(&self) -> bool
Secure busy This bit indicates that a memory secure or non-secure operation is in progress. This is set on the beginning of a 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)
Secure busy This bit indicates that a memory secure or non-secure operation is in progress. This is set on the beginning of a operation and reset when the operation finishes or when an error occurs.