pub type R = crate::R<MACVRrs>;
pub type SNPSVER_R = crate::FieldReader;
pub type USERVER_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn snpsver(&self) -> SNPSVER_R {
SNPSVER_R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn userver(&self) -> USERVER_R {
USERVER_R::new(((self.bits >> 8) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACVR")
.field("snpsver", &self.snpsver())
.field("userver", &self.userver())
.finish()
}
}
pub struct MACVRrs;
impl crate::RegisterSpec for MACVRrs {
type Ux = u32;
}
impl crate::Readable for MACVRrs {}
impl crate::Resettable for MACVRrs {
const RESET_VALUE: u32 = 0x3041;
}