atsamd51p/dsu/
pid4.rs

1#[doc = "Register `PID4` reader"]
2pub type R = crate::R<Pid4Spec>;
3#[doc = "Field `JEPCC` reader - JEP-106 Continuation Code"]
4pub type JepccR = crate::FieldReader;
5#[doc = "Field `FKBC` reader - 4KB count"]
6pub type FkbcR = crate::FieldReader;
7impl R {
8    #[doc = "Bits 0:3 - JEP-106 Continuation Code"]
9    #[inline(always)]
10    pub fn jepcc(&self) -> JepccR {
11        JepccR::new((self.bits & 0x0f) as u8)
12    }
13    #[doc = "Bits 4:7 - 4KB count"]
14    #[inline(always)]
15    pub fn fkbc(&self) -> FkbcR {
16        FkbcR::new(((self.bits >> 4) & 0x0f) as u8)
17    }
18}
19#[doc = "Peripheral Identification 4\n\nYou can [`read`](crate::Reg::read) this register and get [`pid4::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
20pub struct Pid4Spec;
21impl crate::RegisterSpec for Pid4Spec {
22    type Ux = u32;
23}
24#[doc = "`read()` method returns [`pid4::R`](R) reader structure"]
25impl crate::Readable for Pid4Spec {}
26#[doc = "`reset()` method sets PID4 to value 0"]
27impl crate::Resettable for Pid4Spec {
28    const RESET_VALUE: u32 = 0;
29}