mk66f18/dma/
ears.rs

1#[doc = "Reader of register EARS"]
2pub type R = crate::R<u32, super::EARS>;
3#[doc = "Writer for register EARS"]
4pub type W = crate::W<u32, super::EARS>;
5#[doc = "Register EARS `reset()`'s with value 0"]
6impl crate::ResetValue for super::EARS {
7    type Type = u32;
8    #[inline(always)]
9    fn reset_value() -> Self::Type {
10        0
11    }
12}
13#[doc = "Enable asynchronous DMA request in stop mode for channel 0.\n\nValue on reset: 0"]
14#[derive(Clone, Copy, Debug, PartialEq)]
15pub enum EDREQ_0_A {
16    #[doc = "0: Disable asynchronous DMA request for channel 0."]
17    _0,
18    #[doc = "1: Enable asynchronous DMA request for channel 0."]
19    _1,
20}
21impl From<EDREQ_0_A> for bool {
22    #[inline(always)]
23    fn from(variant: EDREQ_0_A) -> Self {
24        match variant {
25            EDREQ_0_A::_0 => false,
26            EDREQ_0_A::_1 => true,
27        }
28    }
29}
30#[doc = "Reader of field `EDREQ_0`"]
31pub type EDREQ_0_R = crate::R<bool, EDREQ_0_A>;
32impl EDREQ_0_R {
33    #[doc = r"Get enumerated values variant"]
34    #[inline(always)]
35    pub fn variant(&self) -> EDREQ_0_A {
36        match self.bits {
37            false => EDREQ_0_A::_0,
38            true => EDREQ_0_A::_1,
39        }
40    }
41    #[doc = "Checks if the value of the field is `_0`"]
42    #[inline(always)]
43    pub fn is_0(&self) -> bool {
44        *self == EDREQ_0_A::_0
45    }
46    #[doc = "Checks if the value of the field is `_1`"]
47    #[inline(always)]
48    pub fn is_1(&self) -> bool {
49        *self == EDREQ_0_A::_1
50    }
51}
52#[doc = "Write proxy for field `EDREQ_0`"]
53pub struct EDREQ_0_W<'a> {
54    w: &'a mut W,
55}
56impl<'a> EDREQ_0_W<'a> {
57    #[doc = r"Writes `variant` to the field"]
58    #[inline(always)]
59    pub fn variant(self, variant: EDREQ_0_A) -> &'a mut W {
60        {
61            self.bit(variant.into())
62        }
63    }
64    #[doc = "Disable asynchronous DMA request for channel 0."]
65    #[inline(always)]
66    pub fn _0(self) -> &'a mut W {
67        self.variant(EDREQ_0_A::_0)
68    }
69    #[doc = "Enable asynchronous DMA request for channel 0."]
70    #[inline(always)]
71    pub fn _1(self) -> &'a mut W {
72        self.variant(EDREQ_0_A::_1)
73    }
74    #[doc = r"Sets the field bit"]
75    #[inline(always)]
76    pub fn set_bit(self) -> &'a mut W {
77        self.bit(true)
78    }
79    #[doc = r"Clears the field bit"]
80    #[inline(always)]
81    pub fn clear_bit(self) -> &'a mut W {
82        self.bit(false)
83    }
84    #[doc = r"Writes raw bits to the field"]
85    #[inline(always)]
86    pub fn bit(self, value: bool) -> &'a mut W {
87        self.w.bits = (self.w.bits & !0x01) | ((value as u32) & 0x01);
88        self.w
89    }
90}
91#[doc = "Enable asynchronous DMA request in stop mode for channel 1.\n\nValue on reset: 0"]
92#[derive(Clone, Copy, Debug, PartialEq)]
93pub enum EDREQ_1_A {
94    #[doc = "0: Disable asynchronous DMA request for channel 1"]
95    _0,
96    #[doc = "1: Enable asynchronous DMA request for channel 1."]
97    _1,
98}
99impl From<EDREQ_1_A> for bool {
100    #[inline(always)]
101    fn from(variant: EDREQ_1_A) -> Self {
102        match variant {
103            EDREQ_1_A::_0 => false,
104            EDREQ_1_A::_1 => true,
105        }
106    }
107}
108#[doc = "Reader of field `EDREQ_1`"]
109pub type EDREQ_1_R = crate::R<bool, EDREQ_1_A>;
110impl EDREQ_1_R {
111    #[doc = r"Get enumerated values variant"]
112    #[inline(always)]
113    pub fn variant(&self) -> EDREQ_1_A {
114        match self.bits {
115            false => EDREQ_1_A::_0,
116            true => EDREQ_1_A::_1,
117        }
118    }
119    #[doc = "Checks if the value of the field is `_0`"]
120    #[inline(always)]
121    pub fn is_0(&self) -> bool {
122        *self == EDREQ_1_A::_0
123    }
124    #[doc = "Checks if the value of the field is `_1`"]
125    #[inline(always)]
126    pub fn is_1(&self) -> bool {
127        *self == EDREQ_1_A::_1
128    }
129}
130#[doc = "Write proxy for field `EDREQ_1`"]
131pub struct EDREQ_1_W<'a> {
132    w: &'a mut W,
133}
134impl<'a> EDREQ_1_W<'a> {
135    #[doc = r"Writes `variant` to the field"]
136    #[inline(always)]
137    pub fn variant(self, variant: EDREQ_1_A) -> &'a mut W {
138        {
139            self.bit(variant.into())
140        }
141    }
142    #[doc = "Disable asynchronous DMA request for channel 1"]
143    #[inline(always)]
144    pub fn _0(self) -> &'a mut W {
145        self.variant(EDREQ_1_A::_0)
146    }
147    #[doc = "Enable asynchronous DMA request for channel 1."]
148    #[inline(always)]
149    pub fn _1(self) -> &'a mut W {
150        self.variant(EDREQ_1_A::_1)
151    }
152    #[doc = r"Sets the field bit"]
153    #[inline(always)]
154    pub fn set_bit(self) -> &'a mut W {
155        self.bit(true)
156    }
157    #[doc = r"Clears the field bit"]
158    #[inline(always)]
159    pub fn clear_bit(self) -> &'a mut W {
160        self.bit(false)
161    }
162    #[doc = r"Writes raw bits to the field"]
163    #[inline(always)]
164    pub fn bit(self, value: bool) -> &'a mut W {
165        self.w.bits = (self.w.bits & !(0x01 << 1)) | (((value as u32) & 0x01) << 1);
166        self.w
167    }
168}
169#[doc = "Enable asynchronous DMA request in stop mode for channel 2.\n\nValue on reset: 0"]
170#[derive(Clone, Copy, Debug, PartialEq)]
171pub enum EDREQ_2_A {
172    #[doc = "0: Disable asynchronous DMA request for channel 2."]
173    _0,
174    #[doc = "1: Enable asynchronous DMA request for channel 2."]
175    _1,
176}
177impl From<EDREQ_2_A> for bool {
178    #[inline(always)]
179    fn from(variant: EDREQ_2_A) -> Self {
180        match variant {
181            EDREQ_2_A::_0 => false,
182            EDREQ_2_A::_1 => true,
183        }
184    }
185}
186#[doc = "Reader of field `EDREQ_2`"]
187pub type EDREQ_2_R = crate::R<bool, EDREQ_2_A>;
188impl EDREQ_2_R {
189    #[doc = r"Get enumerated values variant"]
190    #[inline(always)]
191    pub fn variant(&self) -> EDREQ_2_A {
192        match self.bits {
193            false => EDREQ_2_A::_0,
194            true => EDREQ_2_A::_1,
195        }
196    }
197    #[doc = "Checks if the value of the field is `_0`"]
198    #[inline(always)]
199    pub fn is_0(&self) -> bool {
200        *self == EDREQ_2_A::_0
201    }
202    #[doc = "Checks if the value of the field is `_1`"]
203    #[inline(always)]
204    pub fn is_1(&self) -> bool {
205        *self == EDREQ_2_A::_1
206    }
207}
208#[doc = "Write proxy for field `EDREQ_2`"]
209pub struct EDREQ_2_W<'a> {
210    w: &'a mut W,
211}
212impl<'a> EDREQ_2_W<'a> {
213    #[doc = r"Writes `variant` to the field"]
214    #[inline(always)]
215    pub fn variant(self, variant: EDREQ_2_A) -> &'a mut W {
216        {
217            self.bit(variant.into())
218        }
219    }
220    #[doc = "Disable asynchronous DMA request for channel 2."]
221    #[inline(always)]
222    pub fn _0(self) -> &'a mut W {
223        self.variant(EDREQ_2_A::_0)
224    }
225    #[doc = "Enable asynchronous DMA request for channel 2."]
226    #[inline(always)]
227    pub fn _1(self) -> &'a mut W {
228        self.variant(EDREQ_2_A::_1)
229    }
230    #[doc = r"Sets the field bit"]
231    #[inline(always)]
232    pub fn set_bit(self) -> &'a mut W {
233        self.bit(true)
234    }
235    #[doc = r"Clears the field bit"]
236    #[inline(always)]
237    pub fn clear_bit(self) -> &'a mut W {
238        self.bit(false)
239    }
240    #[doc = r"Writes raw bits to the field"]
241    #[inline(always)]
242    pub fn bit(self, value: bool) -> &'a mut W {
243        self.w.bits = (self.w.bits & !(0x01 << 2)) | (((value as u32) & 0x01) << 2);
244        self.w
245    }
246}
247#[doc = "Enable asynchronous DMA request in stop mode for channel 3.\n\nValue on reset: 0"]
248#[derive(Clone, Copy, Debug, PartialEq)]
249pub enum EDREQ_3_A {
250    #[doc = "0: Disable asynchronous DMA request for channel 3."]
251    _0,
252    #[doc = "1: Enable asynchronous DMA request for channel 3."]
253    _1,
254}
255impl From<EDREQ_3_A> for bool {
256    #[inline(always)]
257    fn from(variant: EDREQ_3_A) -> Self {
258        match variant {
259            EDREQ_3_A::_0 => false,
260            EDREQ_3_A::_1 => true,
261        }
262    }
263}
264#[doc = "Reader of field `EDREQ_3`"]
265pub type EDREQ_3_R = crate::R<bool, EDREQ_3_A>;
266impl EDREQ_3_R {
267    #[doc = r"Get enumerated values variant"]
268    #[inline(always)]
269    pub fn variant(&self) -> EDREQ_3_A {
270        match self.bits {
271            false => EDREQ_3_A::_0,
272            true => EDREQ_3_A::_1,
273        }
274    }
275    #[doc = "Checks if the value of the field is `_0`"]
276    #[inline(always)]
277    pub fn is_0(&self) -> bool {
278        *self == EDREQ_3_A::_0
279    }
280    #[doc = "Checks if the value of the field is `_1`"]
281    #[inline(always)]
282    pub fn is_1(&self) -> bool {
283        *self == EDREQ_3_A::_1
284    }
285}
286#[doc = "Write proxy for field `EDREQ_3`"]
287pub struct EDREQ_3_W<'a> {
288    w: &'a mut W,
289}
290impl<'a> EDREQ_3_W<'a> {
291    #[doc = r"Writes `variant` to the field"]
292    #[inline(always)]
293    pub fn variant(self, variant: EDREQ_3_A) -> &'a mut W {
294        {
295            self.bit(variant.into())
296        }
297    }
298    #[doc = "Disable asynchronous DMA request for channel 3."]
299    #[inline(always)]
300    pub fn _0(self) -> &'a mut W {
301        self.variant(EDREQ_3_A::_0)
302    }
303    #[doc = "Enable asynchronous DMA request for channel 3."]
304    #[inline(always)]
305    pub fn _1(self) -> &'a mut W {
306        self.variant(EDREQ_3_A::_1)
307    }
308    #[doc = r"Sets the field bit"]
309    #[inline(always)]
310    pub fn set_bit(self) -> &'a mut W {
311        self.bit(true)
312    }
313    #[doc = r"Clears the field bit"]
314    #[inline(always)]
315    pub fn clear_bit(self) -> &'a mut W {
316        self.bit(false)
317    }
318    #[doc = r"Writes raw bits to the field"]
319    #[inline(always)]
320    pub fn bit(self, value: bool) -> &'a mut W {
321        self.w.bits = (self.w.bits & !(0x01 << 3)) | (((value as u32) & 0x01) << 3);
322        self.w
323    }
324}
325#[doc = "Enable asynchronous DMA request in stop mode for channel 4\n\nValue on reset: 0"]
326#[derive(Clone, Copy, Debug, PartialEq)]
327pub enum EDREQ_4_A {
328    #[doc = "0: Disable asynchronous DMA request for channel 4."]
329    _0,
330    #[doc = "1: Enable asynchronous DMA request for channel 4."]
331    _1,
332}
333impl From<EDREQ_4_A> for bool {
334    #[inline(always)]
335    fn from(variant: EDREQ_4_A) -> Self {
336        match variant {
337            EDREQ_4_A::_0 => false,
338            EDREQ_4_A::_1 => true,
339        }
340    }
341}
342#[doc = "Reader of field `EDREQ_4`"]
343pub type EDREQ_4_R = crate::R<bool, EDREQ_4_A>;
344impl EDREQ_4_R {
345    #[doc = r"Get enumerated values variant"]
346    #[inline(always)]
347    pub fn variant(&self) -> EDREQ_4_A {
348        match self.bits {
349            false => EDREQ_4_A::_0,
350            true => EDREQ_4_A::_1,
351        }
352    }
353    #[doc = "Checks if the value of the field is `_0`"]
354    #[inline(always)]
355    pub fn is_0(&self) -> bool {
356        *self == EDREQ_4_A::_0
357    }
358    #[doc = "Checks if the value of the field is `_1`"]
359    #[inline(always)]
360    pub fn is_1(&self) -> bool {
361        *self == EDREQ_4_A::_1
362    }
363}
364#[doc = "Write proxy for field `EDREQ_4`"]
365pub struct EDREQ_4_W<'a> {
366    w: &'a mut W,
367}
368impl<'a> EDREQ_4_W<'a> {
369    #[doc = r"Writes `variant` to the field"]
370    #[inline(always)]
371    pub fn variant(self, variant: EDREQ_4_A) -> &'a mut W {
372        {
373            self.bit(variant.into())
374        }
375    }
376    #[doc = "Disable asynchronous DMA request for channel 4."]
377    #[inline(always)]
378    pub fn _0(self) -> &'a mut W {
379        self.variant(EDREQ_4_A::_0)
380    }
381    #[doc = "Enable asynchronous DMA request for channel 4."]
382    #[inline(always)]
383    pub fn _1(self) -> &'a mut W {
384        self.variant(EDREQ_4_A::_1)
385    }
386    #[doc = r"Sets the field bit"]
387    #[inline(always)]
388    pub fn set_bit(self) -> &'a mut W {
389        self.bit(true)
390    }
391    #[doc = r"Clears the field bit"]
392    #[inline(always)]
393    pub fn clear_bit(self) -> &'a mut W {
394        self.bit(false)
395    }
396    #[doc = r"Writes raw bits to the field"]
397    #[inline(always)]
398    pub fn bit(self, value: bool) -> &'a mut W {
399        self.w.bits = (self.w.bits & !(0x01 << 4)) | (((value as u32) & 0x01) << 4);
400        self.w
401    }
402}
403#[doc = "Enable asynchronous DMA request in stop mode for channel 5\n\nValue on reset: 0"]
404#[derive(Clone, Copy, Debug, PartialEq)]
405pub enum EDREQ_5_A {
406    #[doc = "0: Disable asynchronous DMA request for channel 5."]
407    _0,
408    #[doc = "1: Enable asynchronous DMA request for channel 5."]
409    _1,
410}
411impl From<EDREQ_5_A> for bool {
412    #[inline(always)]
413    fn from(variant: EDREQ_5_A) -> Self {
414        match variant {
415            EDREQ_5_A::_0 => false,
416            EDREQ_5_A::_1 => true,
417        }
418    }
419}
420#[doc = "Reader of field `EDREQ_5`"]
421pub type EDREQ_5_R = crate::R<bool, EDREQ_5_A>;
422impl EDREQ_5_R {
423    #[doc = r"Get enumerated values variant"]
424    #[inline(always)]
425    pub fn variant(&self) -> EDREQ_5_A {
426        match self.bits {
427            false => EDREQ_5_A::_0,
428            true => EDREQ_5_A::_1,
429        }
430    }
431    #[doc = "Checks if the value of the field is `_0`"]
432    #[inline(always)]
433    pub fn is_0(&self) -> bool {
434        *self == EDREQ_5_A::_0
435    }
436    #[doc = "Checks if the value of the field is `_1`"]
437    #[inline(always)]
438    pub fn is_1(&self) -> bool {
439        *self == EDREQ_5_A::_1
440    }
441}
442#[doc = "Write proxy for field `EDREQ_5`"]
443pub struct EDREQ_5_W<'a> {
444    w: &'a mut W,
445}
446impl<'a> EDREQ_5_W<'a> {
447    #[doc = r"Writes `variant` to the field"]
448    #[inline(always)]
449    pub fn variant(self, variant: EDREQ_5_A) -> &'a mut W {
450        {
451            self.bit(variant.into())
452        }
453    }
454    #[doc = "Disable asynchronous DMA request for channel 5."]
455    #[inline(always)]
456    pub fn _0(self) -> &'a mut W {
457        self.variant(EDREQ_5_A::_0)
458    }
459    #[doc = "Enable asynchronous DMA request for channel 5."]
460    #[inline(always)]
461    pub fn _1(self) -> &'a mut W {
462        self.variant(EDREQ_5_A::_1)
463    }
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 << 5)) | (((value as u32) & 0x01) << 5);
478        self.w
479    }
480}
481#[doc = "Enable asynchronous DMA request in stop mode for channel 6\n\nValue on reset: 0"]
482#[derive(Clone, Copy, Debug, PartialEq)]
483pub enum EDREQ_6_A {
484    #[doc = "0: Disable asynchronous DMA request for channel 6."]
485    _0,
486    #[doc = "1: Enable asynchronous DMA request for channel 6."]
487    _1,
488}
489impl From<EDREQ_6_A> for bool {
490    #[inline(always)]
491    fn from(variant: EDREQ_6_A) -> Self {
492        match variant {
493            EDREQ_6_A::_0 => false,
494            EDREQ_6_A::_1 => true,
495        }
496    }
497}
498#[doc = "Reader of field `EDREQ_6`"]
499pub type EDREQ_6_R = crate::R<bool, EDREQ_6_A>;
500impl EDREQ_6_R {
501    #[doc = r"Get enumerated values variant"]
502    #[inline(always)]
503    pub fn variant(&self) -> EDREQ_6_A {
504        match self.bits {
505            false => EDREQ_6_A::_0,
506            true => EDREQ_6_A::_1,
507        }
508    }
509    #[doc = "Checks if the value of the field is `_0`"]
510    #[inline(always)]
511    pub fn is_0(&self) -> bool {
512        *self == EDREQ_6_A::_0
513    }
514    #[doc = "Checks if the value of the field is `_1`"]
515    #[inline(always)]
516    pub fn is_1(&self) -> bool {
517        *self == EDREQ_6_A::_1
518    }
519}
520#[doc = "Write proxy for field `EDREQ_6`"]
521pub struct EDREQ_6_W<'a> {
522    w: &'a mut W,
523}
524impl<'a> EDREQ_6_W<'a> {
525    #[doc = r"Writes `variant` to the field"]
526    #[inline(always)]
527    pub fn variant(self, variant: EDREQ_6_A) -> &'a mut W {
528        {
529            self.bit(variant.into())
530        }
531    }
532    #[doc = "Disable asynchronous DMA request for channel 6."]
533    #[inline(always)]
534    pub fn _0(self) -> &'a mut W {
535        self.variant(EDREQ_6_A::_0)
536    }
537    #[doc = "Enable asynchronous DMA request for channel 6."]
538    #[inline(always)]
539    pub fn _1(self) -> &'a mut W {
540        self.variant(EDREQ_6_A::_1)
541    }
542    #[doc = r"Sets the field bit"]
543    #[inline(always)]
544    pub fn set_bit(self) -> &'a mut W {
545        self.bit(true)
546    }
547    #[doc = r"Clears the field bit"]
548    #[inline(always)]
549    pub fn clear_bit(self) -> &'a mut W {
550        self.bit(false)
551    }
552    #[doc = r"Writes raw bits to the field"]
553    #[inline(always)]
554    pub fn bit(self, value: bool) -> &'a mut W {
555        self.w.bits = (self.w.bits & !(0x01 << 6)) | (((value as u32) & 0x01) << 6);
556        self.w
557    }
558}
559#[doc = "Enable asynchronous DMA request in stop mode for channel 7\n\nValue on reset: 0"]
560#[derive(Clone, Copy, Debug, PartialEq)]
561pub enum EDREQ_7_A {
562    #[doc = "0: Disable asynchronous DMA request for channel 7."]
563    _0,
564    #[doc = "1: Enable asynchronous DMA request for channel 7."]
565    _1,
566}
567impl From<EDREQ_7_A> for bool {
568    #[inline(always)]
569    fn from(variant: EDREQ_7_A) -> Self {
570        match variant {
571            EDREQ_7_A::_0 => false,
572            EDREQ_7_A::_1 => true,
573        }
574    }
575}
576#[doc = "Reader of field `EDREQ_7`"]
577pub type EDREQ_7_R = crate::R<bool, EDREQ_7_A>;
578impl EDREQ_7_R {
579    #[doc = r"Get enumerated values variant"]
580    #[inline(always)]
581    pub fn variant(&self) -> EDREQ_7_A {
582        match self.bits {
583            false => EDREQ_7_A::_0,
584            true => EDREQ_7_A::_1,
585        }
586    }
587    #[doc = "Checks if the value of the field is `_0`"]
588    #[inline(always)]
589    pub fn is_0(&self) -> bool {
590        *self == EDREQ_7_A::_0
591    }
592    #[doc = "Checks if the value of the field is `_1`"]
593    #[inline(always)]
594    pub fn is_1(&self) -> bool {
595        *self == EDREQ_7_A::_1
596    }
597}
598#[doc = "Write proxy for field `EDREQ_7`"]
599pub struct EDREQ_7_W<'a> {
600    w: &'a mut W,
601}
602impl<'a> EDREQ_7_W<'a> {
603    #[doc = r"Writes `variant` to the field"]
604    #[inline(always)]
605    pub fn variant(self, variant: EDREQ_7_A) -> &'a mut W {
606        {
607            self.bit(variant.into())
608        }
609    }
610    #[doc = "Disable asynchronous DMA request for channel 7."]
611    #[inline(always)]
612    pub fn _0(self) -> &'a mut W {
613        self.variant(EDREQ_7_A::_0)
614    }
615    #[doc = "Enable asynchronous DMA request for channel 7."]
616    #[inline(always)]
617    pub fn _1(self) -> &'a mut W {
618        self.variant(EDREQ_7_A::_1)
619    }
620    #[doc = r"Sets the field bit"]
621    #[inline(always)]
622    pub fn set_bit(self) -> &'a mut W {
623        self.bit(true)
624    }
625    #[doc = r"Clears the field bit"]
626    #[inline(always)]
627    pub fn clear_bit(self) -> &'a mut W {
628        self.bit(false)
629    }
630    #[doc = r"Writes raw bits to the field"]
631    #[inline(always)]
632    pub fn bit(self, value: bool) -> &'a mut W {
633        self.w.bits = (self.w.bits & !(0x01 << 7)) | (((value as u32) & 0x01) << 7);
634        self.w
635    }
636}
637#[doc = "Enable asynchronous DMA request in stop mode for channel 8\n\nValue on reset: 0"]
638#[derive(Clone, Copy, Debug, PartialEq)]
639pub enum EDREQ_8_A {
640    #[doc = "0: Disable asynchronous DMA request for channel 8."]
641    _0,
642    #[doc = "1: Enable asynchronous DMA request for channel 8."]
643    _1,
644}
645impl From<EDREQ_8_A> for bool {
646    #[inline(always)]
647    fn from(variant: EDREQ_8_A) -> Self {
648        match variant {
649            EDREQ_8_A::_0 => false,
650            EDREQ_8_A::_1 => true,
651        }
652    }
653}
654#[doc = "Reader of field `EDREQ_8`"]
655pub type EDREQ_8_R = crate::R<bool, EDREQ_8_A>;
656impl EDREQ_8_R {
657    #[doc = r"Get enumerated values variant"]
658    #[inline(always)]
659    pub fn variant(&self) -> EDREQ_8_A {
660        match self.bits {
661            false => EDREQ_8_A::_0,
662            true => EDREQ_8_A::_1,
663        }
664    }
665    #[doc = "Checks if the value of the field is `_0`"]
666    #[inline(always)]
667    pub fn is_0(&self) -> bool {
668        *self == EDREQ_8_A::_0
669    }
670    #[doc = "Checks if the value of the field is `_1`"]
671    #[inline(always)]
672    pub fn is_1(&self) -> bool {
673        *self == EDREQ_8_A::_1
674    }
675}
676#[doc = "Write proxy for field `EDREQ_8`"]
677pub struct EDREQ_8_W<'a> {
678    w: &'a mut W,
679}
680impl<'a> EDREQ_8_W<'a> {
681    #[doc = r"Writes `variant` to the field"]
682    #[inline(always)]
683    pub fn variant(self, variant: EDREQ_8_A) -> &'a mut W {
684        {
685            self.bit(variant.into())
686        }
687    }
688    #[doc = "Disable asynchronous DMA request for channel 8."]
689    #[inline(always)]
690    pub fn _0(self) -> &'a mut W {
691        self.variant(EDREQ_8_A::_0)
692    }
693    #[doc = "Enable asynchronous DMA request for channel 8."]
694    #[inline(always)]
695    pub fn _1(self) -> &'a mut W {
696        self.variant(EDREQ_8_A::_1)
697    }
698    #[doc = r"Sets the field bit"]
699    #[inline(always)]
700    pub fn set_bit(self) -> &'a mut W {
701        self.bit(true)
702    }
703    #[doc = r"Clears the field bit"]
704    #[inline(always)]
705    pub fn clear_bit(self) -> &'a mut W {
706        self.bit(false)
707    }
708    #[doc = r"Writes raw bits to the field"]
709    #[inline(always)]
710    pub fn bit(self, value: bool) -> &'a mut W {
711        self.w.bits = (self.w.bits & !(0x01 << 8)) | (((value as u32) & 0x01) << 8);
712        self.w
713    }
714}
715#[doc = "Enable asynchronous DMA request in stop mode for channel 9\n\nValue on reset: 0"]
716#[derive(Clone, Copy, Debug, PartialEq)]
717pub enum EDREQ_9_A {
718    #[doc = "0: Disable asynchronous DMA request for channel 9."]
719    _0,
720    #[doc = "1: Enable asynchronous DMA request for channel 9."]
721    _1,
722}
723impl From<EDREQ_9_A> for bool {
724    #[inline(always)]
725    fn from(variant: EDREQ_9_A) -> Self {
726        match variant {
727            EDREQ_9_A::_0 => false,
728            EDREQ_9_A::_1 => true,
729        }
730    }
731}
732#[doc = "Reader of field `EDREQ_9`"]
733pub type EDREQ_9_R = crate::R<bool, EDREQ_9_A>;
734impl EDREQ_9_R {
735    #[doc = r"Get enumerated values variant"]
736    #[inline(always)]
737    pub fn variant(&self) -> EDREQ_9_A {
738        match self.bits {
739            false => EDREQ_9_A::_0,
740            true => EDREQ_9_A::_1,
741        }
742    }
743    #[doc = "Checks if the value of the field is `_0`"]
744    #[inline(always)]
745    pub fn is_0(&self) -> bool {
746        *self == EDREQ_9_A::_0
747    }
748    #[doc = "Checks if the value of the field is `_1`"]
749    #[inline(always)]
750    pub fn is_1(&self) -> bool {
751        *self == EDREQ_9_A::_1
752    }
753}
754#[doc = "Write proxy for field `EDREQ_9`"]
755pub struct EDREQ_9_W<'a> {
756    w: &'a mut W,
757}
758impl<'a> EDREQ_9_W<'a> {
759    #[doc = r"Writes `variant` to the field"]
760    #[inline(always)]
761    pub fn variant(self, variant: EDREQ_9_A) -> &'a mut W {
762        {
763            self.bit(variant.into())
764        }
765    }
766    #[doc = "Disable asynchronous DMA request for channel 9."]
767    #[inline(always)]
768    pub fn _0(self) -> &'a mut W {
769        self.variant(EDREQ_9_A::_0)
770    }
771    #[doc = "Enable asynchronous DMA request for channel 9."]
772    #[inline(always)]
773    pub fn _1(self) -> &'a mut W {
774        self.variant(EDREQ_9_A::_1)
775    }
776    #[doc = r"Sets the field bit"]
777    #[inline(always)]
778    pub fn set_bit(self) -> &'a mut W {
779        self.bit(true)
780    }
781    #[doc = r"Clears the field bit"]
782    #[inline(always)]
783    pub fn clear_bit(self) -> &'a mut W {
784        self.bit(false)
785    }
786    #[doc = r"Writes raw bits to the field"]
787    #[inline(always)]
788    pub fn bit(self, value: bool) -> &'a mut W {
789        self.w.bits = (self.w.bits & !(0x01 << 9)) | (((value as u32) & 0x01) << 9);
790        self.w
791    }
792}
793#[doc = "Enable asynchronous DMA request in stop mode for channel 10\n\nValue on reset: 0"]
794#[derive(Clone, Copy, Debug, PartialEq)]
795pub enum EDREQ_10_A {
796    #[doc = "0: Disable asynchronous DMA request for channel 10."]
797    _0,
798    #[doc = "1: Enable asynchronous DMA request for channel 10."]
799    _1,
800}
801impl From<EDREQ_10_A> for bool {
802    #[inline(always)]
803    fn from(variant: EDREQ_10_A) -> Self {
804        match variant {
805            EDREQ_10_A::_0 => false,
806            EDREQ_10_A::_1 => true,
807        }
808    }
809}
810#[doc = "Reader of field `EDREQ_10`"]
811pub type EDREQ_10_R = crate::R<bool, EDREQ_10_A>;
812impl EDREQ_10_R {
813    #[doc = r"Get enumerated values variant"]
814    #[inline(always)]
815    pub fn variant(&self) -> EDREQ_10_A {
816        match self.bits {
817            false => EDREQ_10_A::_0,
818            true => EDREQ_10_A::_1,
819        }
820    }
821    #[doc = "Checks if the value of the field is `_0`"]
822    #[inline(always)]
823    pub fn is_0(&self) -> bool {
824        *self == EDREQ_10_A::_0
825    }
826    #[doc = "Checks if the value of the field is `_1`"]
827    #[inline(always)]
828    pub fn is_1(&self) -> bool {
829        *self == EDREQ_10_A::_1
830    }
831}
832#[doc = "Write proxy for field `EDREQ_10`"]
833pub struct EDREQ_10_W<'a> {
834    w: &'a mut W,
835}
836impl<'a> EDREQ_10_W<'a> {
837    #[doc = r"Writes `variant` to the field"]
838    #[inline(always)]
839    pub fn variant(self, variant: EDREQ_10_A) -> &'a mut W {
840        {
841            self.bit(variant.into())
842        }
843    }
844    #[doc = "Disable asynchronous DMA request for channel 10."]
845    #[inline(always)]
846    pub fn _0(self) -> &'a mut W {
847        self.variant(EDREQ_10_A::_0)
848    }
849    #[doc = "Enable asynchronous DMA request for channel 10."]
850    #[inline(always)]
851    pub fn _1(self) -> &'a mut W {
852        self.variant(EDREQ_10_A::_1)
853    }
854    #[doc = r"Sets the field bit"]
855    #[inline(always)]
856    pub fn set_bit(self) -> &'a mut W {
857        self.bit(true)
858    }
859    #[doc = r"Clears the field bit"]
860    #[inline(always)]
861    pub fn clear_bit(self) -> &'a mut W {
862        self.bit(false)
863    }
864    #[doc = r"Writes raw bits to the field"]
865    #[inline(always)]
866    pub fn bit(self, value: bool) -> &'a mut W {
867        self.w.bits = (self.w.bits & !(0x01 << 10)) | (((value as u32) & 0x01) << 10);
868        self.w
869    }
870}
871#[doc = "Enable asynchronous DMA request in stop mode for channel 11\n\nValue on reset: 0"]
872#[derive(Clone, Copy, Debug, PartialEq)]
873pub enum EDREQ_11_A {
874    #[doc = "0: Disable asynchronous DMA request for channel 11."]
875    _0,
876    #[doc = "1: Enable asynchronous DMA request for channel 11."]
877    _1,
878}
879impl From<EDREQ_11_A> for bool {
880    #[inline(always)]
881    fn from(variant: EDREQ_11_A) -> Self {
882        match variant {
883            EDREQ_11_A::_0 => false,
884            EDREQ_11_A::_1 => true,
885        }
886    }
887}
888#[doc = "Reader of field `EDREQ_11`"]
889pub type EDREQ_11_R = crate::R<bool, EDREQ_11_A>;
890impl EDREQ_11_R {
891    #[doc = r"Get enumerated values variant"]
892    #[inline(always)]
893    pub fn variant(&self) -> EDREQ_11_A {
894        match self.bits {
895            false => EDREQ_11_A::_0,
896            true => EDREQ_11_A::_1,
897        }
898    }
899    #[doc = "Checks if the value of the field is `_0`"]
900    #[inline(always)]
901    pub fn is_0(&self) -> bool {
902        *self == EDREQ_11_A::_0
903    }
904    #[doc = "Checks if the value of the field is `_1`"]
905    #[inline(always)]
906    pub fn is_1(&self) -> bool {
907        *self == EDREQ_11_A::_1
908    }
909}
910#[doc = "Write proxy for field `EDREQ_11`"]
911pub struct EDREQ_11_W<'a> {
912    w: &'a mut W,
913}
914impl<'a> EDREQ_11_W<'a> {
915    #[doc = r"Writes `variant` to the field"]
916    #[inline(always)]
917    pub fn variant(self, variant: EDREQ_11_A) -> &'a mut W {
918        {
919            self.bit(variant.into())
920        }
921    }
922    #[doc = "Disable asynchronous DMA request for channel 11."]
923    #[inline(always)]
924    pub fn _0(self) -> &'a mut W {
925        self.variant(EDREQ_11_A::_0)
926    }
927    #[doc = "Enable asynchronous DMA request for channel 11."]
928    #[inline(always)]
929    pub fn _1(self) -> &'a mut W {
930        self.variant(EDREQ_11_A::_1)
931    }
932    #[doc = r"Sets the field bit"]
933    #[inline(always)]
934    pub fn set_bit(self) -> &'a mut W {
935        self.bit(true)
936    }
937    #[doc = r"Clears the field bit"]
938    #[inline(always)]
939    pub fn clear_bit(self) -> &'a mut W {
940        self.bit(false)
941    }
942    #[doc = r"Writes raw bits to the field"]
943    #[inline(always)]
944    pub fn bit(self, value: bool) -> &'a mut W {
945        self.w.bits = (self.w.bits & !(0x01 << 11)) | (((value as u32) & 0x01) << 11);
946        self.w
947    }
948}
949#[doc = "Enable asynchronous DMA request in stop mode for channel 12\n\nValue on reset: 0"]
950#[derive(Clone, Copy, Debug, PartialEq)]
951pub enum EDREQ_12_A {
952    #[doc = "0: Disable asynchronous DMA request for channel 12."]
953    _0,
954    #[doc = "1: Enable asynchronous DMA request for channel 12."]
955    _1,
956}
957impl From<EDREQ_12_A> for bool {
958    #[inline(always)]
959    fn from(variant: EDREQ_12_A) -> Self {
960        match variant {
961            EDREQ_12_A::_0 => false,
962            EDREQ_12_A::_1 => true,
963        }
964    }
965}
966#[doc = "Reader of field `EDREQ_12`"]
967pub type EDREQ_12_R = crate::R<bool, EDREQ_12_A>;
968impl EDREQ_12_R {
969    #[doc = r"Get enumerated values variant"]
970    #[inline(always)]
971    pub fn variant(&self) -> EDREQ_12_A {
972        match self.bits {
973            false => EDREQ_12_A::_0,
974            true => EDREQ_12_A::_1,
975        }
976    }
977    #[doc = "Checks if the value of the field is `_0`"]
978    #[inline(always)]
979    pub fn is_0(&self) -> bool {
980        *self == EDREQ_12_A::_0
981    }
982    #[doc = "Checks if the value of the field is `_1`"]
983    #[inline(always)]
984    pub fn is_1(&self) -> bool {
985        *self == EDREQ_12_A::_1
986    }
987}
988#[doc = "Write proxy for field `EDREQ_12`"]
989pub struct EDREQ_12_W<'a> {
990    w: &'a mut W,
991}
992impl<'a> EDREQ_12_W<'a> {
993    #[doc = r"Writes `variant` to the field"]
994    #[inline(always)]
995    pub fn variant(self, variant: EDREQ_12_A) -> &'a mut W {
996        {
997            self.bit(variant.into())
998        }
999    }
1000    #[doc = "Disable asynchronous DMA request for channel 12."]
1001    #[inline(always)]
1002    pub fn _0(self) -> &'a mut W {
1003        self.variant(EDREQ_12_A::_0)
1004    }
1005    #[doc = "Enable asynchronous DMA request for channel 12."]
1006    #[inline(always)]
1007    pub fn _1(self) -> &'a mut W {
1008        self.variant(EDREQ_12_A::_1)
1009    }
1010    #[doc = r"Sets the field bit"]
1011    #[inline(always)]
1012    pub fn set_bit(self) -> &'a mut W {
1013        self.bit(true)
1014    }
1015    #[doc = r"Clears the field bit"]
1016    #[inline(always)]
1017    pub fn clear_bit(self) -> &'a mut W {
1018        self.bit(false)
1019    }
1020    #[doc = r"Writes raw bits to the field"]
1021    #[inline(always)]
1022    pub fn bit(self, value: bool) -> &'a mut W {
1023        self.w.bits = (self.w.bits & !(0x01 << 12)) | (((value as u32) & 0x01) << 12);
1024        self.w
1025    }
1026}
1027#[doc = "Enable asynchronous DMA request in stop mode for channel 13\n\nValue on reset: 0"]
1028#[derive(Clone, Copy, Debug, PartialEq)]
1029pub enum EDREQ_13_A {
1030    #[doc = "0: Disable asynchronous DMA request for channel 13."]
1031    _0,
1032    #[doc = "1: Enable asynchronous DMA request for channel 13."]
1033    _1,
1034}
1035impl From<EDREQ_13_A> for bool {
1036    #[inline(always)]
1037    fn from(variant: EDREQ_13_A) -> Self {
1038        match variant {
1039            EDREQ_13_A::_0 => false,
1040            EDREQ_13_A::_1 => true,
1041        }
1042    }
1043}
1044#[doc = "Reader of field `EDREQ_13`"]
1045pub type EDREQ_13_R = crate::R<bool, EDREQ_13_A>;
1046impl EDREQ_13_R {
1047    #[doc = r"Get enumerated values variant"]
1048    #[inline(always)]
1049    pub fn variant(&self) -> EDREQ_13_A {
1050        match self.bits {
1051            false => EDREQ_13_A::_0,
1052            true => EDREQ_13_A::_1,
1053        }
1054    }
1055    #[doc = "Checks if the value of the field is `_0`"]
1056    #[inline(always)]
1057    pub fn is_0(&self) -> bool {
1058        *self == EDREQ_13_A::_0
1059    }
1060    #[doc = "Checks if the value of the field is `_1`"]
1061    #[inline(always)]
1062    pub fn is_1(&self) -> bool {
1063        *self == EDREQ_13_A::_1
1064    }
1065}
1066#[doc = "Write proxy for field `EDREQ_13`"]
1067pub struct EDREQ_13_W<'a> {
1068    w: &'a mut W,
1069}
1070impl<'a> EDREQ_13_W<'a> {
1071    #[doc = r"Writes `variant` to the field"]
1072    #[inline(always)]
1073    pub fn variant(self, variant: EDREQ_13_A) -> &'a mut W {
1074        {
1075            self.bit(variant.into())
1076        }
1077    }
1078    #[doc = "Disable asynchronous DMA request for channel 13."]
1079    #[inline(always)]
1080    pub fn _0(self) -> &'a mut W {
1081        self.variant(EDREQ_13_A::_0)
1082    }
1083    #[doc = "Enable asynchronous DMA request for channel 13."]
1084    #[inline(always)]
1085    pub fn _1(self) -> &'a mut W {
1086        self.variant(EDREQ_13_A::_1)
1087    }
1088    #[doc = r"Sets the field bit"]
1089    #[inline(always)]
1090    pub fn set_bit(self) -> &'a mut W {
1091        self.bit(true)
1092    }
1093    #[doc = r"Clears the field bit"]
1094    #[inline(always)]
1095    pub fn clear_bit(self) -> &'a mut W {
1096        self.bit(false)
1097    }
1098    #[doc = r"Writes raw bits to the field"]
1099    #[inline(always)]
1100    pub fn bit(self, value: bool) -> &'a mut W {
1101        self.w.bits = (self.w.bits & !(0x01 << 13)) | (((value as u32) & 0x01) << 13);
1102        self.w
1103    }
1104}
1105#[doc = "Enable asynchronous DMA request in stop mode for channel 14\n\nValue on reset: 0"]
1106#[derive(Clone, Copy, Debug, PartialEq)]
1107pub enum EDREQ_14_A {
1108    #[doc = "0: Disable asynchronous DMA request for channel 14."]
1109    _0,
1110    #[doc = "1: Enable asynchronous DMA request for channel 14."]
1111    _1,
1112}
1113impl From<EDREQ_14_A> for bool {
1114    #[inline(always)]
1115    fn from(variant: EDREQ_14_A) -> Self {
1116        match variant {
1117            EDREQ_14_A::_0 => false,
1118            EDREQ_14_A::_1 => true,
1119        }
1120    }
1121}
1122#[doc = "Reader of field `EDREQ_14`"]
1123pub type EDREQ_14_R = crate::R<bool, EDREQ_14_A>;
1124impl EDREQ_14_R {
1125    #[doc = r"Get enumerated values variant"]
1126    #[inline(always)]
1127    pub fn variant(&self) -> EDREQ_14_A {
1128        match self.bits {
1129            false => EDREQ_14_A::_0,
1130            true => EDREQ_14_A::_1,
1131        }
1132    }
1133    #[doc = "Checks if the value of the field is `_0`"]
1134    #[inline(always)]
1135    pub fn is_0(&self) -> bool {
1136        *self == EDREQ_14_A::_0
1137    }
1138    #[doc = "Checks if the value of the field is `_1`"]
1139    #[inline(always)]
1140    pub fn is_1(&self) -> bool {
1141        *self == EDREQ_14_A::_1
1142    }
1143}
1144#[doc = "Write proxy for field `EDREQ_14`"]
1145pub struct EDREQ_14_W<'a> {
1146    w: &'a mut W,
1147}
1148impl<'a> EDREQ_14_W<'a> {
1149    #[doc = r"Writes `variant` to the field"]
1150    #[inline(always)]
1151    pub fn variant(self, variant: EDREQ_14_A) -> &'a mut W {
1152        {
1153            self.bit(variant.into())
1154        }
1155    }
1156    #[doc = "Disable asynchronous DMA request for channel 14."]
1157    #[inline(always)]
1158    pub fn _0(self) -> &'a mut W {
1159        self.variant(EDREQ_14_A::_0)
1160    }
1161    #[doc = "Enable asynchronous DMA request for channel 14."]
1162    #[inline(always)]
1163    pub fn _1(self) -> &'a mut W {
1164        self.variant(EDREQ_14_A::_1)
1165    }
1166    #[doc = r"Sets the field bit"]
1167    #[inline(always)]
1168    pub fn set_bit(self) -> &'a mut W {
1169        self.bit(true)
1170    }
1171    #[doc = r"Clears the field bit"]
1172    #[inline(always)]
1173    pub fn clear_bit(self) -> &'a mut W {
1174        self.bit(false)
1175    }
1176    #[doc = r"Writes raw bits to the field"]
1177    #[inline(always)]
1178    pub fn bit(self, value: bool) -> &'a mut W {
1179        self.w.bits = (self.w.bits & !(0x01 << 14)) | (((value as u32) & 0x01) << 14);
1180        self.w
1181    }
1182}
1183#[doc = "Enable asynchronous DMA request in stop mode for channel 15\n\nValue on reset: 0"]
1184#[derive(Clone, Copy, Debug, PartialEq)]
1185pub enum EDREQ_15_A {
1186    #[doc = "0: Disable asynchronous DMA request for channel 15."]
1187    _0,
1188    #[doc = "1: Enable asynchronous DMA request for channel 15."]
1189    _1,
1190}
1191impl From<EDREQ_15_A> for bool {
1192    #[inline(always)]
1193    fn from(variant: EDREQ_15_A) -> Self {
1194        match variant {
1195            EDREQ_15_A::_0 => false,
1196            EDREQ_15_A::_1 => true,
1197        }
1198    }
1199}
1200#[doc = "Reader of field `EDREQ_15`"]
1201pub type EDREQ_15_R = crate::R<bool, EDREQ_15_A>;
1202impl EDREQ_15_R {
1203    #[doc = r"Get enumerated values variant"]
1204    #[inline(always)]
1205    pub fn variant(&self) -> EDREQ_15_A {
1206        match self.bits {
1207            false => EDREQ_15_A::_0,
1208            true => EDREQ_15_A::_1,
1209        }
1210    }
1211    #[doc = "Checks if the value of the field is `_0`"]
1212    #[inline(always)]
1213    pub fn is_0(&self) -> bool {
1214        *self == EDREQ_15_A::_0
1215    }
1216    #[doc = "Checks if the value of the field is `_1`"]
1217    #[inline(always)]
1218    pub fn is_1(&self) -> bool {
1219        *self == EDREQ_15_A::_1
1220    }
1221}
1222#[doc = "Write proxy for field `EDREQ_15`"]
1223pub struct EDREQ_15_W<'a> {
1224    w: &'a mut W,
1225}
1226impl<'a> EDREQ_15_W<'a> {
1227    #[doc = r"Writes `variant` to the field"]
1228    #[inline(always)]
1229    pub fn variant(self, variant: EDREQ_15_A) -> &'a mut W {
1230        {
1231            self.bit(variant.into())
1232        }
1233    }
1234    #[doc = "Disable asynchronous DMA request for channel 15."]
1235    #[inline(always)]
1236    pub fn _0(self) -> &'a mut W {
1237        self.variant(EDREQ_15_A::_0)
1238    }
1239    #[doc = "Enable asynchronous DMA request for channel 15."]
1240    #[inline(always)]
1241    pub fn _1(self) -> &'a mut W {
1242        self.variant(EDREQ_15_A::_1)
1243    }
1244    #[doc = r"Sets the field bit"]
1245    #[inline(always)]
1246    pub fn set_bit(self) -> &'a mut W {
1247        self.bit(true)
1248    }
1249    #[doc = r"Clears the field bit"]
1250    #[inline(always)]
1251    pub fn clear_bit(self) -> &'a mut W {
1252        self.bit(false)
1253    }
1254    #[doc = r"Writes raw bits to the field"]
1255    #[inline(always)]
1256    pub fn bit(self, value: bool) -> &'a mut W {
1257        self.w.bits = (self.w.bits & !(0x01 << 15)) | (((value as u32) & 0x01) << 15);
1258        self.w
1259    }
1260}
1261#[doc = "Enable asynchronous DMA request in stop mode for channel 16\n\nValue on reset: 0"]
1262#[derive(Clone, Copy, Debug, PartialEq)]
1263pub enum EDREQ_16_A {
1264    #[doc = "0: Disable asynchronous DMA request for channel 16"]
1265    _0,
1266    #[doc = "1: Enable asynchronous DMA request for channel 16"]
1267    _1,
1268}
1269impl From<EDREQ_16_A> for bool {
1270    #[inline(always)]
1271    fn from(variant: EDREQ_16_A) -> Self {
1272        match variant {
1273            EDREQ_16_A::_0 => false,
1274            EDREQ_16_A::_1 => true,
1275        }
1276    }
1277}
1278#[doc = "Reader of field `EDREQ_16`"]
1279pub type EDREQ_16_R = crate::R<bool, EDREQ_16_A>;
1280impl EDREQ_16_R {
1281    #[doc = r"Get enumerated values variant"]
1282    #[inline(always)]
1283    pub fn variant(&self) -> EDREQ_16_A {
1284        match self.bits {
1285            false => EDREQ_16_A::_0,
1286            true => EDREQ_16_A::_1,
1287        }
1288    }
1289    #[doc = "Checks if the value of the field is `_0`"]
1290    #[inline(always)]
1291    pub fn is_0(&self) -> bool {
1292        *self == EDREQ_16_A::_0
1293    }
1294    #[doc = "Checks if the value of the field is `_1`"]
1295    #[inline(always)]
1296    pub fn is_1(&self) -> bool {
1297        *self == EDREQ_16_A::_1
1298    }
1299}
1300#[doc = "Write proxy for field `EDREQ_16`"]
1301pub struct EDREQ_16_W<'a> {
1302    w: &'a mut W,
1303}
1304impl<'a> EDREQ_16_W<'a> {
1305    #[doc = r"Writes `variant` to the field"]
1306    #[inline(always)]
1307    pub fn variant(self, variant: EDREQ_16_A) -> &'a mut W {
1308        {
1309            self.bit(variant.into())
1310        }
1311    }
1312    #[doc = "Disable asynchronous DMA request for channel 16"]
1313    #[inline(always)]
1314    pub fn _0(self) -> &'a mut W {
1315        self.variant(EDREQ_16_A::_0)
1316    }
1317    #[doc = "Enable asynchronous DMA request for channel 16"]
1318    #[inline(always)]
1319    pub fn _1(self) -> &'a mut W {
1320        self.variant(EDREQ_16_A::_1)
1321    }
1322    #[doc = r"Sets the field bit"]
1323    #[inline(always)]
1324    pub fn set_bit(self) -> &'a mut W {
1325        self.bit(true)
1326    }
1327    #[doc = r"Clears the field bit"]
1328    #[inline(always)]
1329    pub fn clear_bit(self) -> &'a mut W {
1330        self.bit(false)
1331    }
1332    #[doc = r"Writes raw bits to the field"]
1333    #[inline(always)]
1334    pub fn bit(self, value: bool) -> &'a mut W {
1335        self.w.bits = (self.w.bits & !(0x01 << 16)) | (((value as u32) & 0x01) << 16);
1336        self.w
1337    }
1338}
1339#[doc = "Enable asynchronous DMA request in stop mode for channel 17\n\nValue on reset: 0"]
1340#[derive(Clone, Copy, Debug, PartialEq)]
1341pub enum EDREQ_17_A {
1342    #[doc = "0: Disable asynchronous DMA request for channel 17"]
1343    _0,
1344    #[doc = "1: Enable asynchronous DMA request for channel 17"]
1345    _1,
1346}
1347impl From<EDREQ_17_A> for bool {
1348    #[inline(always)]
1349    fn from(variant: EDREQ_17_A) -> Self {
1350        match variant {
1351            EDREQ_17_A::_0 => false,
1352            EDREQ_17_A::_1 => true,
1353        }
1354    }
1355}
1356#[doc = "Reader of field `EDREQ_17`"]
1357pub type EDREQ_17_R = crate::R<bool, EDREQ_17_A>;
1358impl EDREQ_17_R {
1359    #[doc = r"Get enumerated values variant"]
1360    #[inline(always)]
1361    pub fn variant(&self) -> EDREQ_17_A {
1362        match self.bits {
1363            false => EDREQ_17_A::_0,
1364            true => EDREQ_17_A::_1,
1365        }
1366    }
1367    #[doc = "Checks if the value of the field is `_0`"]
1368    #[inline(always)]
1369    pub fn is_0(&self) -> bool {
1370        *self == EDREQ_17_A::_0
1371    }
1372    #[doc = "Checks if the value of the field is `_1`"]
1373    #[inline(always)]
1374    pub fn is_1(&self) -> bool {
1375        *self == EDREQ_17_A::_1
1376    }
1377}
1378#[doc = "Write proxy for field `EDREQ_17`"]
1379pub struct EDREQ_17_W<'a> {
1380    w: &'a mut W,
1381}
1382impl<'a> EDREQ_17_W<'a> {
1383    #[doc = r"Writes `variant` to the field"]
1384    #[inline(always)]
1385    pub fn variant(self, variant: EDREQ_17_A) -> &'a mut W {
1386        {
1387            self.bit(variant.into())
1388        }
1389    }
1390    #[doc = "Disable asynchronous DMA request for channel 17"]
1391    #[inline(always)]
1392    pub fn _0(self) -> &'a mut W {
1393        self.variant(EDREQ_17_A::_0)
1394    }
1395    #[doc = "Enable asynchronous DMA request for channel 17"]
1396    #[inline(always)]
1397    pub fn _1(self) -> &'a mut W {
1398        self.variant(EDREQ_17_A::_1)
1399    }
1400    #[doc = r"Sets the field bit"]
1401    #[inline(always)]
1402    pub fn set_bit(self) -> &'a mut W {
1403        self.bit(true)
1404    }
1405    #[doc = r"Clears the field bit"]
1406    #[inline(always)]
1407    pub fn clear_bit(self) -> &'a mut W {
1408        self.bit(false)
1409    }
1410    #[doc = r"Writes raw bits to the field"]
1411    #[inline(always)]
1412    pub fn bit(self, value: bool) -> &'a mut W {
1413        self.w.bits = (self.w.bits & !(0x01 << 17)) | (((value as u32) & 0x01) << 17);
1414        self.w
1415    }
1416}
1417#[doc = "Enable asynchronous DMA request in stop mode for channel 18\n\nValue on reset: 0"]
1418#[derive(Clone, Copy, Debug, PartialEq)]
1419pub enum EDREQ_18_A {
1420    #[doc = "0: Disable asynchronous DMA request for channel 18"]
1421    _0,
1422    #[doc = "1: Enable asynchronous DMA request for channel 18"]
1423    _1,
1424}
1425impl From<EDREQ_18_A> for bool {
1426    #[inline(always)]
1427    fn from(variant: EDREQ_18_A) -> Self {
1428        match variant {
1429            EDREQ_18_A::_0 => false,
1430            EDREQ_18_A::_1 => true,
1431        }
1432    }
1433}
1434#[doc = "Reader of field `EDREQ_18`"]
1435pub type EDREQ_18_R = crate::R<bool, EDREQ_18_A>;
1436impl EDREQ_18_R {
1437    #[doc = r"Get enumerated values variant"]
1438    #[inline(always)]
1439    pub fn variant(&self) -> EDREQ_18_A {
1440        match self.bits {
1441            false => EDREQ_18_A::_0,
1442            true => EDREQ_18_A::_1,
1443        }
1444    }
1445    #[doc = "Checks if the value of the field is `_0`"]
1446    #[inline(always)]
1447    pub fn is_0(&self) -> bool {
1448        *self == EDREQ_18_A::_0
1449    }
1450    #[doc = "Checks if the value of the field is `_1`"]
1451    #[inline(always)]
1452    pub fn is_1(&self) -> bool {
1453        *self == EDREQ_18_A::_1
1454    }
1455}
1456#[doc = "Write proxy for field `EDREQ_18`"]
1457pub struct EDREQ_18_W<'a> {
1458    w: &'a mut W,
1459}
1460impl<'a> EDREQ_18_W<'a> {
1461    #[doc = r"Writes `variant` to the field"]
1462    #[inline(always)]
1463    pub fn variant(self, variant: EDREQ_18_A) -> &'a mut W {
1464        {
1465            self.bit(variant.into())
1466        }
1467    }
1468    #[doc = "Disable asynchronous DMA request for channel 18"]
1469    #[inline(always)]
1470    pub fn _0(self) -> &'a mut W {
1471        self.variant(EDREQ_18_A::_0)
1472    }
1473    #[doc = "Enable asynchronous DMA request for channel 18"]
1474    #[inline(always)]
1475    pub fn _1(self) -> &'a mut W {
1476        self.variant(EDREQ_18_A::_1)
1477    }
1478    #[doc = r"Sets the field bit"]
1479    #[inline(always)]
1480    pub fn set_bit(self) -> &'a mut W {
1481        self.bit(true)
1482    }
1483    #[doc = r"Clears the field bit"]
1484    #[inline(always)]
1485    pub fn clear_bit(self) -> &'a mut W {
1486        self.bit(false)
1487    }
1488    #[doc = r"Writes raw bits to the field"]
1489    #[inline(always)]
1490    pub fn bit(self, value: bool) -> &'a mut W {
1491        self.w.bits = (self.w.bits & !(0x01 << 18)) | (((value as u32) & 0x01) << 18);
1492        self.w
1493    }
1494}
1495#[doc = "Enable asynchronous DMA request in stop mode for channel 19\n\nValue on reset: 0"]
1496#[derive(Clone, Copy, Debug, PartialEq)]
1497pub enum EDREQ_19_A {
1498    #[doc = "0: Disable asynchronous DMA request for channel 19"]
1499    _0,
1500    #[doc = "1: Enable asynchronous DMA request for channel 19"]
1501    _1,
1502}
1503impl From<EDREQ_19_A> for bool {
1504    #[inline(always)]
1505    fn from(variant: EDREQ_19_A) -> Self {
1506        match variant {
1507            EDREQ_19_A::_0 => false,
1508            EDREQ_19_A::_1 => true,
1509        }
1510    }
1511}
1512#[doc = "Reader of field `EDREQ_19`"]
1513pub type EDREQ_19_R = crate::R<bool, EDREQ_19_A>;
1514impl EDREQ_19_R {
1515    #[doc = r"Get enumerated values variant"]
1516    #[inline(always)]
1517    pub fn variant(&self) -> EDREQ_19_A {
1518        match self.bits {
1519            false => EDREQ_19_A::_0,
1520            true => EDREQ_19_A::_1,
1521        }
1522    }
1523    #[doc = "Checks if the value of the field is `_0`"]
1524    #[inline(always)]
1525    pub fn is_0(&self) -> bool {
1526        *self == EDREQ_19_A::_0
1527    }
1528    #[doc = "Checks if the value of the field is `_1`"]
1529    #[inline(always)]
1530    pub fn is_1(&self) -> bool {
1531        *self == EDREQ_19_A::_1
1532    }
1533}
1534#[doc = "Write proxy for field `EDREQ_19`"]
1535pub struct EDREQ_19_W<'a> {
1536    w: &'a mut W,
1537}
1538impl<'a> EDREQ_19_W<'a> {
1539    #[doc = r"Writes `variant` to the field"]
1540    #[inline(always)]
1541    pub fn variant(self, variant: EDREQ_19_A) -> &'a mut W {
1542        {
1543            self.bit(variant.into())
1544        }
1545    }
1546    #[doc = "Disable asynchronous DMA request for channel 19"]
1547    #[inline(always)]
1548    pub fn _0(self) -> &'a mut W {
1549        self.variant(EDREQ_19_A::_0)
1550    }
1551    #[doc = "Enable asynchronous DMA request for channel 19"]
1552    #[inline(always)]
1553    pub fn _1(self) -> &'a mut W {
1554        self.variant(EDREQ_19_A::_1)
1555    }
1556    #[doc = r"Sets the field bit"]
1557    #[inline(always)]
1558    pub fn set_bit(self) -> &'a mut W {
1559        self.bit(true)
1560    }
1561    #[doc = r"Clears the field bit"]
1562    #[inline(always)]
1563    pub fn clear_bit(self) -> &'a mut W {
1564        self.bit(false)
1565    }
1566    #[doc = r"Writes raw bits to the field"]
1567    #[inline(always)]
1568    pub fn bit(self, value: bool) -> &'a mut W {
1569        self.w.bits = (self.w.bits & !(0x01 << 19)) | (((value as u32) & 0x01) << 19);
1570        self.w
1571    }
1572}
1573#[doc = "Enable asynchronous DMA request in stop mode for channel 20\n\nValue on reset: 0"]
1574#[derive(Clone, Copy, Debug, PartialEq)]
1575pub enum EDREQ_20_A {
1576    #[doc = "0: Disable asynchronous DMA request for channel 20"]
1577    _0,
1578    #[doc = "1: Enable asynchronous DMA request for channel 20"]
1579    _1,
1580}
1581impl From<EDREQ_20_A> for bool {
1582    #[inline(always)]
1583    fn from(variant: EDREQ_20_A) -> Self {
1584        match variant {
1585            EDREQ_20_A::_0 => false,
1586            EDREQ_20_A::_1 => true,
1587        }
1588    }
1589}
1590#[doc = "Reader of field `EDREQ_20`"]
1591pub type EDREQ_20_R = crate::R<bool, EDREQ_20_A>;
1592impl EDREQ_20_R {
1593    #[doc = r"Get enumerated values variant"]
1594    #[inline(always)]
1595    pub fn variant(&self) -> EDREQ_20_A {
1596        match self.bits {
1597            false => EDREQ_20_A::_0,
1598            true => EDREQ_20_A::_1,
1599        }
1600    }
1601    #[doc = "Checks if the value of the field is `_0`"]
1602    #[inline(always)]
1603    pub fn is_0(&self) -> bool {
1604        *self == EDREQ_20_A::_0
1605    }
1606    #[doc = "Checks if the value of the field is `_1`"]
1607    #[inline(always)]
1608    pub fn is_1(&self) -> bool {
1609        *self == EDREQ_20_A::_1
1610    }
1611}
1612#[doc = "Write proxy for field `EDREQ_20`"]
1613pub struct EDREQ_20_W<'a> {
1614    w: &'a mut W,
1615}
1616impl<'a> EDREQ_20_W<'a> {
1617    #[doc = r"Writes `variant` to the field"]
1618    #[inline(always)]
1619    pub fn variant(self, variant: EDREQ_20_A) -> &'a mut W {
1620        {
1621            self.bit(variant.into())
1622        }
1623    }
1624    #[doc = "Disable asynchronous DMA request for channel 20"]
1625    #[inline(always)]
1626    pub fn _0(self) -> &'a mut W {
1627        self.variant(EDREQ_20_A::_0)
1628    }
1629    #[doc = "Enable asynchronous DMA request for channel 20"]
1630    #[inline(always)]
1631    pub fn _1(self) -> &'a mut W {
1632        self.variant(EDREQ_20_A::_1)
1633    }
1634    #[doc = r"Sets the field bit"]
1635    #[inline(always)]
1636    pub fn set_bit(self) -> &'a mut W {
1637        self.bit(true)
1638    }
1639    #[doc = r"Clears the field bit"]
1640    #[inline(always)]
1641    pub fn clear_bit(self) -> &'a mut W {
1642        self.bit(false)
1643    }
1644    #[doc = r"Writes raw bits to the field"]
1645    #[inline(always)]
1646    pub fn bit(self, value: bool) -> &'a mut W {
1647        self.w.bits = (self.w.bits & !(0x01 << 20)) | (((value as u32) & 0x01) << 20);
1648        self.w
1649    }
1650}
1651#[doc = "Enable asynchronous DMA request in stop mode for channel 21\n\nValue on reset: 0"]
1652#[derive(Clone, Copy, Debug, PartialEq)]
1653pub enum EDREQ_21_A {
1654    #[doc = "0: Disable asynchronous DMA request for channel 21"]
1655    _0,
1656    #[doc = "1: Enable asynchronous DMA request for channel 21"]
1657    _1,
1658}
1659impl From<EDREQ_21_A> for bool {
1660    #[inline(always)]
1661    fn from(variant: EDREQ_21_A) -> Self {
1662        match variant {
1663            EDREQ_21_A::_0 => false,
1664            EDREQ_21_A::_1 => true,
1665        }
1666    }
1667}
1668#[doc = "Reader of field `EDREQ_21`"]
1669pub type EDREQ_21_R = crate::R<bool, EDREQ_21_A>;
1670impl EDREQ_21_R {
1671    #[doc = r"Get enumerated values variant"]
1672    #[inline(always)]
1673    pub fn variant(&self) -> EDREQ_21_A {
1674        match self.bits {
1675            false => EDREQ_21_A::_0,
1676            true => EDREQ_21_A::_1,
1677        }
1678    }
1679    #[doc = "Checks if the value of the field is `_0`"]
1680    #[inline(always)]
1681    pub fn is_0(&self) -> bool {
1682        *self == EDREQ_21_A::_0
1683    }
1684    #[doc = "Checks if the value of the field is `_1`"]
1685    #[inline(always)]
1686    pub fn is_1(&self) -> bool {
1687        *self == EDREQ_21_A::_1
1688    }
1689}
1690#[doc = "Write proxy for field `EDREQ_21`"]
1691pub struct EDREQ_21_W<'a> {
1692    w: &'a mut W,
1693}
1694impl<'a> EDREQ_21_W<'a> {
1695    #[doc = r"Writes `variant` to the field"]
1696    #[inline(always)]
1697    pub fn variant(self, variant: EDREQ_21_A) -> &'a mut W {
1698        {
1699            self.bit(variant.into())
1700        }
1701    }
1702    #[doc = "Disable asynchronous DMA request for channel 21"]
1703    #[inline(always)]
1704    pub fn _0(self) -> &'a mut W {
1705        self.variant(EDREQ_21_A::_0)
1706    }
1707    #[doc = "Enable asynchronous DMA request for channel 21"]
1708    #[inline(always)]
1709    pub fn _1(self) -> &'a mut W {
1710        self.variant(EDREQ_21_A::_1)
1711    }
1712    #[doc = r"Sets the field bit"]
1713    #[inline(always)]
1714    pub fn set_bit(self) -> &'a mut W {
1715        self.bit(true)
1716    }
1717    #[doc = r"Clears the field bit"]
1718    #[inline(always)]
1719    pub fn clear_bit(self) -> &'a mut W {
1720        self.bit(false)
1721    }
1722    #[doc = r"Writes raw bits to the field"]
1723    #[inline(always)]
1724    pub fn bit(self, value: bool) -> &'a mut W {
1725        self.w.bits = (self.w.bits & !(0x01 << 21)) | (((value as u32) & 0x01) << 21);
1726        self.w
1727    }
1728}
1729#[doc = "Enable asynchronous DMA request in stop mode for channel 22\n\nValue on reset: 0"]
1730#[derive(Clone, Copy, Debug, PartialEq)]
1731pub enum EDREQ_22_A {
1732    #[doc = "0: Disable asynchronous DMA request for channel 22"]
1733    _0,
1734    #[doc = "1: Enable asynchronous DMA request for channel 22"]
1735    _1,
1736}
1737impl From<EDREQ_22_A> for bool {
1738    #[inline(always)]
1739    fn from(variant: EDREQ_22_A) -> Self {
1740        match variant {
1741            EDREQ_22_A::_0 => false,
1742            EDREQ_22_A::_1 => true,
1743        }
1744    }
1745}
1746#[doc = "Reader of field `EDREQ_22`"]
1747pub type EDREQ_22_R = crate::R<bool, EDREQ_22_A>;
1748impl EDREQ_22_R {
1749    #[doc = r"Get enumerated values variant"]
1750    #[inline(always)]
1751    pub fn variant(&self) -> EDREQ_22_A {
1752        match self.bits {
1753            false => EDREQ_22_A::_0,
1754            true => EDREQ_22_A::_1,
1755        }
1756    }
1757    #[doc = "Checks if the value of the field is `_0`"]
1758    #[inline(always)]
1759    pub fn is_0(&self) -> bool {
1760        *self == EDREQ_22_A::_0
1761    }
1762    #[doc = "Checks if the value of the field is `_1`"]
1763    #[inline(always)]
1764    pub fn is_1(&self) -> bool {
1765        *self == EDREQ_22_A::_1
1766    }
1767}
1768#[doc = "Write proxy for field `EDREQ_22`"]
1769pub struct EDREQ_22_W<'a> {
1770    w: &'a mut W,
1771}
1772impl<'a> EDREQ_22_W<'a> {
1773    #[doc = r"Writes `variant` to the field"]
1774    #[inline(always)]
1775    pub fn variant(self, variant: EDREQ_22_A) -> &'a mut W {
1776        {
1777            self.bit(variant.into())
1778        }
1779    }
1780    #[doc = "Disable asynchronous DMA request for channel 22"]
1781    #[inline(always)]
1782    pub fn _0(self) -> &'a mut W {
1783        self.variant(EDREQ_22_A::_0)
1784    }
1785    #[doc = "Enable asynchronous DMA request for channel 22"]
1786    #[inline(always)]
1787    pub fn _1(self) -> &'a mut W {
1788        self.variant(EDREQ_22_A::_1)
1789    }
1790    #[doc = r"Sets the field bit"]
1791    #[inline(always)]
1792    pub fn set_bit(self) -> &'a mut W {
1793        self.bit(true)
1794    }
1795    #[doc = r"Clears the field bit"]
1796    #[inline(always)]
1797    pub fn clear_bit(self) -> &'a mut W {
1798        self.bit(false)
1799    }
1800    #[doc = r"Writes raw bits to the field"]
1801    #[inline(always)]
1802    pub fn bit(self, value: bool) -> &'a mut W {
1803        self.w.bits = (self.w.bits & !(0x01 << 22)) | (((value as u32) & 0x01) << 22);
1804        self.w
1805    }
1806}
1807#[doc = "Enable asynchronous DMA request in stop mode for channel 23\n\nValue on reset: 0"]
1808#[derive(Clone, Copy, Debug, PartialEq)]
1809pub enum EDREQ_23_A {
1810    #[doc = "0: Disable asynchronous DMA request for channel 23"]
1811    _0,
1812    #[doc = "1: Enable asynchronous DMA request for channel 23"]
1813    _1,
1814}
1815impl From<EDREQ_23_A> for bool {
1816    #[inline(always)]
1817    fn from(variant: EDREQ_23_A) -> Self {
1818        match variant {
1819            EDREQ_23_A::_0 => false,
1820            EDREQ_23_A::_1 => true,
1821        }
1822    }
1823}
1824#[doc = "Reader of field `EDREQ_23`"]
1825pub type EDREQ_23_R = crate::R<bool, EDREQ_23_A>;
1826impl EDREQ_23_R {
1827    #[doc = r"Get enumerated values variant"]
1828    #[inline(always)]
1829    pub fn variant(&self) -> EDREQ_23_A {
1830        match self.bits {
1831            false => EDREQ_23_A::_0,
1832            true => EDREQ_23_A::_1,
1833        }
1834    }
1835    #[doc = "Checks if the value of the field is `_0`"]
1836    #[inline(always)]
1837    pub fn is_0(&self) -> bool {
1838        *self == EDREQ_23_A::_0
1839    }
1840    #[doc = "Checks if the value of the field is `_1`"]
1841    #[inline(always)]
1842    pub fn is_1(&self) -> bool {
1843        *self == EDREQ_23_A::_1
1844    }
1845}
1846#[doc = "Write proxy for field `EDREQ_23`"]
1847pub struct EDREQ_23_W<'a> {
1848    w: &'a mut W,
1849}
1850impl<'a> EDREQ_23_W<'a> {
1851    #[doc = r"Writes `variant` to the field"]
1852    #[inline(always)]
1853    pub fn variant(self, variant: EDREQ_23_A) -> &'a mut W {
1854        {
1855            self.bit(variant.into())
1856        }
1857    }
1858    #[doc = "Disable asynchronous DMA request for channel 23"]
1859    #[inline(always)]
1860    pub fn _0(self) -> &'a mut W {
1861        self.variant(EDREQ_23_A::_0)
1862    }
1863    #[doc = "Enable asynchronous DMA request for channel 23"]
1864    #[inline(always)]
1865    pub fn _1(self) -> &'a mut W {
1866        self.variant(EDREQ_23_A::_1)
1867    }
1868    #[doc = r"Sets the field bit"]
1869    #[inline(always)]
1870    pub fn set_bit(self) -> &'a mut W {
1871        self.bit(true)
1872    }
1873    #[doc = r"Clears the field bit"]
1874    #[inline(always)]
1875    pub fn clear_bit(self) -> &'a mut W {
1876        self.bit(false)
1877    }
1878    #[doc = r"Writes raw bits to the field"]
1879    #[inline(always)]
1880    pub fn bit(self, value: bool) -> &'a mut W {
1881        self.w.bits = (self.w.bits & !(0x01 << 23)) | (((value as u32) & 0x01) << 23);
1882        self.w
1883    }
1884}
1885#[doc = "Enable asynchronous DMA request in stop mode for channel 24\n\nValue on reset: 0"]
1886#[derive(Clone, Copy, Debug, PartialEq)]
1887pub enum EDREQ_24_A {
1888    #[doc = "0: Disable asynchronous DMA request for channel 24"]
1889    _0,
1890    #[doc = "1: Enable asynchronous DMA request for channel 24"]
1891    _1,
1892}
1893impl From<EDREQ_24_A> for bool {
1894    #[inline(always)]
1895    fn from(variant: EDREQ_24_A) -> Self {
1896        match variant {
1897            EDREQ_24_A::_0 => false,
1898            EDREQ_24_A::_1 => true,
1899        }
1900    }
1901}
1902#[doc = "Reader of field `EDREQ_24`"]
1903pub type EDREQ_24_R = crate::R<bool, EDREQ_24_A>;
1904impl EDREQ_24_R {
1905    #[doc = r"Get enumerated values variant"]
1906    #[inline(always)]
1907    pub fn variant(&self) -> EDREQ_24_A {
1908        match self.bits {
1909            false => EDREQ_24_A::_0,
1910            true => EDREQ_24_A::_1,
1911        }
1912    }
1913    #[doc = "Checks if the value of the field is `_0`"]
1914    #[inline(always)]
1915    pub fn is_0(&self) -> bool {
1916        *self == EDREQ_24_A::_0
1917    }
1918    #[doc = "Checks if the value of the field is `_1`"]
1919    #[inline(always)]
1920    pub fn is_1(&self) -> bool {
1921        *self == EDREQ_24_A::_1
1922    }
1923}
1924#[doc = "Write proxy for field `EDREQ_24`"]
1925pub struct EDREQ_24_W<'a> {
1926    w: &'a mut W,
1927}
1928impl<'a> EDREQ_24_W<'a> {
1929    #[doc = r"Writes `variant` to the field"]
1930    #[inline(always)]
1931    pub fn variant(self, variant: EDREQ_24_A) -> &'a mut W {
1932        {
1933            self.bit(variant.into())
1934        }
1935    }
1936    #[doc = "Disable asynchronous DMA request for channel 24"]
1937    #[inline(always)]
1938    pub fn _0(self) -> &'a mut W {
1939        self.variant(EDREQ_24_A::_0)
1940    }
1941    #[doc = "Enable asynchronous DMA request for channel 24"]
1942    #[inline(always)]
1943    pub fn _1(self) -> &'a mut W {
1944        self.variant(EDREQ_24_A::_1)
1945    }
1946    #[doc = r"Sets the field bit"]
1947    #[inline(always)]
1948    pub fn set_bit(self) -> &'a mut W {
1949        self.bit(true)
1950    }
1951    #[doc = r"Clears the field bit"]
1952    #[inline(always)]
1953    pub fn clear_bit(self) -> &'a mut W {
1954        self.bit(false)
1955    }
1956    #[doc = r"Writes raw bits to the field"]
1957    #[inline(always)]
1958    pub fn bit(self, value: bool) -> &'a mut W {
1959        self.w.bits = (self.w.bits & !(0x01 << 24)) | (((value as u32) & 0x01) << 24);
1960        self.w
1961    }
1962}
1963#[doc = "Enable asynchronous DMA request in stop mode for channel 25\n\nValue on reset: 0"]
1964#[derive(Clone, Copy, Debug, PartialEq)]
1965pub enum EDREQ_25_A {
1966    #[doc = "0: Disable asynchronous DMA request for channel 25"]
1967    _0,
1968    #[doc = "1: Enable asynchronous DMA request for channel 25"]
1969    _1,
1970}
1971impl From<EDREQ_25_A> for bool {
1972    #[inline(always)]
1973    fn from(variant: EDREQ_25_A) -> Self {
1974        match variant {
1975            EDREQ_25_A::_0 => false,
1976            EDREQ_25_A::_1 => true,
1977        }
1978    }
1979}
1980#[doc = "Reader of field `EDREQ_25`"]
1981pub type EDREQ_25_R = crate::R<bool, EDREQ_25_A>;
1982impl EDREQ_25_R {
1983    #[doc = r"Get enumerated values variant"]
1984    #[inline(always)]
1985    pub fn variant(&self) -> EDREQ_25_A {
1986        match self.bits {
1987            false => EDREQ_25_A::_0,
1988            true => EDREQ_25_A::_1,
1989        }
1990    }
1991    #[doc = "Checks if the value of the field is `_0`"]
1992    #[inline(always)]
1993    pub fn is_0(&self) -> bool {
1994        *self == EDREQ_25_A::_0
1995    }
1996    #[doc = "Checks if the value of the field is `_1`"]
1997    #[inline(always)]
1998    pub fn is_1(&self) -> bool {
1999        *self == EDREQ_25_A::_1
2000    }
2001}
2002#[doc = "Write proxy for field `EDREQ_25`"]
2003pub struct EDREQ_25_W<'a> {
2004    w: &'a mut W,
2005}
2006impl<'a> EDREQ_25_W<'a> {
2007    #[doc = r"Writes `variant` to the field"]
2008    #[inline(always)]
2009    pub fn variant(self, variant: EDREQ_25_A) -> &'a mut W {
2010        {
2011            self.bit(variant.into())
2012        }
2013    }
2014    #[doc = "Disable asynchronous DMA request for channel 25"]
2015    #[inline(always)]
2016    pub fn _0(self) -> &'a mut W {
2017        self.variant(EDREQ_25_A::_0)
2018    }
2019    #[doc = "Enable asynchronous DMA request for channel 25"]
2020    #[inline(always)]
2021    pub fn _1(self) -> &'a mut W {
2022        self.variant(EDREQ_25_A::_1)
2023    }
2024    #[doc = r"Sets the field bit"]
2025    #[inline(always)]
2026    pub fn set_bit(self) -> &'a mut W {
2027        self.bit(true)
2028    }
2029    #[doc = r"Clears the field bit"]
2030    #[inline(always)]
2031    pub fn clear_bit(self) -> &'a mut W {
2032        self.bit(false)
2033    }
2034    #[doc = r"Writes raw bits to the field"]
2035    #[inline(always)]
2036    pub fn bit(self, value: bool) -> &'a mut W {
2037        self.w.bits = (self.w.bits & !(0x01 << 25)) | (((value as u32) & 0x01) << 25);
2038        self.w
2039    }
2040}
2041#[doc = "Enable asynchronous DMA request in stop mode for channel 26\n\nValue on reset: 0"]
2042#[derive(Clone, Copy, Debug, PartialEq)]
2043pub enum EDREQ_26_A {
2044    #[doc = "0: Disable asynchronous DMA request for channel 26"]
2045    _0,
2046    #[doc = "1: Enable asynchronous DMA request for channel 26"]
2047    _1,
2048}
2049impl From<EDREQ_26_A> for bool {
2050    #[inline(always)]
2051    fn from(variant: EDREQ_26_A) -> Self {
2052        match variant {
2053            EDREQ_26_A::_0 => false,
2054            EDREQ_26_A::_1 => true,
2055        }
2056    }
2057}
2058#[doc = "Reader of field `EDREQ_26`"]
2059pub type EDREQ_26_R = crate::R<bool, EDREQ_26_A>;
2060impl EDREQ_26_R {
2061    #[doc = r"Get enumerated values variant"]
2062    #[inline(always)]
2063    pub fn variant(&self) -> EDREQ_26_A {
2064        match self.bits {
2065            false => EDREQ_26_A::_0,
2066            true => EDREQ_26_A::_1,
2067        }
2068    }
2069    #[doc = "Checks if the value of the field is `_0`"]
2070    #[inline(always)]
2071    pub fn is_0(&self) -> bool {
2072        *self == EDREQ_26_A::_0
2073    }
2074    #[doc = "Checks if the value of the field is `_1`"]
2075    #[inline(always)]
2076    pub fn is_1(&self) -> bool {
2077        *self == EDREQ_26_A::_1
2078    }
2079}
2080#[doc = "Write proxy for field `EDREQ_26`"]
2081pub struct EDREQ_26_W<'a> {
2082    w: &'a mut W,
2083}
2084impl<'a> EDREQ_26_W<'a> {
2085    #[doc = r"Writes `variant` to the field"]
2086    #[inline(always)]
2087    pub fn variant(self, variant: EDREQ_26_A) -> &'a mut W {
2088        {
2089            self.bit(variant.into())
2090        }
2091    }
2092    #[doc = "Disable asynchronous DMA request for channel 26"]
2093    #[inline(always)]
2094    pub fn _0(self) -> &'a mut W {
2095        self.variant(EDREQ_26_A::_0)
2096    }
2097    #[doc = "Enable asynchronous DMA request for channel 26"]
2098    #[inline(always)]
2099    pub fn _1(self) -> &'a mut W {
2100        self.variant(EDREQ_26_A::_1)
2101    }
2102    #[doc = r"Sets the field bit"]
2103    #[inline(always)]
2104    pub fn set_bit(self) -> &'a mut W {
2105        self.bit(true)
2106    }
2107    #[doc = r"Clears the field bit"]
2108    #[inline(always)]
2109    pub fn clear_bit(self) -> &'a mut W {
2110        self.bit(false)
2111    }
2112    #[doc = r"Writes raw bits to the field"]
2113    #[inline(always)]
2114    pub fn bit(self, value: bool) -> &'a mut W {
2115        self.w.bits = (self.w.bits & !(0x01 << 26)) | (((value as u32) & 0x01) << 26);
2116        self.w
2117    }
2118}
2119#[doc = "Enable asynchronous DMA request in stop mode for channel 27\n\nValue on reset: 0"]
2120#[derive(Clone, Copy, Debug, PartialEq)]
2121pub enum EDREQ_27_A {
2122    #[doc = "0: Disable asynchronous DMA request for channel 27"]
2123    _0,
2124    #[doc = "1: Enable asynchronous DMA request for channel 27"]
2125    _1,
2126}
2127impl From<EDREQ_27_A> for bool {
2128    #[inline(always)]
2129    fn from(variant: EDREQ_27_A) -> Self {
2130        match variant {
2131            EDREQ_27_A::_0 => false,
2132            EDREQ_27_A::_1 => true,
2133        }
2134    }
2135}
2136#[doc = "Reader of field `EDREQ_27`"]
2137pub type EDREQ_27_R = crate::R<bool, EDREQ_27_A>;
2138impl EDREQ_27_R {
2139    #[doc = r"Get enumerated values variant"]
2140    #[inline(always)]
2141    pub fn variant(&self) -> EDREQ_27_A {
2142        match self.bits {
2143            false => EDREQ_27_A::_0,
2144            true => EDREQ_27_A::_1,
2145        }
2146    }
2147    #[doc = "Checks if the value of the field is `_0`"]
2148    #[inline(always)]
2149    pub fn is_0(&self) -> bool {
2150        *self == EDREQ_27_A::_0
2151    }
2152    #[doc = "Checks if the value of the field is `_1`"]
2153    #[inline(always)]
2154    pub fn is_1(&self) -> bool {
2155        *self == EDREQ_27_A::_1
2156    }
2157}
2158#[doc = "Write proxy for field `EDREQ_27`"]
2159pub struct EDREQ_27_W<'a> {
2160    w: &'a mut W,
2161}
2162impl<'a> EDREQ_27_W<'a> {
2163    #[doc = r"Writes `variant` to the field"]
2164    #[inline(always)]
2165    pub fn variant(self, variant: EDREQ_27_A) -> &'a mut W {
2166        {
2167            self.bit(variant.into())
2168        }
2169    }
2170    #[doc = "Disable asynchronous DMA request for channel 27"]
2171    #[inline(always)]
2172    pub fn _0(self) -> &'a mut W {
2173        self.variant(EDREQ_27_A::_0)
2174    }
2175    #[doc = "Enable asynchronous DMA request for channel 27"]
2176    #[inline(always)]
2177    pub fn _1(self) -> &'a mut W {
2178        self.variant(EDREQ_27_A::_1)
2179    }
2180    #[doc = r"Sets the field bit"]
2181    #[inline(always)]
2182    pub fn set_bit(self) -> &'a mut W {
2183        self.bit(true)
2184    }
2185    #[doc = r"Clears the field bit"]
2186    #[inline(always)]
2187    pub fn clear_bit(self) -> &'a mut W {
2188        self.bit(false)
2189    }
2190    #[doc = r"Writes raw bits to the field"]
2191    #[inline(always)]
2192    pub fn bit(self, value: bool) -> &'a mut W {
2193        self.w.bits = (self.w.bits & !(0x01 << 27)) | (((value as u32) & 0x01) << 27);
2194        self.w
2195    }
2196}
2197#[doc = "Enable asynchronous DMA request in stop mode for channel 28\n\nValue on reset: 0"]
2198#[derive(Clone, Copy, Debug, PartialEq)]
2199pub enum EDREQ_28_A {
2200    #[doc = "0: Disable asynchronous DMA request for channel 28"]
2201    _0,
2202    #[doc = "1: Enable asynchronous DMA request for channel 28"]
2203    _1,
2204}
2205impl From<EDREQ_28_A> for bool {
2206    #[inline(always)]
2207    fn from(variant: EDREQ_28_A) -> Self {
2208        match variant {
2209            EDREQ_28_A::_0 => false,
2210            EDREQ_28_A::_1 => true,
2211        }
2212    }
2213}
2214#[doc = "Reader of field `EDREQ_28`"]
2215pub type EDREQ_28_R = crate::R<bool, EDREQ_28_A>;
2216impl EDREQ_28_R {
2217    #[doc = r"Get enumerated values variant"]
2218    #[inline(always)]
2219    pub fn variant(&self) -> EDREQ_28_A {
2220        match self.bits {
2221            false => EDREQ_28_A::_0,
2222            true => EDREQ_28_A::_1,
2223        }
2224    }
2225    #[doc = "Checks if the value of the field is `_0`"]
2226    #[inline(always)]
2227    pub fn is_0(&self) -> bool {
2228        *self == EDREQ_28_A::_0
2229    }
2230    #[doc = "Checks if the value of the field is `_1`"]
2231    #[inline(always)]
2232    pub fn is_1(&self) -> bool {
2233        *self == EDREQ_28_A::_1
2234    }
2235}
2236#[doc = "Write proxy for field `EDREQ_28`"]
2237pub struct EDREQ_28_W<'a> {
2238    w: &'a mut W,
2239}
2240impl<'a> EDREQ_28_W<'a> {
2241    #[doc = r"Writes `variant` to the field"]
2242    #[inline(always)]
2243    pub fn variant(self, variant: EDREQ_28_A) -> &'a mut W {
2244        {
2245            self.bit(variant.into())
2246        }
2247    }
2248    #[doc = "Disable asynchronous DMA request for channel 28"]
2249    #[inline(always)]
2250    pub fn _0(self) -> &'a mut W {
2251        self.variant(EDREQ_28_A::_0)
2252    }
2253    #[doc = "Enable asynchronous DMA request for channel 28"]
2254    #[inline(always)]
2255    pub fn _1(self) -> &'a mut W {
2256        self.variant(EDREQ_28_A::_1)
2257    }
2258    #[doc = r"Sets the field bit"]
2259    #[inline(always)]
2260    pub fn set_bit(self) -> &'a mut W {
2261        self.bit(true)
2262    }
2263    #[doc = r"Clears the field bit"]
2264    #[inline(always)]
2265    pub fn clear_bit(self) -> &'a mut W {
2266        self.bit(false)
2267    }
2268    #[doc = r"Writes raw bits to the field"]
2269    #[inline(always)]
2270    pub fn bit(self, value: bool) -> &'a mut W {
2271        self.w.bits = (self.w.bits & !(0x01 << 28)) | (((value as u32) & 0x01) << 28);
2272        self.w
2273    }
2274}
2275#[doc = "Enable asynchronous DMA request in stop mode for channel 29\n\nValue on reset: 0"]
2276#[derive(Clone, Copy, Debug, PartialEq)]
2277pub enum EDREQ_29_A {
2278    #[doc = "0: Disable asynchronous DMA request for channel 29"]
2279    _0,
2280    #[doc = "1: Enable asynchronous DMA request for channel 29"]
2281    _1,
2282}
2283impl From<EDREQ_29_A> for bool {
2284    #[inline(always)]
2285    fn from(variant: EDREQ_29_A) -> Self {
2286        match variant {
2287            EDREQ_29_A::_0 => false,
2288            EDREQ_29_A::_1 => true,
2289        }
2290    }
2291}
2292#[doc = "Reader of field `EDREQ_29`"]
2293pub type EDREQ_29_R = crate::R<bool, EDREQ_29_A>;
2294impl EDREQ_29_R {
2295    #[doc = r"Get enumerated values variant"]
2296    #[inline(always)]
2297    pub fn variant(&self) -> EDREQ_29_A {
2298        match self.bits {
2299            false => EDREQ_29_A::_0,
2300            true => EDREQ_29_A::_1,
2301        }
2302    }
2303    #[doc = "Checks if the value of the field is `_0`"]
2304    #[inline(always)]
2305    pub fn is_0(&self) -> bool {
2306        *self == EDREQ_29_A::_0
2307    }
2308    #[doc = "Checks if the value of the field is `_1`"]
2309    #[inline(always)]
2310    pub fn is_1(&self) -> bool {
2311        *self == EDREQ_29_A::_1
2312    }
2313}
2314#[doc = "Write proxy for field `EDREQ_29`"]
2315pub struct EDREQ_29_W<'a> {
2316    w: &'a mut W,
2317}
2318impl<'a> EDREQ_29_W<'a> {
2319    #[doc = r"Writes `variant` to the field"]
2320    #[inline(always)]
2321    pub fn variant(self, variant: EDREQ_29_A) -> &'a mut W {
2322        {
2323            self.bit(variant.into())
2324        }
2325    }
2326    #[doc = "Disable asynchronous DMA request for channel 29"]
2327    #[inline(always)]
2328    pub fn _0(self) -> &'a mut W {
2329        self.variant(EDREQ_29_A::_0)
2330    }
2331    #[doc = "Enable asynchronous DMA request for channel 29"]
2332    #[inline(always)]
2333    pub fn _1(self) -> &'a mut W {
2334        self.variant(EDREQ_29_A::_1)
2335    }
2336    #[doc = r"Sets the field bit"]
2337    #[inline(always)]
2338    pub fn set_bit(self) -> &'a mut W {
2339        self.bit(true)
2340    }
2341    #[doc = r"Clears the field bit"]
2342    #[inline(always)]
2343    pub fn clear_bit(self) -> &'a mut W {
2344        self.bit(false)
2345    }
2346    #[doc = r"Writes raw bits to the field"]
2347    #[inline(always)]
2348    pub fn bit(self, value: bool) -> &'a mut W {
2349        self.w.bits = (self.w.bits & !(0x01 << 29)) | (((value as u32) & 0x01) << 29);
2350        self.w
2351    }
2352}
2353#[doc = "Enable asynchronous DMA request in stop mode for channel 30\n\nValue on reset: 0"]
2354#[derive(Clone, Copy, Debug, PartialEq)]
2355pub enum EDREQ_30_A {
2356    #[doc = "0: Disable asynchronous DMA request for channel 30"]
2357    _0,
2358    #[doc = "1: Enable asynchronous DMA request for channel 30"]
2359    _1,
2360}
2361impl From<EDREQ_30_A> for bool {
2362    #[inline(always)]
2363    fn from(variant: EDREQ_30_A) -> Self {
2364        match variant {
2365            EDREQ_30_A::_0 => false,
2366            EDREQ_30_A::_1 => true,
2367        }
2368    }
2369}
2370#[doc = "Reader of field `EDREQ_30`"]
2371pub type EDREQ_30_R = crate::R<bool, EDREQ_30_A>;
2372impl EDREQ_30_R {
2373    #[doc = r"Get enumerated values variant"]
2374    #[inline(always)]
2375    pub fn variant(&self) -> EDREQ_30_A {
2376        match self.bits {
2377            false => EDREQ_30_A::_0,
2378            true => EDREQ_30_A::_1,
2379        }
2380    }
2381    #[doc = "Checks if the value of the field is `_0`"]
2382    #[inline(always)]
2383    pub fn is_0(&self) -> bool {
2384        *self == EDREQ_30_A::_0
2385    }
2386    #[doc = "Checks if the value of the field is `_1`"]
2387    #[inline(always)]
2388    pub fn is_1(&self) -> bool {
2389        *self == EDREQ_30_A::_1
2390    }
2391}
2392#[doc = "Write proxy for field `EDREQ_30`"]
2393pub struct EDREQ_30_W<'a> {
2394    w: &'a mut W,
2395}
2396impl<'a> EDREQ_30_W<'a> {
2397    #[doc = r"Writes `variant` to the field"]
2398    #[inline(always)]
2399    pub fn variant(self, variant: EDREQ_30_A) -> &'a mut W {
2400        {
2401            self.bit(variant.into())
2402        }
2403    }
2404    #[doc = "Disable asynchronous DMA request for channel 30"]
2405    #[inline(always)]
2406    pub fn _0(self) -> &'a mut W {
2407        self.variant(EDREQ_30_A::_0)
2408    }
2409    #[doc = "Enable asynchronous DMA request for channel 30"]
2410    #[inline(always)]
2411    pub fn _1(self) -> &'a mut W {
2412        self.variant(EDREQ_30_A::_1)
2413    }
2414    #[doc = r"Sets the field bit"]
2415    #[inline(always)]
2416    pub fn set_bit(self) -> &'a mut W {
2417        self.bit(true)
2418    }
2419    #[doc = r"Clears the field bit"]
2420    #[inline(always)]
2421    pub fn clear_bit(self) -> &'a mut W {
2422        self.bit(false)
2423    }
2424    #[doc = r"Writes raw bits to the field"]
2425    #[inline(always)]
2426    pub fn bit(self, value: bool) -> &'a mut W {
2427        self.w.bits = (self.w.bits & !(0x01 << 30)) | (((value as u32) & 0x01) << 30);
2428        self.w
2429    }
2430}
2431#[doc = "Enable asynchronous DMA request in stop mode for channel 31\n\nValue on reset: 0"]
2432#[derive(Clone, Copy, Debug, PartialEq)]
2433pub enum EDREQ_31_A {
2434    #[doc = "0: Disable asynchronous DMA request for channel 31"]
2435    _0,
2436    #[doc = "1: Enable asynchronous DMA request for channel 31"]
2437    _1,
2438}
2439impl From<EDREQ_31_A> for bool {
2440    #[inline(always)]
2441    fn from(variant: EDREQ_31_A) -> Self {
2442        match variant {
2443            EDREQ_31_A::_0 => false,
2444            EDREQ_31_A::_1 => true,
2445        }
2446    }
2447}
2448#[doc = "Reader of field `EDREQ_31`"]
2449pub type EDREQ_31_R = crate::R<bool, EDREQ_31_A>;
2450impl EDREQ_31_R {
2451    #[doc = r"Get enumerated values variant"]
2452    #[inline(always)]
2453    pub fn variant(&self) -> EDREQ_31_A {
2454        match self.bits {
2455            false => EDREQ_31_A::_0,
2456            true => EDREQ_31_A::_1,
2457        }
2458    }
2459    #[doc = "Checks if the value of the field is `_0`"]
2460    #[inline(always)]
2461    pub fn is_0(&self) -> bool {
2462        *self == EDREQ_31_A::_0
2463    }
2464    #[doc = "Checks if the value of the field is `_1`"]
2465    #[inline(always)]
2466    pub fn is_1(&self) -> bool {
2467        *self == EDREQ_31_A::_1
2468    }
2469}
2470#[doc = "Write proxy for field `EDREQ_31`"]
2471pub struct EDREQ_31_W<'a> {
2472    w: &'a mut W,
2473}
2474impl<'a> EDREQ_31_W<'a> {
2475    #[doc = r"Writes `variant` to the field"]
2476    #[inline(always)]
2477    pub fn variant(self, variant: EDREQ_31_A) -> &'a mut W {
2478        {
2479            self.bit(variant.into())
2480        }
2481    }
2482    #[doc = "Disable asynchronous DMA request for channel 31"]
2483    #[inline(always)]
2484    pub fn _0(self) -> &'a mut W {
2485        self.variant(EDREQ_31_A::_0)
2486    }
2487    #[doc = "Enable asynchronous DMA request for channel 31"]
2488    #[inline(always)]
2489    pub fn _1(self) -> &'a mut W {
2490        self.variant(EDREQ_31_A::_1)
2491    }
2492    #[doc = r"Sets the field bit"]
2493    #[inline(always)]
2494    pub fn set_bit(self) -> &'a mut W {
2495        self.bit(true)
2496    }
2497    #[doc = r"Clears the field bit"]
2498    #[inline(always)]
2499    pub fn clear_bit(self) -> &'a mut W {
2500        self.bit(false)
2501    }
2502    #[doc = r"Writes raw bits to the field"]
2503    #[inline(always)]
2504    pub fn bit(self, value: bool) -> &'a mut W {
2505        self.w.bits = (self.w.bits & !(0x01 << 31)) | (((value as u32) & 0x01) << 31);
2506        self.w
2507    }
2508}
2509impl R {
2510    #[doc = "Bit 0 - Enable asynchronous DMA request in stop mode for channel 0."]
2511    #[inline(always)]
2512    pub fn edreq_0(&self) -> EDREQ_0_R {
2513        EDREQ_0_R::new((self.bits & 0x01) != 0)
2514    }
2515    #[doc = "Bit 1 - Enable asynchronous DMA request in stop mode for channel 1."]
2516    #[inline(always)]
2517    pub fn edreq_1(&self) -> EDREQ_1_R {
2518        EDREQ_1_R::new(((self.bits >> 1) & 0x01) != 0)
2519    }
2520    #[doc = "Bit 2 - Enable asynchronous DMA request in stop mode for channel 2."]
2521    #[inline(always)]
2522    pub fn edreq_2(&self) -> EDREQ_2_R {
2523        EDREQ_2_R::new(((self.bits >> 2) & 0x01) != 0)
2524    }
2525    #[doc = "Bit 3 - Enable asynchronous DMA request in stop mode for channel 3."]
2526    #[inline(always)]
2527    pub fn edreq_3(&self) -> EDREQ_3_R {
2528        EDREQ_3_R::new(((self.bits >> 3) & 0x01) != 0)
2529    }
2530    #[doc = "Bit 4 - Enable asynchronous DMA request in stop mode for channel 4"]
2531    #[inline(always)]
2532    pub fn edreq_4(&self) -> EDREQ_4_R {
2533        EDREQ_4_R::new(((self.bits >> 4) & 0x01) != 0)
2534    }
2535    #[doc = "Bit 5 - Enable asynchronous DMA request in stop mode for channel 5"]
2536    #[inline(always)]
2537    pub fn edreq_5(&self) -> EDREQ_5_R {
2538        EDREQ_5_R::new(((self.bits >> 5) & 0x01) != 0)
2539    }
2540    #[doc = "Bit 6 - Enable asynchronous DMA request in stop mode for channel 6"]
2541    #[inline(always)]
2542    pub fn edreq_6(&self) -> EDREQ_6_R {
2543        EDREQ_6_R::new(((self.bits >> 6) & 0x01) != 0)
2544    }
2545    #[doc = "Bit 7 - Enable asynchronous DMA request in stop mode for channel 7"]
2546    #[inline(always)]
2547    pub fn edreq_7(&self) -> EDREQ_7_R {
2548        EDREQ_7_R::new(((self.bits >> 7) & 0x01) != 0)
2549    }
2550    #[doc = "Bit 8 - Enable asynchronous DMA request in stop mode for channel 8"]
2551    #[inline(always)]
2552    pub fn edreq_8(&self) -> EDREQ_8_R {
2553        EDREQ_8_R::new(((self.bits >> 8) & 0x01) != 0)
2554    }
2555    #[doc = "Bit 9 - Enable asynchronous DMA request in stop mode for channel 9"]
2556    #[inline(always)]
2557    pub fn edreq_9(&self) -> EDREQ_9_R {
2558        EDREQ_9_R::new(((self.bits >> 9) & 0x01) != 0)
2559    }
2560    #[doc = "Bit 10 - Enable asynchronous DMA request in stop mode for channel 10"]
2561    #[inline(always)]
2562    pub fn edreq_10(&self) -> EDREQ_10_R {
2563        EDREQ_10_R::new(((self.bits >> 10) & 0x01) != 0)
2564    }
2565    #[doc = "Bit 11 - Enable asynchronous DMA request in stop mode for channel 11"]
2566    #[inline(always)]
2567    pub fn edreq_11(&self) -> EDREQ_11_R {
2568        EDREQ_11_R::new(((self.bits >> 11) & 0x01) != 0)
2569    }
2570    #[doc = "Bit 12 - Enable asynchronous DMA request in stop mode for channel 12"]
2571    #[inline(always)]
2572    pub fn edreq_12(&self) -> EDREQ_12_R {
2573        EDREQ_12_R::new(((self.bits >> 12) & 0x01) != 0)
2574    }
2575    #[doc = "Bit 13 - Enable asynchronous DMA request in stop mode for channel 13"]
2576    #[inline(always)]
2577    pub fn edreq_13(&self) -> EDREQ_13_R {
2578        EDREQ_13_R::new(((self.bits >> 13) & 0x01) != 0)
2579    }
2580    #[doc = "Bit 14 - Enable asynchronous DMA request in stop mode for channel 14"]
2581    #[inline(always)]
2582    pub fn edreq_14(&self) -> EDREQ_14_R {
2583        EDREQ_14_R::new(((self.bits >> 14) & 0x01) != 0)
2584    }
2585    #[doc = "Bit 15 - Enable asynchronous DMA request in stop mode for channel 15"]
2586    #[inline(always)]
2587    pub fn edreq_15(&self) -> EDREQ_15_R {
2588        EDREQ_15_R::new(((self.bits >> 15) & 0x01) != 0)
2589    }
2590    #[doc = "Bit 16 - Enable asynchronous DMA request in stop mode for channel 16"]
2591    #[inline(always)]
2592    pub fn edreq_16(&self) -> EDREQ_16_R {
2593        EDREQ_16_R::new(((self.bits >> 16) & 0x01) != 0)
2594    }
2595    #[doc = "Bit 17 - Enable asynchronous DMA request in stop mode for channel 17"]
2596    #[inline(always)]
2597    pub fn edreq_17(&self) -> EDREQ_17_R {
2598        EDREQ_17_R::new(((self.bits >> 17) & 0x01) != 0)
2599    }
2600    #[doc = "Bit 18 - Enable asynchronous DMA request in stop mode for channel 18"]
2601    #[inline(always)]
2602    pub fn edreq_18(&self) -> EDREQ_18_R {
2603        EDREQ_18_R::new(((self.bits >> 18) & 0x01) != 0)
2604    }
2605    #[doc = "Bit 19 - Enable asynchronous DMA request in stop mode for channel 19"]
2606    #[inline(always)]
2607    pub fn edreq_19(&self) -> EDREQ_19_R {
2608        EDREQ_19_R::new(((self.bits >> 19) & 0x01) != 0)
2609    }
2610    #[doc = "Bit 20 - Enable asynchronous DMA request in stop mode for channel 20"]
2611    #[inline(always)]
2612    pub fn edreq_20(&self) -> EDREQ_20_R {
2613        EDREQ_20_R::new(((self.bits >> 20) & 0x01) != 0)
2614    }
2615    #[doc = "Bit 21 - Enable asynchronous DMA request in stop mode for channel 21"]
2616    #[inline(always)]
2617    pub fn edreq_21(&self) -> EDREQ_21_R {
2618        EDREQ_21_R::new(((self.bits >> 21) & 0x01) != 0)
2619    }
2620    #[doc = "Bit 22 - Enable asynchronous DMA request in stop mode for channel 22"]
2621    #[inline(always)]
2622    pub fn edreq_22(&self) -> EDREQ_22_R {
2623        EDREQ_22_R::new(((self.bits >> 22) & 0x01) != 0)
2624    }
2625    #[doc = "Bit 23 - Enable asynchronous DMA request in stop mode for channel 23"]
2626    #[inline(always)]
2627    pub fn edreq_23(&self) -> EDREQ_23_R {
2628        EDREQ_23_R::new(((self.bits >> 23) & 0x01) != 0)
2629    }
2630    #[doc = "Bit 24 - Enable asynchronous DMA request in stop mode for channel 24"]
2631    #[inline(always)]
2632    pub fn edreq_24(&self) -> EDREQ_24_R {
2633        EDREQ_24_R::new(((self.bits >> 24) & 0x01) != 0)
2634    }
2635    #[doc = "Bit 25 - Enable asynchronous DMA request in stop mode for channel 25"]
2636    #[inline(always)]
2637    pub fn edreq_25(&self) -> EDREQ_25_R {
2638        EDREQ_25_R::new(((self.bits >> 25) & 0x01) != 0)
2639    }
2640    #[doc = "Bit 26 - Enable asynchronous DMA request in stop mode for channel 26"]
2641    #[inline(always)]
2642    pub fn edreq_26(&self) -> EDREQ_26_R {
2643        EDREQ_26_R::new(((self.bits >> 26) & 0x01) != 0)
2644    }
2645    #[doc = "Bit 27 - Enable asynchronous DMA request in stop mode for channel 27"]
2646    #[inline(always)]
2647    pub fn edreq_27(&self) -> EDREQ_27_R {
2648        EDREQ_27_R::new(((self.bits >> 27) & 0x01) != 0)
2649    }
2650    #[doc = "Bit 28 - Enable asynchronous DMA request in stop mode for channel 28"]
2651    #[inline(always)]
2652    pub fn edreq_28(&self) -> EDREQ_28_R {
2653        EDREQ_28_R::new(((self.bits >> 28) & 0x01) != 0)
2654    }
2655    #[doc = "Bit 29 - Enable asynchronous DMA request in stop mode for channel 29"]
2656    #[inline(always)]
2657    pub fn edreq_29(&self) -> EDREQ_29_R {
2658        EDREQ_29_R::new(((self.bits >> 29) & 0x01) != 0)
2659    }
2660    #[doc = "Bit 30 - Enable asynchronous DMA request in stop mode for channel 30"]
2661    #[inline(always)]
2662    pub fn edreq_30(&self) -> EDREQ_30_R {
2663        EDREQ_30_R::new(((self.bits >> 30) & 0x01) != 0)
2664    }
2665    #[doc = "Bit 31 - Enable asynchronous DMA request in stop mode for channel 31"]
2666    #[inline(always)]
2667    pub fn edreq_31(&self) -> EDREQ_31_R {
2668        EDREQ_31_R::new(((self.bits >> 31) & 0x01) != 0)
2669    }
2670}
2671impl W {
2672    #[doc = "Bit 0 - Enable asynchronous DMA request in stop mode for channel 0."]
2673    #[inline(always)]
2674    pub fn edreq_0(&mut self) -> EDREQ_0_W {
2675        EDREQ_0_W { w: self }
2676    }
2677    #[doc = "Bit 1 - Enable asynchronous DMA request in stop mode for channel 1."]
2678    #[inline(always)]
2679    pub fn edreq_1(&mut self) -> EDREQ_1_W {
2680        EDREQ_1_W { w: self }
2681    }
2682    #[doc = "Bit 2 - Enable asynchronous DMA request in stop mode for channel 2."]
2683    #[inline(always)]
2684    pub fn edreq_2(&mut self) -> EDREQ_2_W {
2685        EDREQ_2_W { w: self }
2686    }
2687    #[doc = "Bit 3 - Enable asynchronous DMA request in stop mode for channel 3."]
2688    #[inline(always)]
2689    pub fn edreq_3(&mut self) -> EDREQ_3_W {
2690        EDREQ_3_W { w: self }
2691    }
2692    #[doc = "Bit 4 - Enable asynchronous DMA request in stop mode for channel 4"]
2693    #[inline(always)]
2694    pub fn edreq_4(&mut self) -> EDREQ_4_W {
2695        EDREQ_4_W { w: self }
2696    }
2697    #[doc = "Bit 5 - Enable asynchronous DMA request in stop mode for channel 5"]
2698    #[inline(always)]
2699    pub fn edreq_5(&mut self) -> EDREQ_5_W {
2700        EDREQ_5_W { w: self }
2701    }
2702    #[doc = "Bit 6 - Enable asynchronous DMA request in stop mode for channel 6"]
2703    #[inline(always)]
2704    pub fn edreq_6(&mut self) -> EDREQ_6_W {
2705        EDREQ_6_W { w: self }
2706    }
2707    #[doc = "Bit 7 - Enable asynchronous DMA request in stop mode for channel 7"]
2708    #[inline(always)]
2709    pub fn edreq_7(&mut self) -> EDREQ_7_W {
2710        EDREQ_7_W { w: self }
2711    }
2712    #[doc = "Bit 8 - Enable asynchronous DMA request in stop mode for channel 8"]
2713    #[inline(always)]
2714    pub fn edreq_8(&mut self) -> EDREQ_8_W {
2715        EDREQ_8_W { w: self }
2716    }
2717    #[doc = "Bit 9 - Enable asynchronous DMA request in stop mode for channel 9"]
2718    #[inline(always)]
2719    pub fn edreq_9(&mut self) -> EDREQ_9_W {
2720        EDREQ_9_W { w: self }
2721    }
2722    #[doc = "Bit 10 - Enable asynchronous DMA request in stop mode for channel 10"]
2723    #[inline(always)]
2724    pub fn edreq_10(&mut self) -> EDREQ_10_W {
2725        EDREQ_10_W { w: self }
2726    }
2727    #[doc = "Bit 11 - Enable asynchronous DMA request in stop mode for channel 11"]
2728    #[inline(always)]
2729    pub fn edreq_11(&mut self) -> EDREQ_11_W {
2730        EDREQ_11_W { w: self }
2731    }
2732    #[doc = "Bit 12 - Enable asynchronous DMA request in stop mode for channel 12"]
2733    #[inline(always)]
2734    pub fn edreq_12(&mut self) -> EDREQ_12_W {
2735        EDREQ_12_W { w: self }
2736    }
2737    #[doc = "Bit 13 - Enable asynchronous DMA request in stop mode for channel 13"]
2738    #[inline(always)]
2739    pub fn edreq_13(&mut self) -> EDREQ_13_W {
2740        EDREQ_13_W { w: self }
2741    }
2742    #[doc = "Bit 14 - Enable asynchronous DMA request in stop mode for channel 14"]
2743    #[inline(always)]
2744    pub fn edreq_14(&mut self) -> EDREQ_14_W {
2745        EDREQ_14_W { w: self }
2746    }
2747    #[doc = "Bit 15 - Enable asynchronous DMA request in stop mode for channel 15"]
2748    #[inline(always)]
2749    pub fn edreq_15(&mut self) -> EDREQ_15_W {
2750        EDREQ_15_W { w: self }
2751    }
2752    #[doc = "Bit 16 - Enable asynchronous DMA request in stop mode for channel 16"]
2753    #[inline(always)]
2754    pub fn edreq_16(&mut self) -> EDREQ_16_W {
2755        EDREQ_16_W { w: self }
2756    }
2757    #[doc = "Bit 17 - Enable asynchronous DMA request in stop mode for channel 17"]
2758    #[inline(always)]
2759    pub fn edreq_17(&mut self) -> EDREQ_17_W {
2760        EDREQ_17_W { w: self }
2761    }
2762    #[doc = "Bit 18 - Enable asynchronous DMA request in stop mode for channel 18"]
2763    #[inline(always)]
2764    pub fn edreq_18(&mut self) -> EDREQ_18_W {
2765        EDREQ_18_W { w: self }
2766    }
2767    #[doc = "Bit 19 - Enable asynchronous DMA request in stop mode for channel 19"]
2768    #[inline(always)]
2769    pub fn edreq_19(&mut self) -> EDREQ_19_W {
2770        EDREQ_19_W { w: self }
2771    }
2772    #[doc = "Bit 20 - Enable asynchronous DMA request in stop mode for channel 20"]
2773    #[inline(always)]
2774    pub fn edreq_20(&mut self) -> EDREQ_20_W {
2775        EDREQ_20_W { w: self }
2776    }
2777    #[doc = "Bit 21 - Enable asynchronous DMA request in stop mode for channel 21"]
2778    #[inline(always)]
2779    pub fn edreq_21(&mut self) -> EDREQ_21_W {
2780        EDREQ_21_W { w: self }
2781    }
2782    #[doc = "Bit 22 - Enable asynchronous DMA request in stop mode for channel 22"]
2783    #[inline(always)]
2784    pub fn edreq_22(&mut self) -> EDREQ_22_W {
2785        EDREQ_22_W { w: self }
2786    }
2787    #[doc = "Bit 23 - Enable asynchronous DMA request in stop mode for channel 23"]
2788    #[inline(always)]
2789    pub fn edreq_23(&mut self) -> EDREQ_23_W {
2790        EDREQ_23_W { w: self }
2791    }
2792    #[doc = "Bit 24 - Enable asynchronous DMA request in stop mode for channel 24"]
2793    #[inline(always)]
2794    pub fn edreq_24(&mut self) -> EDREQ_24_W {
2795        EDREQ_24_W { w: self }
2796    }
2797    #[doc = "Bit 25 - Enable asynchronous DMA request in stop mode for channel 25"]
2798    #[inline(always)]
2799    pub fn edreq_25(&mut self) -> EDREQ_25_W {
2800        EDREQ_25_W { w: self }
2801    }
2802    #[doc = "Bit 26 - Enable asynchronous DMA request in stop mode for channel 26"]
2803    #[inline(always)]
2804    pub fn edreq_26(&mut self) -> EDREQ_26_W {
2805        EDREQ_26_W { w: self }
2806    }
2807    #[doc = "Bit 27 - Enable asynchronous DMA request in stop mode for channel 27"]
2808    #[inline(always)]
2809    pub fn edreq_27(&mut self) -> EDREQ_27_W {
2810        EDREQ_27_W { w: self }
2811    }
2812    #[doc = "Bit 28 - Enable asynchronous DMA request in stop mode for channel 28"]
2813    #[inline(always)]
2814    pub fn edreq_28(&mut self) -> EDREQ_28_W {
2815        EDREQ_28_W { w: self }
2816    }
2817    #[doc = "Bit 29 - Enable asynchronous DMA request in stop mode for channel 29"]
2818    #[inline(always)]
2819    pub fn edreq_29(&mut self) -> EDREQ_29_W {
2820        EDREQ_29_W { w: self }
2821    }
2822    #[doc = "Bit 30 - Enable asynchronous DMA request in stop mode for channel 30"]
2823    #[inline(always)]
2824    pub fn edreq_30(&mut self) -> EDREQ_30_W {
2825        EDREQ_30_W { w: self }
2826    }
2827    #[doc = "Bit 31 - Enable asynchronous DMA request in stop mode for channel 31"]
2828    #[inline(always)]
2829    pub fn edreq_31(&mut self) -> EDREQ_31_W {
2830        EDREQ_31_W { w: self }
2831    }
2832}