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