#[doc = "Register `VERSION` reader"]
pub type R = crate::R<VERSION_SPEC>;
#[doc = "Field `SNPSVER` reader - Synopsys-defined Version (3.7)"]
pub type SNPSVER_R = crate::FieldReader;
#[doc = "Field `USERVER` reader - User-defined Version (Configured with the coreConsultant)"]
pub type USERVER_R = crate::FieldReader;
impl R {
#[doc = "Bits 0:7 - Synopsys-defined Version (3.7)"]
#[inline(always)]
pub fn snpsver(&self) -> SNPSVER_R {
SNPSVER_R::new((self.bits & 0xff) as u8)
}
#[doc = "Bits 8:15 - User-defined Version (Configured with the coreConsultant)"]
#[inline(always)]
pub fn userver(&self) -> USERVER_R {
USERVER_R::new(((self.bits >> 8) & 0xff) as u8)
}
}
#[doc = "Version Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`version::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct VERSION_SPEC;
impl crate::RegisterSpec for VERSION_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`version::R`](R) reader structure"]
impl crate::Readable for VERSION_SPEC {}
#[doc = "`reset()` method sets VERSION to value 0x1037"]
impl crate::Resettable for VERSION_SPEC {
const RESET_VALUE: Self::Ux = 0x1037;
}