rp2040_pac/spi0/
sspperiphid0.rs

1#[doc = "Register `SSPPERIPHID0` reader"]
2pub type R = crate::R<SSPPERIPHID0_SPEC>;
3#[doc = "Field `PARTNUMBER0` reader - These bits read back as 0x22"]
4pub type PARTNUMBER0_R = crate::FieldReader;
5impl R {
6    #[doc = "Bits 0:7 - These bits read back as 0x22"]
7    #[inline(always)]
8    pub fn partnumber0(&self) -> PARTNUMBER0_R {
9        PARTNUMBER0_R::new((self.bits & 0xff) as u8)
10    }
11}
12#[doc = "Peripheral identification registers, SSPPeriphID0-3 on page 3-13  
13
14You can [`read`](crate::generic::Reg::read) this register and get [`sspperiphid0::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
15pub struct SSPPERIPHID0_SPEC;
16impl crate::RegisterSpec for SSPPERIPHID0_SPEC {
17    type Ux = u32;
18}
19#[doc = "`read()` method returns [`sspperiphid0::R`](R) reader structure"]
20impl crate::Readable for SSPPERIPHID0_SPEC {}
21#[doc = "`reset()` method sets SSPPERIPHID0 to value 0x22"]
22impl crate::Resettable for SSPPERIPHID0_SPEC {
23    const RESET_VALUE: u32 = 0x22;
24}