Struct stm32_metapac::flash::regs::Secsr
#[repr(transparent)]pub struct Secsr(pub u32);
Expand description
FLASH secure status register
Tuple Fields§
§0: u32
Implementations§
§impl Secsr
impl Secsr
pub const fn bsy(&self) -> bool
pub const fn bsy(&self) -> bool
busy flag BSY flag indicates that a FLASH memory is busy (write, erase, option byte change, OBK operations). It is set at the beginning of a flash memory operation and cleared when the operation finishes or an error occurs.
pub fn set_bsy(&mut self, val: bool)
pub fn set_bsy(&mut self, val: bool)
busy flag BSY flag indicates that a FLASH memory is busy (write, erase, option byte change, OBK operations). It is set at the beginning of a flash memory operation and cleared when the operation finishes or an error occurs.
pub const fn wbne(&self) -> bool
pub const fn wbne(&self) -> bool
write buffer not empty flag WBNE flag is set when the flash interface is waiting for new data to complete the write buffer. In this state, the write buffer is not empty. WBNE is reset by hardware each time the write buffer is complete or the write buffer is emptied following one of the event below: the application software forces the write operation using FW bit in FLASH_SECCR the flash interface detects an error that involves data loss This bit cannot be reset by writing 0 directly by software. To reset it, clear the write buffer by performing any of the above listed actions, or send the missing data.
pub fn set_wbne(&mut self, val: bool)
pub fn set_wbne(&mut self, val: bool)
write buffer not empty flag WBNE flag is set when the flash interface is waiting for new data to complete the write buffer. In this state, the write buffer is not empty. WBNE is reset by hardware each time the write buffer is complete or the write buffer is emptied following one of the event below: the application software forces the write operation using FW bit in FLASH_SECCR the flash interface detects an error that involves data loss This bit cannot be reset by writing 0 directly by software. To reset it, clear the write buffer by performing any of the above listed actions, or send the missing data.
pub const fn dbne(&self) -> bool
pub const fn dbne(&self) -> bool
data buffer not empty flag DBNE flag is set when the embedded flash memory interface is processing 6-bits ECC data in dedicated buffer. This bit cannot be set to 0 by software. The hardware resets it once the buffer is free.
pub fn set_dbne(&mut self, val: bool)
pub fn set_dbne(&mut self, val: bool)
data buffer not empty flag DBNE flag is set when the embedded flash memory interface is processing 6-bits ECC data in dedicated buffer. This bit cannot be set to 0 by software. The hardware resets it once the buffer is free.
pub const fn eop(&self) -> bool
pub const fn eop(&self) -> bool
end of operation flag EOP flag is set when a operation (program/erase) completes. An interrupt is generated if the EOPIE is set to. It is not necessary to reset EOP before starting a new operation. EOP bit is cleared by writing 1 to CLR_EOP bit in FLASH_SECCCR register.
pub fn set_eop(&mut self, val: bool)
pub fn set_eop(&mut self, val: bool)
end of operation flag EOP flag is set when a operation (program/erase) completes. An interrupt is generated if the EOPIE is set to. It is not necessary to reset EOP before starting a new operation. EOP bit is cleared by writing 1 to CLR_EOP bit in FLASH_SECCCR register.
pub const fn wrperr(&self) -> bool
pub const fn wrperr(&self) -> bool
write protection error flag WRPERR flag is raised when a protection error occurs during a program operation. An interrupt is also generated if the WRPERRIE is set to 1. Writing 1 to CLR_WRPERR bit in FLASH_SECCCR register clears WRPERR.
pub fn set_wrperr(&mut self, val: bool)
pub fn set_wrperr(&mut self, val: bool)
write protection error flag WRPERR flag is raised when a protection error occurs during a program operation. An interrupt is also generated if the WRPERRIE is set to 1. Writing 1 to CLR_WRPERR bit in FLASH_SECCCR register clears WRPERR.
pub const fn pgserr(&self) -> bool
pub const fn pgserr(&self) -> bool
programming sequence error flag PGSERR flag is raised when a sequence error occurs. An interrupt is generated if the PGSERRIE bit is set to 1. Writing 1 to CLR_PGSERR bit in FLASH_SECCCR register clears PGSERR.
pub fn set_pgserr(&mut self, val: bool)
pub fn set_pgserr(&mut self, val: bool)
programming sequence error flag PGSERR flag is raised when a sequence error occurs. An interrupt is generated if the PGSERRIE bit is set to 1. Writing 1 to CLR_PGSERR bit in FLASH_SECCCR register clears PGSERR.
pub const fn strberr(&self) -> bool
pub const fn strberr(&self) -> bool
strobe error flag STRBERR flag is raised when a strobe error occurs (when the master attempts to write several times the same byte in the write buffer). An interrupt is generated if the STRBERRIE bit is set to 1. Writing 1 to CLR_STRBERR bit in FLASH_SECCCR register clears STRBERR.
pub fn set_strberr(&mut self, val: bool)
pub fn set_strberr(&mut self, val: bool)
strobe error flag STRBERR flag is raised when a strobe error occurs (when the master attempts to write several times the same byte in the write buffer). An interrupt is generated if the STRBERRIE bit is set to 1. Writing 1 to CLR_STRBERR bit in FLASH_SECCCR register clears STRBERR.
pub const fn incerr(&self) -> bool
pub const fn incerr(&self) -> bool
inconsistency error flag INCERR flag is raised when a inconsistency error occurs. An interrupt is generated if INCERRIE is set to 1. Writing 1 to CLR_INCERR bit in the FLASH_SECCCR register clears INCERR.
pub fn set_incerr(&mut self, val: bool)
pub fn set_incerr(&mut self, val: bool)
inconsistency error flag INCERR flag is raised when a inconsistency error occurs. An interrupt is generated if INCERRIE is set to 1. Writing 1 to CLR_INCERR bit in the FLASH_SECCCR register clears INCERR.
pub const fn obkerr(&self) -> bool
pub const fn obkerr(&self) -> bool
OBK general error flag OBKERR flag is raised when the OBK-HDPL signal from the SBS does not match the HDPL value associated with the key slot during access to the key location. Alternatively also when the ALT_SECT is unexpectedly changed while the write buffer is being filled.
pub fn set_obkerr(&mut self, val: bool)
pub fn set_obkerr(&mut self, val: bool)
OBK general error flag OBKERR flag is raised when the OBK-HDPL signal from the SBS does not match the HDPL value associated with the key slot during access to the key location. Alternatively also when the ALT_SECT is unexpectedly changed while the write buffer is being filled.
pub const fn obkwerr(&self) -> bool
pub const fn obkwerr(&self) -> bool
OBK write error flag OBKWERR flag is raised when the address is not virgin on a write access to the OBK storage. Alternatively also when the OBK selector in the alternate sector is not virgin during a swap operation.
pub fn set_obkwerr(&mut self, val: bool)
pub fn set_obkwerr(&mut self, val: bool)
OBK write error flag OBKWERR flag is raised when the address is not virgin on a write access to the OBK storage. Alternatively also when the OBK selector in the alternate sector is not virgin during a swap operation.
Trait Implementations§
impl Copy for Secsr
impl Eq for Secsr
impl StructuralPartialEq for Secsr
Auto Trait Implementations§
impl Freeze for Secsr
impl RefUnwindSafe for Secsr
impl Send for Secsr
impl Sync for Secsr
impl Unpin for Secsr
impl UnwindSafe for Secsr
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
)