s32k118.rs/src/lpit0/verid.rs

26 lines
837 B
Rust

#[doc = "Reader of register VERID"]
pub type R = crate::R<u32, super::VERID>;
#[doc = "Reader of field `FEATURE`"]
pub type FEATURE_R = crate::R<u16, u16>;
#[doc = "Reader of field `MINOR`"]
pub type MINOR_R = crate::R<u8, u8>;
#[doc = "Reader of field `MAJOR`"]
pub type MAJOR_R = crate::R<u8, u8>;
impl R {
#[doc = "Bits 0:15 - Feature 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)
}
}