pub type R = crate::R<VERRrs>;
pub type MINREV_R = crate::FieldReader;
pub type MAJREV_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn minrev(&self) -> MINREV_R {
MINREV_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn majrev(&self) -> MAJREV_R {
MAJREV_R::new(((self.bits >> 4) & 0x0f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("VERR")
.field("minrev", &self.minrev())
.field("majrev", &self.majrev())
.finish()
}
}
pub struct VERRrs;
impl crate::RegisterSpec for VERRrs {
type Ux = u32;
}
impl crate::Readable for VERRrs {}
impl crate::Resettable for VERRrs {
const RESET_VALUE: u32 = 0x21;
}