1#[doc = "Reader of register VERR"]
2pub type R = crate::R<u32, super::VERR>;
3#[doc = "Reader of field `MAJREV`"]
4pub type MAJREV_R = crate::R<u8, u8>;
5#[doc = "Reader of field `MINREV`"]
6pub type MINREV_R = crate::R<u8, u8>;
7impl R {
8 #[doc = "Bits 4:7 - Major Revision"]
9 #[inline(always)]
10 pub fn majrev(&self) -> MAJREV_R {
11 MAJREV_R::new(((self.bits >> 4) & 0x0f) as u8)
12 }
13 #[doc = "Bits 0:3 - Minor Revision"]
14 #[inline(always)]
15 pub fn minrev(&self) -> MINREV_R {
16 MINREV_R::new((self.bits & 0x0f) as u8)
17 }
18}