atsamd51p/dsu/
pid1.rs
1#[doc = "Register `PID1` reader"]
2pub type R = crate::R<Pid1Spec>;
3#[doc = "Field `PARTNBH` reader - Part Number High"]
4pub type PartnbhR = crate::FieldReader;
5#[doc = "Field `JEPIDCL` reader - Low part of the JEP-106 Identity Code"]
6pub type JepidclR = crate::FieldReader;
7impl R {
8 #[doc = "Bits 0:3 - Part Number High"]
9 #[inline(always)]
10 pub fn partnbh(&self) -> PartnbhR {
11 PartnbhR::new((self.bits & 0x0f) as u8)
12 }
13 #[doc = "Bits 4:7 - Low part of the JEP-106 Identity Code"]
14 #[inline(always)]
15 pub fn jepidcl(&self) -> JepidclR {
16 JepidclR::new(((self.bits >> 4) & 0x0f) as u8)
17 }
18}
19#[doc = "Peripheral Identification 1\n\nYou can [`read`](crate::Reg::read) this register and get [`pid1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
20pub struct Pid1Spec;
21impl crate::RegisterSpec for Pid1Spec {
22 type Ux = u32;
23}
24#[doc = "`read()` method returns [`pid1::R`](R) reader structure"]
25impl crate::Readable for Pid1Spec {}
26#[doc = "`reset()` method sets PID1 to value 0xfc"]
27impl crate::Resettable for Pid1Spec {
28 const RESET_VALUE: u32 = 0xfc;
29}