swm341_pac/
sys.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - CLKSEL register"]
5    pub clksel: CLKSEL,
6    #[doc = "0x04 - CLKDIVx_ON register"]
7    pub clkdivx_on: CLKDIVX_ON,
8    #[doc = "0x08 - CLKEN0 register"]
9    pub clken0: CLKEN0,
10    #[doc = "0x0c - CLKEN1 register"]
11    pub clken1: CLKEN1,
12    #[doc = "0x10 - SLEEP register"]
13    pub sleep: SLEEP,
14    _reserved5: [u8; 0x10],
15    #[doc = "0x24 - RSTSR register"]
16    pub rstsr: RSTSR,
17    _reserved6: [u8; 0x08],
18    #[doc = "0x30 - RTCWKCR register"]
19    pub rtcwkcr: RTCWKCR,
20    #[doc = "0x34 - RTCWKSR register"]
21    pub rtcwksr: RTCWKSR,
22    _reserved8: [u8; 0x38],
23    #[doc = "0x70 - USBPHYCR register"]
24    pub usbphycr: USBPHYCR,
25    #[doc = "0x74 - USBCR register"]
26    pub usbcr: USBCR,
27    _reserved10: [u8; 0x08],
28    #[doc = "0x80..0x90 - CHIPID register"]
29    pub chipid: [CHIPID; 4],
30    #[doc = "0x90..0xa0 - BACKUP register"]
31    pub backup: [BACKUP; 4],
32    _reserved12: [u8; 0x30],
33    #[doc = "0xd0 - PRNGCR register"]
34    pub prngcr: PRNGCR,
35    #[doc = "0xd4 - PRNGDL register"]
36    pub prngdl: PRNGDL,
37    #[doc = "0xd8 - PRNGDH register"]
38    pub prngdh: PRNGDH,
39    _reserved15: [u8; 0x24],
40    #[doc = "0x100 - PAWKEN register"]
41    pub pawken: PAWKEN,
42    #[doc = "0x104 - PBWKEN register"]
43    pub pbwken: PBWKEN,
44    #[doc = "0x108 - PCWKEN register"]
45    pub pcwken: PCWKEN,
46    #[doc = "0x10c - PDWKEN register"]
47    pub pdwken: PDWKEN,
48    #[doc = "0x110 - PEWKEN register"]
49    pub pewken: PEWKEN,
50    _reserved20: [u8; 0x0c],
51    #[doc = "0x120 - PMWKEN register"]
52    pub pmwken: PMWKEN,
53    #[doc = "0x124 - PNWKEN register"]
54    pub pnwken: PNWKEN,
55    _reserved22: [u8; 0x08],
56    #[doc = "0x130 - PAWKSR register"]
57    pub pawksr: PAWKSR,
58    #[doc = "0x134 - PBWKSR register"]
59    pub pbwksr: PBWKSR,
60    #[doc = "0x138 - PCWKSR register"]
61    pub pcwksr: PCWKSR,
62    #[doc = "0x13c - PDWKSR register"]
63    pub pdwksr: PDWKSR,
64    #[doc = "0x140 - PEWKSR register"]
65    pub pewksr: PEWKSR,
66    _reserved27: [u8; 0x0c],
67    #[doc = "0x150 - PMWKSR register"]
68    pub pmwksr: PMWKSR,
69    #[doc = "0x154 - PNWKSR register"]
70    pub pnwksr: PNWKSR,
71    _reserved29: [u8; 0x02a8],
72    #[doc = "0x400 - IOFILT0 register"]
73    pub iofilt0: IOFILT0,
74    #[doc = "0x404 - IOFILT1 register"]
75    pub iofilt1: IOFILT1,
76    _reserved31: [u8; 0x0318],
77    #[doc = "0x720 - PRSTEN register"]
78    pub prsten: PRSTEN,
79    #[doc = "0x724 - PRSTR0 register"]
80    pub prstr0: PRSTR0,
81    #[doc = "0x728 - PRSTR1 register"]
82    pub prstr1: PRSTR1,
83    _reserved34: [u8; 0x000a_98d4],
84    #[doc = "0xaa000 - HRCCR register"]
85    pub hrccr: HRCCR,
86    _reserved35: [u8; 0x0c],
87    #[doc = "0xaa010 - BODCR register"]
88    pub bodcr: BODCR,
89    #[doc = "0xaa014 - BODSR register"]
90    pub bodsr: BODSR,
91    #[doc = "0xaa018 - ADCCR register"]
92    pub adccr: ADCCR,
93    _reserved38: [u8; 0x04],
94    #[doc = "0xaa020 - XTALCR register"]
95    pub xtalcr: XTALCR,
96    #[doc = "0xaa024 - XTALSR register"]
97    pub xtalsr: XTALSR,
98    _reserved40: [u8; 0x18],
99    #[doc = "0xaa040 - PLLCR register"]
100    pub pllcr: PLLCR,
101    #[doc = "0xaa044 - PLLDIV register"]
102    pub plldiv: PLLDIV,
103    _reserved42: [u8; 0x04],
104    #[doc = "0xaa04c - PLLLOCK register"]
105    pub plllock: PLLLOCK,
106    #[doc = "0xaa050 - LRCCR register"]
107    pub lrccr: LRCCR,
108    _reserved44: [u8; 0x1c],
109    #[doc = "0xaa070 - OPACR register"]
110    pub opacr: OPACR,
111    _reserved45: [u8; 0x0c],
112    #[doc = "0xaa080 - ACMPCR register"]
113    pub acmpcr: ACMPCR,
114    #[doc = "0xaa084 - ACMPSR register"]
115    pub acmpsr: ACMPSR,
116    #[doc = "0xaa088 - ACMPCR2 register"]
117    pub acmpcr2: ACMPCR2,
118    _reserved48: [u8; 0x04],
119    #[doc = "0xaa090 - DACCR register"]
120    pub daccr: DACCR,
121    _reserved49: [u8; 0x04],
122    #[doc = "0xaa098 - TEMPCR register"]
123    pub tempcr: TEMPCR,
124}
125#[doc = "CLKSEL (rw) register accessor: an alias for `Reg<CLKSEL_SPEC>`"]
126pub type CLKSEL = crate::Reg<clksel::CLKSEL_SPEC>;
127#[doc = "CLKSEL register"]
128pub mod clksel;
129#[doc = "CLKDIVx_ON (rw) register accessor: an alias for `Reg<CLKDIVX_ON_SPEC>`"]
130pub type CLKDIVX_ON = crate::Reg<clkdivx_on::CLKDIVX_ON_SPEC>;
131#[doc = "CLKDIVx_ON register"]
132pub mod clkdivx_on;
133#[doc = "CLKEN0 (rw) register accessor: an alias for `Reg<CLKEN0_SPEC>`"]
134pub type CLKEN0 = crate::Reg<clken0::CLKEN0_SPEC>;
135#[doc = "CLKEN0 register"]
136pub mod clken0;
137#[doc = "CLKEN1 (rw) register accessor: an alias for `Reg<CLKEN1_SPEC>`"]
138pub type CLKEN1 = crate::Reg<clken1::CLKEN1_SPEC>;
139#[doc = "CLKEN1 register"]
140pub mod clken1;
141#[doc = "SLEEP (rw) register accessor: an alias for `Reg<SLEEP_SPEC>`"]
142pub type SLEEP = crate::Reg<sleep::SLEEP_SPEC>;
143#[doc = "SLEEP register"]
144pub mod sleep;
145#[doc = "RSTSR (rw) register accessor: an alias for `Reg<RSTSR_SPEC>`"]
146pub type RSTSR = crate::Reg<rstsr::RSTSR_SPEC>;
147#[doc = "RSTSR register"]
148pub mod rstsr;
149#[doc = "RTCWKCR (rw) register accessor: an alias for `Reg<RTCWKCR_SPEC>`"]
150pub type RTCWKCR = crate::Reg<rtcwkcr::RTCWKCR_SPEC>;
151#[doc = "RTCWKCR register"]
152pub mod rtcwkcr;
153#[doc = "RTCWKSR (rw) register accessor: an alias for `Reg<RTCWKSR_SPEC>`"]
154pub type RTCWKSR = crate::Reg<rtcwksr::RTCWKSR_SPEC>;
155#[doc = "RTCWKSR register"]
156pub mod rtcwksr;
157#[doc = "USBPHYCR (rw) register accessor: an alias for `Reg<USBPHYCR_SPEC>`"]
158pub type USBPHYCR = crate::Reg<usbphycr::USBPHYCR_SPEC>;
159#[doc = "USBPHYCR register"]
160pub mod usbphycr;
161#[doc = "USBCR (rw) register accessor: an alias for `Reg<USBCR_SPEC>`"]
162pub type USBCR = crate::Reg<usbcr::USBCR_SPEC>;
163#[doc = "USBCR register"]
164pub mod usbcr;
165#[doc = "CHIPID (r) register accessor: an alias for `Reg<CHIPID_SPEC>`"]
166pub type CHIPID = crate::Reg<chipid::CHIPID_SPEC>;
167#[doc = "CHIPID register"]
168pub mod chipid;
169#[doc = "BACKUP (rw) register accessor: an alias for `Reg<BACKUP_SPEC>`"]
170pub type BACKUP = crate::Reg<backup::BACKUP_SPEC>;
171#[doc = "BACKUP register"]
172pub mod backup;
173#[doc = "PRNGCR (rw) register accessor: an alias for `Reg<PRNGCR_SPEC>`"]
174pub type PRNGCR = crate::Reg<prngcr::PRNGCR_SPEC>;
175#[doc = "PRNGCR register"]
176pub mod prngcr;
177#[doc = "PRNGDL (rw) register accessor: an alias for `Reg<PRNGDL_SPEC>`"]
178pub type PRNGDL = crate::Reg<prngdl::PRNGDL_SPEC>;
179#[doc = "PRNGDL register"]
180pub mod prngdl;
181#[doc = "PRNGDH (rw) register accessor: an alias for `Reg<PRNGDH_SPEC>`"]
182pub type PRNGDH = crate::Reg<prngdh::PRNGDH_SPEC>;
183#[doc = "PRNGDH register"]
184pub mod prngdh;
185#[doc = "PAWKEN (rw) register accessor: an alias for `Reg<PAWKEN_SPEC>`"]
186pub type PAWKEN = crate::Reg<pawken::PAWKEN_SPEC>;
187#[doc = "PAWKEN register"]
188pub mod pawken;
189#[doc = "PBWKEN (rw) register accessor: an alias for `Reg<PBWKEN_SPEC>`"]
190pub type PBWKEN = crate::Reg<pbwken::PBWKEN_SPEC>;
191#[doc = "PBWKEN register"]
192pub mod pbwken;
193#[doc = "PCWKEN (rw) register accessor: an alias for `Reg<PCWKEN_SPEC>`"]
194pub type PCWKEN = crate::Reg<pcwken::PCWKEN_SPEC>;
195#[doc = "PCWKEN register"]
196pub mod pcwken;
197#[doc = "PDWKEN (rw) register accessor: an alias for `Reg<PDWKEN_SPEC>`"]
198pub type PDWKEN = crate::Reg<pdwken::PDWKEN_SPEC>;
199#[doc = "PDWKEN register"]
200pub mod pdwken;
201#[doc = "PEWKEN (rw) register accessor: an alias for `Reg<PEWKEN_SPEC>`"]
202pub type PEWKEN = crate::Reg<pewken::PEWKEN_SPEC>;
203#[doc = "PEWKEN register"]
204pub mod pewken;
205#[doc = "PMWKEN (rw) register accessor: an alias for `Reg<PMWKEN_SPEC>`"]
206pub type PMWKEN = crate::Reg<pmwken::PMWKEN_SPEC>;
207#[doc = "PMWKEN register"]
208pub mod pmwken;
209#[doc = "PNWKEN (rw) register accessor: an alias for `Reg<PNWKEN_SPEC>`"]
210pub type PNWKEN = crate::Reg<pnwken::PNWKEN_SPEC>;
211#[doc = "PNWKEN register"]
212pub mod pnwken;
213#[doc = "PAWKSR (rw) register accessor: an alias for `Reg<PAWKSR_SPEC>`"]
214pub type PAWKSR = crate::Reg<pawksr::PAWKSR_SPEC>;
215#[doc = "PAWKSR register"]
216pub mod pawksr;
217#[doc = "PBWKSR (rw) register accessor: an alias for `Reg<PBWKSR_SPEC>`"]
218pub type PBWKSR = crate::Reg<pbwksr::PBWKSR_SPEC>;
219#[doc = "PBWKSR register"]
220pub mod pbwksr;
221#[doc = "PCWKSR (rw) register accessor: an alias for `Reg<PCWKSR_SPEC>`"]
222pub type PCWKSR = crate::Reg<pcwksr::PCWKSR_SPEC>;
223#[doc = "PCWKSR register"]
224pub mod pcwksr;
225#[doc = "PDWKSR (rw) register accessor: an alias for `Reg<PDWKSR_SPEC>`"]
226pub type PDWKSR = crate::Reg<pdwksr::PDWKSR_SPEC>;
227#[doc = "PDWKSR register"]
228pub mod pdwksr;
229#[doc = "PEWKSR (rw) register accessor: an alias for `Reg<PEWKSR_SPEC>`"]
230pub type PEWKSR = crate::Reg<pewksr::PEWKSR_SPEC>;
231#[doc = "PEWKSR register"]
232pub mod pewksr;
233#[doc = "PMWKSR (rw) register accessor: an alias for `Reg<PMWKSR_SPEC>`"]
234pub type PMWKSR = crate::Reg<pmwksr::PMWKSR_SPEC>;
235#[doc = "PMWKSR register"]
236pub mod pmwksr;
237#[doc = "PNWKSR (rw) register accessor: an alias for `Reg<PNWKSR_SPEC>`"]
238pub type PNWKSR = crate::Reg<pnwksr::PNWKSR_SPEC>;
239#[doc = "PNWKSR register"]
240pub mod pnwksr;
241#[doc = "IOFILT0 (rw) register accessor: an alias for `Reg<IOFILT0_SPEC>`"]
242pub type IOFILT0 = crate::Reg<iofilt0::IOFILT0_SPEC>;
243#[doc = "IOFILT0 register"]
244pub mod iofilt0;
245#[doc = "IOFILT1 (rw) register accessor: an alias for `Reg<IOFILT1_SPEC>`"]
246pub type IOFILT1 = crate::Reg<iofilt1::IOFILT1_SPEC>;
247#[doc = "IOFILT1 register"]
248pub mod iofilt1;
249#[doc = "PRSTEN (rw) register accessor: an alias for `Reg<PRSTEN_SPEC>`"]
250pub type PRSTEN = crate::Reg<prsten::PRSTEN_SPEC>;
251#[doc = "PRSTEN register"]
252pub mod prsten;
253#[doc = "PRSTR0 (rw) register accessor: an alias for `Reg<PRSTR0_SPEC>`"]
254pub type PRSTR0 = crate::Reg<prstr0::PRSTR0_SPEC>;
255#[doc = "PRSTR0 register"]
256pub mod prstr0;
257#[doc = "PRSTR1 (rw) register accessor: an alias for `Reg<PRSTR1_SPEC>`"]
258pub type PRSTR1 = crate::Reg<prstr1::PRSTR1_SPEC>;
259#[doc = "PRSTR1 register"]
260pub mod prstr1;
261#[doc = "HRCCR (rw) register accessor: an alias for `Reg<HRCCR_SPEC>`"]
262pub type HRCCR = crate::Reg<hrccr::HRCCR_SPEC>;
263#[doc = "HRCCR register"]
264pub mod hrccr;
265#[doc = "BODCR (rw) register accessor: an alias for `Reg<BODCR_SPEC>`"]
266pub type BODCR = crate::Reg<bodcr::BODCR_SPEC>;
267#[doc = "BODCR register"]
268pub mod bodcr;
269#[doc = "BODSR (rw) register accessor: an alias for `Reg<BODSR_SPEC>`"]
270pub type BODSR = crate::Reg<bodsr::BODSR_SPEC>;
271#[doc = "BODSR register"]
272pub mod bodsr;
273#[doc = "ADCCR (rw) register accessor: an alias for `Reg<ADCCR_SPEC>`"]
274pub type ADCCR = crate::Reg<adccr::ADCCR_SPEC>;
275#[doc = "ADCCR register"]
276pub mod adccr;
277#[doc = "XTALCR (rw) register accessor: an alias for `Reg<XTALCR_SPEC>`"]
278pub type XTALCR = crate::Reg<xtalcr::XTALCR_SPEC>;
279#[doc = "XTALCR register"]
280pub mod xtalcr;
281#[doc = "XTALSR (rw) register accessor: an alias for `Reg<XTALSR_SPEC>`"]
282pub type XTALSR = crate::Reg<xtalsr::XTALSR_SPEC>;
283#[doc = "XTALSR register"]
284pub mod xtalsr;
285#[doc = "PLLCR (rw) register accessor: an alias for `Reg<PLLCR_SPEC>`"]
286pub type PLLCR = crate::Reg<pllcr::PLLCR_SPEC>;
287#[doc = "PLLCR register"]
288pub mod pllcr;
289#[doc = "PLLDIV (rw) register accessor: an alias for `Reg<PLLDIV_SPEC>`"]
290pub type PLLDIV = crate::Reg<plldiv::PLLDIV_SPEC>;
291#[doc = "PLLDIV register"]
292pub mod plldiv;
293#[doc = "PLLLOCK (rw) register accessor: an alias for `Reg<PLLLOCK_SPEC>`"]
294pub type PLLLOCK = crate::Reg<plllock::PLLLOCK_SPEC>;
295#[doc = "PLLLOCK register"]
296pub mod plllock;
297#[doc = "LRCCR (rw) register accessor: an alias for `Reg<LRCCR_SPEC>`"]
298pub type LRCCR = crate::Reg<lrccr::LRCCR_SPEC>;
299#[doc = "LRCCR register"]
300pub mod lrccr;
301#[doc = "OPACR (rw) register accessor: an alias for `Reg<OPACR_SPEC>`"]
302pub type OPACR = crate::Reg<opacr::OPACR_SPEC>;
303#[doc = "OPACR register"]
304pub mod opacr;
305#[doc = "ACMPCR (rw) register accessor: an alias for `Reg<ACMPCR_SPEC>`"]
306pub type ACMPCR = crate::Reg<acmpcr::ACMPCR_SPEC>;
307#[doc = "ACMPCR register"]
308pub mod acmpcr;
309#[doc = "ACMPSR (rw) register accessor: an alias for `Reg<ACMPSR_SPEC>`"]
310pub type ACMPSR = crate::Reg<acmpsr::ACMPSR_SPEC>;
311#[doc = "ACMPSR register"]
312pub mod acmpsr;
313#[doc = "ACMPCR2 (rw) register accessor: an alias for `Reg<ACMPCR2_SPEC>`"]
314pub type ACMPCR2 = crate::Reg<acmpcr2::ACMPCR2_SPEC>;
315#[doc = "ACMPCR2 register"]
316pub mod acmpcr2;
317#[doc = "DACCR (rw) register accessor: an alias for `Reg<DACCR_SPEC>`"]
318pub type DACCR = crate::Reg<daccr::DACCR_SPEC>;
319#[doc = "DACCR register"]
320pub mod daccr;
321#[doc = "TEMPCR (rw) register accessor: an alias for `Reg<TEMPCR_SPEC>`"]
322pub type TEMPCR = crate::Reg<tempcr::TEMPCR_SPEC>;
323#[doc = "TEMPCR register"]
324pub mod tempcr;