jh7110_vf2_13b_pac/spi6/
ssp_pcell_id2.rs

1#[doc = "Register `ssp_pcell_id2` reader"]
2pub type R = crate::R<SSP_PCELL_ID2_SPEC>;
3#[doc = "Register `ssp_pcell_id2` writer"]
4pub type W = crate::W<SSP_PCELL_ID2_SPEC>;
5#[doc = "Field `ssp_pcell_id2` reader - The bits are read as 0x5"]
6pub type SSP_PCELL_ID2_R = crate::FieldReader;
7impl R {
8    #[doc = "Bits 0:7 - The bits are read as 0x5"]
9    #[inline(always)]
10    pub fn ssp_pcell_id2(&self) -> SSP_PCELL_ID2_R {
11        SSP_PCELL_ID2_R::new((self.bits & 0xff) as u8)
12    }
13}
14impl W {
15    #[doc = r" Writes raw bits to the register."]
16    #[doc = r""]
17    #[doc = r" # Safety"]
18    #[doc = r""]
19    #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
20    #[inline(always)]
21    pub unsafe fn bits(&mut self, bits: u16) -> &mut Self {
22        self.bits = bits;
23        self
24    }
25}
26#[doc = "The SSPPCellID0-3 registers are four 8-bit wide registers, that span address locations 0xFF0-0xFFC. The registers can conceptually be treated as a 32-bit register. The register is used as a standard cross-peripheral identification system. The SSPPCellID register is set to 0xB105F00D.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ssp_pcell_id2::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ssp_pcell_id2::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
27pub struct SSP_PCELL_ID2_SPEC;
28impl crate::RegisterSpec for SSP_PCELL_ID2_SPEC {
29    type Ux = u16;
30}
31#[doc = "`read()` method returns [`ssp_pcell_id2::R`](R) reader structure"]
32impl crate::Readable for SSP_PCELL_ID2_SPEC {}
33#[doc = "`write(|w| ..)` method takes [`ssp_pcell_id2::W`](W) writer structure"]
34impl crate::Writable for SSP_PCELL_ID2_SPEC {
35    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
36    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
37}
38#[doc = "`reset()` method sets ssp_pcell_id2 to value 0"]
39impl crate::Resettable for SSP_PCELL_ID2_SPEC {
40    const RESET_VALUE: Self::Ux = 0;
41}