stm32mp1 0.15.1

Device support crates for STM32MP1 devices
Documentation
#[doc = "Register `FMC_HPR` reader"]
pub struct R(crate::R<FMC_HPR_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<FMC_HPR_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<FMC_HPR_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<FMC_HPR_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `HPR` reader - HPR"]
pub type HPR_R = crate::FieldReader<u32, u32>;
impl R {
    #[doc = "Bits 0:31 - HPR"]
    #[inline(always)]
    pub fn hpr(&self) -> HPR_R {
        HPR_R::new(self.bits)
    }
}
#[doc = "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.\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [fmc_hpr](index.html) module"]
pub struct FMC_HPR_SPEC;
impl crate::RegisterSpec for FMC_HPR_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [fmc_hpr::R](R) reader structure"]
impl crate::Readable for FMC_HPR_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets FMC_HPR to value 0"]
impl crate::Resettable for FMC_HPR_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}