1#[doc = "Register `swrst_cfg1` reader"]
2pub struct R(crate::R<SWRST_CFG1_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<SWRST_CFG1_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<SWRST_CFG1_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<SWRST_CFG1_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `swrst_cfg1` writer"]
17pub struct W(crate::W<SWRST_CFG1_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<SWRST_CFG1_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<SWRST_CFG1_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<SWRST_CFG1_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `swrst_s10` reader - "]
38pub type SWRST_S10_R = crate::BitReader<bool>;
39#[doc = "Field `swrst_s10` writer - "]
40pub type SWRST_S10_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
41#[doc = "Field `swrst_s11` reader - "]
42pub type SWRST_S11_R = crate::BitReader<bool>;
43#[doc = "Field `swrst_s11` writer - "]
44pub type SWRST_S11_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
45#[doc = "Field `swrst_s12` reader - "]
46pub type SWRST_S12_R = crate::BitReader<bool>;
47#[doc = "Field `swrst_s12` writer - "]
48pub type SWRST_S12_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
49#[doc = "Field `swrst_s13` reader - "]
50pub type SWRST_S13_R = crate::BitReader<bool>;
51#[doc = "Field `swrst_s13` writer - "]
52pub type SWRST_S13_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
53#[doc = "Field `swrst_s14` reader - "]
54pub type SWRST_S14_R = crate::BitReader<bool>;
55#[doc = "Field `swrst_s14` writer - "]
56pub type SWRST_S14_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
57#[doc = "Field `swrst_s15` reader - "]
58pub type SWRST_S15_R = crate::BitReader<bool>;
59#[doc = "Field `swrst_s15` writer - "]
60pub type SWRST_S15_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
61#[doc = "Field `swrst_s16` reader - "]
62pub type SWRST_S16_R = crate::BitReader<bool>;
63#[doc = "Field `swrst_s16` writer - "]
64pub type SWRST_S16_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
65#[doc = "Field `swrst_s17` reader - "]
66pub type SWRST_S17_R = crate::BitReader<bool>;
67#[doc = "Field `swrst_s17` writer - "]
68pub type SWRST_S17_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
69#[doc = "Field `swrst_s18` reader - "]
70pub type SWRST_S18_R = crate::BitReader<bool>;
71#[doc = "Field `swrst_s18` writer - "]
72pub type SWRST_S18_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
73#[doc = "Field `swrst_s19` reader - "]
74pub type SWRST_S19_R = crate::BitReader<bool>;
75#[doc = "Field `swrst_s19` writer - "]
76pub type SWRST_S19_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
77#[doc = "Field `swrst_s1a` reader - "]
78pub type SWRST_S1A_R = crate::BitReader<bool>;
79#[doc = "Field `swrst_s1a` writer - "]
80pub type SWRST_S1A_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
81#[doc = "Field `swrst_s1b` reader - "]
82pub type SWRST_S1B_R = crate::BitReader<bool>;
83#[doc = "Field `swrst_s1b` writer - "]
84pub type SWRST_S1B_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
85#[doc = "Field `swrst_s1c` reader - "]
86pub type SWRST_S1C_R = crate::BitReader<bool>;
87#[doc = "Field `swrst_s1c` writer - "]
88pub type SWRST_S1C_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
89#[doc = "Field `swrst_s1d` reader - "]
90pub type SWRST_S1D_R = crate::BitReader<bool>;
91#[doc = "Field `swrst_s1d` writer - "]
92pub type SWRST_S1D_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
93#[doc = "Field `swrst_s1e` reader - "]
94pub type SWRST_S1E_R = crate::BitReader<bool>;
95#[doc = "Field `swrst_s1e` writer - "]
96pub type SWRST_S1E_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
97#[doc = "Field `swrst_s1f` reader - "]
98pub type SWRST_S1F_R = crate::BitReader<bool>;
99#[doc = "Field `swrst_s1f` writer - "]
100pub type SWRST_S1F_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
101#[doc = "Field `swrst_s1a0` reader - "]
102pub type SWRST_S1A0_R = crate::BitReader<bool>;
103#[doc = "Field `swrst_s1a0` writer - "]
104pub type SWRST_S1A0_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
105#[doc = "Field `swrst_s1a1` reader - "]
106pub type SWRST_S1A1_R = crate::BitReader<bool>;
107#[doc = "Field `swrst_s1a1` writer - "]
108pub type SWRST_S1A1_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
109#[doc = "Field `swrst_s1a2` reader - "]
110pub type SWRST_S1A2_R = crate::BitReader<bool>;
111#[doc = "Field `swrst_s1a2` writer - "]
112pub type SWRST_S1A2_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
113#[doc = "Field `swrst_s1a3` reader - "]
114pub type SWRST_S1A3_R = crate::BitReader<bool>;
115#[doc = "Field `swrst_s1a3` writer - "]
116pub type SWRST_S1A3_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
117#[doc = "Field `swrst_s1a4` reader - "]
118pub type SWRST_S1A4_R = crate::BitReader<bool>;
119#[doc = "Field `swrst_s1a4` writer - "]
120pub type SWRST_S1A4_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
121#[doc = "Field `swrst_s1a5` reader - "]
122pub type SWRST_S1A5_R = crate::BitReader<bool>;
123#[doc = "Field `swrst_s1a5` writer - "]
124pub type SWRST_S1A5_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
125#[doc = "Field `swrst_s1a6` reader - "]
126pub type SWRST_S1A6_R = crate::BitReader<bool>;
127#[doc = "Field `swrst_s1a6` writer - "]
128pub type SWRST_S1A6_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
129#[doc = "Field `swrst_s1a7` reader - "]
130pub type SWRST_S1A7_R = crate::BitReader<bool>;
131#[doc = "Field `swrst_s1a7` writer - "]
132pub type SWRST_S1A7_W<'a, const O: u8> = crate::BitWriter<'a, u32, SWRST_CFG1_SPEC, bool, O>;
133impl R {
134 #[doc = "Bit 0"]
135 #[inline(always)]
136 pub fn swrst_s10(&self) -> SWRST_S10_R {
137 SWRST_S10_R::new((self.bits & 1) != 0)
138 }
139 #[doc = "Bit 1"]
140 #[inline(always)]
141 pub fn swrst_s11(&self) -> SWRST_S11_R {
142 SWRST_S11_R::new(((self.bits >> 1) & 1) != 0)
143 }
144 #[doc = "Bit 2"]
145 #[inline(always)]
146 pub fn swrst_s12(&self) -> SWRST_S12_R {
147 SWRST_S12_R::new(((self.bits >> 2) & 1) != 0)
148 }
149 #[doc = "Bit 3"]
150 #[inline(always)]
151 pub fn swrst_s13(&self) -> SWRST_S13_R {
152 SWRST_S13_R::new(((self.bits >> 3) & 1) != 0)
153 }
154 #[doc = "Bit 4"]
155 #[inline(always)]
156 pub fn swrst_s14(&self) -> SWRST_S14_R {
157 SWRST_S14_R::new(((self.bits >> 4) & 1) != 0)
158 }
159 #[doc = "Bit 5"]
160 #[inline(always)]
161 pub fn swrst_s15(&self) -> SWRST_S15_R {
162 SWRST_S15_R::new(((self.bits >> 5) & 1) != 0)
163 }
164 #[doc = "Bit 6"]
165 #[inline(always)]
166 pub fn swrst_s16(&self) -> SWRST_S16_R {
167 SWRST_S16_R::new(((self.bits >> 6) & 1) != 0)
168 }
169 #[doc = "Bit 7"]
170 #[inline(always)]
171 pub fn swrst_s17(&self) -> SWRST_S17_R {
172 SWRST_S17_R::new(((self.bits >> 7) & 1) != 0)
173 }
174 #[doc = "Bit 8"]
175 #[inline(always)]
176 pub fn swrst_s18(&self) -> SWRST_S18_R {
177 SWRST_S18_R::new(((self.bits >> 8) & 1) != 0)
178 }
179 #[doc = "Bit 9"]
180 #[inline(always)]
181 pub fn swrst_s19(&self) -> SWRST_S19_R {
182 SWRST_S19_R::new(((self.bits >> 9) & 1) != 0)
183 }
184 #[doc = "Bit 10"]
185 #[inline(always)]
186 pub fn swrst_s1a(&self) -> SWRST_S1A_R {
187 SWRST_S1A_R::new(((self.bits >> 10) & 1) != 0)
188 }
189 #[doc = "Bit 11"]
190 #[inline(always)]
191 pub fn swrst_s1b(&self) -> SWRST_S1B_R {
192 SWRST_S1B_R::new(((self.bits >> 11) & 1) != 0)
193 }
194 #[doc = "Bit 12"]
195 #[inline(always)]
196 pub fn swrst_s1c(&self) -> SWRST_S1C_R {
197 SWRST_S1C_R::new(((self.bits >> 12) & 1) != 0)
198 }
199 #[doc = "Bit 13"]
200 #[inline(always)]
201 pub fn swrst_s1d(&self) -> SWRST_S1D_R {
202 SWRST_S1D_R::new(((self.bits >> 13) & 1) != 0)
203 }
204 #[doc = "Bit 14"]
205 #[inline(always)]
206 pub fn swrst_s1e(&self) -> SWRST_S1E_R {
207 SWRST_S1E_R::new(((self.bits >> 14) & 1) != 0)
208 }
209 #[doc = "Bit 15"]
210 #[inline(always)]
211 pub fn swrst_s1f(&self) -> SWRST_S1F_R {
212 SWRST_S1F_R::new(((self.bits >> 15) & 1) != 0)
213 }
214 #[doc = "Bit 16"]
215 #[inline(always)]
216 pub fn swrst_s1a0(&self) -> SWRST_S1A0_R {
217 SWRST_S1A0_R::new(((self.bits >> 16) & 1) != 0)
218 }
219 #[doc = "Bit 17"]
220 #[inline(always)]
221 pub fn swrst_s1a1(&self) -> SWRST_S1A1_R {
222 SWRST_S1A1_R::new(((self.bits >> 17) & 1) != 0)
223 }
224 #[doc = "Bit 18"]
225 #[inline(always)]
226 pub fn swrst_s1a2(&self) -> SWRST_S1A2_R {
227 SWRST_S1A2_R::new(((self.bits >> 18) & 1) != 0)
228 }
229 #[doc = "Bit 19"]
230 #[inline(always)]
231 pub fn swrst_s1a3(&self) -> SWRST_S1A3_R {
232 SWRST_S1A3_R::new(((self.bits >> 19) & 1) != 0)
233 }
234 #[doc = "Bit 20"]
235 #[inline(always)]
236 pub fn swrst_s1a4(&self) -> SWRST_S1A4_R {
237 SWRST_S1A4_R::new(((self.bits >> 20) & 1) != 0)
238 }
239 #[doc = "Bit 21"]
240 #[inline(always)]
241 pub fn swrst_s1a5(&self) -> SWRST_S1A5_R {
242 SWRST_S1A5_R::new(((self.bits >> 21) & 1) != 0)
243 }
244 #[doc = "Bit 22"]
245 #[inline(always)]
246 pub fn swrst_s1a6(&self) -> SWRST_S1A6_R {
247 SWRST_S1A6_R::new(((self.bits >> 22) & 1) != 0)
248 }
249 #[doc = "Bit 23"]
250 #[inline(always)]
251 pub fn swrst_s1a7(&self) -> SWRST_S1A7_R {
252 SWRST_S1A7_R::new(((self.bits >> 23) & 1) != 0)
253 }
254}
255impl W {
256 #[doc = "Bit 0"]
257 #[inline(always)]
258 #[must_use]
259 pub fn swrst_s10(&mut self) -> SWRST_S10_W<0> {
260 SWRST_S10_W::new(self)
261 }
262 #[doc = "Bit 1"]
263 #[inline(always)]
264 #[must_use]
265 pub fn swrst_s11(&mut self) -> SWRST_S11_W<1> {
266 SWRST_S11_W::new(self)
267 }
268 #[doc = "Bit 2"]
269 #[inline(always)]
270 #[must_use]
271 pub fn swrst_s12(&mut self) -> SWRST_S12_W<2> {
272 SWRST_S12_W::new(self)
273 }
274 #[doc = "Bit 3"]
275 #[inline(always)]
276 #[must_use]
277 pub fn swrst_s13(&mut self) -> SWRST_S13_W<3> {
278 SWRST_S13_W::new(self)
279 }
280 #[doc = "Bit 4"]
281 #[inline(always)]
282 #[must_use]
283 pub fn swrst_s14(&mut self) -> SWRST_S14_W<4> {
284 SWRST_S14_W::new(self)
285 }
286 #[doc = "Bit 5"]
287 #[inline(always)]
288 #[must_use]
289 pub fn swrst_s15(&mut self) -> SWRST_S15_W<5> {
290 SWRST_S15_W::new(self)
291 }
292 #[doc = "Bit 6"]
293 #[inline(always)]
294 #[must_use]
295 pub fn swrst_s16(&mut self) -> SWRST_S16_W<6> {
296 SWRST_S16_W::new(self)
297 }
298 #[doc = "Bit 7"]
299 #[inline(always)]
300 #[must_use]
301 pub fn swrst_s17(&mut self) -> SWRST_S17_W<7> {
302 SWRST_S17_W::new(self)
303 }
304 #[doc = "Bit 8"]
305 #[inline(always)]
306 #[must_use]
307 pub fn swrst_s18(&mut self) -> SWRST_S18_W<8> {
308 SWRST_S18_W::new(self)
309 }
310 #[doc = "Bit 9"]
311 #[inline(always)]
312 #[must_use]
313 pub fn swrst_s19(&mut self) -> SWRST_S19_W<9> {
314 SWRST_S19_W::new(self)
315 }
316 #[doc = "Bit 10"]
317 #[inline(always)]
318 #[must_use]
319 pub fn swrst_s1a(&mut self) -> SWRST_S1A_W<10> {
320 SWRST_S1A_W::new(self)
321 }
322 #[doc = "Bit 11"]
323 #[inline(always)]
324 #[must_use]
325 pub fn swrst_s1b(&mut self) -> SWRST_S1B_W<11> {
326 SWRST_S1B_W::new(self)
327 }
328 #[doc = "Bit 12"]
329 #[inline(always)]
330 #[must_use]
331 pub fn swrst_s1c(&mut self) -> SWRST_S1C_W<12> {
332 SWRST_S1C_W::new(self)
333 }
334 #[doc = "Bit 13"]
335 #[inline(always)]
336 #[must_use]
337 pub fn swrst_s1d(&mut self) -> SWRST_S1D_W<13> {
338 SWRST_S1D_W::new(self)
339 }
340 #[doc = "Bit 14"]
341 #[inline(always)]
342 #[must_use]
343 pub fn swrst_s1e(&mut self) -> SWRST_S1E_W<14> {
344 SWRST_S1E_W::new(self)
345 }
346 #[doc = "Bit 15"]
347 #[inline(always)]
348 #[must_use]
349 pub fn swrst_s1f(&mut self) -> SWRST_S1F_W<15> {
350 SWRST_S1F_W::new(self)
351 }
352 #[doc = "Bit 16"]
353 #[inline(always)]
354 #[must_use]
355 pub fn swrst_s1a0(&mut self) -> SWRST_S1A0_W<16> {
356 SWRST_S1A0_W::new(self)
357 }
358 #[doc = "Bit 17"]
359 #[inline(always)]
360 #[must_use]
361 pub fn swrst_s1a1(&mut self) -> SWRST_S1A1_W<17> {
362 SWRST_S1A1_W::new(self)
363 }
364 #[doc = "Bit 18"]
365 #[inline(always)]
366 #[must_use]
367 pub fn swrst_s1a2(&mut self) -> SWRST_S1A2_W<18> {
368 SWRST_S1A2_W::new(self)
369 }
370 #[doc = "Bit 19"]
371 #[inline(always)]
372 #[must_use]
373 pub fn swrst_s1a3(&mut self) -> SWRST_S1A3_W<19> {
374 SWRST_S1A3_W::new(self)
375 }
376 #[doc = "Bit 20"]
377 #[inline(always)]
378 #[must_use]
379 pub fn swrst_s1a4(&mut self) -> SWRST_S1A4_W<20> {
380 SWRST_S1A4_W::new(self)
381 }
382 #[doc = "Bit 21"]
383 #[inline(always)]
384 #[must_use]
385 pub fn swrst_s1a5(&mut self) -> SWRST_S1A5_W<21> {
386 SWRST_S1A5_W::new(self)
387 }
388 #[doc = "Bit 22"]
389 #[inline(always)]
390 #[must_use]
391 pub fn swrst_s1a6(&mut self) -> SWRST_S1A6_W<22> {
392 SWRST_S1A6_W::new(self)
393 }
394 #[doc = "Bit 23"]
395 #[inline(always)]
396 #[must_use]
397 pub fn swrst_s1a7(&mut self) -> SWRST_S1A7_W<23> {
398 SWRST_S1A7_W::new(self)
399 }
400 #[doc = "Writes raw bits to the register."]
401 #[inline(always)]
402 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
403 self.0.bits(bits);
404 self
405 }
406}
407#[doc = "swrst_cfg1.\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [swrst_cfg1](index.html) module"]
408pub struct SWRST_CFG1_SPEC;
409impl crate::RegisterSpec for SWRST_CFG1_SPEC {
410 type Ux = u32;
411}
412#[doc = "`read()` method returns [swrst_cfg1::R](R) reader structure"]
413impl crate::Readable for SWRST_CFG1_SPEC {
414 type Reader = R;
415}
416#[doc = "`write(|w| ..)` method takes [swrst_cfg1::W](W) writer structure"]
417impl crate::Writable for SWRST_CFG1_SPEC {
418 type Writer = W;
419 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
420 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
421}
422#[doc = "`reset()` method sets swrst_cfg1 to value 0"]
423impl crate::Resettable for SWRST_CFG1_SPEC {
424 const RESET_VALUE: Self::Ux = 0;
425}