1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#[doc = "Reader of register ECC_PR10"] pub type R = crate::R<u32, super::ECC_PR10>; #[doc = "Reader of field `BITADDR`"] pub type BITADDR_R = crate::R<u8, u8>; #[doc = "Reader of field `WORDADDR`"] pub type WORDADDR_R = crate::R<u8, u8>; #[doc = "Reader of field `NPARITY`"] pub type NPARITY_R = crate::R<u16, 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) -> BITADDR_R { BITADDR_R::new((self.bits & 0x07) 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) -> WORDADDR_R { WORDADDR_R::new(((self.bits >> 3) & 0xff) as u8) } #[doc = "Bits 12:22 - Parity N"] #[inline(always)] pub fn nparity(&self) -> NPARITY_R { NPARITY_R::new(((self.bits >> 12) & 0x07ff) as u16) } }