Struct stm32mp1::stm32mp157::fmc::fmc_hpr::FMC_HPR_SPEC
source · [−]pub struct FMC_HPR_SPEC;
Expand description
This register is used during read accesses in conjunction with the FMC sequencer. It contains the current error correction code value computed by the FMC NAND controller Hamming module. When the FMC sequencer reads data from a NAND Flash memory page at the correct address, the data read are automatically processed by the Hamming computation module. When X bytes have been read (according to the sector size ECCSS field in the FMC_PCR register), the CPU must read the computed ECC value from the FMC_HECCR register. It then verifies if these computed parity data are the same as the parity value recorded in the spare area and stored in the and the FMC_HPR, to determine whether a page is valid, and to correct it otherwise. The FMC_HPR register should be cleared after being read by setting the ECCEN bit to 0. To compute a new data block, the ECCEN bit must be set to 1.
This register you can read
. See API.
For information about available fields see fmc_hpr module
Trait Implementations
sourceimpl Readable for FMC_HPR_SPEC
impl Readable for FMC_HPR_SPEC
read()
method returns fmc_hpr::R reader structure
sourceimpl RegisterSpec for FMC_HPR_SPEC
impl RegisterSpec for FMC_HPR_SPEC
sourceimpl Resettable for FMC_HPR_SPEC
impl Resettable for FMC_HPR_SPEC
reset()
method sets FMC_HPR to value 0
sourcefn reset_value() -> Self::Ux
fn reset_value() -> Self::Ux
Reset value of the register.
Auto Trait Implementations
impl RefUnwindSafe for FMC_HPR_SPEC
impl Send for FMC_HPR_SPEC
impl Sync for FMC_HPR_SPEC
impl Unpin for FMC_HPR_SPEC
impl UnwindSafe for FMC_HPR_SPEC
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more