1#[doc = "Register `VERID` reader"]
2pub type R = crate::R<VERID_SPEC>;
3#[doc = "Field `VERSIONID` reader - Hardware version register. Can also be read by fireware."]
4pub type VERSIONID_R = crate::FieldReader<u32>;
5impl R {
6 #[doc = "Bits 0:31 - Hardware version register. Can also be read by fireware."]
7 #[inline(always)]
8 pub fn versionid(&self) -> VERSIONID_R {
9 VERSIONID_R::new(self.bits)
10 }
11}
12#[cfg(feature = "impl-register-debug")]
13impl core::fmt::Debug for R {
14 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15 f.debug_struct("VERID")
16 .field("versionid", &self.versionid())
17 .finish()
18 }
19}
20#[doc = "Version ID (scratchpad) register\n\nYou can [`read`](crate::Reg::read) this register and get [`verid::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct VERID_SPEC;
22impl crate::RegisterSpec for VERID_SPEC {
23 type Ux = u32;
24}
25#[doc = "`read()` method returns [`verid::R`](R) reader structure"]
26impl crate::Readable for VERID_SPEC {}
27#[doc = "`reset()` method sets VERID to value 0x5432_270a"]
28impl crate::Resettable for VERID_SPEC {
29 const RESET_VALUE: u32 = 0x5432_270a;
30}