#[doc = "Reader of register VERID"] pub type R = crate::R; #[doc = "Module Identification Number\n\nValue on reset: 4"] #[derive(Clone, Copy, Debug, PartialEq)] #[repr(u16)] pub enum FEATURE_A { #[doc = "4: Standard feature set supporting 32-bit shift register."] _0000000000000100 = 4, } impl From for u16 { #[inline(always)] fn from(variant: FEATURE_A) -> Self { variant as _ } } #[doc = "Reader of field `FEATURE`"] pub type FEATURE_R = crate::R; impl FEATURE_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> crate::Variant { use crate::Variant::*; match self.bits { 4 => Val(FEATURE_A::_0000000000000100), i => Res(i), } } #[doc = "Checks if the value of the field is `_0000000000000100`"] #[inline(always)] pub fn is_0000000000000100(&self) -> bool { *self == FEATURE_A::_0000000000000100 } } #[doc = "Reader of field `MINOR`"] pub type MINOR_R = crate::R; #[doc = "Reader of field `MAJOR`"] pub type MAJOR_R = crate::R; impl R { #[doc = "Bits 0:15 - Module Identification Number"] #[inline(always)] pub fn feature(&self) -> FEATURE_R { FEATURE_R::new((self.bits & 0xffff) as u16) } #[doc = "Bits 16:23 - Minor Version Number"] #[inline(always)] pub fn minor(&self) -> MINOR_R { MINOR_R::new(((self.bits >> 16) & 0xff) as u8) } #[doc = "Bits 24:31 - Major Version Number"] #[inline(always)] pub fn major(&self) -> MAJOR_R { MAJOR_R::new(((self.bits >> 24) & 0xff) as u8) } }