rp2040_pac/uart0/
uartperiphid2.rs

1#[doc = "Register `UARTPERIPHID2` reader"]
2pub type R = crate::R<UARTPERIPHID2_SPEC>;
3#[doc = "Field `DESIGNER1` reader - These bits read back as 0x4"]
4pub type DESIGNER1_R = crate::FieldReader;
5#[doc = "Field `REVISION` reader - This field depends on the revision of the UART: r1p0 0x0 r1p1 0x1 r1p3 0x2 r1p4 0x2 r1p5 0x3"]
6pub type REVISION_R = crate::FieldReader;
7impl R {
8    #[doc = "Bits 0:3 - These bits read back as 0x4"]
9    #[inline(always)]
10    pub fn designer1(&self) -> DESIGNER1_R {
11        DESIGNER1_R::new((self.bits & 0x0f) as u8)
12    }
13    #[doc = "Bits 4:7 - This field depends on the revision of the UART: r1p0 0x0 r1p1 0x1 r1p3 0x2 r1p4 0x2 r1p5 0x3"]
14    #[inline(always)]
15    pub fn revision(&self) -> REVISION_R {
16        REVISION_R::new(((self.bits >> 4) & 0x0f) as u8)
17    }
18}
19#[doc = "UARTPeriphID2 Register  
20
21You can [`read`](crate::generic::Reg::read) this register and get [`uartperiphid2::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
22pub struct UARTPERIPHID2_SPEC;
23impl crate::RegisterSpec for UARTPERIPHID2_SPEC {
24    type Ux = u32;
25}
26#[doc = "`read()` method returns [`uartperiphid2::R`](R) reader structure"]
27impl crate::Readable for UARTPERIPHID2_SPEC {}
28#[doc = "`reset()` method sets UARTPERIPHID2 to value 0x34"]
29impl crate::Resettable for UARTPERIPHID2_SPEC {
30    const RESET_VALUE: u32 = 0x34;
31}