atsamd51p/dsu/
pid3.rs

1#[doc = "Register `PID3` reader"]
2pub type R = crate::R<Pid3Spec>;
3#[doc = "Field `CUSMOD` reader - ARM CUSMOD"]
4pub type CusmodR = crate::FieldReader;
5#[doc = "Field `REVAND` reader - Revision Number"]
6pub type RevandR = crate::FieldReader;
7impl R {
8    #[doc = "Bits 0:3 - ARM CUSMOD"]
9    #[inline(always)]
10    pub fn cusmod(&self) -> CusmodR {
11        CusmodR::new((self.bits & 0x0f) as u8)
12    }
13    #[doc = "Bits 4:7 - Revision Number"]
14    #[inline(always)]
15    pub fn revand(&self) -> RevandR {
16        RevandR::new(((self.bits >> 4) & 0x0f) as u8)
17    }
18}
19#[doc = "Peripheral Identification 3\n\nYou can [`read`](crate::Reg::read) this register and get [`pid3::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
20pub struct Pid3Spec;
21impl crate::RegisterSpec for Pid3Spec {
22    type Ux = u32;
23}
24#[doc = "`read()` method returns [`pid3::R`](R) reader structure"]
25impl crate::Readable for Pid3Spec {}
26#[doc = "`reset()` method sets PID3 to value 0"]
27impl crate::Resettable for Pid3Spec {
28    const RESET_VALUE: u32 = 0;
29}