rp2040_pac/spi0/
sspperiphid1.rs
1#[doc = "Register `SSPPERIPHID1` reader"]
2pub type R = crate::R<SSPPERIPHID1_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 = "Peripheral identification registers, SSPPeriphID0-3 on page 3-13
20
21You can [`read`](crate::generic::Reg::read) this register and get [`sspperiphid1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
22pub struct SSPPERIPHID1_SPEC;
23impl crate::RegisterSpec for SSPPERIPHID1_SPEC {
24 type Ux = u32;
25}
26#[doc = "`read()` method returns [`sspperiphid1::R`](R) reader structure"]
27impl crate::Readable for SSPPERIPHID1_SPEC {}
28#[doc = "`reset()` method sets SSPPERIPHID1 to value 0x10"]
29impl crate::Resettable for SSPPERIPHID1_SPEC {
30 const RESET_VALUE: u32 = 0x10;
31}