Struct stm32_metapac::flash::regs::Ecccorr
#[repr(transparent)]pub struct Ecccorr(pub u32);
Expand description
FLASH Flash ECC correction register
Tuple Fields§
§0: u32
Implementations§
§impl Ecccorr
impl Ecccorr
pub const fn addr_ecc(&self) -> u16
pub const fn addr_ecc(&self) -> u16
ECC error address When an ECC error occurs (for single correction) during a read operation, the ADDR_ECC contains the address that generated the error. ADDR_ECC is reset when the flag error is reset. The embedded Flash memory programs the address in this register only when no ECC error flags are set. This means that only the first address that generated an ECC error is saved. The address in ADDR_ECC is relative to the Flash memory area where the error occurred (user Flash memory, system Flash memory, data area, read-only/OTP area).
pub fn set_addr_ecc(&mut self, val: u16)
pub fn set_addr_ecc(&mut self, val: u16)
ECC error address When an ECC error occurs (for single correction) during a read operation, the ADDR_ECC contains the address that generated the error. ADDR_ECC is reset when the flag error is reset. The embedded Flash memory programs the address in this register only when no ECC error flags are set. This means that only the first address that generated an ECC error is saved. The address in ADDR_ECC is relative to the Flash memory area where the error occurred (user Flash memory, system Flash memory, data area, read-only/OTP area).
pub const fn bk_ecc(&self) -> bool
pub const fn bk_ecc(&self) -> bool
ECC bank flag for corrected ECC error It indicates which bank is concerned by ECC error
pub fn set_bk_ecc(&mut self, val: bool)
pub fn set_bk_ecc(&mut self, val: bool)
ECC bank flag for corrected ECC error It indicates which bank is concerned by ECC error
pub const fn sysf_ecc(&self) -> bool
pub const fn sysf_ecc(&self) -> bool
ECC flag for corrected ECC error in system FLASH It indicates if system Flash memory is concerned by ECC error.
pub fn set_sysf_ecc(&mut self, val: bool)
pub fn set_sysf_ecc(&mut self, val: bool)
ECC flag for corrected ECC error in system FLASH It indicates if system Flash memory is concerned by ECC error.
pub const fn otp_ecc(&self) -> bool
pub const fn otp_ecc(&self) -> bool
OTP ECC error bit This bit is set to 1 when one single ECC correction occurred during the last successful read operation from the read-only/ OTP area. The address of the ECC error is available in ADDR_ECC bitfield.
pub fn set_otp_ecc(&mut self, val: bool)
pub fn set_otp_ecc(&mut self, val: bool)
OTP ECC error bit This bit is set to 1 when one single ECC correction occurred during the last successful read operation from the read-only/ OTP area. The address of the ECC error is available in ADDR_ECC bitfield.
pub const fn ecccie(&self) -> bool
pub const fn ecccie(&self) -> bool
ECC single correction error interrupt enable bit When ECCCIE bit is set to 1, an interrupt is generated when an ECC single correction error occurs during a read operation.
pub fn set_ecccie(&mut self, val: bool)
pub fn set_ecccie(&mut self, val: bool)
ECC single correction error interrupt enable bit When ECCCIE bit is set to 1, an interrupt is generated when an ECC single correction error occurs during a read operation.
Trait Implementations§
impl Copy for Ecccorr
impl Eq for Ecccorr
impl StructuralPartialEq for Ecccorr
Auto Trait Implementations§
impl Freeze for Ecccorr
impl RefUnwindSafe for Ecccorr
impl Send for Ecccorr
impl Sync for Ecccorr
impl Unpin for Ecccorr
impl UnwindSafe for Ecccorr
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
)