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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
#[doc = "Reader of register DR"] pub type R = crate::R<u32, super::DR>; #[doc = "Reader of field `DR`"] pub type DR_R = crate::R<u32, u32>; #[doc = "Reader of field `PE`"] pub type PE_R = crate::R<bool, bool>; #[doc = "Reader of field `V`"] pub type V_R = crate::R<bool, bool>; #[doc = "Reader of field `U`"] pub type U_R = crate::R<bool, bool>; #[doc = "Reader of field `C`"] pub type C_R = crate::R<bool, bool>; #[doc = "Reader of field `PT`"] pub type PT_R = crate::R<u8, u8>; impl R { #[doc = "Bits 0:23 - Parity Error bit"] #[inline(always)] pub fn dr(&self) -> DR_R { DR_R::new((self.bits & 0x00ff_ffff) as u32) } #[doc = "Bit 24 - Parity Error bit"] #[inline(always)] pub fn pe(&self) -> PE_R { PE_R::new(((self.bits >> 24) & 0x01) != 0) } #[doc = "Bit 25 - Validity bit"] #[inline(always)] pub fn v(&self) -> V_R { V_R::new(((self.bits >> 25) & 0x01) != 0) } #[doc = "Bit 26 - User bit"] #[inline(always)] pub fn u(&self) -> U_R { U_R::new(((self.bits >> 26) & 0x01) != 0) } #[doc = "Bit 27 - Channel Status bit"] #[inline(always)] pub fn c(&self) -> C_R { C_R::new(((self.bits >> 27) & 0x01) != 0) } #[doc = "Bits 28:29 - Preamble Type"] #[inline(always)] pub fn pt(&self) -> PT_R { PT_R::new(((self.bits >> 28) & 0x03) as u8) } }