rp235x_pac/inner/spi0/
ssppcellid2.rs1#[doc = "Register `SSPPCELLID2` reader"]
2pub type R = crate::R<SSPPCELLID2_SPEC>;
3#[doc = "Register `SSPPCELLID2` writer"]
4pub type W = crate::W<SSPPCELLID2_SPEC>;
5#[doc = "Field `SSPPCELLID2` reader - These bits read back as 0x05"]
6pub type SSPPCELLID2_R = crate::FieldReader;
7impl R {
8 #[doc = "Bits 0:7 - These bits read back as 0x05"]
9 #[inline(always)]
10 pub fn ssppcellid2(&self) -> SSPPCELLID2_R {
11 SSPPCELLID2_R::new((self.bits & 0xff) as u8)
12 }
13}
14impl W {}
15#[doc = "PrimeCell identification registers, SSPPCellID0-3 on page 3-16
16
17You can [`read`](crate::Reg::read) this register and get [`ssppcellid2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ssppcellid2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
18pub struct SSPPCELLID2_SPEC;
19impl crate::RegisterSpec for SSPPCELLID2_SPEC {
20 type Ux = u32;
21}
22#[doc = "`read()` method returns [`ssppcellid2::R`](R) reader structure"]
23impl crate::Readable for SSPPCELLID2_SPEC {}
24#[doc = "`write(|w| ..)` method takes [`ssppcellid2::W`](W) writer structure"]
25impl crate::Writable for SSPPCELLID2_SPEC {
26 type Safety = crate::Unsafe;
27 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
28 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
29}
30#[doc = "`reset()` method sets SSPPCELLID2 to value 0x05"]
31impl crate::Resettable for SSPPCELLID2_SPEC {
32 const RESET_VALUE: u32 = 0x05;
33}