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 ID"] pub type R = crate::R<u32, super::ID>; #[doc = "Reader of field `ID`"] pub type ID_R = crate::R<u8, u8>; #[doc = "Reader of field `NID`"] pub type NID_R = crate::R<u8, u8>; #[doc = "Reader of field `REVISION`"] pub type REVISION_R = crate::R<u8, u8>; impl R { #[doc = "Bits 0:5 - Configuration number"] #[inline(always)] pub fn id(&self) -> ID_R { ID_R::new((self.bits & 0x3f) as u8) } #[doc = "Bits 8:13 - Complement version of ID"] #[inline(always)] pub fn nid(&self) -> NID_R { NID_R::new(((self.bits >> 8) & 0x3f) as u8) } #[doc = "Bits 16:23 - Revision number of the controller core."] #[inline(always)] pub fn revision(&self) -> REVISION_R { REVISION_R::new(((self.bits >> 16) & 0xff) as u8) } }