Struct stm32_metapac::flash::regs::Eccr
#[repr(transparent)]pub struct Eccr(pub u32);
Expand description
FLASH ECC register
Tuple Fields§
§0: u32
Implementations§
§impl Eccr
impl Eccr
pub fn set_addr_ecc(&mut self, val: u32)
pub fn set_addr_ecc(&mut self, val: u32)
ECC fail address
pub fn set_bk_ecc(&mut self, val: BkEcc)
pub fn set_bk_ecc(&mut self, val: BkEcc)
ECC fail bank
pub const fn sysf_ecc(&self) -> bool
pub const fn sysf_ecc(&self) -> bool
System Flash memory ECC fail This bit indicates that the ECC error correction or double ECC error detection is located in the system Flash memory.
pub fn set_sysf_ecc(&mut self, val: bool)
pub fn set_sysf_ecc(&mut self, val: bool)
System Flash memory ECC fail This bit indicates that the ECC error correction or double ECC error detection is located in the system Flash memory.
pub const fn eccie(&self) -> Eccie
pub const fn eccie(&self) -> Eccie
ECC correction interrupt enable This bit enables the interrupt generation when the ECCC bit in the FLASH_ECCR register is set.
pub fn set_eccie(&mut self, val: Eccie)
pub fn set_eccie(&mut self, val: Eccie)
ECC correction interrupt enable This bit enables the interrupt generation when the ECCC bit in the FLASH_ECCR register is set.
pub const fn eccc(&self) -> bool
pub const fn eccc(&self) -> bool
ECC correction This bit is set by hardware when one ECC error has been detected and corrected (only if ECCC and ECCD were previously cleared). An interrupt is generated if ECCIE is set. This bit is cleared by writing 1.
pub fn set_eccc(&mut self, val: bool)
pub fn set_eccc(&mut self, val: bool)
ECC correction This bit is set by hardware when one ECC error has been detected and corrected (only if ECCC and ECCD were previously cleared). An interrupt is generated if ECCIE is set. This bit is cleared by writing 1.
Trait Implementations§
impl Copy for Eccr
impl Eq for Eccr
impl StructuralPartialEq for Eccr
Auto Trait Implementations§
impl Freeze for Eccr
impl RefUnwindSafe for Eccr
impl Send for Eccr
impl Sync for Eccr
impl Unpin for Eccr
impl UnwindSafe for Eccr
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
)