Struct stm32_metapac::flash::regs::Eccdetr
#[repr(transparent)]pub struct Eccdetr(pub u32);
Expand description
FLASH ECC detection register
Tuple Fields§
§0: u32
Implementations§
§impl Eccdetr
impl Eccdetr
pub const fn addr_ecc(&self) -> u16
pub const fn addr_ecc(&self) -> u16
ECC error address When an ECC error occurs (double detection) 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 double 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 (double detection) 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 double 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 fail bank for double 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 fail bank for double 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 fail for double ECC error in system Flash memory 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 fail for double ECC error in system Flash memory 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 double ECC detection occurred during the last read operation from the read-only/ OTP area. The address of the ECC error is available in ADDR_ECC bit field.
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 double ECC detection occurred during the last read operation from the read-only/ OTP area. The address of the ECC error is available in ADDR_ECC bit field.
Trait Implementations§
impl Copy for Eccdetr
impl Eq for Eccdetr
impl StructuralPartialEq for Eccdetr
Auto Trait Implementations§
impl Freeze for Eccdetr
impl RefUnwindSafe for Eccdetr
impl Send for Eccdetr
impl Sync for Eccdetr
impl Unpin for Eccdetr
impl UnwindSafe for Eccdetr
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
)