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 const fn addr_ecc(&self) -> u16
pub const fn addr_ecc(&self) -> u16
ECC fail double-word address offset In case of ECC error or ECC correction detected, this bitfield contains double-word offset (multiple of 64 bits) to main Flash memory.
pub fn set_addr_ecc(&mut self, val: u16)
pub fn set_addr_ecc(&mut self, val: u16)
ECC fail double-word address offset In case of ECC error or ECC correction detected, this bitfield contains double-word offset (multiple of 64 bits) to main Flash memory.
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 fn set_ecccie(&mut self, val: bool)
pub fn set_ecccie(&mut self, val: bool)
ECC correction interrupt enable
pub const fn eccc(&self) -> bool
pub const fn eccc(&self) -> bool
ECC correction Set by hardware when one ECC error has been detected and corrected. An interrupt is generated if ECCIE is set. Cleared by writing 1.
pub fn set_eccc(&mut self, val: bool)
pub fn set_eccc(&mut self, val: bool)
ECC correction Set by hardware when one ECC error has been detected and corrected. An interrupt is generated if ECCIE is set. 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
)