1#[doc = "Register `IDCOMP` reader"]
2pub type R = crate::R<IdcompSpec>;
3#[doc = "Field `NID` reader - Negative Peripheral ID"]
4pub type NidR = crate::FieldReader;
5impl R {
6 #[doc = "Bits 0:5 - Negative Peripheral ID"]
7 #[inline(always)]
8 pub fn nid(&self) -> NidR {
9 NidR::new(self.bits & 0x3f)
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("IDCOMP").field("nid", &self.nid()).finish()
16 }
17}
18#[doc = "Peripheral ID Complement\n\nYou can [`read`](crate::Reg::read) this register and get [`idcomp::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
19pub struct IdcompSpec;
20impl crate::RegisterSpec for IdcompSpec {
21 type Ux = u8;
22}
23#[doc = "`read()` method returns [`idcomp::R`](R) reader structure"]
24impl crate::Readable for IdcompSpec {}
25#[doc = "`reset()` method sets IDCOMP to value 0xfb"]
26impl crate::Resettable for IdcompSpec {
27 const RESET_VALUE: u8 = 0xfb;
28}