mimxrt685s_pac/usbphy/
version.rs1#[doc = "Register `VERSION` reader"]
2pub type R = crate::R<VersionSpec>;
3#[doc = "Field `STEP` reader - Fixed read-only value reflecting the stepping of the RTL version."]
4pub type StepR = crate::FieldReader<u16>;
5#[doc = "Field `MINOR` reader - Fixed read-only value reflecting the MINOR field of the RTL version"]
6pub type MinorR = crate::FieldReader;
7#[doc = "Field `MAJOR` reader - Fixed read-only value reflecting the MAJOR field of the RTL versio"]
8pub type MajorR = crate::FieldReader;
9impl R {
10 #[doc = "Bits 0:15 - Fixed read-only value reflecting the stepping of the RTL version."]
11 #[inline(always)]
12 pub fn step(&self) -> StepR {
13 StepR::new((self.bits & 0xffff) as u16)
14 }
15 #[doc = "Bits 16:23 - Fixed read-only value reflecting the MINOR field of the RTL version"]
16 #[inline(always)]
17 pub fn minor(&self) -> MinorR {
18 MinorR::new(((self.bits >> 16) & 0xff) as u8)
19 }
20 #[doc = "Bits 24:31 - Fixed read-only value reflecting the MAJOR field of the RTL versio"]
21 #[inline(always)]
22 pub fn major(&self) -> MajorR {
23 MajorR::new(((self.bits >> 24) & 0xff) as u8)
24 }
25}
26#[cfg(feature = "debug")]
27impl core::fmt::Debug for R {
28 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
29 f.debug_struct("VERSION")
30 .field("step", &self.step())
31 .field("minor", &self.minor())
32 .field("major", &self.major())
33 .finish()
34 }
35}
36#[doc = "UTMI RTL Version\n\nYou can [`read`](crate::Reg::read) this register and get [`version::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
37pub struct VersionSpec;
38impl crate::RegisterSpec for VersionSpec {
39 type Ux = u32;
40}
41#[doc = "`read()` method returns [`version::R`](R) reader structure"]
42impl crate::Readable for VersionSpec {}
43#[doc = "`reset()` method sets VERSION to value 0x0500_0000"]
44impl crate::Resettable for VersionSpec {
45 const RESET_VALUE: u32 = 0x0500_0000;
46}