atsame70j21/xdmac/
xdmac_gswf.rs

1#[doc = "Register `XDMAC_GSWF` writer"]
2pub struct W(crate::W<XDMAC_GSWF_SPEC>);
3impl core::ops::Deref for W {
4    type Target = crate::W<XDMAC_GSWF_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl core::ops::DerefMut for W {
11    #[inline(always)]
12    fn deref_mut(&mut self) -> &mut Self::Target {
13        &mut self.0
14    }
15}
16impl From<crate::W<XDMAC_GSWF_SPEC>> for W {
17    #[inline(always)]
18    fn from(writer: crate::W<XDMAC_GSWF_SPEC>) -> Self {
19        W(writer)
20    }
21}
22#[doc = "Field `SWF0` writer - XDMAC Channel 0 Software Flush Request Bit"]
23pub struct SWF0_W<'a> {
24    w: &'a mut W,
25}
26impl<'a> SWF0_W<'a> {
27    #[doc = r"Sets the field bit"]
28    #[inline(always)]
29    pub fn set_bit(self) -> &'a mut W {
30        self.bit(true)
31    }
32    #[doc = r"Clears the field bit"]
33    #[inline(always)]
34    pub fn clear_bit(self) -> &'a mut W {
35        self.bit(false)
36    }
37    #[doc = r"Writes raw bits to the field"]
38    #[inline(always)]
39    pub fn bit(self, value: bool) -> &'a mut W {
40        self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01);
41        self.w
42    }
43}
44#[doc = "Field `SWF1` writer - XDMAC Channel 1 Software Flush Request Bit"]
45pub struct SWF1_W<'a> {
46    w: &'a mut W,
47}
48impl<'a> SWF1_W<'a> {
49    #[doc = r"Sets the field bit"]
50    #[inline(always)]
51    pub fn set_bit(self) -> &'a mut W {
52        self.bit(true)
53    }
54    #[doc = r"Clears the field bit"]
55    #[inline(always)]
56    pub fn clear_bit(self) -> &'a mut W {
57        self.bit(false)
58    }
59    #[doc = r"Writes raw bits to the field"]
60    #[inline(always)]
61    pub fn bit(self, value: bool) -> &'a mut W {
62        self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1);
63        self.w
64    }
65}
66#[doc = "Field `SWF2` writer - XDMAC Channel 2 Software Flush Request Bit"]
67pub struct SWF2_W<'a> {
68    w: &'a mut W,
69}
70impl<'a> SWF2_W<'a> {
71    #[doc = r"Sets the field bit"]
72    #[inline(always)]
73    pub fn set_bit(self) -> &'a mut W {
74        self.bit(true)
75    }
76    #[doc = r"Clears the field bit"]
77    #[inline(always)]
78    pub fn clear_bit(self) -> &'a mut W {
79        self.bit(false)
80    }
81    #[doc = r"Writes raw bits to the field"]
82    #[inline(always)]
83    pub fn bit(self, value: bool) -> &'a mut W {
84        self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2);
85        self.w
86    }
87}
88#[doc = "Field `SWF3` writer - XDMAC Channel 3 Software Flush Request Bit"]
89pub struct SWF3_W<'a> {
90    w: &'a mut W,
91}
92impl<'a> SWF3_W<'a> {
93    #[doc = r"Sets the field bit"]
94    #[inline(always)]
95    pub fn set_bit(self) -> &'a mut W {
96        self.bit(true)
97    }
98    #[doc = r"Clears the field bit"]
99    #[inline(always)]
100    pub fn clear_bit(self) -> &'a mut W {
101        self.bit(false)
102    }
103    #[doc = r"Writes raw bits to the field"]
104    #[inline(always)]
105    pub fn bit(self, value: bool) -> &'a mut W {
106        self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3);
107        self.w
108    }
109}
110#[doc = "Field `SWF4` writer - XDMAC Channel 4 Software Flush Request Bit"]
111pub struct SWF4_W<'a> {
112    w: &'a mut W,
113}
114impl<'a> SWF4_W<'a> {
115    #[doc = r"Sets the field bit"]
116    #[inline(always)]
117    pub fn set_bit(self) -> &'a mut W {
118        self.bit(true)
119    }
120    #[doc = r"Clears the field bit"]
121    #[inline(always)]
122    pub fn clear_bit(self) -> &'a mut W {
123        self.bit(false)
124    }
125    #[doc = r"Writes raw bits to the field"]
126    #[inline(always)]
127    pub fn bit(self, value: bool) -> &'a mut W {
128        self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4);
129        self.w
130    }
131}
132#[doc = "Field `SWF5` writer - XDMAC Channel 5 Software Flush Request Bit"]
133pub struct SWF5_W<'a> {
134    w: &'a mut W,
135}
136impl<'a> SWF5_W<'a> {
137    #[doc = r"Sets the field bit"]
138    #[inline(always)]
139    pub fn set_bit(self) -> &'a mut W {
140        self.bit(true)
141    }
142    #[doc = r"Clears the field bit"]
143    #[inline(always)]
144    pub fn clear_bit(self) -> &'a mut W {
145        self.bit(false)
146    }
147    #[doc = r"Writes raw bits to the field"]
148    #[inline(always)]
149    pub fn bit(self, value: bool) -> &'a mut W {
150        self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5);
151        self.w
152    }
153}
154#[doc = "Field `SWF6` writer - XDMAC Channel 6 Software Flush Request Bit"]
155pub struct SWF6_W<'a> {
156    w: &'a mut W,
157}
158impl<'a> SWF6_W<'a> {
159    #[doc = r"Sets the field bit"]
160    #[inline(always)]
161    pub fn set_bit(self) -> &'a mut W {
162        self.bit(true)
163    }
164    #[doc = r"Clears the field bit"]
165    #[inline(always)]
166    pub fn clear_bit(self) -> &'a mut W {
167        self.bit(false)
168    }
169    #[doc = r"Writes raw bits to the field"]
170    #[inline(always)]
171    pub fn bit(self, value: bool) -> &'a mut W {
172        self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6);
173        self.w
174    }
175}
176#[doc = "Field `SWF7` writer - XDMAC Channel 7 Software Flush Request Bit"]
177pub struct SWF7_W<'a> {
178    w: &'a mut W,
179}
180impl<'a> SWF7_W<'a> {
181    #[doc = r"Sets the field bit"]
182    #[inline(always)]
183    pub fn set_bit(self) -> &'a mut W {
184        self.bit(true)
185    }
186    #[doc = r"Clears the field bit"]
187    #[inline(always)]
188    pub fn clear_bit(self) -> &'a mut W {
189        self.bit(false)
190    }
191    #[doc = r"Writes raw bits to the field"]
192    #[inline(always)]
193    pub fn bit(self, value: bool) -> &'a mut W {
194        self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7);
195        self.w
196    }
197}
198#[doc = "Field `SWF8` writer - XDMAC Channel 8 Software Flush Request Bit"]
199pub struct SWF8_W<'a> {
200    w: &'a mut W,
201}
202impl<'a> SWF8_W<'a> {
203    #[doc = r"Sets the field bit"]
204    #[inline(always)]
205    pub fn set_bit(self) -> &'a mut W {
206        self.bit(true)
207    }
208    #[doc = r"Clears the field bit"]
209    #[inline(always)]
210    pub fn clear_bit(self) -> &'a mut W {
211        self.bit(false)
212    }
213    #[doc = r"Writes raw bits to the field"]
214    #[inline(always)]
215    pub fn bit(self, value: bool) -> &'a mut W {
216        self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8);
217        self.w
218    }
219}
220#[doc = "Field `SWF9` writer - XDMAC Channel 9 Software Flush Request Bit"]
221pub struct SWF9_W<'a> {
222    w: &'a mut W,
223}
224impl<'a> SWF9_W<'a> {
225    #[doc = r"Sets the field bit"]
226    #[inline(always)]
227    pub fn set_bit(self) -> &'a mut W {
228        self.bit(true)
229    }
230    #[doc = r"Clears the field bit"]
231    #[inline(always)]
232    pub fn clear_bit(self) -> &'a mut W {
233        self.bit(false)
234    }
235    #[doc = r"Writes raw bits to the field"]
236    #[inline(always)]
237    pub fn bit(self, value: bool) -> &'a mut W {
238        self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9);
239        self.w
240    }
241}
242#[doc = "Field `SWF10` writer - XDMAC Channel 10 Software Flush Request Bit"]
243pub struct SWF10_W<'a> {
244    w: &'a mut W,
245}
246impl<'a> SWF10_W<'a> {
247    #[doc = r"Sets the field bit"]
248    #[inline(always)]
249    pub fn set_bit(self) -> &'a mut W {
250        self.bit(true)
251    }
252    #[doc = r"Clears the field bit"]
253    #[inline(always)]
254    pub fn clear_bit(self) -> &'a mut W {
255        self.bit(false)
256    }
257    #[doc = r"Writes raw bits to the field"]
258    #[inline(always)]
259    pub fn bit(self, value: bool) -> &'a mut W {
260        self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10);
261        self.w
262    }
263}
264#[doc = "Field `SWF11` writer - XDMAC Channel 11 Software Flush Request Bit"]
265pub struct SWF11_W<'a> {
266    w: &'a mut W,
267}
268impl<'a> SWF11_W<'a> {
269    #[doc = r"Sets the field bit"]
270    #[inline(always)]
271    pub fn set_bit(self) -> &'a mut W {
272        self.bit(true)
273    }
274    #[doc = r"Clears the field bit"]
275    #[inline(always)]
276    pub fn clear_bit(self) -> &'a mut W {
277        self.bit(false)
278    }
279    #[doc = r"Writes raw bits to the field"]
280    #[inline(always)]
281    pub fn bit(self, value: bool) -> &'a mut W {
282        self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11);
283        self.w
284    }
285}
286#[doc = "Field `SWF12` writer - XDMAC Channel 12 Software Flush Request Bit"]
287pub struct SWF12_W<'a> {
288    w: &'a mut W,
289}
290impl<'a> SWF12_W<'a> {
291    #[doc = r"Sets the field bit"]
292    #[inline(always)]
293    pub fn set_bit(self) -> &'a mut W {
294        self.bit(true)
295    }
296    #[doc = r"Clears the field bit"]
297    #[inline(always)]
298    pub fn clear_bit(self) -> &'a mut W {
299        self.bit(false)
300    }
301    #[doc = r"Writes raw bits to the field"]
302    #[inline(always)]
303    pub fn bit(self, value: bool) -> &'a mut W {
304        self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12);
305        self.w
306    }
307}
308#[doc = "Field `SWF13` writer - XDMAC Channel 13 Software Flush Request Bit"]
309pub struct SWF13_W<'a> {
310    w: &'a mut W,
311}
312impl<'a> SWF13_W<'a> {
313    #[doc = r"Sets the field bit"]
314    #[inline(always)]
315    pub fn set_bit(self) -> &'a mut W {
316        self.bit(true)
317    }
318    #[doc = r"Clears the field bit"]
319    #[inline(always)]
320    pub fn clear_bit(self) -> &'a mut W {
321        self.bit(false)
322    }
323    #[doc = r"Writes raw bits to the field"]
324    #[inline(always)]
325    pub fn bit(self, value: bool) -> &'a mut W {
326        self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13);
327        self.w
328    }
329}
330#[doc = "Field `SWF14` writer - XDMAC Channel 14 Software Flush Request Bit"]
331pub struct SWF14_W<'a> {
332    w: &'a mut W,
333}
334impl<'a> SWF14_W<'a> {
335    #[doc = r"Sets the field bit"]
336    #[inline(always)]
337    pub fn set_bit(self) -> &'a mut W {
338        self.bit(true)
339    }
340    #[doc = r"Clears the field bit"]
341    #[inline(always)]
342    pub fn clear_bit(self) -> &'a mut W {
343        self.bit(false)
344    }
345    #[doc = r"Writes raw bits to the field"]
346    #[inline(always)]
347    pub fn bit(self, value: bool) -> &'a mut W {
348        self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14);
349        self.w
350    }
351}
352#[doc = "Field `SWF15` writer - XDMAC Channel 15 Software Flush Request Bit"]
353pub struct SWF15_W<'a> {
354    w: &'a mut W,
355}
356impl<'a> SWF15_W<'a> {
357    #[doc = r"Sets the field bit"]
358    #[inline(always)]
359    pub fn set_bit(self) -> &'a mut W {
360        self.bit(true)
361    }
362    #[doc = r"Clears the field bit"]
363    #[inline(always)]
364    pub fn clear_bit(self) -> &'a mut W {
365        self.bit(false)
366    }
367    #[doc = r"Writes raw bits to the field"]
368    #[inline(always)]
369    pub fn bit(self, value: bool) -> &'a mut W {
370        self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15);
371        self.w
372    }
373}
374#[doc = "Field `SWF16` writer - XDMAC Channel 16 Software Flush Request Bit"]
375pub struct SWF16_W<'a> {
376    w: &'a mut W,
377}
378impl<'a> SWF16_W<'a> {
379    #[doc = r"Sets the field bit"]
380    #[inline(always)]
381    pub fn set_bit(self) -> &'a mut W {
382        self.bit(true)
383    }
384    #[doc = r"Clears the field bit"]
385    #[inline(always)]
386    pub fn clear_bit(self) -> &'a mut W {
387        self.bit(false)
388    }
389    #[doc = r"Writes raw bits to the field"]
390    #[inline(always)]
391    pub fn bit(self, value: bool) -> &'a mut W {
392        self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16);
393        self.w
394    }
395}
396#[doc = "Field `SWF17` writer - XDMAC Channel 17 Software Flush Request Bit"]
397pub struct SWF17_W<'a> {
398    w: &'a mut W,
399}
400impl<'a> SWF17_W<'a> {
401    #[doc = r"Sets the field bit"]
402    #[inline(always)]
403    pub fn set_bit(self) -> &'a mut W {
404        self.bit(true)
405    }
406    #[doc = r"Clears the field bit"]
407    #[inline(always)]
408    pub fn clear_bit(self) -> &'a mut W {
409        self.bit(false)
410    }
411    #[doc = r"Writes raw bits to the field"]
412    #[inline(always)]
413    pub fn bit(self, value: bool) -> &'a mut W {
414        self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17);
415        self.w
416    }
417}
418#[doc = "Field `SWF18` writer - XDMAC Channel 18 Software Flush Request Bit"]
419pub struct SWF18_W<'a> {
420    w: &'a mut W,
421}
422impl<'a> SWF18_W<'a> {
423    #[doc = r"Sets the field bit"]
424    #[inline(always)]
425    pub fn set_bit(self) -> &'a mut W {
426        self.bit(true)
427    }
428    #[doc = r"Clears the field bit"]
429    #[inline(always)]
430    pub fn clear_bit(self) -> &'a mut W {
431        self.bit(false)
432    }
433    #[doc = r"Writes raw bits to the field"]
434    #[inline(always)]
435    pub fn bit(self, value: bool) -> &'a mut W {
436        self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18);
437        self.w
438    }
439}
440#[doc = "Field `SWF19` writer - XDMAC Channel 19 Software Flush Request Bit"]
441pub struct SWF19_W<'a> {
442    w: &'a mut W,
443}
444impl<'a> SWF19_W<'a> {
445    #[doc = r"Sets the field bit"]
446    #[inline(always)]
447    pub fn set_bit(self) -> &'a mut W {
448        self.bit(true)
449    }
450    #[doc = r"Clears the field bit"]
451    #[inline(always)]
452    pub fn clear_bit(self) -> &'a mut W {
453        self.bit(false)
454    }
455    #[doc = r"Writes raw bits to the field"]
456    #[inline(always)]
457    pub fn bit(self, value: bool) -> &'a mut W {
458        self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19);
459        self.w
460    }
461}
462#[doc = "Field `SWF20` writer - XDMAC Channel 20 Software Flush Request Bit"]
463pub struct SWF20_W<'a> {
464    w: &'a mut W,
465}
466impl<'a> SWF20_W<'a> {
467    #[doc = r"Sets the field bit"]
468    #[inline(always)]
469    pub fn set_bit(self) -> &'a mut W {
470        self.bit(true)
471    }
472    #[doc = r"Clears the field bit"]
473    #[inline(always)]
474    pub fn clear_bit(self) -> &'a mut W {
475        self.bit(false)
476    }
477    #[doc = r"Writes raw bits to the field"]
478    #[inline(always)]
479    pub fn bit(self, value: bool) -> &'a mut W {
480        self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20);
481        self.w
482    }
483}
484#[doc = "Field `SWF21` writer - XDMAC Channel 21 Software Flush Request Bit"]
485pub struct SWF21_W<'a> {
486    w: &'a mut W,
487}
488impl<'a> SWF21_W<'a> {
489    #[doc = r"Sets the field bit"]
490    #[inline(always)]
491    pub fn set_bit(self) -> &'a mut W {
492        self.bit(true)
493    }
494    #[doc = r"Clears the field bit"]
495    #[inline(always)]
496    pub fn clear_bit(self) -> &'a mut W {
497        self.bit(false)
498    }
499    #[doc = r"Writes raw bits to the field"]
500    #[inline(always)]
501    pub fn bit(self, value: bool) -> &'a mut W {
502        self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21);
503        self.w
504    }
505}
506#[doc = "Field `SWF22` writer - XDMAC Channel 22 Software Flush Request Bit"]
507pub struct SWF22_W<'a> {
508    w: &'a mut W,
509}
510impl<'a> SWF22_W<'a> {
511    #[doc = r"Sets the field bit"]
512    #[inline(always)]
513    pub fn set_bit(self) -> &'a mut W {
514        self.bit(true)
515    }
516    #[doc = r"Clears the field bit"]
517    #[inline(always)]
518    pub fn clear_bit(self) -> &'a mut W {
519        self.bit(false)
520    }
521    #[doc = r"Writes raw bits to the field"]
522    #[inline(always)]
523    pub fn bit(self, value: bool) -> &'a mut W {
524        self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22);
525        self.w
526    }
527}
528#[doc = "Field `SWF23` writer - XDMAC Channel 23 Software Flush Request Bit"]
529pub struct SWF23_W<'a> {
530    w: &'a mut W,
531}
532impl<'a> SWF23_W<'a> {
533    #[doc = r"Sets the field bit"]
534    #[inline(always)]
535    pub fn set_bit(self) -> &'a mut W {
536        self.bit(true)
537    }
538    #[doc = r"Clears the field bit"]
539    #[inline(always)]
540    pub fn clear_bit(self) -> &'a mut W {
541        self.bit(false)
542    }
543    #[doc = r"Writes raw bits to the field"]
544    #[inline(always)]
545    pub fn bit(self, value: bool) -> &'a mut W {
546        self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23);
547        self.w
548    }
549}
550impl W {
551    #[doc = "Bit 0 - XDMAC Channel 0 Software Flush Request Bit"]
552    #[inline(always)]
553    pub fn swf0(&mut self) -> SWF0_W {
554        SWF0_W { w: self }
555    }
556    #[doc = "Bit 1 - XDMAC Channel 1 Software Flush Request Bit"]
557    #[inline(always)]
558    pub fn swf1(&mut self) -> SWF1_W {
559        SWF1_W { w: self }
560    }
561    #[doc = "Bit 2 - XDMAC Channel 2 Software Flush Request Bit"]
562    #[inline(always)]
563    pub fn swf2(&mut self) -> SWF2_W {
564        SWF2_W { w: self }
565    }
566    #[doc = "Bit 3 - XDMAC Channel 3 Software Flush Request Bit"]
567    #[inline(always)]
568    pub fn swf3(&mut self) -> SWF3_W {
569        SWF3_W { w: self }
570    }
571    #[doc = "Bit 4 - XDMAC Channel 4 Software Flush Request Bit"]
572    #[inline(always)]
573    pub fn swf4(&mut self) -> SWF4_W {
574        SWF4_W { w: self }
575    }
576    #[doc = "Bit 5 - XDMAC Channel 5 Software Flush Request Bit"]
577    #[inline(always)]
578    pub fn swf5(&mut self) -> SWF5_W {
579        SWF5_W { w: self }
580    }
581    #[doc = "Bit 6 - XDMAC Channel 6 Software Flush Request Bit"]
582    #[inline(always)]
583    pub fn swf6(&mut self) -> SWF6_W {
584        SWF6_W { w: self }
585    }
586    #[doc = "Bit 7 - XDMAC Channel 7 Software Flush Request Bit"]
587    #[inline(always)]
588    pub fn swf7(&mut self) -> SWF7_W {
589        SWF7_W { w: self }
590    }
591    #[doc = "Bit 8 - XDMAC Channel 8 Software Flush Request Bit"]
592    #[inline(always)]
593    pub fn swf8(&mut self) -> SWF8_W {
594        SWF8_W { w: self }
595    }
596    #[doc = "Bit 9 - XDMAC Channel 9 Software Flush Request Bit"]
597    #[inline(always)]
598    pub fn swf9(&mut self) -> SWF9_W {
599        SWF9_W { w: self }
600    }
601    #[doc = "Bit 10 - XDMAC Channel 10 Software Flush Request Bit"]
602    #[inline(always)]
603    pub fn swf10(&mut self) -> SWF10_W {
604        SWF10_W { w: self }
605    }
606    #[doc = "Bit 11 - XDMAC Channel 11 Software Flush Request Bit"]
607    #[inline(always)]
608    pub fn swf11(&mut self) -> SWF11_W {
609        SWF11_W { w: self }
610    }
611    #[doc = "Bit 12 - XDMAC Channel 12 Software Flush Request Bit"]
612    #[inline(always)]
613    pub fn swf12(&mut self) -> SWF12_W {
614        SWF12_W { w: self }
615    }
616    #[doc = "Bit 13 - XDMAC Channel 13 Software Flush Request Bit"]
617    #[inline(always)]
618    pub fn swf13(&mut self) -> SWF13_W {
619        SWF13_W { w: self }
620    }
621    #[doc = "Bit 14 - XDMAC Channel 14 Software Flush Request Bit"]
622    #[inline(always)]
623    pub fn swf14(&mut self) -> SWF14_W {
624        SWF14_W { w: self }
625    }
626    #[doc = "Bit 15 - XDMAC Channel 15 Software Flush Request Bit"]
627    #[inline(always)]
628    pub fn swf15(&mut self) -> SWF15_W {
629        SWF15_W { w: self }
630    }
631    #[doc = "Bit 16 - XDMAC Channel 16 Software Flush Request Bit"]
632    #[inline(always)]
633    pub fn swf16(&mut self) -> SWF16_W {
634        SWF16_W { w: self }
635    }
636    #[doc = "Bit 17 - XDMAC Channel 17 Software Flush Request Bit"]
637    #[inline(always)]
638    pub fn swf17(&mut self) -> SWF17_W {
639        SWF17_W { w: self }
640    }
641    #[doc = "Bit 18 - XDMAC Channel 18 Software Flush Request Bit"]
642    #[inline(always)]
643    pub fn swf18(&mut self) -> SWF18_W {
644        SWF18_W { w: self }
645    }
646    #[doc = "Bit 19 - XDMAC Channel 19 Software Flush Request Bit"]
647    #[inline(always)]
648    pub fn swf19(&mut self) -> SWF19_W {
649        SWF19_W { w: self }
650    }
651    #[doc = "Bit 20 - XDMAC Channel 20 Software Flush Request Bit"]
652    #[inline(always)]
653    pub fn swf20(&mut self) -> SWF20_W {
654        SWF20_W { w: self }
655    }
656    #[doc = "Bit 21 - XDMAC Channel 21 Software Flush Request Bit"]
657    #[inline(always)]
658    pub fn swf21(&mut self) -> SWF21_W {
659        SWF21_W { w: self }
660    }
661    #[doc = "Bit 22 - XDMAC Channel 22 Software Flush Request Bit"]
662    #[inline(always)]
663    pub fn swf22(&mut self) -> SWF22_W {
664        SWF22_W { w: self }
665    }
666    #[doc = "Bit 23 - XDMAC Channel 23 Software Flush Request Bit"]
667    #[inline(always)]
668    pub fn swf23(&mut self) -> SWF23_W {
669        SWF23_W { w: self }
670    }
671    #[doc = "Writes raw bits to the register."]
672    #[inline(always)]
673    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
674        self.0.bits(bits);
675        self
676    }
677}
678#[doc = "Global Channel Software Flush Request Register\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [xdmac_gswf](index.html) module"]
679pub struct XDMAC_GSWF_SPEC;
680impl crate::RegisterSpec for XDMAC_GSWF_SPEC {
681    type Ux = u32;
682}
683#[doc = "`write(|w| ..)` method takes [xdmac_gswf::W](W) writer structure"]
684impl crate::Writable for XDMAC_GSWF_SPEC {
685    type Writer = W;
686}
687#[doc = "`reset()` method sets XDMAC_GSWF to value 0"]
688impl crate::Resettable for XDMAC_GSWF_SPEC {
689    #[inline(always)]
690    fn reset_value() -> Self::Ux {
691        0
692    }
693}