1#[repr(C)]
2#[cfg_attr(feature = "debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5 cr0: Cr0,
6 _reserved1: [u8; 0x0c],
7 sr0: Sr0,
8 _reserved2: [u8; 0xec],
9 ear0: Ear0,
10 syn0: Syn0,
11 corr_err_cnt0: CorrErrCnt0,
12 _reserved5: [u8; 0x0c],
13 corr_err_cnt1: CorrErrCnt1,
14}
15impl RegisterBlock {
16 #[doc = "0x00 - ERM Configuration Register 0"]
17 #[inline(always)]
18 pub const fn cr0(&self) -> &Cr0 {
19 &self.cr0
20 }
21 #[doc = "0x10 - ERM Status Register 0"]
22 #[inline(always)]
23 pub const fn sr0(&self) -> &Sr0 {
24 &self.sr0
25 }
26 #[doc = "0x100 - ERM Memory 0 Error Address Register"]
27 #[inline(always)]
28 pub const fn ear0(&self) -> &Ear0 {
29 &self.ear0
30 }
31 #[doc = "0x104 - ERM Memory 0 Syndrome Register"]
32 #[inline(always)]
33 pub const fn syn0(&self) -> &Syn0 {
34 &self.syn0
35 }
36 #[doc = "0x108 - ERM Memory 0 Correctable Error Count Register"]
37 #[inline(always)]
38 pub const fn corr_err_cnt0(&self) -> &CorrErrCnt0 {
39 &self.corr_err_cnt0
40 }
41 #[doc = "0x118 - ERM Memory 1 Correctable Error Count Register"]
42 #[inline(always)]
43 pub const fn corr_err_cnt1(&self) -> &CorrErrCnt1 {
44 &self.corr_err_cnt1
45 }
46}
47#[doc = "CR0 (rw) register accessor: ERM Configuration Register 0\n\nYou can [`read`](crate::Reg::read) this register and get [`cr0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr0`] module"]
48#[doc(alias = "CR0")]
49pub type Cr0 = crate::Reg<cr0::Cr0Spec>;
50#[doc = "ERM Configuration Register 0"]
51pub mod cr0;
52#[doc = "SR0 (rw) register accessor: ERM Status Register 0\n\nYou can [`read`](crate::Reg::read) this register and get [`sr0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr0`] module"]
53#[doc(alias = "SR0")]
54pub type Sr0 = crate::Reg<sr0::Sr0Spec>;
55#[doc = "ERM Status Register 0"]
56pub mod sr0;
57#[doc = "EAR0 (r) register accessor: ERM Memory 0 Error Address Register\n\nYou can [`read`](crate::Reg::read) this register and get [`ear0::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ear0`] module"]
58#[doc(alias = "EAR0")]
59pub type Ear0 = crate::Reg<ear0::Ear0Spec>;
60#[doc = "ERM Memory 0 Error Address Register"]
61pub mod ear0;
62#[doc = "SYN0 (r) register accessor: ERM Memory 0 Syndrome Register\n\nYou can [`read`](crate::Reg::read) this register and get [`syn0::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@syn0`] module"]
63#[doc(alias = "SYN0")]
64pub type Syn0 = crate::Reg<syn0::Syn0Spec>;
65#[doc = "ERM Memory 0 Syndrome Register"]
66pub mod syn0;
67#[doc = "CORR_ERR_CNT0 (rw) register accessor: ERM Memory 0 Correctable Error Count Register\n\nYou can [`read`](crate::Reg::read) this register and get [`corr_err_cnt0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`corr_err_cnt0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@corr_err_cnt0`] module"]
68#[doc(alias = "CORR_ERR_CNT0")]
69pub type CorrErrCnt0 = crate::Reg<corr_err_cnt0::CorrErrCnt0Spec>;
70#[doc = "ERM Memory 0 Correctable Error Count Register"]
71pub mod corr_err_cnt0;
72#[doc = "CORR_ERR_CNT1 (rw) register accessor: ERM Memory 1 Correctable Error Count Register\n\nYou can [`read`](crate::Reg::read) this register and get [`corr_err_cnt1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`corr_err_cnt1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@corr_err_cnt1`] module"]
73#[doc(alias = "CORR_ERR_CNT1")]
74pub type CorrErrCnt1 = crate::Reg<corr_err_cnt1::CorrErrCnt1Spec>;
75#[doc = "ERM Memory 1 Correctable Error Count Register"]
76pub mod corr_err_cnt1;