rp235x_pac/inner/sysinfo/
gitref_rp2350.rs

1#[doc = "Register `GITREF_RP2350` reader"]
2pub type R = crate::R<GITREF_RP2350_SPEC>;
3#[doc = "Register `GITREF_RP2350` writer"]
4pub type W = crate::W<GITREF_RP2350_SPEC>;
5#[doc = "Field `GITREF_RP2350` reader - "]
6pub type GITREF_RP2350_R = crate::FieldReader<u32>;
7impl R {
8    #[doc = "Bits 0:31"]
9    #[inline(always)]
10    pub fn gitref_rp2350(&self) -> GITREF_RP2350_R {
11        GITREF_RP2350_R::new(self.bits)
12    }
13}
14impl W {}
15#[doc = "Git hash of the chip source. Used to identify chip version.  
16
17You can [`read`](crate::Reg::read) this register and get [`gitref_rp2350::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gitref_rp2350::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
18pub struct GITREF_RP2350_SPEC;
19impl crate::RegisterSpec for GITREF_RP2350_SPEC {
20    type Ux = u32;
21}
22#[doc = "`read()` method returns [`gitref_rp2350::R`](R) reader structure"]
23impl crate::Readable for GITREF_RP2350_SPEC {}
24#[doc = "`write(|w| ..)` method takes [`gitref_rp2350::W`](W) writer structure"]
25impl crate::Writable for GITREF_RP2350_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 GITREF_RP2350 to value 0"]
31impl crate::Resettable for GITREF_RP2350_SPEC {
32    const RESET_VALUE: u32 = 0;
33}