1#[doc = "Register `XDMAC_GRS` reader"]
2pub struct R(crate::R<XDMAC_GRS_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<XDMAC_GRS_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<XDMAC_GRS_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<XDMAC_GRS_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `XDMAC_GRS` writer"]
17pub struct W(crate::W<XDMAC_GRS_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<XDMAC_GRS_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<XDMAC_GRS_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<XDMAC_GRS_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `RS0` reader - XDMAC Channel 0 Read Suspend Bit"]
38pub struct RS0_R(crate::FieldReader<bool, bool>);
39impl RS0_R {
40 #[inline(always)]
41 pub(crate) fn new(bits: bool) -> Self {
42 RS0_R(crate::FieldReader::new(bits))
43 }
44}
45impl core::ops::Deref for RS0_R {
46 type Target = crate::FieldReader<bool, bool>;
47 #[inline(always)]
48 fn deref(&self) -> &Self::Target {
49 &self.0
50 }
51}
52#[doc = "Field `RS0` writer - XDMAC Channel 0 Read Suspend Bit"]
53pub struct RS0_W<'a> {
54 w: &'a mut W,
55}
56impl<'a> RS0_W<'a> {
57 #[doc = r"Sets the field bit"]
58 #[inline(always)]
59 pub fn set_bit(self) -> &'a mut W {
60 self.bit(true)
61 }
62 #[doc = r"Clears the field bit"]
63 #[inline(always)]
64 pub fn clear_bit(self) -> &'a mut W {
65 self.bit(false)
66 }
67 #[doc = r"Writes raw bits to the field"]
68 #[inline(always)]
69 pub fn bit(self, value: bool) -> &'a mut W {
70 self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01);
71 self.w
72 }
73}
74#[doc = "Field `RS1` reader - XDMAC Channel 1 Read Suspend Bit"]
75pub struct RS1_R(crate::FieldReader<bool, bool>);
76impl RS1_R {
77 #[inline(always)]
78 pub(crate) fn new(bits: bool) -> Self {
79 RS1_R(crate::FieldReader::new(bits))
80 }
81}
82impl core::ops::Deref for RS1_R {
83 type Target = crate::FieldReader<bool, bool>;
84 #[inline(always)]
85 fn deref(&self) -> &Self::Target {
86 &self.0
87 }
88}
89#[doc = "Field `RS1` writer - XDMAC Channel 1 Read Suspend Bit"]
90pub struct RS1_W<'a> {
91 w: &'a mut W,
92}
93impl<'a> RS1_W<'a> {
94 #[doc = r"Sets the field bit"]
95 #[inline(always)]
96 pub fn set_bit(self) -> &'a mut W {
97 self.bit(true)
98 }
99 #[doc = r"Clears the field bit"]
100 #[inline(always)]
101 pub fn clear_bit(self) -> &'a mut W {
102 self.bit(false)
103 }
104 #[doc = r"Writes raw bits to the field"]
105 #[inline(always)]
106 pub fn bit(self, value: bool) -> &'a mut W {
107 self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1);
108 self.w
109 }
110}
111#[doc = "Field `RS2` reader - XDMAC Channel 2 Read Suspend Bit"]
112pub struct RS2_R(crate::FieldReader<bool, bool>);
113impl RS2_R {
114 #[inline(always)]
115 pub(crate) fn new(bits: bool) -> Self {
116 RS2_R(crate::FieldReader::new(bits))
117 }
118}
119impl core::ops::Deref for RS2_R {
120 type Target = crate::FieldReader<bool, bool>;
121 #[inline(always)]
122 fn deref(&self) -> &Self::Target {
123 &self.0
124 }
125}
126#[doc = "Field `RS2` writer - XDMAC Channel 2 Read Suspend Bit"]
127pub struct RS2_W<'a> {
128 w: &'a mut W,
129}
130impl<'a> RS2_W<'a> {
131 #[doc = r"Sets the field bit"]
132 #[inline(always)]
133 pub fn set_bit(self) -> &'a mut W {
134 self.bit(true)
135 }
136 #[doc = r"Clears the field bit"]
137 #[inline(always)]
138 pub fn clear_bit(self) -> &'a mut W {
139 self.bit(false)
140 }
141 #[doc = r"Writes raw bits to the field"]
142 #[inline(always)]
143 pub fn bit(self, value: bool) -> &'a mut W {
144 self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2);
145 self.w
146 }
147}
148#[doc = "Field `RS3` reader - XDMAC Channel 3 Read Suspend Bit"]
149pub struct RS3_R(crate::FieldReader<bool, bool>);
150impl RS3_R {
151 #[inline(always)]
152 pub(crate) fn new(bits: bool) -> Self {
153 RS3_R(crate::FieldReader::new(bits))
154 }
155}
156impl core::ops::Deref for RS3_R {
157 type Target = crate::FieldReader<bool, bool>;
158 #[inline(always)]
159 fn deref(&self) -> &Self::Target {
160 &self.0
161 }
162}
163#[doc = "Field `RS3` writer - XDMAC Channel 3 Read Suspend Bit"]
164pub struct RS3_W<'a> {
165 w: &'a mut W,
166}
167impl<'a> RS3_W<'a> {
168 #[doc = r"Sets the field bit"]
169 #[inline(always)]
170 pub fn set_bit(self) -> &'a mut W {
171 self.bit(true)
172 }
173 #[doc = r"Clears the field bit"]
174 #[inline(always)]
175 pub fn clear_bit(self) -> &'a mut W {
176 self.bit(false)
177 }
178 #[doc = r"Writes raw bits to the field"]
179 #[inline(always)]
180 pub fn bit(self, value: bool) -> &'a mut W {
181 self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3);
182 self.w
183 }
184}
185#[doc = "Field `RS4` reader - XDMAC Channel 4 Read Suspend Bit"]
186pub struct RS4_R(crate::FieldReader<bool, bool>);
187impl RS4_R {
188 #[inline(always)]
189 pub(crate) fn new(bits: bool) -> Self {
190 RS4_R(crate::FieldReader::new(bits))
191 }
192}
193impl core::ops::Deref for RS4_R {
194 type Target = crate::FieldReader<bool, bool>;
195 #[inline(always)]
196 fn deref(&self) -> &Self::Target {
197 &self.0
198 }
199}
200#[doc = "Field `RS4` writer - XDMAC Channel 4 Read Suspend Bit"]
201pub struct RS4_W<'a> {
202 w: &'a mut W,
203}
204impl<'a> RS4_W<'a> {
205 #[doc = r"Sets the field bit"]
206 #[inline(always)]
207 pub fn set_bit(self) -> &'a mut W {
208 self.bit(true)
209 }
210 #[doc = r"Clears the field bit"]
211 #[inline(always)]
212 pub fn clear_bit(self) -> &'a mut W {
213 self.bit(false)
214 }
215 #[doc = r"Writes raw bits to the field"]
216 #[inline(always)]
217 pub fn bit(self, value: bool) -> &'a mut W {
218 self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4);
219 self.w
220 }
221}
222#[doc = "Field `RS5` reader - XDMAC Channel 5 Read Suspend Bit"]
223pub struct RS5_R(crate::FieldReader<bool, bool>);
224impl RS5_R {
225 #[inline(always)]
226 pub(crate) fn new(bits: bool) -> Self {
227 RS5_R(crate::FieldReader::new(bits))
228 }
229}
230impl core::ops::Deref for RS5_R {
231 type Target = crate::FieldReader<bool, bool>;
232 #[inline(always)]
233 fn deref(&self) -> &Self::Target {
234 &self.0
235 }
236}
237#[doc = "Field `RS5` writer - XDMAC Channel 5 Read Suspend Bit"]
238pub struct RS5_W<'a> {
239 w: &'a mut W,
240}
241impl<'a> RS5_W<'a> {
242 #[doc = r"Sets the field bit"]
243 #[inline(always)]
244 pub fn set_bit(self) -> &'a mut W {
245 self.bit(true)
246 }
247 #[doc = r"Clears the field bit"]
248 #[inline(always)]
249 pub fn clear_bit(self) -> &'a mut W {
250 self.bit(false)
251 }
252 #[doc = r"Writes raw bits to the field"]
253 #[inline(always)]
254 pub fn bit(self, value: bool) -> &'a mut W {
255 self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5);
256 self.w
257 }
258}
259#[doc = "Field `RS6` reader - XDMAC Channel 6 Read Suspend Bit"]
260pub struct RS6_R(crate::FieldReader<bool, bool>);
261impl RS6_R {
262 #[inline(always)]
263 pub(crate) fn new(bits: bool) -> Self {
264 RS6_R(crate::FieldReader::new(bits))
265 }
266}
267impl core::ops::Deref for RS6_R {
268 type Target = crate::FieldReader<bool, bool>;
269 #[inline(always)]
270 fn deref(&self) -> &Self::Target {
271 &self.0
272 }
273}
274#[doc = "Field `RS6` writer - XDMAC Channel 6 Read Suspend Bit"]
275pub struct RS6_W<'a> {
276 w: &'a mut W,
277}
278impl<'a> RS6_W<'a> {
279 #[doc = r"Sets the field bit"]
280 #[inline(always)]
281 pub fn set_bit(self) -> &'a mut W {
282 self.bit(true)
283 }
284 #[doc = r"Clears the field bit"]
285 #[inline(always)]
286 pub fn clear_bit(self) -> &'a mut W {
287 self.bit(false)
288 }
289 #[doc = r"Writes raw bits to the field"]
290 #[inline(always)]
291 pub fn bit(self, value: bool) -> &'a mut W {
292 self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6);
293 self.w
294 }
295}
296#[doc = "Field `RS7` reader - XDMAC Channel 7 Read Suspend Bit"]
297pub struct RS7_R(crate::FieldReader<bool, bool>);
298impl RS7_R {
299 #[inline(always)]
300 pub(crate) fn new(bits: bool) -> Self {
301 RS7_R(crate::FieldReader::new(bits))
302 }
303}
304impl core::ops::Deref for RS7_R {
305 type Target = crate::FieldReader<bool, bool>;
306 #[inline(always)]
307 fn deref(&self) -> &Self::Target {
308 &self.0
309 }
310}
311#[doc = "Field `RS7` writer - XDMAC Channel 7 Read Suspend Bit"]
312pub struct RS7_W<'a> {
313 w: &'a mut W,
314}
315impl<'a> RS7_W<'a> {
316 #[doc = r"Sets the field bit"]
317 #[inline(always)]
318 pub fn set_bit(self) -> &'a mut W {
319 self.bit(true)
320 }
321 #[doc = r"Clears the field bit"]
322 #[inline(always)]
323 pub fn clear_bit(self) -> &'a mut W {
324 self.bit(false)
325 }
326 #[doc = r"Writes raw bits to the field"]
327 #[inline(always)]
328 pub fn bit(self, value: bool) -> &'a mut W {
329 self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7);
330 self.w
331 }
332}
333#[doc = "Field `RS8` reader - XDMAC Channel 8 Read Suspend Bit"]
334pub struct RS8_R(crate::FieldReader<bool, bool>);
335impl RS8_R {
336 #[inline(always)]
337 pub(crate) fn new(bits: bool) -> Self {
338 RS8_R(crate::FieldReader::new(bits))
339 }
340}
341impl core::ops::Deref for RS8_R {
342 type Target = crate::FieldReader<bool, bool>;
343 #[inline(always)]
344 fn deref(&self) -> &Self::Target {
345 &self.0
346 }
347}
348#[doc = "Field `RS8` writer - XDMAC Channel 8 Read Suspend Bit"]
349pub struct RS8_W<'a> {
350 w: &'a mut W,
351}
352impl<'a> RS8_W<'a> {
353 #[doc = r"Sets the field bit"]
354 #[inline(always)]
355 pub fn set_bit(self) -> &'a mut W {
356 self.bit(true)
357 }
358 #[doc = r"Clears the field bit"]
359 #[inline(always)]
360 pub fn clear_bit(self) -> &'a mut W {
361 self.bit(false)
362 }
363 #[doc = r"Writes raw bits to the field"]
364 #[inline(always)]
365 pub fn bit(self, value: bool) -> &'a mut W {
366 self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8);
367 self.w
368 }
369}
370#[doc = "Field `RS9` reader - XDMAC Channel 9 Read Suspend Bit"]
371pub struct RS9_R(crate::FieldReader<bool, bool>);
372impl RS9_R {
373 #[inline(always)]
374 pub(crate) fn new(bits: bool) -> Self {
375 RS9_R(crate::FieldReader::new(bits))
376 }
377}
378impl core::ops::Deref for RS9_R {
379 type Target = crate::FieldReader<bool, bool>;
380 #[inline(always)]
381 fn deref(&self) -> &Self::Target {
382 &self.0
383 }
384}
385#[doc = "Field `RS9` writer - XDMAC Channel 9 Read Suspend Bit"]
386pub struct RS9_W<'a> {
387 w: &'a mut W,
388}
389impl<'a> RS9_W<'a> {
390 #[doc = r"Sets the field bit"]
391 #[inline(always)]
392 pub fn set_bit(self) -> &'a mut W {
393 self.bit(true)
394 }
395 #[doc = r"Clears the field bit"]
396 #[inline(always)]
397 pub fn clear_bit(self) -> &'a mut W {
398 self.bit(false)
399 }
400 #[doc = r"Writes raw bits to the field"]
401 #[inline(always)]
402 pub fn bit(self, value: bool) -> &'a mut W {
403 self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9);
404 self.w
405 }
406}
407#[doc = "Field `RS10` reader - XDMAC Channel 10 Read Suspend Bit"]
408pub struct RS10_R(crate::FieldReader<bool, bool>);
409impl RS10_R {
410 #[inline(always)]
411 pub(crate) fn new(bits: bool) -> Self {
412 RS10_R(crate::FieldReader::new(bits))
413 }
414}
415impl core::ops::Deref for RS10_R {
416 type Target = crate::FieldReader<bool, bool>;
417 #[inline(always)]
418 fn deref(&self) -> &Self::Target {
419 &self.0
420 }
421}
422#[doc = "Field `RS10` writer - XDMAC Channel 10 Read Suspend Bit"]
423pub struct RS10_W<'a> {
424 w: &'a mut W,
425}
426impl<'a> RS10_W<'a> {
427 #[doc = r"Sets the field bit"]
428 #[inline(always)]
429 pub fn set_bit(self) -> &'a mut W {
430 self.bit(true)
431 }
432 #[doc = r"Clears the field bit"]
433 #[inline(always)]
434 pub fn clear_bit(self) -> &'a mut W {
435 self.bit(false)
436 }
437 #[doc = r"Writes raw bits to the field"]
438 #[inline(always)]
439 pub fn bit(self, value: bool) -> &'a mut W {
440 self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10);
441 self.w
442 }
443}
444#[doc = "Field `RS11` reader - XDMAC Channel 11 Read Suspend Bit"]
445pub struct RS11_R(crate::FieldReader<bool, bool>);
446impl RS11_R {
447 #[inline(always)]
448 pub(crate) fn new(bits: bool) -> Self {
449 RS11_R(crate::FieldReader::new(bits))
450 }
451}
452impl core::ops::Deref for RS11_R {
453 type Target = crate::FieldReader<bool, bool>;
454 #[inline(always)]
455 fn deref(&self) -> &Self::Target {
456 &self.0
457 }
458}
459#[doc = "Field `RS11` writer - XDMAC Channel 11 Read Suspend Bit"]
460pub struct RS11_W<'a> {
461 w: &'a mut W,
462}
463impl<'a> RS11_W<'a> {
464 #[doc = r"Sets the field bit"]
465 #[inline(always)]
466 pub fn set_bit(self) -> &'a mut W {
467 self.bit(true)
468 }
469 #[doc = r"Clears the field bit"]
470 #[inline(always)]
471 pub fn clear_bit(self) -> &'a mut W {
472 self.bit(false)
473 }
474 #[doc = r"Writes raw bits to the field"]
475 #[inline(always)]
476 pub fn bit(self, value: bool) -> &'a mut W {
477 self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11);
478 self.w
479 }
480}
481#[doc = "Field `RS12` reader - XDMAC Channel 12 Read Suspend Bit"]
482pub struct RS12_R(crate::FieldReader<bool, bool>);
483impl RS12_R {
484 #[inline(always)]
485 pub(crate) fn new(bits: bool) -> Self {
486 RS12_R(crate::FieldReader::new(bits))
487 }
488}
489impl core::ops::Deref for RS12_R {
490 type Target = crate::FieldReader<bool, bool>;
491 #[inline(always)]
492 fn deref(&self) -> &Self::Target {
493 &self.0
494 }
495}
496#[doc = "Field `RS12` writer - XDMAC Channel 12 Read Suspend Bit"]
497pub struct RS12_W<'a> {
498 w: &'a mut W,
499}
500impl<'a> RS12_W<'a> {
501 #[doc = r"Sets the field bit"]
502 #[inline(always)]
503 pub fn set_bit(self) -> &'a mut W {
504 self.bit(true)
505 }
506 #[doc = r"Clears the field bit"]
507 #[inline(always)]
508 pub fn clear_bit(self) -> &'a mut W {
509 self.bit(false)
510 }
511 #[doc = r"Writes raw bits to the field"]
512 #[inline(always)]
513 pub fn bit(self, value: bool) -> &'a mut W {
514 self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12);
515 self.w
516 }
517}
518#[doc = "Field `RS13` reader - XDMAC Channel 13 Read Suspend Bit"]
519pub struct RS13_R(crate::FieldReader<bool, bool>);
520impl RS13_R {
521 #[inline(always)]
522 pub(crate) fn new(bits: bool) -> Self {
523 RS13_R(crate::FieldReader::new(bits))
524 }
525}
526impl core::ops::Deref for RS13_R {
527 type Target = crate::FieldReader<bool, bool>;
528 #[inline(always)]
529 fn deref(&self) -> &Self::Target {
530 &self.0
531 }
532}
533#[doc = "Field `RS13` writer - XDMAC Channel 13 Read Suspend Bit"]
534pub struct RS13_W<'a> {
535 w: &'a mut W,
536}
537impl<'a> RS13_W<'a> {
538 #[doc = r"Sets the field bit"]
539 #[inline(always)]
540 pub fn set_bit(self) -> &'a mut W {
541 self.bit(true)
542 }
543 #[doc = r"Clears the field bit"]
544 #[inline(always)]
545 pub fn clear_bit(self) -> &'a mut W {
546 self.bit(false)
547 }
548 #[doc = r"Writes raw bits to the field"]
549 #[inline(always)]
550 pub fn bit(self, value: bool) -> &'a mut W {
551 self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13);
552 self.w
553 }
554}
555#[doc = "Field `RS14` reader - XDMAC Channel 14 Read Suspend Bit"]
556pub struct RS14_R(crate::FieldReader<bool, bool>);
557impl RS14_R {
558 #[inline(always)]
559 pub(crate) fn new(bits: bool) -> Self {
560 RS14_R(crate::FieldReader::new(bits))
561 }
562}
563impl core::ops::Deref for RS14_R {
564 type Target = crate::FieldReader<bool, bool>;
565 #[inline(always)]
566 fn deref(&self) -> &Self::Target {
567 &self.0
568 }
569}
570#[doc = "Field `RS14` writer - XDMAC Channel 14 Read Suspend Bit"]
571pub struct RS14_W<'a> {
572 w: &'a mut W,
573}
574impl<'a> RS14_W<'a> {
575 #[doc = r"Sets the field bit"]
576 #[inline(always)]
577 pub fn set_bit(self) -> &'a mut W {
578 self.bit(true)
579 }
580 #[doc = r"Clears the field bit"]
581 #[inline(always)]
582 pub fn clear_bit(self) -> &'a mut W {
583 self.bit(false)
584 }
585 #[doc = r"Writes raw bits to the field"]
586 #[inline(always)]
587 pub fn bit(self, value: bool) -> &'a mut W {
588 self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14);
589 self.w
590 }
591}
592#[doc = "Field `RS15` reader - XDMAC Channel 15 Read Suspend Bit"]
593pub struct RS15_R(crate::FieldReader<bool, bool>);
594impl RS15_R {
595 #[inline(always)]
596 pub(crate) fn new(bits: bool) -> Self {
597 RS15_R(crate::FieldReader::new(bits))
598 }
599}
600impl core::ops::Deref for RS15_R {
601 type Target = crate::FieldReader<bool, bool>;
602 #[inline(always)]
603 fn deref(&self) -> &Self::Target {
604 &self.0
605 }
606}
607#[doc = "Field `RS15` writer - XDMAC Channel 15 Read Suspend Bit"]
608pub struct RS15_W<'a> {
609 w: &'a mut W,
610}
611impl<'a> RS15_W<'a> {
612 #[doc = r"Sets the field bit"]
613 #[inline(always)]
614 pub fn set_bit(self) -> &'a mut W {
615 self.bit(true)
616 }
617 #[doc = r"Clears the field bit"]
618 #[inline(always)]
619 pub fn clear_bit(self) -> &'a mut W {
620 self.bit(false)
621 }
622 #[doc = r"Writes raw bits to the field"]
623 #[inline(always)]
624 pub fn bit(self, value: bool) -> &'a mut W {
625 self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15);
626 self.w
627 }
628}
629#[doc = "Field `RS16` reader - XDMAC Channel 16 Read Suspend Bit"]
630pub struct RS16_R(crate::FieldReader<bool, bool>);
631impl RS16_R {
632 #[inline(always)]
633 pub(crate) fn new(bits: bool) -> Self {
634 RS16_R(crate::FieldReader::new(bits))
635 }
636}
637impl core::ops::Deref for RS16_R {
638 type Target = crate::FieldReader<bool, bool>;
639 #[inline(always)]
640 fn deref(&self) -> &Self::Target {
641 &self.0
642 }
643}
644#[doc = "Field `RS16` writer - XDMAC Channel 16 Read Suspend Bit"]
645pub struct RS16_W<'a> {
646 w: &'a mut W,
647}
648impl<'a> RS16_W<'a> {
649 #[doc = r"Sets the field bit"]
650 #[inline(always)]
651 pub fn set_bit(self) -> &'a mut W {
652 self.bit(true)
653 }
654 #[doc = r"Clears the field bit"]
655 #[inline(always)]
656 pub fn clear_bit(self) -> &'a mut W {
657 self.bit(false)
658 }
659 #[doc = r"Writes raw bits to the field"]
660 #[inline(always)]
661 pub fn bit(self, value: bool) -> &'a mut W {
662 self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16);
663 self.w
664 }
665}
666#[doc = "Field `RS17` reader - XDMAC Channel 17 Read Suspend Bit"]
667pub struct RS17_R(crate::FieldReader<bool, bool>);
668impl RS17_R {
669 #[inline(always)]
670 pub(crate) fn new(bits: bool) -> Self {
671 RS17_R(crate::FieldReader::new(bits))
672 }
673}
674impl core::ops::Deref for RS17_R {
675 type Target = crate::FieldReader<bool, bool>;
676 #[inline(always)]
677 fn deref(&self) -> &Self::Target {
678 &self.0
679 }
680}
681#[doc = "Field `RS17` writer - XDMAC Channel 17 Read Suspend Bit"]
682pub struct RS17_W<'a> {
683 w: &'a mut W,
684}
685impl<'a> RS17_W<'a> {
686 #[doc = r"Sets the field bit"]
687 #[inline(always)]
688 pub fn set_bit(self) -> &'a mut W {
689 self.bit(true)
690 }
691 #[doc = r"Clears the field bit"]
692 #[inline(always)]
693 pub fn clear_bit(self) -> &'a mut W {
694 self.bit(false)
695 }
696 #[doc = r"Writes raw bits to the field"]
697 #[inline(always)]
698 pub fn bit(self, value: bool) -> &'a mut W {
699 self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17);
700 self.w
701 }
702}
703#[doc = "Field `RS18` reader - XDMAC Channel 18 Read Suspend Bit"]
704pub struct RS18_R(crate::FieldReader<bool, bool>);
705impl RS18_R {
706 #[inline(always)]
707 pub(crate) fn new(bits: bool) -> Self {
708 RS18_R(crate::FieldReader::new(bits))
709 }
710}
711impl core::ops::Deref for RS18_R {
712 type Target = crate::FieldReader<bool, bool>;
713 #[inline(always)]
714 fn deref(&self) -> &Self::Target {
715 &self.0
716 }
717}
718#[doc = "Field `RS18` writer - XDMAC Channel 18 Read Suspend Bit"]
719pub struct RS18_W<'a> {
720 w: &'a mut W,
721}
722impl<'a> RS18_W<'a> {
723 #[doc = r"Sets the field bit"]
724 #[inline(always)]
725 pub fn set_bit(self) -> &'a mut W {
726 self.bit(true)
727 }
728 #[doc = r"Clears the field bit"]
729 #[inline(always)]
730 pub fn clear_bit(self) -> &'a mut W {
731 self.bit(false)
732 }
733 #[doc = r"Writes raw bits to the field"]
734 #[inline(always)]
735 pub fn bit(self, value: bool) -> &'a mut W {
736 self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18);
737 self.w
738 }
739}
740#[doc = "Field `RS19` reader - XDMAC Channel 19 Read Suspend Bit"]
741pub struct RS19_R(crate::FieldReader<bool, bool>);
742impl RS19_R {
743 #[inline(always)]
744 pub(crate) fn new(bits: bool) -> Self {
745 RS19_R(crate::FieldReader::new(bits))
746 }
747}
748impl core::ops::Deref for RS19_R {
749 type Target = crate::FieldReader<bool, bool>;
750 #[inline(always)]
751 fn deref(&self) -> &Self::Target {
752 &self.0
753 }
754}
755#[doc = "Field `RS19` writer - XDMAC Channel 19 Read Suspend Bit"]
756pub struct RS19_W<'a> {
757 w: &'a mut W,
758}
759impl<'a> RS19_W<'a> {
760 #[doc = r"Sets the field bit"]
761 #[inline(always)]
762 pub fn set_bit(self) -> &'a mut W {
763 self.bit(true)
764 }
765 #[doc = r"Clears the field bit"]
766 #[inline(always)]
767 pub fn clear_bit(self) -> &'a mut W {
768 self.bit(false)
769 }
770 #[doc = r"Writes raw bits to the field"]
771 #[inline(always)]
772 pub fn bit(self, value: bool) -> &'a mut W {
773 self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19);
774 self.w
775 }
776}
777#[doc = "Field `RS20` reader - XDMAC Channel 20 Read Suspend Bit"]
778pub struct RS20_R(crate::FieldReader<bool, bool>);
779impl RS20_R {
780 #[inline(always)]
781 pub(crate) fn new(bits: bool) -> Self {
782 RS20_R(crate::FieldReader::new(bits))
783 }
784}
785impl core::ops::Deref for RS20_R {
786 type Target = crate::FieldReader<bool, bool>;
787 #[inline(always)]
788 fn deref(&self) -> &Self::Target {
789 &self.0
790 }
791}
792#[doc = "Field `RS20` writer - XDMAC Channel 20 Read Suspend Bit"]
793pub struct RS20_W<'a> {
794 w: &'a mut W,
795}
796impl<'a> RS20_W<'a> {
797 #[doc = r"Sets the field bit"]
798 #[inline(always)]
799 pub fn set_bit(self) -> &'a mut W {
800 self.bit(true)
801 }
802 #[doc = r"Clears the field bit"]
803 #[inline(always)]
804 pub fn clear_bit(self) -> &'a mut W {
805 self.bit(false)
806 }
807 #[doc = r"Writes raw bits to the field"]
808 #[inline(always)]
809 pub fn bit(self, value: bool) -> &'a mut W {
810 self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20);
811 self.w
812 }
813}
814#[doc = "Field `RS21` reader - XDMAC Channel 21 Read Suspend Bit"]
815pub struct RS21_R(crate::FieldReader<bool, bool>);
816impl RS21_R {
817 #[inline(always)]
818 pub(crate) fn new(bits: bool) -> Self {
819 RS21_R(crate::FieldReader::new(bits))
820 }
821}
822impl core::ops::Deref for RS21_R {
823 type Target = crate::FieldReader<bool, bool>;
824 #[inline(always)]
825 fn deref(&self) -> &Self::Target {
826 &self.0
827 }
828}
829#[doc = "Field `RS21` writer - XDMAC Channel 21 Read Suspend Bit"]
830pub struct RS21_W<'a> {
831 w: &'a mut W,
832}
833impl<'a> RS21_W<'a> {
834 #[doc = r"Sets the field bit"]
835 #[inline(always)]
836 pub fn set_bit(self) -> &'a mut W {
837 self.bit(true)
838 }
839 #[doc = r"Clears the field bit"]
840 #[inline(always)]
841 pub fn clear_bit(self) -> &'a mut W {
842 self.bit(false)
843 }
844 #[doc = r"Writes raw bits to the field"]
845 #[inline(always)]
846 pub fn bit(self, value: bool) -> &'a mut W {
847 self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21);
848 self.w
849 }
850}
851#[doc = "Field `RS22` reader - XDMAC Channel 22 Read Suspend Bit"]
852pub struct RS22_R(crate::FieldReader<bool, bool>);
853impl RS22_R {
854 #[inline(always)]
855 pub(crate) fn new(bits: bool) -> Self {
856 RS22_R(crate::FieldReader::new(bits))
857 }
858}
859impl core::ops::Deref for RS22_R {
860 type Target = crate::FieldReader<bool, bool>;
861 #[inline(always)]
862 fn deref(&self) -> &Self::Target {
863 &self.0
864 }
865}
866#[doc = "Field `RS22` writer - XDMAC Channel 22 Read Suspend Bit"]
867pub struct RS22_W<'a> {
868 w: &'a mut W,
869}
870impl<'a> RS22_W<'a> {
871 #[doc = r"Sets the field bit"]
872 #[inline(always)]
873 pub fn set_bit(self) -> &'a mut W {
874 self.bit(true)
875 }
876 #[doc = r"Clears the field bit"]
877 #[inline(always)]
878 pub fn clear_bit(self) -> &'a mut W {
879 self.bit(false)
880 }
881 #[doc = r"Writes raw bits to the field"]
882 #[inline(always)]
883 pub fn bit(self, value: bool) -> &'a mut W {
884 self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22);
885 self.w
886 }
887}
888#[doc = "Field `RS23` reader - XDMAC Channel 23 Read Suspend Bit"]
889pub struct RS23_R(crate::FieldReader<bool, bool>);
890impl RS23_R {
891 #[inline(always)]
892 pub(crate) fn new(bits: bool) -> Self {
893 RS23_R(crate::FieldReader::new(bits))
894 }
895}
896impl core::ops::Deref for RS23_R {
897 type Target = crate::FieldReader<bool, bool>;
898 #[inline(always)]
899 fn deref(&self) -> &Self::Target {
900 &self.0
901 }
902}
903#[doc = "Field `RS23` writer - XDMAC Channel 23 Read Suspend Bit"]
904pub struct RS23_W<'a> {
905 w: &'a mut W,
906}
907impl<'a> RS23_W<'a> {
908 #[doc = r"Sets the field bit"]
909 #[inline(always)]
910 pub fn set_bit(self) -> &'a mut W {
911 self.bit(true)
912 }
913 #[doc = r"Clears the field bit"]
914 #[inline(always)]
915 pub fn clear_bit(self) -> &'a mut W {
916 self.bit(false)
917 }
918 #[doc = r"Writes raw bits to the field"]
919 #[inline(always)]
920 pub fn bit(self, value: bool) -> &'a mut W {
921 self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23);
922 self.w
923 }
924}
925impl R {
926 #[doc = "Bit 0 - XDMAC Channel 0 Read Suspend Bit"]
927 #[inline(always)]
928 pub fn rs0(&self) -> RS0_R {
929 RS0_R::new((self.bits & 0x01) != 0)
930 }
931 #[doc = "Bit 1 - XDMAC Channel 1 Read Suspend Bit"]
932 #[inline(always)]
933 pub fn rs1(&self) -> RS1_R {
934 RS1_R::new(((self.bits >> 1) & 0x01) != 0)
935 }
936 #[doc = "Bit 2 - XDMAC Channel 2 Read Suspend Bit"]
937 #[inline(always)]
938 pub fn rs2(&self) -> RS2_R {
939 RS2_R::new(((self.bits >> 2) & 0x01) != 0)
940 }
941 #[doc = "Bit 3 - XDMAC Channel 3 Read Suspend Bit"]
942 #[inline(always)]
943 pub fn rs3(&self) -> RS3_R {
944 RS3_R::new(((self.bits >> 3) & 0x01) != 0)
945 }
946 #[doc = "Bit 4 - XDMAC Channel 4 Read Suspend Bit"]
947 #[inline(always)]
948 pub fn rs4(&self) -> RS4_R {
949 RS4_R::new(((self.bits >> 4) & 0x01) != 0)
950 }
951 #[doc = "Bit 5 - XDMAC Channel 5 Read Suspend Bit"]
952 #[inline(always)]
953 pub fn rs5(&self) -> RS5_R {
954 RS5_R::new(((self.bits >> 5) & 0x01) != 0)
955 }
956 #[doc = "Bit 6 - XDMAC Channel 6 Read Suspend Bit"]
957 #[inline(always)]
958 pub fn rs6(&self) -> RS6_R {
959 RS6_R::new(((self.bits >> 6) & 0x01) != 0)
960 }
961 #[doc = "Bit 7 - XDMAC Channel 7 Read Suspend Bit"]
962 #[inline(always)]
963 pub fn rs7(&self) -> RS7_R {
964 RS7_R::new(((self.bits >> 7) & 0x01) != 0)
965 }
966 #[doc = "Bit 8 - XDMAC Channel 8 Read Suspend Bit"]
967 #[inline(always)]
968 pub fn rs8(&self) -> RS8_R {
969 RS8_R::new(((self.bits >> 8) & 0x01) != 0)
970 }
971 #[doc = "Bit 9 - XDMAC Channel 9 Read Suspend Bit"]
972 #[inline(always)]
973 pub fn rs9(&self) -> RS9_R {
974 RS9_R::new(((self.bits >> 9) & 0x01) != 0)
975 }
976 #[doc = "Bit 10 - XDMAC Channel 10 Read Suspend Bit"]
977 #[inline(always)]
978 pub fn rs10(&self) -> RS10_R {
979 RS10_R::new(((self.bits >> 10) & 0x01) != 0)
980 }
981 #[doc = "Bit 11 - XDMAC Channel 11 Read Suspend Bit"]
982 #[inline(always)]
983 pub fn rs11(&self) -> RS11_R {
984 RS11_R::new(((self.bits >> 11) & 0x01) != 0)
985 }
986 #[doc = "Bit 12 - XDMAC Channel 12 Read Suspend Bit"]
987 #[inline(always)]
988 pub fn rs12(&self) -> RS12_R {
989 RS12_R::new(((self.bits >> 12) & 0x01) != 0)
990 }
991 #[doc = "Bit 13 - XDMAC Channel 13 Read Suspend Bit"]
992 #[inline(always)]
993 pub fn rs13(&self) -> RS13_R {
994 RS13_R::new(((self.bits >> 13) & 0x01) != 0)
995 }
996 #[doc = "Bit 14 - XDMAC Channel 14 Read Suspend Bit"]
997 #[inline(always)]
998 pub fn rs14(&self) -> RS14_R {
999 RS14_R::new(((self.bits >> 14) & 0x01) != 0)
1000 }
1001 #[doc = "Bit 15 - XDMAC Channel 15 Read Suspend Bit"]
1002 #[inline(always)]
1003 pub fn rs15(&self) -> RS15_R {
1004 RS15_R::new(((self.bits >> 15) & 0x01) != 0)
1005 }
1006 #[doc = "Bit 16 - XDMAC Channel 16 Read Suspend Bit"]
1007 #[inline(always)]
1008 pub fn rs16(&self) -> RS16_R {
1009 RS16_R::new(((self.bits >> 16) & 0x01) != 0)
1010 }
1011 #[doc = "Bit 17 - XDMAC Channel 17 Read Suspend Bit"]
1012 #[inline(always)]
1013 pub fn rs17(&self) -> RS17_R {
1014 RS17_R::new(((self.bits >> 17) & 0x01) != 0)
1015 }
1016 #[doc = "Bit 18 - XDMAC Channel 18 Read Suspend Bit"]
1017 #[inline(always)]
1018 pub fn rs18(&self) -> RS18_R {
1019 RS18_R::new(((self.bits >> 18) & 0x01) != 0)
1020 }
1021 #[doc = "Bit 19 - XDMAC Channel 19 Read Suspend Bit"]
1022 #[inline(always)]
1023 pub fn rs19(&self) -> RS19_R {
1024 RS19_R::new(((self.bits >> 19) & 0x01) != 0)
1025 }
1026 #[doc = "Bit 20 - XDMAC Channel 20 Read Suspend Bit"]
1027 #[inline(always)]
1028 pub fn rs20(&self) -> RS20_R {
1029 RS20_R::new(((self.bits >> 20) & 0x01) != 0)
1030 }
1031 #[doc = "Bit 21 - XDMAC Channel 21 Read Suspend Bit"]
1032 #[inline(always)]
1033 pub fn rs21(&self) -> RS21_R {
1034 RS21_R::new(((self.bits >> 21) & 0x01) != 0)
1035 }
1036 #[doc = "Bit 22 - XDMAC Channel 22 Read Suspend Bit"]
1037 #[inline(always)]
1038 pub fn rs22(&self) -> RS22_R {
1039 RS22_R::new(((self.bits >> 22) & 0x01) != 0)
1040 }
1041 #[doc = "Bit 23 - XDMAC Channel 23 Read Suspend Bit"]
1042 #[inline(always)]
1043 pub fn rs23(&self) -> RS23_R {
1044 RS23_R::new(((self.bits >> 23) & 0x01) != 0)
1045 }
1046}
1047impl W {
1048 #[doc = "Bit 0 - XDMAC Channel 0 Read Suspend Bit"]
1049 #[inline(always)]
1050 pub fn rs0(&mut self) -> RS0_W {
1051 RS0_W { w: self }
1052 }
1053 #[doc = "Bit 1 - XDMAC Channel 1 Read Suspend Bit"]
1054 #[inline(always)]
1055 pub fn rs1(&mut self) -> RS1_W {
1056 RS1_W { w: self }
1057 }
1058 #[doc = "Bit 2 - XDMAC Channel 2 Read Suspend Bit"]
1059 #[inline(always)]
1060 pub fn rs2(&mut self) -> RS2_W {
1061 RS2_W { w: self }
1062 }
1063 #[doc = "Bit 3 - XDMAC Channel 3 Read Suspend Bit"]
1064 #[inline(always)]
1065 pub fn rs3(&mut self) -> RS3_W {
1066 RS3_W { w: self }
1067 }
1068 #[doc = "Bit 4 - XDMAC Channel 4 Read Suspend Bit"]
1069 #[inline(always)]
1070 pub fn rs4(&mut self) -> RS4_W {
1071 RS4_W { w: self }
1072 }
1073 #[doc = "Bit 5 - XDMAC Channel 5 Read Suspend Bit"]
1074 #[inline(always)]
1075 pub fn rs5(&mut self) -> RS5_W {
1076 RS5_W { w: self }
1077 }
1078 #[doc = "Bit 6 - XDMAC Channel 6 Read Suspend Bit"]
1079 #[inline(always)]
1080 pub fn rs6(&mut self) -> RS6_W {
1081 RS6_W { w: self }
1082 }
1083 #[doc = "Bit 7 - XDMAC Channel 7 Read Suspend Bit"]
1084 #[inline(always)]
1085 pub fn rs7(&mut self) -> RS7_W {
1086 RS7_W { w: self }
1087 }
1088 #[doc = "Bit 8 - XDMAC Channel 8 Read Suspend Bit"]
1089 #[inline(always)]
1090 pub fn rs8(&mut self) -> RS8_W {
1091 RS8_W { w: self }
1092 }
1093 #[doc = "Bit 9 - XDMAC Channel 9 Read Suspend Bit"]
1094 #[inline(always)]
1095 pub fn rs9(&mut self) -> RS9_W {
1096 RS9_W { w: self }
1097 }
1098 #[doc = "Bit 10 - XDMAC Channel 10 Read Suspend Bit"]
1099 #[inline(always)]
1100 pub fn rs10(&mut self) -> RS10_W {
1101 RS10_W { w: self }
1102 }
1103 #[doc = "Bit 11 - XDMAC Channel 11 Read Suspend Bit"]
1104 #[inline(always)]
1105 pub fn rs11(&mut self) -> RS11_W {
1106 RS11_W { w: self }
1107 }
1108 #[doc = "Bit 12 - XDMAC Channel 12 Read Suspend Bit"]
1109 #[inline(always)]
1110 pub fn rs12(&mut self) -> RS12_W {
1111 RS12_W { w: self }
1112 }
1113 #[doc = "Bit 13 - XDMAC Channel 13 Read Suspend Bit"]
1114 #[inline(always)]
1115 pub fn rs13(&mut self) -> RS13_W {
1116 RS13_W { w: self }
1117 }
1118 #[doc = "Bit 14 - XDMAC Channel 14 Read Suspend Bit"]
1119 #[inline(always)]
1120 pub fn rs14(&mut self) -> RS14_W {
1121 RS14_W { w: self }
1122 }
1123 #[doc = "Bit 15 - XDMAC Channel 15 Read Suspend Bit"]
1124 #[inline(always)]
1125 pub fn rs15(&mut self) -> RS15_W {
1126 RS15_W { w: self }
1127 }
1128 #[doc = "Bit 16 - XDMAC Channel 16 Read Suspend Bit"]
1129 #[inline(always)]
1130 pub fn rs16(&mut self) -> RS16_W {
1131 RS16_W { w: self }
1132 }
1133 #[doc = "Bit 17 - XDMAC Channel 17 Read Suspend Bit"]
1134 #[inline(always)]
1135 pub fn rs17(&mut self) -> RS17_W {
1136 RS17_W { w: self }
1137 }
1138 #[doc = "Bit 18 - XDMAC Channel 18 Read Suspend Bit"]
1139 #[inline(always)]
1140 pub fn rs18(&mut self) -> RS18_W {
1141 RS18_W { w: self }
1142 }
1143 #[doc = "Bit 19 - XDMAC Channel 19 Read Suspend Bit"]
1144 #[inline(always)]
1145 pub fn rs19(&mut self) -> RS19_W {
1146 RS19_W { w: self }
1147 }
1148 #[doc = "Bit 20 - XDMAC Channel 20 Read Suspend Bit"]
1149 #[inline(always)]
1150 pub fn rs20(&mut self) -> RS20_W {
1151 RS20_W { w: self }
1152 }
1153 #[doc = "Bit 21 - XDMAC Channel 21 Read Suspend Bit"]
1154 #[inline(always)]
1155 pub fn rs21(&mut self) -> RS21_W {
1156 RS21_W { w: self }
1157 }
1158 #[doc = "Bit 22 - XDMAC Channel 22 Read Suspend Bit"]
1159 #[inline(always)]
1160 pub fn rs22(&mut self) -> RS22_W {
1161 RS22_W { w: self }
1162 }
1163 #[doc = "Bit 23 - XDMAC Channel 23 Read Suspend Bit"]
1164 #[inline(always)]
1165 pub fn rs23(&mut self) -> RS23_W {
1166 RS23_W { w: self }
1167 }
1168 #[doc = "Writes raw bits to the register."]
1169 #[inline(always)]
1170 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1171 self.0.bits(bits);
1172 self
1173 }
1174}
1175#[doc = "Global Channel Read Suspend Register\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 [xdmac_grs](index.html) module"]
1176pub struct XDMAC_GRS_SPEC;
1177impl crate::RegisterSpec for XDMAC_GRS_SPEC {
1178 type Ux = u32;
1179}
1180#[doc = "`read()` method returns [xdmac_grs::R](R) reader structure"]
1181impl crate::Readable for XDMAC_GRS_SPEC {
1182 type Reader = R;
1183}
1184#[doc = "`write(|w| ..)` method takes [xdmac_grs::W](W) writer structure"]
1185impl crate::Writable for XDMAC_GRS_SPEC {
1186 type Writer = W;
1187}
1188#[doc = "`reset()` method sets XDMAC_GRS to value 0"]
1189impl crate::Resettable for XDMAC_GRS_SPEC {
1190 #[inline(always)]
1191 fn reset_value() -> Self::Ux {
1192 0
1193 }
1194}