1#[doc = "Register `ENABLECLR0` reader"]
2pub struct R(crate::R<ENABLECLR0_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<ENABLECLR0_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<ENABLECLR0_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<ENABLECLR0_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `ENABLECLR0` writer"]
17pub struct W(crate::W<ENABLECLR0_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<ENABLECLR0_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<ENABLECLR0_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<ENABLECLR0_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `CLR0` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
38pub type CLR0_R = crate::BitReader<CLR0_A>;
39#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq, Eq)]
41pub enum CLR0_A {
42 #[doc = "0: No effect."]
43 NO_EFFECT = 0,
44 #[doc = "1: DMA channel is cleared."]
45 CLEARED = 1,
46}
47impl From<CLR0_A> for bool {
48 #[inline(always)]
49 fn from(variant: CLR0_A) -> Self {
50 variant as u8 != 0
51 }
52}
53impl CLR0_R {
54 #[doc = "Get enumerated values variant"]
55 #[inline(always)]
56 pub fn variant(&self) -> CLR0_A {
57 match self.bits {
58 false => CLR0_A::NO_EFFECT,
59 true => CLR0_A::CLEARED,
60 }
61 }
62 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
63 #[inline(always)]
64 pub fn is_no_effect(&self) -> bool {
65 *self == CLR0_A::NO_EFFECT
66 }
67 #[doc = "Checks if the value of the field is `CLEARED`"]
68 #[inline(always)]
69 pub fn is_cleared(&self) -> bool {
70 *self == CLR0_A::CLEARED
71 }
72}
73#[doc = "Field `CLR0` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
74pub type CLR0_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR0_A, O>;
75impl<'a, const O: u8> CLR0_W<'a, O> {
76 #[doc = "No effect."]
77 #[inline(always)]
78 pub fn no_effect(self) -> &'a mut W {
79 self.variant(CLR0_A::NO_EFFECT)
80 }
81 #[doc = "DMA channel is cleared."]
82 #[inline(always)]
83 pub fn cleared(self) -> &'a mut W {
84 self.variant(CLR0_A::CLEARED)
85 }
86}
87#[doc = "Field `CLR1` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
88pub type CLR1_R = crate::BitReader<CLR1_A>;
89#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
90#[derive(Clone, Copy, Debug, PartialEq, Eq)]
91pub enum CLR1_A {
92 #[doc = "0: No effect."]
93 NO_EFFECT = 0,
94 #[doc = "1: DMA channel is cleared."]
95 CLEARED = 1,
96}
97impl From<CLR1_A> for bool {
98 #[inline(always)]
99 fn from(variant: CLR1_A) -> Self {
100 variant as u8 != 0
101 }
102}
103impl CLR1_R {
104 #[doc = "Get enumerated values variant"]
105 #[inline(always)]
106 pub fn variant(&self) -> CLR1_A {
107 match self.bits {
108 false => CLR1_A::NO_EFFECT,
109 true => CLR1_A::CLEARED,
110 }
111 }
112 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
113 #[inline(always)]
114 pub fn is_no_effect(&self) -> bool {
115 *self == CLR1_A::NO_EFFECT
116 }
117 #[doc = "Checks if the value of the field is `CLEARED`"]
118 #[inline(always)]
119 pub fn is_cleared(&self) -> bool {
120 *self == CLR1_A::CLEARED
121 }
122}
123#[doc = "Field `CLR1` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
124pub type CLR1_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR1_A, O>;
125impl<'a, const O: u8> CLR1_W<'a, O> {
126 #[doc = "No effect."]
127 #[inline(always)]
128 pub fn no_effect(self) -> &'a mut W {
129 self.variant(CLR1_A::NO_EFFECT)
130 }
131 #[doc = "DMA channel is cleared."]
132 #[inline(always)]
133 pub fn cleared(self) -> &'a mut W {
134 self.variant(CLR1_A::CLEARED)
135 }
136}
137#[doc = "Field `CLR2` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
138pub type CLR2_R = crate::BitReader<CLR2_A>;
139#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
140#[derive(Clone, Copy, Debug, PartialEq, Eq)]
141pub enum CLR2_A {
142 #[doc = "0: No effect."]
143 NO_EFFECT = 0,
144 #[doc = "1: DMA channel is cleared."]
145 CLEARED = 1,
146}
147impl From<CLR2_A> for bool {
148 #[inline(always)]
149 fn from(variant: CLR2_A) -> Self {
150 variant as u8 != 0
151 }
152}
153impl CLR2_R {
154 #[doc = "Get enumerated values variant"]
155 #[inline(always)]
156 pub fn variant(&self) -> CLR2_A {
157 match self.bits {
158 false => CLR2_A::NO_EFFECT,
159 true => CLR2_A::CLEARED,
160 }
161 }
162 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
163 #[inline(always)]
164 pub fn is_no_effect(&self) -> bool {
165 *self == CLR2_A::NO_EFFECT
166 }
167 #[doc = "Checks if the value of the field is `CLEARED`"]
168 #[inline(always)]
169 pub fn is_cleared(&self) -> bool {
170 *self == CLR2_A::CLEARED
171 }
172}
173#[doc = "Field `CLR2` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
174pub type CLR2_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR2_A, O>;
175impl<'a, const O: u8> CLR2_W<'a, O> {
176 #[doc = "No effect."]
177 #[inline(always)]
178 pub fn no_effect(self) -> &'a mut W {
179 self.variant(CLR2_A::NO_EFFECT)
180 }
181 #[doc = "DMA channel is cleared."]
182 #[inline(always)]
183 pub fn cleared(self) -> &'a mut W {
184 self.variant(CLR2_A::CLEARED)
185 }
186}
187#[doc = "Field `CLR3` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
188pub type CLR3_R = crate::BitReader<CLR3_A>;
189#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq, Eq)]
191pub enum CLR3_A {
192 #[doc = "0: No effect."]
193 NO_EFFECT = 0,
194 #[doc = "1: DMA channel is cleared."]
195 CLEARED = 1,
196}
197impl From<CLR3_A> for bool {
198 #[inline(always)]
199 fn from(variant: CLR3_A) -> Self {
200 variant as u8 != 0
201 }
202}
203impl CLR3_R {
204 #[doc = "Get enumerated values variant"]
205 #[inline(always)]
206 pub fn variant(&self) -> CLR3_A {
207 match self.bits {
208 false => CLR3_A::NO_EFFECT,
209 true => CLR3_A::CLEARED,
210 }
211 }
212 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
213 #[inline(always)]
214 pub fn is_no_effect(&self) -> bool {
215 *self == CLR3_A::NO_EFFECT
216 }
217 #[doc = "Checks if the value of the field is `CLEARED`"]
218 #[inline(always)]
219 pub fn is_cleared(&self) -> bool {
220 *self == CLR3_A::CLEARED
221 }
222}
223#[doc = "Field `CLR3` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
224pub type CLR3_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR3_A, O>;
225impl<'a, const O: u8> CLR3_W<'a, O> {
226 #[doc = "No effect."]
227 #[inline(always)]
228 pub fn no_effect(self) -> &'a mut W {
229 self.variant(CLR3_A::NO_EFFECT)
230 }
231 #[doc = "DMA channel is cleared."]
232 #[inline(always)]
233 pub fn cleared(self) -> &'a mut W {
234 self.variant(CLR3_A::CLEARED)
235 }
236}
237#[doc = "Field `CLR4` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
238pub type CLR4_R = crate::BitReader<CLR4_A>;
239#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq, Eq)]
241pub enum CLR4_A {
242 #[doc = "0: No effect."]
243 NO_EFFECT = 0,
244 #[doc = "1: DMA channel is cleared."]
245 CLEARED = 1,
246}
247impl From<CLR4_A> for bool {
248 #[inline(always)]
249 fn from(variant: CLR4_A) -> Self {
250 variant as u8 != 0
251 }
252}
253impl CLR4_R {
254 #[doc = "Get enumerated values variant"]
255 #[inline(always)]
256 pub fn variant(&self) -> CLR4_A {
257 match self.bits {
258 false => CLR4_A::NO_EFFECT,
259 true => CLR4_A::CLEARED,
260 }
261 }
262 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
263 #[inline(always)]
264 pub fn is_no_effect(&self) -> bool {
265 *self == CLR4_A::NO_EFFECT
266 }
267 #[doc = "Checks if the value of the field is `CLEARED`"]
268 #[inline(always)]
269 pub fn is_cleared(&self) -> bool {
270 *self == CLR4_A::CLEARED
271 }
272}
273#[doc = "Field `CLR4` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
274pub type CLR4_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR4_A, O>;
275impl<'a, const O: u8> CLR4_W<'a, O> {
276 #[doc = "No effect."]
277 #[inline(always)]
278 pub fn no_effect(self) -> &'a mut W {
279 self.variant(CLR4_A::NO_EFFECT)
280 }
281 #[doc = "DMA channel is cleared."]
282 #[inline(always)]
283 pub fn cleared(self) -> &'a mut W {
284 self.variant(CLR4_A::CLEARED)
285 }
286}
287#[doc = "Field `CLR5` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
288pub type CLR5_R = crate::BitReader<CLR5_A>;
289#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq, Eq)]
291pub enum CLR5_A {
292 #[doc = "0: No effect."]
293 NO_EFFECT = 0,
294 #[doc = "1: DMA channel is cleared."]
295 CLEARED = 1,
296}
297impl From<CLR5_A> for bool {
298 #[inline(always)]
299 fn from(variant: CLR5_A) -> Self {
300 variant as u8 != 0
301 }
302}
303impl CLR5_R {
304 #[doc = "Get enumerated values variant"]
305 #[inline(always)]
306 pub fn variant(&self) -> CLR5_A {
307 match self.bits {
308 false => CLR5_A::NO_EFFECT,
309 true => CLR5_A::CLEARED,
310 }
311 }
312 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
313 #[inline(always)]
314 pub fn is_no_effect(&self) -> bool {
315 *self == CLR5_A::NO_EFFECT
316 }
317 #[doc = "Checks if the value of the field is `CLEARED`"]
318 #[inline(always)]
319 pub fn is_cleared(&self) -> bool {
320 *self == CLR5_A::CLEARED
321 }
322}
323#[doc = "Field `CLR5` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
324pub type CLR5_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR5_A, O>;
325impl<'a, const O: u8> CLR5_W<'a, O> {
326 #[doc = "No effect."]
327 #[inline(always)]
328 pub fn no_effect(self) -> &'a mut W {
329 self.variant(CLR5_A::NO_EFFECT)
330 }
331 #[doc = "DMA channel is cleared."]
332 #[inline(always)]
333 pub fn cleared(self) -> &'a mut W {
334 self.variant(CLR5_A::CLEARED)
335 }
336}
337#[doc = "Field `CLR6` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
338pub type CLR6_R = crate::BitReader<CLR6_A>;
339#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq, Eq)]
341pub enum CLR6_A {
342 #[doc = "0: No effect."]
343 NO_EFFECT = 0,
344 #[doc = "1: DMA channel is cleared."]
345 CLEARED = 1,
346}
347impl From<CLR6_A> for bool {
348 #[inline(always)]
349 fn from(variant: CLR6_A) -> Self {
350 variant as u8 != 0
351 }
352}
353impl CLR6_R {
354 #[doc = "Get enumerated values variant"]
355 #[inline(always)]
356 pub fn variant(&self) -> CLR6_A {
357 match self.bits {
358 false => CLR6_A::NO_EFFECT,
359 true => CLR6_A::CLEARED,
360 }
361 }
362 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
363 #[inline(always)]
364 pub fn is_no_effect(&self) -> bool {
365 *self == CLR6_A::NO_EFFECT
366 }
367 #[doc = "Checks if the value of the field is `CLEARED`"]
368 #[inline(always)]
369 pub fn is_cleared(&self) -> bool {
370 *self == CLR6_A::CLEARED
371 }
372}
373#[doc = "Field `CLR6` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
374pub type CLR6_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR6_A, O>;
375impl<'a, const O: u8> CLR6_W<'a, O> {
376 #[doc = "No effect."]
377 #[inline(always)]
378 pub fn no_effect(self) -> &'a mut W {
379 self.variant(CLR6_A::NO_EFFECT)
380 }
381 #[doc = "DMA channel is cleared."]
382 #[inline(always)]
383 pub fn cleared(self) -> &'a mut W {
384 self.variant(CLR6_A::CLEARED)
385 }
386}
387#[doc = "Field `CLR7` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
388pub type CLR7_R = crate::BitReader<CLR7_A>;
389#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq, Eq)]
391pub enum CLR7_A {
392 #[doc = "0: No effect."]
393 NO_EFFECT = 0,
394 #[doc = "1: DMA channel is cleared."]
395 CLEARED = 1,
396}
397impl From<CLR7_A> for bool {
398 #[inline(always)]
399 fn from(variant: CLR7_A) -> Self {
400 variant as u8 != 0
401 }
402}
403impl CLR7_R {
404 #[doc = "Get enumerated values variant"]
405 #[inline(always)]
406 pub fn variant(&self) -> CLR7_A {
407 match self.bits {
408 false => CLR7_A::NO_EFFECT,
409 true => CLR7_A::CLEARED,
410 }
411 }
412 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
413 #[inline(always)]
414 pub fn is_no_effect(&self) -> bool {
415 *self == CLR7_A::NO_EFFECT
416 }
417 #[doc = "Checks if the value of the field is `CLEARED`"]
418 #[inline(always)]
419 pub fn is_cleared(&self) -> bool {
420 *self == CLR7_A::CLEARED
421 }
422}
423#[doc = "Field `CLR7` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
424pub type CLR7_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR7_A, O>;
425impl<'a, const O: u8> CLR7_W<'a, O> {
426 #[doc = "No effect."]
427 #[inline(always)]
428 pub fn no_effect(self) -> &'a mut W {
429 self.variant(CLR7_A::NO_EFFECT)
430 }
431 #[doc = "DMA channel is cleared."]
432 #[inline(always)]
433 pub fn cleared(self) -> &'a mut W {
434 self.variant(CLR7_A::CLEARED)
435 }
436}
437#[doc = "Field `CLR8` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
438pub type CLR8_R = crate::BitReader<CLR8_A>;
439#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
440#[derive(Clone, Copy, Debug, PartialEq, Eq)]
441pub enum CLR8_A {
442 #[doc = "0: No effect."]
443 NO_EFFECT = 0,
444 #[doc = "1: DMA channel is cleared."]
445 CLEARED = 1,
446}
447impl From<CLR8_A> for bool {
448 #[inline(always)]
449 fn from(variant: CLR8_A) -> Self {
450 variant as u8 != 0
451 }
452}
453impl CLR8_R {
454 #[doc = "Get enumerated values variant"]
455 #[inline(always)]
456 pub fn variant(&self) -> CLR8_A {
457 match self.bits {
458 false => CLR8_A::NO_EFFECT,
459 true => CLR8_A::CLEARED,
460 }
461 }
462 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
463 #[inline(always)]
464 pub fn is_no_effect(&self) -> bool {
465 *self == CLR8_A::NO_EFFECT
466 }
467 #[doc = "Checks if the value of the field is `CLEARED`"]
468 #[inline(always)]
469 pub fn is_cleared(&self) -> bool {
470 *self == CLR8_A::CLEARED
471 }
472}
473#[doc = "Field `CLR8` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
474pub type CLR8_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR8_A, O>;
475impl<'a, const O: u8> CLR8_W<'a, O> {
476 #[doc = "No effect."]
477 #[inline(always)]
478 pub fn no_effect(self) -> &'a mut W {
479 self.variant(CLR8_A::NO_EFFECT)
480 }
481 #[doc = "DMA channel is cleared."]
482 #[inline(always)]
483 pub fn cleared(self) -> &'a mut W {
484 self.variant(CLR8_A::CLEARED)
485 }
486}
487#[doc = "Field `CLR9` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
488pub type CLR9_R = crate::BitReader<CLR9_A>;
489#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
490#[derive(Clone, Copy, Debug, PartialEq, Eq)]
491pub enum CLR9_A {
492 #[doc = "0: No effect."]
493 NO_EFFECT = 0,
494 #[doc = "1: DMA channel is cleared."]
495 CLEARED = 1,
496}
497impl From<CLR9_A> for bool {
498 #[inline(always)]
499 fn from(variant: CLR9_A) -> Self {
500 variant as u8 != 0
501 }
502}
503impl CLR9_R {
504 #[doc = "Get enumerated values variant"]
505 #[inline(always)]
506 pub fn variant(&self) -> CLR9_A {
507 match self.bits {
508 false => CLR9_A::NO_EFFECT,
509 true => CLR9_A::CLEARED,
510 }
511 }
512 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
513 #[inline(always)]
514 pub fn is_no_effect(&self) -> bool {
515 *self == CLR9_A::NO_EFFECT
516 }
517 #[doc = "Checks if the value of the field is `CLEARED`"]
518 #[inline(always)]
519 pub fn is_cleared(&self) -> bool {
520 *self == CLR9_A::CLEARED
521 }
522}
523#[doc = "Field `CLR9` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
524pub type CLR9_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR9_A, O>;
525impl<'a, const O: u8> CLR9_W<'a, O> {
526 #[doc = "No effect."]
527 #[inline(always)]
528 pub fn no_effect(self) -> &'a mut W {
529 self.variant(CLR9_A::NO_EFFECT)
530 }
531 #[doc = "DMA channel is cleared."]
532 #[inline(always)]
533 pub fn cleared(self) -> &'a mut W {
534 self.variant(CLR9_A::CLEARED)
535 }
536}
537#[doc = "Field `CLR10` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
538pub type CLR10_R = crate::BitReader<CLR10_A>;
539#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
540#[derive(Clone, Copy, Debug, PartialEq, Eq)]
541pub enum CLR10_A {
542 #[doc = "0: No effect."]
543 NO_EFFECT = 0,
544 #[doc = "1: DMA channel is cleared."]
545 CLEARED = 1,
546}
547impl From<CLR10_A> for bool {
548 #[inline(always)]
549 fn from(variant: CLR10_A) -> Self {
550 variant as u8 != 0
551 }
552}
553impl CLR10_R {
554 #[doc = "Get enumerated values variant"]
555 #[inline(always)]
556 pub fn variant(&self) -> CLR10_A {
557 match self.bits {
558 false => CLR10_A::NO_EFFECT,
559 true => CLR10_A::CLEARED,
560 }
561 }
562 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
563 #[inline(always)]
564 pub fn is_no_effect(&self) -> bool {
565 *self == CLR10_A::NO_EFFECT
566 }
567 #[doc = "Checks if the value of the field is `CLEARED`"]
568 #[inline(always)]
569 pub fn is_cleared(&self) -> bool {
570 *self == CLR10_A::CLEARED
571 }
572}
573#[doc = "Field `CLR10` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
574pub type CLR10_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR10_A, O>;
575impl<'a, const O: u8> CLR10_W<'a, O> {
576 #[doc = "No effect."]
577 #[inline(always)]
578 pub fn no_effect(self) -> &'a mut W {
579 self.variant(CLR10_A::NO_EFFECT)
580 }
581 #[doc = "DMA channel is cleared."]
582 #[inline(always)]
583 pub fn cleared(self) -> &'a mut W {
584 self.variant(CLR10_A::CLEARED)
585 }
586}
587#[doc = "Field `CLR11` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
588pub type CLR11_R = crate::BitReader<CLR11_A>;
589#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
590#[derive(Clone, Copy, Debug, PartialEq, Eq)]
591pub enum CLR11_A {
592 #[doc = "0: No effect."]
593 NO_EFFECT = 0,
594 #[doc = "1: DMA channel is cleared."]
595 CLEARED = 1,
596}
597impl From<CLR11_A> for bool {
598 #[inline(always)]
599 fn from(variant: CLR11_A) -> Self {
600 variant as u8 != 0
601 }
602}
603impl CLR11_R {
604 #[doc = "Get enumerated values variant"]
605 #[inline(always)]
606 pub fn variant(&self) -> CLR11_A {
607 match self.bits {
608 false => CLR11_A::NO_EFFECT,
609 true => CLR11_A::CLEARED,
610 }
611 }
612 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
613 #[inline(always)]
614 pub fn is_no_effect(&self) -> bool {
615 *self == CLR11_A::NO_EFFECT
616 }
617 #[doc = "Checks if the value of the field is `CLEARED`"]
618 #[inline(always)]
619 pub fn is_cleared(&self) -> bool {
620 *self == CLR11_A::CLEARED
621 }
622}
623#[doc = "Field `CLR11` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
624pub type CLR11_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR11_A, O>;
625impl<'a, const O: u8> CLR11_W<'a, O> {
626 #[doc = "No effect."]
627 #[inline(always)]
628 pub fn no_effect(self) -> &'a mut W {
629 self.variant(CLR11_A::NO_EFFECT)
630 }
631 #[doc = "DMA channel is cleared."]
632 #[inline(always)]
633 pub fn cleared(self) -> &'a mut W {
634 self.variant(CLR11_A::CLEARED)
635 }
636}
637#[doc = "Field `CLR12` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
638pub type CLR12_R = crate::BitReader<CLR12_A>;
639#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
640#[derive(Clone, Copy, Debug, PartialEq, Eq)]
641pub enum CLR12_A {
642 #[doc = "0: No effect."]
643 NO_EFFECT = 0,
644 #[doc = "1: DMA channel is cleared."]
645 CLEARED = 1,
646}
647impl From<CLR12_A> for bool {
648 #[inline(always)]
649 fn from(variant: CLR12_A) -> Self {
650 variant as u8 != 0
651 }
652}
653impl CLR12_R {
654 #[doc = "Get enumerated values variant"]
655 #[inline(always)]
656 pub fn variant(&self) -> CLR12_A {
657 match self.bits {
658 false => CLR12_A::NO_EFFECT,
659 true => CLR12_A::CLEARED,
660 }
661 }
662 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
663 #[inline(always)]
664 pub fn is_no_effect(&self) -> bool {
665 *self == CLR12_A::NO_EFFECT
666 }
667 #[doc = "Checks if the value of the field is `CLEARED`"]
668 #[inline(always)]
669 pub fn is_cleared(&self) -> bool {
670 *self == CLR12_A::CLEARED
671 }
672}
673#[doc = "Field `CLR12` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
674pub type CLR12_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR12_A, O>;
675impl<'a, const O: u8> CLR12_W<'a, O> {
676 #[doc = "No effect."]
677 #[inline(always)]
678 pub fn no_effect(self) -> &'a mut W {
679 self.variant(CLR12_A::NO_EFFECT)
680 }
681 #[doc = "DMA channel is cleared."]
682 #[inline(always)]
683 pub fn cleared(self) -> &'a mut W {
684 self.variant(CLR12_A::CLEARED)
685 }
686}
687#[doc = "Field `CLR13` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
688pub type CLR13_R = crate::BitReader<CLR13_A>;
689#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
690#[derive(Clone, Copy, Debug, PartialEq, Eq)]
691pub enum CLR13_A {
692 #[doc = "0: No effect."]
693 NO_EFFECT = 0,
694 #[doc = "1: DMA channel is cleared."]
695 CLEARED = 1,
696}
697impl From<CLR13_A> for bool {
698 #[inline(always)]
699 fn from(variant: CLR13_A) -> Self {
700 variant as u8 != 0
701 }
702}
703impl CLR13_R {
704 #[doc = "Get enumerated values variant"]
705 #[inline(always)]
706 pub fn variant(&self) -> CLR13_A {
707 match self.bits {
708 false => CLR13_A::NO_EFFECT,
709 true => CLR13_A::CLEARED,
710 }
711 }
712 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
713 #[inline(always)]
714 pub fn is_no_effect(&self) -> bool {
715 *self == CLR13_A::NO_EFFECT
716 }
717 #[doc = "Checks if the value of the field is `CLEARED`"]
718 #[inline(always)]
719 pub fn is_cleared(&self) -> bool {
720 *self == CLR13_A::CLEARED
721 }
722}
723#[doc = "Field `CLR13` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
724pub type CLR13_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR13_A, O>;
725impl<'a, const O: u8> CLR13_W<'a, O> {
726 #[doc = "No effect."]
727 #[inline(always)]
728 pub fn no_effect(self) -> &'a mut W {
729 self.variant(CLR13_A::NO_EFFECT)
730 }
731 #[doc = "DMA channel is cleared."]
732 #[inline(always)]
733 pub fn cleared(self) -> &'a mut W {
734 self.variant(CLR13_A::CLEARED)
735 }
736}
737#[doc = "Field `CLR14` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
738pub type CLR14_R = crate::BitReader<CLR14_A>;
739#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
740#[derive(Clone, Copy, Debug, PartialEq, Eq)]
741pub enum CLR14_A {
742 #[doc = "0: No effect."]
743 NO_EFFECT = 0,
744 #[doc = "1: DMA channel is cleared."]
745 CLEARED = 1,
746}
747impl From<CLR14_A> for bool {
748 #[inline(always)]
749 fn from(variant: CLR14_A) -> Self {
750 variant as u8 != 0
751 }
752}
753impl CLR14_R {
754 #[doc = "Get enumerated values variant"]
755 #[inline(always)]
756 pub fn variant(&self) -> CLR14_A {
757 match self.bits {
758 false => CLR14_A::NO_EFFECT,
759 true => CLR14_A::CLEARED,
760 }
761 }
762 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
763 #[inline(always)]
764 pub fn is_no_effect(&self) -> bool {
765 *self == CLR14_A::NO_EFFECT
766 }
767 #[doc = "Checks if the value of the field is `CLEARED`"]
768 #[inline(always)]
769 pub fn is_cleared(&self) -> bool {
770 *self == CLR14_A::CLEARED
771 }
772}
773#[doc = "Field `CLR14` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
774pub type CLR14_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR14_A, O>;
775impl<'a, const O: u8> CLR14_W<'a, O> {
776 #[doc = "No effect."]
777 #[inline(always)]
778 pub fn no_effect(self) -> &'a mut W {
779 self.variant(CLR14_A::NO_EFFECT)
780 }
781 #[doc = "DMA channel is cleared."]
782 #[inline(always)]
783 pub fn cleared(self) -> &'a mut W {
784 self.variant(CLR14_A::CLEARED)
785 }
786}
787#[doc = "Field `CLR15` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
788pub type CLR15_R = crate::BitReader<CLR15_A>;
789#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
790#[derive(Clone, Copy, Debug, PartialEq, Eq)]
791pub enum CLR15_A {
792 #[doc = "0: No effect."]
793 NO_EFFECT = 0,
794 #[doc = "1: DMA channel is cleared."]
795 CLEARED = 1,
796}
797impl From<CLR15_A> for bool {
798 #[inline(always)]
799 fn from(variant: CLR15_A) -> Self {
800 variant as u8 != 0
801 }
802}
803impl CLR15_R {
804 #[doc = "Get enumerated values variant"]
805 #[inline(always)]
806 pub fn variant(&self) -> CLR15_A {
807 match self.bits {
808 false => CLR15_A::NO_EFFECT,
809 true => CLR15_A::CLEARED,
810 }
811 }
812 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
813 #[inline(always)]
814 pub fn is_no_effect(&self) -> bool {
815 *self == CLR15_A::NO_EFFECT
816 }
817 #[doc = "Checks if the value of the field is `CLEARED`"]
818 #[inline(always)]
819 pub fn is_cleared(&self) -> bool {
820 *self == CLR15_A::CLEARED
821 }
822}
823#[doc = "Field `CLR15` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
824pub type CLR15_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR15_A, O>;
825impl<'a, const O: u8> CLR15_W<'a, O> {
826 #[doc = "No effect."]
827 #[inline(always)]
828 pub fn no_effect(self) -> &'a mut W {
829 self.variant(CLR15_A::NO_EFFECT)
830 }
831 #[doc = "DMA channel is cleared."]
832 #[inline(always)]
833 pub fn cleared(self) -> &'a mut W {
834 self.variant(CLR15_A::CLEARED)
835 }
836}
837#[doc = "Field `CLR16` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
838pub type CLR16_R = crate::BitReader<CLR16_A>;
839#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
840#[derive(Clone, Copy, Debug, PartialEq, Eq)]
841pub enum CLR16_A {
842 #[doc = "0: No effect."]
843 NO_EFFECT = 0,
844 #[doc = "1: DMA channel is cleared."]
845 CLEARED = 1,
846}
847impl From<CLR16_A> for bool {
848 #[inline(always)]
849 fn from(variant: CLR16_A) -> Self {
850 variant as u8 != 0
851 }
852}
853impl CLR16_R {
854 #[doc = "Get enumerated values variant"]
855 #[inline(always)]
856 pub fn variant(&self) -> CLR16_A {
857 match self.bits {
858 false => CLR16_A::NO_EFFECT,
859 true => CLR16_A::CLEARED,
860 }
861 }
862 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
863 #[inline(always)]
864 pub fn is_no_effect(&self) -> bool {
865 *self == CLR16_A::NO_EFFECT
866 }
867 #[doc = "Checks if the value of the field is `CLEARED`"]
868 #[inline(always)]
869 pub fn is_cleared(&self) -> bool {
870 *self == CLR16_A::CLEARED
871 }
872}
873#[doc = "Field `CLR16` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
874pub type CLR16_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR16_A, O>;
875impl<'a, const O: u8> CLR16_W<'a, O> {
876 #[doc = "No effect."]
877 #[inline(always)]
878 pub fn no_effect(self) -> &'a mut W {
879 self.variant(CLR16_A::NO_EFFECT)
880 }
881 #[doc = "DMA channel is cleared."]
882 #[inline(always)]
883 pub fn cleared(self) -> &'a mut W {
884 self.variant(CLR16_A::CLEARED)
885 }
886}
887#[doc = "Field `CLR17` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
888pub type CLR17_R = crate::BitReader<CLR17_A>;
889#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
890#[derive(Clone, Copy, Debug, PartialEq, Eq)]
891pub enum CLR17_A {
892 #[doc = "0: No effect."]
893 NO_EFFECT = 0,
894 #[doc = "1: DMA channel is cleared."]
895 CLEARED = 1,
896}
897impl From<CLR17_A> for bool {
898 #[inline(always)]
899 fn from(variant: CLR17_A) -> Self {
900 variant as u8 != 0
901 }
902}
903impl CLR17_R {
904 #[doc = "Get enumerated values variant"]
905 #[inline(always)]
906 pub fn variant(&self) -> CLR17_A {
907 match self.bits {
908 false => CLR17_A::NO_EFFECT,
909 true => CLR17_A::CLEARED,
910 }
911 }
912 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
913 #[inline(always)]
914 pub fn is_no_effect(&self) -> bool {
915 *self == CLR17_A::NO_EFFECT
916 }
917 #[doc = "Checks if the value of the field is `CLEARED`"]
918 #[inline(always)]
919 pub fn is_cleared(&self) -> bool {
920 *self == CLR17_A::CLEARED
921 }
922}
923#[doc = "Field `CLR17` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
924pub type CLR17_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR17_A, O>;
925impl<'a, const O: u8> CLR17_W<'a, O> {
926 #[doc = "No effect."]
927 #[inline(always)]
928 pub fn no_effect(self) -> &'a mut W {
929 self.variant(CLR17_A::NO_EFFECT)
930 }
931 #[doc = "DMA channel is cleared."]
932 #[inline(always)]
933 pub fn cleared(self) -> &'a mut W {
934 self.variant(CLR17_A::CLEARED)
935 }
936}
937#[doc = "Field `CLR18` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
938pub type CLR18_R = crate::BitReader<CLR18_A>;
939#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
940#[derive(Clone, Copy, Debug, PartialEq, Eq)]
941pub enum CLR18_A {
942 #[doc = "0: No effect."]
943 NO_EFFECT = 0,
944 #[doc = "1: DMA channel is cleared."]
945 CLEARED = 1,
946}
947impl From<CLR18_A> for bool {
948 #[inline(always)]
949 fn from(variant: CLR18_A) -> Self {
950 variant as u8 != 0
951 }
952}
953impl CLR18_R {
954 #[doc = "Get enumerated values variant"]
955 #[inline(always)]
956 pub fn variant(&self) -> CLR18_A {
957 match self.bits {
958 false => CLR18_A::NO_EFFECT,
959 true => CLR18_A::CLEARED,
960 }
961 }
962 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
963 #[inline(always)]
964 pub fn is_no_effect(&self) -> bool {
965 *self == CLR18_A::NO_EFFECT
966 }
967 #[doc = "Checks if the value of the field is `CLEARED`"]
968 #[inline(always)]
969 pub fn is_cleared(&self) -> bool {
970 *self == CLR18_A::CLEARED
971 }
972}
973#[doc = "Field `CLR18` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
974pub type CLR18_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR18_A, O>;
975impl<'a, const O: u8> CLR18_W<'a, O> {
976 #[doc = "No effect."]
977 #[inline(always)]
978 pub fn no_effect(self) -> &'a mut W {
979 self.variant(CLR18_A::NO_EFFECT)
980 }
981 #[doc = "DMA channel is cleared."]
982 #[inline(always)]
983 pub fn cleared(self) -> &'a mut W {
984 self.variant(CLR18_A::CLEARED)
985 }
986}
987#[doc = "Field `CLR19` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
988pub type CLR19_R = crate::BitReader<CLR19_A>;
989#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
990#[derive(Clone, Copy, Debug, PartialEq, Eq)]
991pub enum CLR19_A {
992 #[doc = "0: No effect."]
993 NO_EFFECT = 0,
994 #[doc = "1: DMA channel is cleared."]
995 CLEARED = 1,
996}
997impl From<CLR19_A> for bool {
998 #[inline(always)]
999 fn from(variant: CLR19_A) -> Self {
1000 variant as u8 != 0
1001 }
1002}
1003impl CLR19_R {
1004 #[doc = "Get enumerated values variant"]
1005 #[inline(always)]
1006 pub fn variant(&self) -> CLR19_A {
1007 match self.bits {
1008 false => CLR19_A::NO_EFFECT,
1009 true => CLR19_A::CLEARED,
1010 }
1011 }
1012 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
1013 #[inline(always)]
1014 pub fn is_no_effect(&self) -> bool {
1015 *self == CLR19_A::NO_EFFECT
1016 }
1017 #[doc = "Checks if the value of the field is `CLEARED`"]
1018 #[inline(always)]
1019 pub fn is_cleared(&self) -> bool {
1020 *self == CLR19_A::CLEARED
1021 }
1022}
1023#[doc = "Field `CLR19` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1024pub type CLR19_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR19_A, O>;
1025impl<'a, const O: u8> CLR19_W<'a, O> {
1026 #[doc = "No effect."]
1027 #[inline(always)]
1028 pub fn no_effect(self) -> &'a mut W {
1029 self.variant(CLR19_A::NO_EFFECT)
1030 }
1031 #[doc = "DMA channel is cleared."]
1032 #[inline(always)]
1033 pub fn cleared(self) -> &'a mut W {
1034 self.variant(CLR19_A::CLEARED)
1035 }
1036}
1037#[doc = "Field `CLR20` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1038pub type CLR20_R = crate::BitReader<CLR20_A>;
1039#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
1040#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1041pub enum CLR20_A {
1042 #[doc = "0: No effect."]
1043 NO_EFFECT = 0,
1044 #[doc = "1: DMA channel is cleared."]
1045 CLEARED = 1,
1046}
1047impl From<CLR20_A> for bool {
1048 #[inline(always)]
1049 fn from(variant: CLR20_A) -> Self {
1050 variant as u8 != 0
1051 }
1052}
1053impl CLR20_R {
1054 #[doc = "Get enumerated values variant"]
1055 #[inline(always)]
1056 pub fn variant(&self) -> CLR20_A {
1057 match self.bits {
1058 false => CLR20_A::NO_EFFECT,
1059 true => CLR20_A::CLEARED,
1060 }
1061 }
1062 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
1063 #[inline(always)]
1064 pub fn is_no_effect(&self) -> bool {
1065 *self == CLR20_A::NO_EFFECT
1066 }
1067 #[doc = "Checks if the value of the field is `CLEARED`"]
1068 #[inline(always)]
1069 pub fn is_cleared(&self) -> bool {
1070 *self == CLR20_A::CLEARED
1071 }
1072}
1073#[doc = "Field `CLR20` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1074pub type CLR20_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR20_A, O>;
1075impl<'a, const O: u8> CLR20_W<'a, O> {
1076 #[doc = "No effect."]
1077 #[inline(always)]
1078 pub fn no_effect(self) -> &'a mut W {
1079 self.variant(CLR20_A::NO_EFFECT)
1080 }
1081 #[doc = "DMA channel is cleared."]
1082 #[inline(always)]
1083 pub fn cleared(self) -> &'a mut W {
1084 self.variant(CLR20_A::CLEARED)
1085 }
1086}
1087#[doc = "Field `CLR21` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1088pub type CLR21_R = crate::BitReader<CLR21_A>;
1089#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
1090#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1091pub enum CLR21_A {
1092 #[doc = "0: No effect."]
1093 NO_EFFECT = 0,
1094 #[doc = "1: DMA channel is cleared."]
1095 CLEARED = 1,
1096}
1097impl From<CLR21_A> for bool {
1098 #[inline(always)]
1099 fn from(variant: CLR21_A) -> Self {
1100 variant as u8 != 0
1101 }
1102}
1103impl CLR21_R {
1104 #[doc = "Get enumerated values variant"]
1105 #[inline(always)]
1106 pub fn variant(&self) -> CLR21_A {
1107 match self.bits {
1108 false => CLR21_A::NO_EFFECT,
1109 true => CLR21_A::CLEARED,
1110 }
1111 }
1112 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
1113 #[inline(always)]
1114 pub fn is_no_effect(&self) -> bool {
1115 *self == CLR21_A::NO_EFFECT
1116 }
1117 #[doc = "Checks if the value of the field is `CLEARED`"]
1118 #[inline(always)]
1119 pub fn is_cleared(&self) -> bool {
1120 *self == CLR21_A::CLEARED
1121 }
1122}
1123#[doc = "Field `CLR21` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1124pub type CLR21_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR21_A, O>;
1125impl<'a, const O: u8> CLR21_W<'a, O> {
1126 #[doc = "No effect."]
1127 #[inline(always)]
1128 pub fn no_effect(self) -> &'a mut W {
1129 self.variant(CLR21_A::NO_EFFECT)
1130 }
1131 #[doc = "DMA channel is cleared."]
1132 #[inline(always)]
1133 pub fn cleared(self) -> &'a mut W {
1134 self.variant(CLR21_A::CLEARED)
1135 }
1136}
1137#[doc = "Field `CLR22` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1138pub type CLR22_R = crate::BitReader<CLR22_A>;
1139#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
1140#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1141pub enum CLR22_A {
1142 #[doc = "0: No effect."]
1143 NO_EFFECT = 0,
1144 #[doc = "1: DMA channel is cleared."]
1145 CLEARED = 1,
1146}
1147impl From<CLR22_A> for bool {
1148 #[inline(always)]
1149 fn from(variant: CLR22_A) -> Self {
1150 variant as u8 != 0
1151 }
1152}
1153impl CLR22_R {
1154 #[doc = "Get enumerated values variant"]
1155 #[inline(always)]
1156 pub fn variant(&self) -> CLR22_A {
1157 match self.bits {
1158 false => CLR22_A::NO_EFFECT,
1159 true => CLR22_A::CLEARED,
1160 }
1161 }
1162 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
1163 #[inline(always)]
1164 pub fn is_no_effect(&self) -> bool {
1165 *self == CLR22_A::NO_EFFECT
1166 }
1167 #[doc = "Checks if the value of the field is `CLEARED`"]
1168 #[inline(always)]
1169 pub fn is_cleared(&self) -> bool {
1170 *self == CLR22_A::CLEARED
1171 }
1172}
1173#[doc = "Field `CLR22` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1174pub type CLR22_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR22_A, O>;
1175impl<'a, const O: u8> CLR22_W<'a, O> {
1176 #[doc = "No effect."]
1177 #[inline(always)]
1178 pub fn no_effect(self) -> &'a mut W {
1179 self.variant(CLR22_A::NO_EFFECT)
1180 }
1181 #[doc = "DMA channel is cleared."]
1182 #[inline(always)]
1183 pub fn cleared(self) -> &'a mut W {
1184 self.variant(CLR22_A::CLEARED)
1185 }
1186}
1187#[doc = "Field `CLR23` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1188pub type CLR23_R = crate::BitReader<CLR23_A>;
1189#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
1190#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1191pub enum CLR23_A {
1192 #[doc = "0: No effect."]
1193 NO_EFFECT = 0,
1194 #[doc = "1: DMA channel is cleared."]
1195 CLEARED = 1,
1196}
1197impl From<CLR23_A> for bool {
1198 #[inline(always)]
1199 fn from(variant: CLR23_A) -> Self {
1200 variant as u8 != 0
1201 }
1202}
1203impl CLR23_R {
1204 #[doc = "Get enumerated values variant"]
1205 #[inline(always)]
1206 pub fn variant(&self) -> CLR23_A {
1207 match self.bits {
1208 false => CLR23_A::NO_EFFECT,
1209 true => CLR23_A::CLEARED,
1210 }
1211 }
1212 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
1213 #[inline(always)]
1214 pub fn is_no_effect(&self) -> bool {
1215 *self == CLR23_A::NO_EFFECT
1216 }
1217 #[doc = "Checks if the value of the field is `CLEARED`"]
1218 #[inline(always)]
1219 pub fn is_cleared(&self) -> bool {
1220 *self == CLR23_A::CLEARED
1221 }
1222}
1223#[doc = "Field `CLR23` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1224pub type CLR23_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR23_A, O>;
1225impl<'a, const O: u8> CLR23_W<'a, O> {
1226 #[doc = "No effect."]
1227 #[inline(always)]
1228 pub fn no_effect(self) -> &'a mut W {
1229 self.variant(CLR23_A::NO_EFFECT)
1230 }
1231 #[doc = "DMA channel is cleared."]
1232 #[inline(always)]
1233 pub fn cleared(self) -> &'a mut W {
1234 self.variant(CLR23_A::CLEARED)
1235 }
1236}
1237#[doc = "Field `CLR24` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1238pub type CLR24_R = crate::BitReader<CLR24_A>;
1239#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
1240#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1241pub enum CLR24_A {
1242 #[doc = "0: No effect."]
1243 NO_EFFECT = 0,
1244 #[doc = "1: DMA channel is cleared."]
1245 CLEARED = 1,
1246}
1247impl From<CLR24_A> for bool {
1248 #[inline(always)]
1249 fn from(variant: CLR24_A) -> Self {
1250 variant as u8 != 0
1251 }
1252}
1253impl CLR24_R {
1254 #[doc = "Get enumerated values variant"]
1255 #[inline(always)]
1256 pub fn variant(&self) -> CLR24_A {
1257 match self.bits {
1258 false => CLR24_A::NO_EFFECT,
1259 true => CLR24_A::CLEARED,
1260 }
1261 }
1262 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
1263 #[inline(always)]
1264 pub fn is_no_effect(&self) -> bool {
1265 *self == CLR24_A::NO_EFFECT
1266 }
1267 #[doc = "Checks if the value of the field is `CLEARED`"]
1268 #[inline(always)]
1269 pub fn is_cleared(&self) -> bool {
1270 *self == CLR24_A::CLEARED
1271 }
1272}
1273#[doc = "Field `CLR24` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1274pub type CLR24_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR24_A, O>;
1275impl<'a, const O: u8> CLR24_W<'a, O> {
1276 #[doc = "No effect."]
1277 #[inline(always)]
1278 pub fn no_effect(self) -> &'a mut W {
1279 self.variant(CLR24_A::NO_EFFECT)
1280 }
1281 #[doc = "DMA channel is cleared."]
1282 #[inline(always)]
1283 pub fn cleared(self) -> &'a mut W {
1284 self.variant(CLR24_A::CLEARED)
1285 }
1286}
1287#[doc = "Field `CLR25` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1288pub type CLR25_R = crate::BitReader<CLR25_A>;
1289#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
1290#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1291pub enum CLR25_A {
1292 #[doc = "0: No effect."]
1293 NO_EFFECT = 0,
1294 #[doc = "1: DMA channel is cleared."]
1295 CLEARED = 1,
1296}
1297impl From<CLR25_A> for bool {
1298 #[inline(always)]
1299 fn from(variant: CLR25_A) -> Self {
1300 variant as u8 != 0
1301 }
1302}
1303impl CLR25_R {
1304 #[doc = "Get enumerated values variant"]
1305 #[inline(always)]
1306 pub fn variant(&self) -> CLR25_A {
1307 match self.bits {
1308 false => CLR25_A::NO_EFFECT,
1309 true => CLR25_A::CLEARED,
1310 }
1311 }
1312 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
1313 #[inline(always)]
1314 pub fn is_no_effect(&self) -> bool {
1315 *self == CLR25_A::NO_EFFECT
1316 }
1317 #[doc = "Checks if the value of the field is `CLEARED`"]
1318 #[inline(always)]
1319 pub fn is_cleared(&self) -> bool {
1320 *self == CLR25_A::CLEARED
1321 }
1322}
1323#[doc = "Field `CLR25` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1324pub type CLR25_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR25_A, O>;
1325impl<'a, const O: u8> CLR25_W<'a, O> {
1326 #[doc = "No effect."]
1327 #[inline(always)]
1328 pub fn no_effect(self) -> &'a mut W {
1329 self.variant(CLR25_A::NO_EFFECT)
1330 }
1331 #[doc = "DMA channel is cleared."]
1332 #[inline(always)]
1333 pub fn cleared(self) -> &'a mut W {
1334 self.variant(CLR25_A::CLEARED)
1335 }
1336}
1337#[doc = "Field `CLR26` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1338pub type CLR26_R = crate::BitReader<CLR26_A>;
1339#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
1340#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1341pub enum CLR26_A {
1342 #[doc = "0: No effect."]
1343 NO_EFFECT = 0,
1344 #[doc = "1: DMA channel is cleared."]
1345 CLEARED = 1,
1346}
1347impl From<CLR26_A> for bool {
1348 #[inline(always)]
1349 fn from(variant: CLR26_A) -> Self {
1350 variant as u8 != 0
1351 }
1352}
1353impl CLR26_R {
1354 #[doc = "Get enumerated values variant"]
1355 #[inline(always)]
1356 pub fn variant(&self) -> CLR26_A {
1357 match self.bits {
1358 false => CLR26_A::NO_EFFECT,
1359 true => CLR26_A::CLEARED,
1360 }
1361 }
1362 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
1363 #[inline(always)]
1364 pub fn is_no_effect(&self) -> bool {
1365 *self == CLR26_A::NO_EFFECT
1366 }
1367 #[doc = "Checks if the value of the field is `CLEARED`"]
1368 #[inline(always)]
1369 pub fn is_cleared(&self) -> bool {
1370 *self == CLR26_A::CLEARED
1371 }
1372}
1373#[doc = "Field `CLR26` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1374pub type CLR26_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR26_A, O>;
1375impl<'a, const O: u8> CLR26_W<'a, O> {
1376 #[doc = "No effect."]
1377 #[inline(always)]
1378 pub fn no_effect(self) -> &'a mut W {
1379 self.variant(CLR26_A::NO_EFFECT)
1380 }
1381 #[doc = "DMA channel is cleared."]
1382 #[inline(always)]
1383 pub fn cleared(self) -> &'a mut W {
1384 self.variant(CLR26_A::CLEARED)
1385 }
1386}
1387#[doc = "Field `CLR27` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1388pub type CLR27_R = crate::BitReader<CLR27_A>;
1389#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
1390#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1391pub enum CLR27_A {
1392 #[doc = "0: No effect."]
1393 NO_EFFECT = 0,
1394 #[doc = "1: DMA channel is cleared."]
1395 CLEARED = 1,
1396}
1397impl From<CLR27_A> for bool {
1398 #[inline(always)]
1399 fn from(variant: CLR27_A) -> Self {
1400 variant as u8 != 0
1401 }
1402}
1403impl CLR27_R {
1404 #[doc = "Get enumerated values variant"]
1405 #[inline(always)]
1406 pub fn variant(&self) -> CLR27_A {
1407 match self.bits {
1408 false => CLR27_A::NO_EFFECT,
1409 true => CLR27_A::CLEARED,
1410 }
1411 }
1412 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
1413 #[inline(always)]
1414 pub fn is_no_effect(&self) -> bool {
1415 *self == CLR27_A::NO_EFFECT
1416 }
1417 #[doc = "Checks if the value of the field is `CLEARED`"]
1418 #[inline(always)]
1419 pub fn is_cleared(&self) -> bool {
1420 *self == CLR27_A::CLEARED
1421 }
1422}
1423#[doc = "Field `CLR27` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1424pub type CLR27_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR27_A, O>;
1425impl<'a, const O: u8> CLR27_W<'a, O> {
1426 #[doc = "No effect."]
1427 #[inline(always)]
1428 pub fn no_effect(self) -> &'a mut W {
1429 self.variant(CLR27_A::NO_EFFECT)
1430 }
1431 #[doc = "DMA channel is cleared."]
1432 #[inline(always)]
1433 pub fn cleared(self) -> &'a mut W {
1434 self.variant(CLR27_A::CLEARED)
1435 }
1436}
1437#[doc = "Field `CLR28` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1438pub type CLR28_R = crate::BitReader<CLR28_A>;
1439#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
1440#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1441pub enum CLR28_A {
1442 #[doc = "0: No effect."]
1443 NO_EFFECT = 0,
1444 #[doc = "1: DMA channel is cleared."]
1445 CLEARED = 1,
1446}
1447impl From<CLR28_A> for bool {
1448 #[inline(always)]
1449 fn from(variant: CLR28_A) -> Self {
1450 variant as u8 != 0
1451 }
1452}
1453impl CLR28_R {
1454 #[doc = "Get enumerated values variant"]
1455 #[inline(always)]
1456 pub fn variant(&self) -> CLR28_A {
1457 match self.bits {
1458 false => CLR28_A::NO_EFFECT,
1459 true => CLR28_A::CLEARED,
1460 }
1461 }
1462 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
1463 #[inline(always)]
1464 pub fn is_no_effect(&self) -> bool {
1465 *self == CLR28_A::NO_EFFECT
1466 }
1467 #[doc = "Checks if the value of the field is `CLEARED`"]
1468 #[inline(always)]
1469 pub fn is_cleared(&self) -> bool {
1470 *self == CLR28_A::CLEARED
1471 }
1472}
1473#[doc = "Field `CLR28` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1474pub type CLR28_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR28_A, O>;
1475impl<'a, const O: u8> CLR28_W<'a, O> {
1476 #[doc = "No effect."]
1477 #[inline(always)]
1478 pub fn no_effect(self) -> &'a mut W {
1479 self.variant(CLR28_A::NO_EFFECT)
1480 }
1481 #[doc = "DMA channel is cleared."]
1482 #[inline(always)]
1483 pub fn cleared(self) -> &'a mut W {
1484 self.variant(CLR28_A::CLEARED)
1485 }
1486}
1487#[doc = "Field `CLR29` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1488pub type CLR29_R = crate::BitReader<CLR29_A>;
1489#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
1490#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1491pub enum CLR29_A {
1492 #[doc = "0: No effect."]
1493 NO_EFFECT = 0,
1494 #[doc = "1: DMA channel is cleared."]
1495 CLEARED = 1,
1496}
1497impl From<CLR29_A> for bool {
1498 #[inline(always)]
1499 fn from(variant: CLR29_A) -> Self {
1500 variant as u8 != 0
1501 }
1502}
1503impl CLR29_R {
1504 #[doc = "Get enumerated values variant"]
1505 #[inline(always)]
1506 pub fn variant(&self) -> CLR29_A {
1507 match self.bits {
1508 false => CLR29_A::NO_EFFECT,
1509 true => CLR29_A::CLEARED,
1510 }
1511 }
1512 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
1513 #[inline(always)]
1514 pub fn is_no_effect(&self) -> bool {
1515 *self == CLR29_A::NO_EFFECT
1516 }
1517 #[doc = "Checks if the value of the field is `CLEARED`"]
1518 #[inline(always)]
1519 pub fn is_cleared(&self) -> bool {
1520 *self == CLR29_A::CLEARED
1521 }
1522}
1523#[doc = "Field `CLR29` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1524pub type CLR29_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR29_A, O>;
1525impl<'a, const O: u8> CLR29_W<'a, O> {
1526 #[doc = "No effect."]
1527 #[inline(always)]
1528 pub fn no_effect(self) -> &'a mut W {
1529 self.variant(CLR29_A::NO_EFFECT)
1530 }
1531 #[doc = "DMA channel is cleared."]
1532 #[inline(always)]
1533 pub fn cleared(self) -> &'a mut W {
1534 self.variant(CLR29_A::CLEARED)
1535 }
1536}
1537#[doc = "Field `CLR30` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1538pub type CLR30_R = crate::BitReader<CLR30_A>;
1539#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
1540#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1541pub enum CLR30_A {
1542 #[doc = "0: No effect."]
1543 NO_EFFECT = 0,
1544 #[doc = "1: DMA channel is cleared."]
1545 CLEARED = 1,
1546}
1547impl From<CLR30_A> for bool {
1548 #[inline(always)]
1549 fn from(variant: CLR30_A) -> Self {
1550 variant as u8 != 0
1551 }
1552}
1553impl CLR30_R {
1554 #[doc = "Get enumerated values variant"]
1555 #[inline(always)]
1556 pub fn variant(&self) -> CLR30_A {
1557 match self.bits {
1558 false => CLR30_A::NO_EFFECT,
1559 true => CLR30_A::CLEARED,
1560 }
1561 }
1562 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
1563 #[inline(always)]
1564 pub fn is_no_effect(&self) -> bool {
1565 *self == CLR30_A::NO_EFFECT
1566 }
1567 #[doc = "Checks if the value of the field is `CLEARED`"]
1568 #[inline(always)]
1569 pub fn is_cleared(&self) -> bool {
1570 *self == CLR30_A::CLEARED
1571 }
1572}
1573#[doc = "Field `CLR30` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1574pub type CLR30_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR30_A, O>;
1575impl<'a, const O: u8> CLR30_W<'a, O> {
1576 #[doc = "No effect."]
1577 #[inline(always)]
1578 pub fn no_effect(self) -> &'a mut W {
1579 self.variant(CLR30_A::NO_EFFECT)
1580 }
1581 #[doc = "DMA channel is cleared."]
1582 #[inline(always)]
1583 pub fn cleared(self) -> &'a mut W {
1584 self.variant(CLR30_A::CLEARED)
1585 }
1586}
1587#[doc = "Field `CLR31` reader - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1588pub type CLR31_R = crate::BitReader<CLR31_A>;
1589#[doc = "Writing ones to this register clears the corresponding bits in ENABLESET0.\n\nValue on reset: 0"]
1590#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1591pub enum CLR31_A {
1592 #[doc = "0: No effect."]
1593 NO_EFFECT = 0,
1594 #[doc = "1: DMA channel is cleared."]
1595 CLEARED = 1,
1596}
1597impl From<CLR31_A> for bool {
1598 #[inline(always)]
1599 fn from(variant: CLR31_A) -> Self {
1600 variant as u8 != 0
1601 }
1602}
1603impl CLR31_R {
1604 #[doc = "Get enumerated values variant"]
1605 #[inline(always)]
1606 pub fn variant(&self) -> CLR31_A {
1607 match self.bits {
1608 false => CLR31_A::NO_EFFECT,
1609 true => CLR31_A::CLEARED,
1610 }
1611 }
1612 #[doc = "Checks if the value of the field is `NO_EFFECT`"]
1613 #[inline(always)]
1614 pub fn is_no_effect(&self) -> bool {
1615 *self == CLR31_A::NO_EFFECT
1616 }
1617 #[doc = "Checks if the value of the field is `CLEARED`"]
1618 #[inline(always)]
1619 pub fn is_cleared(&self) -> bool {
1620 *self == CLR31_A::CLEARED
1621 }
1622}
1623#[doc = "Field `CLR31` writer - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1624pub type CLR31_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, ENABLECLR0_SPEC, CLR31_A, O>;
1625impl<'a, const O: u8> CLR31_W<'a, O> {
1626 #[doc = "No effect."]
1627 #[inline(always)]
1628 pub fn no_effect(self) -> &'a mut W {
1629 self.variant(CLR31_A::NO_EFFECT)
1630 }
1631 #[doc = "DMA channel is cleared."]
1632 #[inline(always)]
1633 pub fn cleared(self) -> &'a mut W {
1634 self.variant(CLR31_A::CLEARED)
1635 }
1636}
1637impl R {
1638 #[doc = "Bit 0 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1639 #[inline(always)]
1640 pub fn clr0(&self) -> CLR0_R {
1641 CLR0_R::new((self.bits & 1) != 0)
1642 }
1643 #[doc = "Bit 1 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1644 #[inline(always)]
1645 pub fn clr1(&self) -> CLR1_R {
1646 CLR1_R::new(((self.bits >> 1) & 1) != 0)
1647 }
1648 #[doc = "Bit 2 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1649 #[inline(always)]
1650 pub fn clr2(&self) -> CLR2_R {
1651 CLR2_R::new(((self.bits >> 2) & 1) != 0)
1652 }
1653 #[doc = "Bit 3 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1654 #[inline(always)]
1655 pub fn clr3(&self) -> CLR3_R {
1656 CLR3_R::new(((self.bits >> 3) & 1) != 0)
1657 }
1658 #[doc = "Bit 4 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1659 #[inline(always)]
1660 pub fn clr4(&self) -> CLR4_R {
1661 CLR4_R::new(((self.bits >> 4) & 1) != 0)
1662 }
1663 #[doc = "Bit 5 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1664 #[inline(always)]
1665 pub fn clr5(&self) -> CLR5_R {
1666 CLR5_R::new(((self.bits >> 5) & 1) != 0)
1667 }
1668 #[doc = "Bit 6 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1669 #[inline(always)]
1670 pub fn clr6(&self) -> CLR6_R {
1671 CLR6_R::new(((self.bits >> 6) & 1) != 0)
1672 }
1673 #[doc = "Bit 7 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1674 #[inline(always)]
1675 pub fn clr7(&self) -> CLR7_R {
1676 CLR7_R::new(((self.bits >> 7) & 1) != 0)
1677 }
1678 #[doc = "Bit 8 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1679 #[inline(always)]
1680 pub fn clr8(&self) -> CLR8_R {
1681 CLR8_R::new(((self.bits >> 8) & 1) != 0)
1682 }
1683 #[doc = "Bit 9 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1684 #[inline(always)]
1685 pub fn clr9(&self) -> CLR9_R {
1686 CLR9_R::new(((self.bits >> 9) & 1) != 0)
1687 }
1688 #[doc = "Bit 10 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1689 #[inline(always)]
1690 pub fn clr10(&self) -> CLR10_R {
1691 CLR10_R::new(((self.bits >> 10) & 1) != 0)
1692 }
1693 #[doc = "Bit 11 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1694 #[inline(always)]
1695 pub fn clr11(&self) -> CLR11_R {
1696 CLR11_R::new(((self.bits >> 11) & 1) != 0)
1697 }
1698 #[doc = "Bit 12 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1699 #[inline(always)]
1700 pub fn clr12(&self) -> CLR12_R {
1701 CLR12_R::new(((self.bits >> 12) & 1) != 0)
1702 }
1703 #[doc = "Bit 13 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1704 #[inline(always)]
1705 pub fn clr13(&self) -> CLR13_R {
1706 CLR13_R::new(((self.bits >> 13) & 1) != 0)
1707 }
1708 #[doc = "Bit 14 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1709 #[inline(always)]
1710 pub fn clr14(&self) -> CLR14_R {
1711 CLR14_R::new(((self.bits >> 14) & 1) != 0)
1712 }
1713 #[doc = "Bit 15 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1714 #[inline(always)]
1715 pub fn clr15(&self) -> CLR15_R {
1716 CLR15_R::new(((self.bits >> 15) & 1) != 0)
1717 }
1718 #[doc = "Bit 16 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1719 #[inline(always)]
1720 pub fn clr16(&self) -> CLR16_R {
1721 CLR16_R::new(((self.bits >> 16) & 1) != 0)
1722 }
1723 #[doc = "Bit 17 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1724 #[inline(always)]
1725 pub fn clr17(&self) -> CLR17_R {
1726 CLR17_R::new(((self.bits >> 17) & 1) != 0)
1727 }
1728 #[doc = "Bit 18 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1729 #[inline(always)]
1730 pub fn clr18(&self) -> CLR18_R {
1731 CLR18_R::new(((self.bits >> 18) & 1) != 0)
1732 }
1733 #[doc = "Bit 19 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1734 #[inline(always)]
1735 pub fn clr19(&self) -> CLR19_R {
1736 CLR19_R::new(((self.bits >> 19) & 1) != 0)
1737 }
1738 #[doc = "Bit 20 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1739 #[inline(always)]
1740 pub fn clr20(&self) -> CLR20_R {
1741 CLR20_R::new(((self.bits >> 20) & 1) != 0)
1742 }
1743 #[doc = "Bit 21 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1744 #[inline(always)]
1745 pub fn clr21(&self) -> CLR21_R {
1746 CLR21_R::new(((self.bits >> 21) & 1) != 0)
1747 }
1748 #[doc = "Bit 22 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1749 #[inline(always)]
1750 pub fn clr22(&self) -> CLR22_R {
1751 CLR22_R::new(((self.bits >> 22) & 1) != 0)
1752 }
1753 #[doc = "Bit 23 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1754 #[inline(always)]
1755 pub fn clr23(&self) -> CLR23_R {
1756 CLR23_R::new(((self.bits >> 23) & 1) != 0)
1757 }
1758 #[doc = "Bit 24 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1759 #[inline(always)]
1760 pub fn clr24(&self) -> CLR24_R {
1761 CLR24_R::new(((self.bits >> 24) & 1) != 0)
1762 }
1763 #[doc = "Bit 25 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1764 #[inline(always)]
1765 pub fn clr25(&self) -> CLR25_R {
1766 CLR25_R::new(((self.bits >> 25) & 1) != 0)
1767 }
1768 #[doc = "Bit 26 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1769 #[inline(always)]
1770 pub fn clr26(&self) -> CLR26_R {
1771 CLR26_R::new(((self.bits >> 26) & 1) != 0)
1772 }
1773 #[doc = "Bit 27 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1774 #[inline(always)]
1775 pub fn clr27(&self) -> CLR27_R {
1776 CLR27_R::new(((self.bits >> 27) & 1) != 0)
1777 }
1778 #[doc = "Bit 28 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1779 #[inline(always)]
1780 pub fn clr28(&self) -> CLR28_R {
1781 CLR28_R::new(((self.bits >> 28) & 1) != 0)
1782 }
1783 #[doc = "Bit 29 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1784 #[inline(always)]
1785 pub fn clr29(&self) -> CLR29_R {
1786 CLR29_R::new(((self.bits >> 29) & 1) != 0)
1787 }
1788 #[doc = "Bit 30 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1789 #[inline(always)]
1790 pub fn clr30(&self) -> CLR30_R {
1791 CLR30_R::new(((self.bits >> 30) & 1) != 0)
1792 }
1793 #[doc = "Bit 31 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1794 #[inline(always)]
1795 pub fn clr31(&self) -> CLR31_R {
1796 CLR31_R::new(((self.bits >> 31) & 1) != 0)
1797 }
1798}
1799impl W {
1800 #[doc = "Bit 0 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1801 #[inline(always)]
1802 #[must_use]
1803 pub fn clr0(&mut self) -> CLR0_W<0> {
1804 CLR0_W::new(self)
1805 }
1806 #[doc = "Bit 1 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1807 #[inline(always)]
1808 #[must_use]
1809 pub fn clr1(&mut self) -> CLR1_W<1> {
1810 CLR1_W::new(self)
1811 }
1812 #[doc = "Bit 2 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1813 #[inline(always)]
1814 #[must_use]
1815 pub fn clr2(&mut self) -> CLR2_W<2> {
1816 CLR2_W::new(self)
1817 }
1818 #[doc = "Bit 3 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1819 #[inline(always)]
1820 #[must_use]
1821 pub fn clr3(&mut self) -> CLR3_W<3> {
1822 CLR3_W::new(self)
1823 }
1824 #[doc = "Bit 4 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1825 #[inline(always)]
1826 #[must_use]
1827 pub fn clr4(&mut self) -> CLR4_W<4> {
1828 CLR4_W::new(self)
1829 }
1830 #[doc = "Bit 5 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1831 #[inline(always)]
1832 #[must_use]
1833 pub fn clr5(&mut self) -> CLR5_W<5> {
1834 CLR5_W::new(self)
1835 }
1836 #[doc = "Bit 6 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1837 #[inline(always)]
1838 #[must_use]
1839 pub fn clr6(&mut self) -> CLR6_W<6> {
1840 CLR6_W::new(self)
1841 }
1842 #[doc = "Bit 7 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1843 #[inline(always)]
1844 #[must_use]
1845 pub fn clr7(&mut self) -> CLR7_W<7> {
1846 CLR7_W::new(self)
1847 }
1848 #[doc = "Bit 8 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1849 #[inline(always)]
1850 #[must_use]
1851 pub fn clr8(&mut self) -> CLR8_W<8> {
1852 CLR8_W::new(self)
1853 }
1854 #[doc = "Bit 9 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1855 #[inline(always)]
1856 #[must_use]
1857 pub fn clr9(&mut self) -> CLR9_W<9> {
1858 CLR9_W::new(self)
1859 }
1860 #[doc = "Bit 10 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1861 #[inline(always)]
1862 #[must_use]
1863 pub fn clr10(&mut self) -> CLR10_W<10> {
1864 CLR10_W::new(self)
1865 }
1866 #[doc = "Bit 11 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1867 #[inline(always)]
1868 #[must_use]
1869 pub fn clr11(&mut self) -> CLR11_W<11> {
1870 CLR11_W::new(self)
1871 }
1872 #[doc = "Bit 12 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1873 #[inline(always)]
1874 #[must_use]
1875 pub fn clr12(&mut self) -> CLR12_W<12> {
1876 CLR12_W::new(self)
1877 }
1878 #[doc = "Bit 13 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1879 #[inline(always)]
1880 #[must_use]
1881 pub fn clr13(&mut self) -> CLR13_W<13> {
1882 CLR13_W::new(self)
1883 }
1884 #[doc = "Bit 14 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1885 #[inline(always)]
1886 #[must_use]
1887 pub fn clr14(&mut self) -> CLR14_W<14> {
1888 CLR14_W::new(self)
1889 }
1890 #[doc = "Bit 15 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1891 #[inline(always)]
1892 #[must_use]
1893 pub fn clr15(&mut self) -> CLR15_W<15> {
1894 CLR15_W::new(self)
1895 }
1896 #[doc = "Bit 16 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1897 #[inline(always)]
1898 #[must_use]
1899 pub fn clr16(&mut self) -> CLR16_W<16> {
1900 CLR16_W::new(self)
1901 }
1902 #[doc = "Bit 17 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1903 #[inline(always)]
1904 #[must_use]
1905 pub fn clr17(&mut self) -> CLR17_W<17> {
1906 CLR17_W::new(self)
1907 }
1908 #[doc = "Bit 18 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1909 #[inline(always)]
1910 #[must_use]
1911 pub fn clr18(&mut self) -> CLR18_W<18> {
1912 CLR18_W::new(self)
1913 }
1914 #[doc = "Bit 19 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1915 #[inline(always)]
1916 #[must_use]
1917 pub fn clr19(&mut self) -> CLR19_W<19> {
1918 CLR19_W::new(self)
1919 }
1920 #[doc = "Bit 20 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1921 #[inline(always)]
1922 #[must_use]
1923 pub fn clr20(&mut self) -> CLR20_W<20> {
1924 CLR20_W::new(self)
1925 }
1926 #[doc = "Bit 21 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1927 #[inline(always)]
1928 #[must_use]
1929 pub fn clr21(&mut self) -> CLR21_W<21> {
1930 CLR21_W::new(self)
1931 }
1932 #[doc = "Bit 22 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1933 #[inline(always)]
1934 #[must_use]
1935 pub fn clr22(&mut self) -> CLR22_W<22> {
1936 CLR22_W::new(self)
1937 }
1938 #[doc = "Bit 23 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1939 #[inline(always)]
1940 #[must_use]
1941 pub fn clr23(&mut self) -> CLR23_W<23> {
1942 CLR23_W::new(self)
1943 }
1944 #[doc = "Bit 24 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1945 #[inline(always)]
1946 #[must_use]
1947 pub fn clr24(&mut self) -> CLR24_W<24> {
1948 CLR24_W::new(self)
1949 }
1950 #[doc = "Bit 25 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1951 #[inline(always)]
1952 #[must_use]
1953 pub fn clr25(&mut self) -> CLR25_W<25> {
1954 CLR25_W::new(self)
1955 }
1956 #[doc = "Bit 26 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1957 #[inline(always)]
1958 #[must_use]
1959 pub fn clr26(&mut self) -> CLR26_W<26> {
1960 CLR26_W::new(self)
1961 }
1962 #[doc = "Bit 27 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1963 #[inline(always)]
1964 #[must_use]
1965 pub fn clr27(&mut self) -> CLR27_W<27> {
1966 CLR27_W::new(self)
1967 }
1968 #[doc = "Bit 28 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1969 #[inline(always)]
1970 #[must_use]
1971 pub fn clr28(&mut self) -> CLR28_W<28> {
1972 CLR28_W::new(self)
1973 }
1974 #[doc = "Bit 29 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1975 #[inline(always)]
1976 #[must_use]
1977 pub fn clr29(&mut self) -> CLR29_W<29> {
1978 CLR29_W::new(self)
1979 }
1980 #[doc = "Bit 30 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1981 #[inline(always)]
1982 #[must_use]
1983 pub fn clr30(&mut self) -> CLR30_W<30> {
1984 CLR30_W::new(self)
1985 }
1986 #[doc = "Bit 31 - Writing ones to this register clears the corresponding bits in ENABLESET0."]
1987 #[inline(always)]
1988 #[must_use]
1989 pub fn clr31(&mut self) -> CLR31_W<31> {
1990 CLR31_W::new(self)
1991 }
1992 #[doc = "Writes raw bits to the register."]
1993 #[inline(always)]
1994 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1995 self.0.bits(bits);
1996 self
1997 }
1998}
1999#[doc = "Channel Enable Clear for all DMA channels\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [enableclr0](index.html) module"]
2000pub struct ENABLECLR0_SPEC;
2001impl crate::RegisterSpec for ENABLECLR0_SPEC {
2002 type Ux = u32;
2003}
2004#[doc = "`read()` method returns [enableclr0::R](R) reader structure"]
2005impl crate::Readable for ENABLECLR0_SPEC {
2006 type Reader = R;
2007}
2008#[doc = "`write(|w| ..)` method takes [enableclr0::W](W) writer structure"]
2009impl crate::Writable for ENABLECLR0_SPEC {
2010 type Writer = W;
2011 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
2012 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0xffff_ffff;
2013}
2014#[doc = "`reset()` method sets ENABLECLR0 to value 0"]
2015impl crate::Resettable for ENABLECLR0_SPEC {
2016 const RESET_VALUE: Self::Ux = 0;
2017}