1#[repr(C)]
2#[cfg_attr(feature = "impl-register-debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5 t: [T; 2],
6 wdtconfig0: WDTCONFIG0,
7 wdtconfig1: WDTCONFIG1,
8 wdtconfig2: WDTCONFIG2,
9 wdtconfig3: WDTCONFIG3,
10 wdtconfig4: WDTCONFIG4,
11 wdtconfig5: WDTCONFIG5,
12 wdtfeed: WDTFEED,
13 wdtwprotect: WDTWPROTECT,
14 rtccalicfg: RTCCALICFG,
15 rtccalicfg1: RTCCALICFG1,
16 lactconfig: LACTCONFIG,
17 lactrtc: LACTRTC,
18 lactlo: LACTLO,
19 lacthi: LACTHI,
20 lactupdate: LACTUPDATE,
21 lactalarmlo: LACTALARMLO,
22 lactalarmhi: LACTALARMHI,
23 lactloadlo: LACTLOADLO,
24 lactloadhi: LACTLOADHI,
25 lactload: LACTLOAD,
26 int_ena: INT_ENA,
27 int_raw: INT_RAW,
28 int_st: INT_ST,
29 int_clr: INT_CLR,
30 _reserved25: [u8; 0x50],
31 ntimers_date: NTIMERS_DATE,
32 timgclk: TIMGCLK,
33}
34impl RegisterBlock {
35 #[doc = "0x00..0x48 - Cluster T%s, containing T?CONFIG, T?LO, T?HI, T?UPDATE, T?ALARMLO, T?ALARMHI, T?LOADLO, T?LOADHI, T?LOAD"]
36 #[inline(always)]
37 pub const fn t(&self, n: usize) -> &T {
38 &self.t[n]
39 }
40 #[doc = "Iterator for array of:"]
41 #[doc = "0x00..0x48 - Cluster T%s, containing T?CONFIG, T?LO, T?HI, T?UPDATE, T?ALARMLO, T?ALARMHI, T?LOADLO, T?LOADHI, T?LOAD"]
42 #[inline(always)]
43 pub fn t_iter(&self) -> impl Iterator<Item = &T> {
44 self.t.iter()
45 }
46 #[doc = "0x48 - "]
47 #[inline(always)]
48 pub const fn wdtconfig0(&self) -> &WDTCONFIG0 {
49 &self.wdtconfig0
50 }
51 #[doc = "0x4c - "]
52 #[inline(always)]
53 pub const fn wdtconfig1(&self) -> &WDTCONFIG1 {
54 &self.wdtconfig1
55 }
56 #[doc = "0x50 - "]
57 #[inline(always)]
58 pub const fn wdtconfig2(&self) -> &WDTCONFIG2 {
59 &self.wdtconfig2
60 }
61 #[doc = "0x54 - "]
62 #[inline(always)]
63 pub const fn wdtconfig3(&self) -> &WDTCONFIG3 {
64 &self.wdtconfig3
65 }
66 #[doc = "0x58 - "]
67 #[inline(always)]
68 pub const fn wdtconfig4(&self) -> &WDTCONFIG4 {
69 &self.wdtconfig4
70 }
71 #[doc = "0x5c - "]
72 #[inline(always)]
73 pub const fn wdtconfig5(&self) -> &WDTCONFIG5 {
74 &self.wdtconfig5
75 }
76 #[doc = "0x60 - "]
77 #[inline(always)]
78 pub const fn wdtfeed(&self) -> &WDTFEED {
79 &self.wdtfeed
80 }
81 #[doc = "0x64 - "]
82 #[inline(always)]
83 pub const fn wdtwprotect(&self) -> &WDTWPROTECT {
84 &self.wdtwprotect
85 }
86 #[doc = "0x68 - "]
87 #[inline(always)]
88 pub const fn rtccalicfg(&self) -> &RTCCALICFG {
89 &self.rtccalicfg
90 }
91 #[doc = "0x6c - "]
92 #[inline(always)]
93 pub const fn rtccalicfg1(&self) -> &RTCCALICFG1 {
94 &self.rtccalicfg1
95 }
96 #[doc = "0x70 - "]
97 #[inline(always)]
98 pub const fn lactconfig(&self) -> &LACTCONFIG {
99 &self.lactconfig
100 }
101 #[doc = "0x74 - "]
102 #[inline(always)]
103 pub const fn lactrtc(&self) -> &LACTRTC {
104 &self.lactrtc
105 }
106 #[doc = "0x78 - "]
107 #[inline(always)]
108 pub const fn lactlo(&self) -> &LACTLO {
109 &self.lactlo
110 }
111 #[doc = "0x7c - "]
112 #[inline(always)]
113 pub const fn lacthi(&self) -> &LACTHI {
114 &self.lacthi
115 }
116 #[doc = "0x80 - "]
117 #[inline(always)]
118 pub const fn lactupdate(&self) -> &LACTUPDATE {
119 &self.lactupdate
120 }
121 #[doc = "0x84 - "]
122 #[inline(always)]
123 pub const fn lactalarmlo(&self) -> &LACTALARMLO {
124 &self.lactalarmlo
125 }
126 #[doc = "0x88 - "]
127 #[inline(always)]
128 pub const fn lactalarmhi(&self) -> &LACTALARMHI {
129 &self.lactalarmhi
130 }
131 #[doc = "0x8c - "]
132 #[inline(always)]
133 pub const fn lactloadlo(&self) -> &LACTLOADLO {
134 &self.lactloadlo
135 }
136 #[doc = "0x90 - "]
137 #[inline(always)]
138 pub const fn lactloadhi(&self) -> &LACTLOADHI {
139 &self.lactloadhi
140 }
141 #[doc = "0x94 - "]
142 #[inline(always)]
143 pub const fn lactload(&self) -> &LACTLOAD {
144 &self.lactload
145 }
146 #[doc = "0x98 - "]
147 #[inline(always)]
148 pub const fn int_ena(&self) -> &INT_ENA {
149 &self.int_ena
150 }
151 #[doc = "0x9c - "]
152 #[inline(always)]
153 pub const fn int_raw(&self) -> &INT_RAW {
154 &self.int_raw
155 }
156 #[doc = "0xa0 - "]
157 #[inline(always)]
158 pub const fn int_st(&self) -> &INT_ST {
159 &self.int_st
160 }
161 #[doc = "0xa4 - "]
162 #[inline(always)]
163 pub const fn int_clr(&self) -> &INT_CLR {
164 &self.int_clr
165 }
166 #[doc = "0xf8 - "]
167 #[inline(always)]
168 pub const fn ntimers_date(&self) -> &NTIMERS_DATE {
169 &self.ntimers_date
170 }
171 #[doc = "0xfc - "]
172 #[inline(always)]
173 pub const fn timgclk(&self) -> &TIMGCLK {
174 &self.timgclk
175 }
176}
177#[doc = "Cluster T%s, containing T?CONFIG, T?LO, T?HI, T?UPDATE, T?ALARMLO, T?ALARMHI, T?LOADLO, T?LOADHI, T?LOAD"]
178pub use self::t::T;
179#[doc = r"Cluster"]
180#[doc = "Cluster T%s, containing T?CONFIG, T?LO, T?HI, T?UPDATE, T?ALARMLO, T?ALARMHI, T?LOADLO, T?LOADHI, T?LOAD"]
181pub mod t;
182#[doc = "WDTCONFIG0 (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`wdtconfig0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wdtconfig0::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@wdtconfig0`] module"]
183pub type WDTCONFIG0 = crate::Reg<wdtconfig0::WDTCONFIG0_SPEC>;
184#[doc = ""]
185pub mod wdtconfig0;
186#[doc = "WDTCONFIG1 (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`wdtconfig1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wdtconfig1::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@wdtconfig1`] module"]
187pub type WDTCONFIG1 = crate::Reg<wdtconfig1::WDTCONFIG1_SPEC>;
188#[doc = ""]
189pub mod wdtconfig1;
190#[doc = "WDTCONFIG2 (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`wdtconfig2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wdtconfig2::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@wdtconfig2`] module"]
191pub type WDTCONFIG2 = crate::Reg<wdtconfig2::WDTCONFIG2_SPEC>;
192#[doc = ""]
193pub mod wdtconfig2;
194#[doc = "WDTCONFIG3 (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`wdtconfig3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wdtconfig3::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@wdtconfig3`] module"]
195pub type WDTCONFIG3 = crate::Reg<wdtconfig3::WDTCONFIG3_SPEC>;
196#[doc = ""]
197pub mod wdtconfig3;
198#[doc = "WDTCONFIG4 (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`wdtconfig4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wdtconfig4::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@wdtconfig4`] module"]
199pub type WDTCONFIG4 = crate::Reg<wdtconfig4::WDTCONFIG4_SPEC>;
200#[doc = ""]
201pub mod wdtconfig4;
202#[doc = "WDTCONFIG5 (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`wdtconfig5::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wdtconfig5::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@wdtconfig5`] module"]
203pub type WDTCONFIG5 = crate::Reg<wdtconfig5::WDTCONFIG5_SPEC>;
204#[doc = ""]
205pub mod wdtconfig5;
206#[doc = "WDTFEED (w) register accessor: \n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wdtfeed::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@wdtfeed`] module"]
207pub type WDTFEED = crate::Reg<wdtfeed::WDTFEED_SPEC>;
208#[doc = ""]
209pub mod wdtfeed;
210#[doc = "WDTWPROTECT (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`wdtwprotect::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wdtwprotect::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@wdtwprotect`] module"]
211pub type WDTWPROTECT = crate::Reg<wdtwprotect::WDTWPROTECT_SPEC>;
212#[doc = ""]
213pub mod wdtwprotect;
214#[doc = "RTCCALICFG (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`rtccalicfg::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtccalicfg::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@rtccalicfg`] module"]
215pub type RTCCALICFG = crate::Reg<rtccalicfg::RTCCALICFG_SPEC>;
216#[doc = ""]
217pub mod rtccalicfg;
218#[doc = "RTCCALICFG1 (r) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`rtccalicfg1::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rtccalicfg1`] module"]
219pub type RTCCALICFG1 = crate::Reg<rtccalicfg1::RTCCALICFG1_SPEC>;
220#[doc = ""]
221pub mod rtccalicfg1;
222#[doc = "LACTCONFIG (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`lactconfig::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lactconfig::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@lactconfig`] module"]
223pub type LACTCONFIG = crate::Reg<lactconfig::LACTCONFIG_SPEC>;
224#[doc = ""]
225pub mod lactconfig;
226#[doc = "LACTRTC (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`lactrtc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lactrtc::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@lactrtc`] module"]
227pub type LACTRTC = crate::Reg<lactrtc::LACTRTC_SPEC>;
228#[doc = ""]
229pub mod lactrtc;
230#[doc = "LACTLO (r) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`lactlo::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@lactlo`] module"]
231pub type LACTLO = crate::Reg<lactlo::LACTLO_SPEC>;
232#[doc = ""]
233pub mod lactlo;
234#[doc = "LACTHI (r) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`lacthi::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@lacthi`] module"]
235pub type LACTHI = crate::Reg<lacthi::LACTHI_SPEC>;
236#[doc = ""]
237pub mod lacthi;
238#[doc = "LACTUPDATE (w) register accessor: \n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lactupdate::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@lactupdate`] module"]
239pub type LACTUPDATE = crate::Reg<lactupdate::LACTUPDATE_SPEC>;
240#[doc = ""]
241pub mod lactupdate;
242#[doc = "LACTALARMLO (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`lactalarmlo::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lactalarmlo::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@lactalarmlo`] module"]
243pub type LACTALARMLO = crate::Reg<lactalarmlo::LACTALARMLO_SPEC>;
244#[doc = ""]
245pub mod lactalarmlo;
246#[doc = "LACTALARMHI (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`lactalarmhi::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lactalarmhi::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@lactalarmhi`] module"]
247pub type LACTALARMHI = crate::Reg<lactalarmhi::LACTALARMHI_SPEC>;
248#[doc = ""]
249pub mod lactalarmhi;
250#[doc = "LACTLOADLO (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`lactloadlo::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lactloadlo::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@lactloadlo`] module"]
251pub type LACTLOADLO = crate::Reg<lactloadlo::LACTLOADLO_SPEC>;
252#[doc = ""]
253pub mod lactloadlo;
254#[doc = "LACTLOADHI (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`lactloadhi::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lactloadhi::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@lactloadhi`] module"]
255pub type LACTLOADHI = crate::Reg<lactloadhi::LACTLOADHI_SPEC>;
256#[doc = ""]
257pub mod lactloadhi;
258#[doc = "LACTLOAD (w) register accessor: \n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lactload::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@lactload`] module"]
259pub type LACTLOAD = crate::Reg<lactload::LACTLOAD_SPEC>;
260#[doc = ""]
261pub mod lactload;
262#[doc = "INT_ENA (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`int_ena::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`int_ena::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@int_ena`] module"]
263pub type INT_ENA = crate::Reg<int_ena::INT_ENA_SPEC>;
264#[doc = ""]
265pub mod int_ena;
266#[doc = "INT_RAW (r) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`int_raw::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_raw`] module"]
267pub type INT_RAW = crate::Reg<int_raw::INT_RAW_SPEC>;
268#[doc = ""]
269pub mod int_raw;
270#[doc = "INT_ST (r) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`int_st::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_st`] module"]
271pub type INT_ST = crate::Reg<int_st::INT_ST_SPEC>;
272#[doc = ""]
273pub mod int_st;
274#[doc = "INT_CLR (w) register accessor: \n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`int_clr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_clr`] module"]
275pub type INT_CLR = crate::Reg<int_clr::INT_CLR_SPEC>;
276#[doc = ""]
277pub mod int_clr;
278#[doc = "NTIMERS_DATE (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`ntimers_date::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ntimers_date::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@ntimers_date`] module"]
279pub type NTIMERS_DATE = crate::Reg<ntimers_date::NTIMERS_DATE_SPEC>;
280#[doc = ""]
281pub mod ntimers_date;
282#[doc = "TIMGCLK (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`timgclk::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`timgclk::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@timgclk`] module"]
283pub type TIMGCLK = crate::Reg<timgclk::TIMGCLK_SPEC>;
284#[doc = ""]
285pub mod timgclk;