mimxrt685s_pac/cmp/
verid.rs1#[doc = "Register `VERID` reader"]
2pub type R = crate::R<VeridSpec>;
3#[doc = "Field `FEATURE` reader - Feature Specification Number. This read only filed returns the feature set number."]
4pub type FeatureR = crate::FieldReader<u16>;
5#[doc = "Field `MINOR` reader - Minor Version Number. This read only field returns the minor version number for the module specification."]
6pub type MinorR = crate::FieldReader;
7#[doc = "Field `MAJOR` reader - Major Version Number. This read only field returns the major version number for the module specification."]
8pub type MajorR = crate::FieldReader;
9impl R {
10 #[doc = "Bits 0:15 - Feature Specification Number. This read only filed returns the feature set number."]
11 #[inline(always)]
12 pub fn feature(&self) -> FeatureR {
13 FeatureR::new((self.bits & 0xffff) as u16)
14 }
15 #[doc = "Bits 16:23 - Minor Version Number. This read only field returns the minor version number for the module specification."]
16 #[inline(always)]
17 pub fn minor(&self) -> MinorR {
18 MinorR::new(((self.bits >> 16) & 0xff) as u8)
19 }
20 #[doc = "Bits 24:31 - Major Version Number. This read only field returns the major version number for the module specification."]
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("VERID")
30 .field("feature", &self.feature())
31 .field("minor", &self.minor())
32 .field("major", &self.major())
33 .finish()
34 }
35}
36#[doc = "Version ID 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)."]
37pub struct VeridSpec;
38impl crate::RegisterSpec for VeridSpec {
39 type Ux = u32;
40}
41#[doc = "`read()` method returns [`verid::R`](R) reader structure"]
42impl crate::Readable for VeridSpec {}
43#[doc = "`reset()` method sets VERID to value 0x0100_0000"]
44impl crate::Resettable for VeridSpec {
45 const RESET_VALUE: u32 = 0x0100_0000;
46}