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
#[doc = "Reader of register HWCFR"] pub type R = crate::R<u32, super::HWCFR>; #[doc = "Reader of field `CFG4`"] pub type CFG4_R = crate::R<u8, u8>; #[doc = "Reader of field `CFG3`"] pub type CFG3_R = crate::R<u8, u8>; #[doc = "Reader of field `CFG2`"] pub type CFG2_R = crate::R<u8, u8>; #[doc = "Reader of field `CFG1`"] pub type CFG1_R = crate::R<u8, u8>; impl R { #[doc = "Bits 12:15 - HW Generic 4"] #[inline(always)] pub fn cfg4(&self) -> CFG4_R { CFG4_R::new(((self.bits >> 12) & 0x0f) as u8) } #[doc = "Bits 8:11 - HW Generic 3"] #[inline(always)] pub fn cfg3(&self) -> CFG3_R { CFG3_R::new(((self.bits >> 8) & 0x0f) as u8) } #[doc = "Bits 4:7 - HW Generic 2"] #[inline(always)] pub fn cfg2(&self) -> CFG2_R { CFG2_R::new(((self.bits >> 4) & 0x0f) as u8) } #[doc = "Bits 0:3 - HW Generic 1"] #[inline(always)] pub fn cfg1(&self) -> CFG1_R { CFG1_R::new((self.bits & 0x0f) as u8) } }