Struct stm32_metapac::flash::regs::Eccdr
#[repr(transparent)]pub struct Eccdr(pub u32);
Expand description
FLASH ECC data
Tuple Fields§
§0: u32
Implementations§
§impl Eccdr
impl Eccdr
pub const fn data_ecc(&self) -> u16
pub const fn data_ecc(&self) -> u16
ECC error data When an double detection ECC error occurs on special areas with 6-bit ECC on 16-bit data (data area, read-only/OTP area), the failing data is read to this register. By checking if it is possible to determine whether the failure was on a real data, or due to access to uninitialized memory.
pub fn set_data_ecc(&mut self, val: u16)
pub fn set_data_ecc(&mut self, val: u16)
ECC error data When an double detection ECC error occurs on special areas with 6-bit ECC on 16-bit data (data area, read-only/OTP area), the failing data is read to this register. By checking if it is possible to determine whether the failure was on a real data, or due to access to uninitialized memory.
Trait Implementations§
impl Copy for Eccdr
impl Eq for Eccdr
impl StructuralPartialEq for Eccdr
Auto Trait Implementations§
impl Freeze for Eccdr
impl RefUnwindSafe for Eccdr
impl Send for Eccdr
impl Sync for Eccdr
impl Unpin for Eccdr
impl UnwindSafe for Eccdr
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)