1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 chip_id: CHIP_ID,
5 platform: PLATFORM,
6 _reserved2: [u8; 0x38],
7 gitref_rp2040: GITREF_RP2040,
8}
9impl RegisterBlock {
10 #[doc = "0x00 - JEDEC JEP-106 compliant chip identifier."]
11 #[inline(always)]
12 pub const fn chip_id(&self) -> &CHIP_ID {
13 &self.chip_id
14 }
15 #[doc = "0x04 - Platform register. Allows software to know what environment it is running in."]
16 #[inline(always)]
17 pub const fn platform(&self) -> &PLATFORM {
18 &self.platform
19 }
20 #[doc = "0x40 - Git hash of the chip source. Used to identify chip version."]
21 #[inline(always)]
22 pub const fn gitref_rp2040(&self) -> &GITREF_RP2040 {
23 &self.gitref_rp2040
24 }
25}
26#[doc = "CHIP_ID (r) register accessor: JEDEC JEP-106 compliant chip identifier.
27
28You can [`read`](crate::generic::Reg::read) this register and get [`chip_id::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
29
30For information about available fields see [`mod@chip_id`]
31module"]
32pub type CHIP_ID = crate::Reg<chip_id::CHIP_ID_SPEC>;
33#[doc = "JEDEC JEP-106 compliant chip identifier."]
34pub mod chip_id;
35#[doc = "PLATFORM (r) register accessor: Platform register. Allows software to know what environment it is running in.
36
37You can [`read`](crate::generic::Reg::read) this register and get [`platform::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
38
39For information about available fields see [`mod@platform`]
40module"]
41pub type PLATFORM = crate::Reg<platform::PLATFORM_SPEC>;
42#[doc = "Platform register. Allows software to know what environment it is running in."]
43pub mod platform;
44#[doc = "GITREF_RP2040 (r) register accessor: Git hash of the chip source. Used to identify chip version.
45
46You can [`read`](crate::generic::Reg::read) this register and get [`gitref_rp2040::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
47
48For information about available fields see [`mod@gitref_rp2040`]
49module"]
50pub type GITREF_RP2040 = crate::Reg<gitref_rp2040::GITREF_RP2040_SPEC>;
51#[doc = "Git hash of the chip source. Used to identify chip version."]
52pub mod gitref_rp2040;