atsamd51g/dsu/
pid0.rs
1#[doc = "Register `PID0` reader"]
2pub type R = crate::R<Pid0Spec>;
3#[doc = "Field `PARTNBL` reader - Part Number Low"]
4pub type PartnblR = crate::FieldReader;
5impl R {
6 #[doc = "Bits 0:7 - Part Number Low"]
7 #[inline(always)]
8 pub fn partnbl(&self) -> PartnblR {
9 PartnblR::new((self.bits & 0xff) as u8)
10 }
11}
12#[doc = "Peripheral Identification 0\n\nYou can [`read`](crate::Reg::read) this register and get [`pid0::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct Pid0Spec;
14impl crate::RegisterSpec for Pid0Spec {
15 type Ux = u32;
16}
17#[doc = "`read()` method returns [`pid0::R`](R) reader structure"]
18impl crate::Readable for Pid0Spec {}
19#[doc = "`reset()` method sets PID0 to value 0xd0"]
20impl crate::Resettable for Pid0Spec {
21 const RESET_VALUE: u32 = 0xd0;
22}