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