#[doc = "Register `ECC_PR0_W8BIT` reader"] pub type R = crate::R<W8bitEccPr0W8bitSpec>; #[doc = "Field `BITADDR` reader - Corrupted Bit Address in the Page between (i x 256) and ((i + 1) x 512) - 1) Bytes"] pub type BitaddrR = crate::FieldReader; #[doc = "Field `WORDADDR` reader - Corrupted Word Address in the Page between (i x 256) and ((i + 1) x 512) - 1) Bytes"] pub type WordaddrR = crate::FieldReader; #[doc = "Field `NPARITY` reader - Parity N"] pub type NparityR = crate::FieldReader<u16>; impl R { #[doc = "Bits 0:2 - Corrupted Bit Address in the Page between (i x 256) and ((i + 1) x 512) - 1) Bytes"] #[inline(always)] pub fn bitaddr(&self) -> BitaddrR { BitaddrR::new((self.bits & 7) as u8) } #[doc = "Bits 3:10 - Corrupted Word Address in the Page between (i x 256) and ((i + 1) x 512) - 1) Bytes"] #[inline(always)] pub fn wordaddr(&self) -> WordaddrR { WordaddrR::new(((self.bits >> 3) & 0xff) as u8) } #[doc = "Bits 12:22 - Parity N"] #[inline(always)] pub fn nparity(&self) -> NparityR { NparityR::new(((self.bits >> 12) & 0x07ff) as u16) } } #[doc = "SMC ECC Parity 0 Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`w8bit_ecc_pr0_w8bit::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct W8bitEccPr0W8bitSpec; impl crate::RegisterSpec for W8bitEccPr0W8bitSpec { type Ux = u32; } #[doc = "`read()` method returns [`w8bit_ecc_pr0_w8bit::R`](R) reader structure"] impl crate::Readable for W8bitEccPr0W8bitSpec {} #[doc = "`reset()` method sets ECC_PR0_W8BIT to value 0"] impl crate::Resettable for W8bitEccPr0W8bitSpec { const RESET_VALUE: u32 = 0; }