rp2040_pac/uart0/
uartperiphid1.rs

1#[doc = "Register `UARTPERIPHID1` reader"]
2pub type R = crate::R<UARTPERIPHID1_SPEC>;
3#[doc = "Field `PARTNUMBER1` reader - These bits read back as 0x0"]
4pub type PARTNUMBER1_R = crate::FieldReader;
5#[doc = "Field `DESIGNER0` reader - These bits read back as 0x1"]
6pub type DESIGNER0_R = crate::FieldReader;
7impl R {
8    #[doc = "Bits 0:3 - These bits read back as 0x0"]
9    #[inline(always)]
10    pub fn partnumber1(&self) -> PARTNUMBER1_R {
11        PARTNUMBER1_R::new((self.bits & 0x0f) as u8)
12    }
13    #[doc = "Bits 4:7 - These bits read back as 0x1"]
14    #[inline(always)]
15    pub fn designer0(&self) -> DESIGNER0_R {
16        DESIGNER0_R::new(((self.bits >> 4) & 0x0f) as u8)
17    }
18}
19#[doc = "UARTPeriphID1 Register  
20
21You can [`read`](crate::generic::Reg::read) this register and get [`uartperiphid1::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
22pub struct UARTPERIPHID1_SPEC;
23impl crate::RegisterSpec for UARTPERIPHID1_SPEC {
24    type Ux = u32;
25}
26#[doc = "`read()` method returns [`uartperiphid1::R`](R) reader structure"]
27impl crate::Readable for UARTPERIPHID1_SPEC {}
28#[doc = "`reset()` method sets UARTPERIPHID1 to value 0x10"]
29impl crate::Resettable for UARTPERIPHID1_SPEC {
30    const RESET_VALUE: u32 = 0x10;
31}