1#[doc = "Register `CHENCLR` reader"]
2pub struct R(crate::R<CHENCLR_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<CHENCLR_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<CHENCLR_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<CHENCLR_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `CHENCLR` writer"]
17pub struct W(crate::W<CHENCLR_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<CHENCLR_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<CHENCLR_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<CHENCLR_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `CH0` reader - Channel 0 enable clear register. Writing 0 has no effect."]
38pub type CH0_R = crate::BitReader<CH0_A>;
39#[doc = "Channel 0 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq)]
41pub enum CH0_A {
42 #[doc = "0: Read: Channel disabled"]
43 DISABLED = 0,
44 #[doc = "1: Read: Channel enabled"]
45 ENABLED = 1,
46}
47impl From<CH0_A> for bool {
48 #[inline(always)]
49 fn from(variant: CH0_A) -> Self {
50 variant as u8 != 0
51 }
52}
53impl CH0_R {
54 #[doc = "Get enumerated values variant"]
55 #[inline(always)]
56 pub fn variant(&self) -> CH0_A {
57 match self.bits {
58 false => CH0_A::DISABLED,
59 true => CH0_A::ENABLED,
60 }
61 }
62 #[doc = "Checks if the value of the field is `DISABLED`"]
63 #[inline(always)]
64 pub fn is_disabled(&self) -> bool {
65 *self == CH0_A::DISABLED
66 }
67 #[doc = "Checks if the value of the field is `ENABLED`"]
68 #[inline(always)]
69 pub fn is_enabled(&self) -> bool {
70 *self == CH0_A::ENABLED
71 }
72}
73#[doc = "Channel 0 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
74#[derive(Clone, Copy, Debug, PartialEq)]
75pub enum CH0_AW {
76 #[doc = "1: Write: Disable channel"]
77 CLEAR = 1,
78}
79impl From<CH0_AW> for bool {
80 #[inline(always)]
81 fn from(variant: CH0_AW) -> Self {
82 variant as u8 != 0
83 }
84}
85#[doc = "Field `CH0` writer - Channel 0 enable clear register. Writing 0 has no effect."]
86pub type CH0_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, CHENCLR_SPEC, CH0_AW, O>;
87impl<'a, const O: u8> CH0_W<'a, O> {
88 #[doc = "Write: Disable channel"]
89 #[inline(always)]
90 pub fn clear(self) -> &'a mut W {
91 self.variant(CH0_AW::CLEAR)
92 }
93}
94#[doc = "Field `CH1` reader - Channel 1 enable clear register. Writing 0 has no effect."]
95pub type CH1_R = crate::BitReader<CH1_A>;
96#[doc = "Channel 1 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
97#[derive(Clone, Copy, Debug, PartialEq)]
98pub enum CH1_A {
99 #[doc = "0: Read: Channel disabled"]
100 DISABLED = 0,
101 #[doc = "1: Read: Channel enabled"]
102 ENABLED = 1,
103}
104impl From<CH1_A> for bool {
105 #[inline(always)]
106 fn from(variant: CH1_A) -> Self {
107 variant as u8 != 0
108 }
109}
110impl CH1_R {
111 #[doc = "Get enumerated values variant"]
112 #[inline(always)]
113 pub fn variant(&self) -> CH1_A {
114 match self.bits {
115 false => CH1_A::DISABLED,
116 true => CH1_A::ENABLED,
117 }
118 }
119 #[doc = "Checks if the value of the field is `DISABLED`"]
120 #[inline(always)]
121 pub fn is_disabled(&self) -> bool {
122 *self == CH1_A::DISABLED
123 }
124 #[doc = "Checks if the value of the field is `ENABLED`"]
125 #[inline(always)]
126 pub fn is_enabled(&self) -> bool {
127 *self == CH1_A::ENABLED
128 }
129}
130#[doc = "Channel 1 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
131#[derive(Clone, Copy, Debug, PartialEq)]
132pub enum CH1_AW {
133 #[doc = "1: Write: Disable channel"]
134 CLEAR = 1,
135}
136impl From<CH1_AW> for bool {
137 #[inline(always)]
138 fn from(variant: CH1_AW) -> Self {
139 variant as u8 != 0
140 }
141}
142#[doc = "Field `CH1` writer - Channel 1 enable clear register. Writing 0 has no effect."]
143pub type CH1_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, CHENCLR_SPEC, CH1_AW, O>;
144impl<'a, const O: u8> CH1_W<'a, O> {
145 #[doc = "Write: Disable channel"]
146 #[inline(always)]
147 pub fn clear(self) -> &'a mut W {
148 self.variant(CH1_AW::CLEAR)
149 }
150}
151#[doc = "Field `CH2` reader - Channel 2 enable clear register. Writing 0 has no effect."]
152pub type CH2_R = crate::BitReader<CH2_A>;
153#[doc = "Channel 2 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
154#[derive(Clone, Copy, Debug, PartialEq)]
155pub enum CH2_A {
156 #[doc = "0: Read: Channel disabled"]
157 DISABLED = 0,
158 #[doc = "1: Read: Channel enabled"]
159 ENABLED = 1,
160}
161impl From<CH2_A> for bool {
162 #[inline(always)]
163 fn from(variant: CH2_A) -> Self {
164 variant as u8 != 0
165 }
166}
167impl CH2_R {
168 #[doc = "Get enumerated values variant"]
169 #[inline(always)]
170 pub fn variant(&self) -> CH2_A {
171 match self.bits {
172 false => CH2_A::DISABLED,
173 true => CH2_A::ENABLED,
174 }
175 }
176 #[doc = "Checks if the value of the field is `DISABLED`"]
177 #[inline(always)]
178 pub fn is_disabled(&self) -> bool {
179 *self == CH2_A::DISABLED
180 }
181 #[doc = "Checks if the value of the field is `ENABLED`"]
182 #[inline(always)]
183 pub fn is_enabled(&self) -> bool {
184 *self == CH2_A::ENABLED
185 }
186}
187#[doc = "Channel 2 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
188#[derive(Clone, Copy, Debug, PartialEq)]
189pub enum CH2_AW {
190 #[doc = "1: Write: Disable channel"]
191 CLEAR = 1,
192}
193impl From<CH2_AW> for bool {
194 #[inline(always)]
195 fn from(variant: CH2_AW) -> Self {
196 variant as u8 != 0
197 }
198}
199#[doc = "Field `CH2` writer - Channel 2 enable clear register. Writing 0 has no effect."]
200pub type CH2_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, CHENCLR_SPEC, CH2_AW, O>;
201impl<'a, const O: u8> CH2_W<'a, O> {
202 #[doc = "Write: Disable channel"]
203 #[inline(always)]
204 pub fn clear(self) -> &'a mut W {
205 self.variant(CH2_AW::CLEAR)
206 }
207}
208#[doc = "Field `CH3` reader - Channel 3 enable clear register. Writing 0 has no effect."]
209pub type CH3_R = crate::BitReader<CH3_A>;
210#[doc = "Channel 3 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
211#[derive(Clone, Copy, Debug, PartialEq)]
212pub enum CH3_A {
213 #[doc = "0: Read: Channel disabled"]
214 DISABLED = 0,
215 #[doc = "1: Read: Channel enabled"]
216 ENABLED = 1,
217}
218impl From<CH3_A> for bool {
219 #[inline(always)]
220 fn from(variant: CH3_A) -> Self {
221 variant as u8 != 0
222 }
223}
224impl CH3_R {
225 #[doc = "Get enumerated values variant"]
226 #[inline(always)]
227 pub fn variant(&self) -> CH3_A {
228 match self.bits {
229 false => CH3_A::DISABLED,
230 true => CH3_A::ENABLED,
231 }
232 }
233 #[doc = "Checks if the value of the field is `DISABLED`"]
234 #[inline(always)]
235 pub fn is_disabled(&self) -> bool {
236 *self == CH3_A::DISABLED
237 }
238 #[doc = "Checks if the value of the field is `ENABLED`"]
239 #[inline(always)]
240 pub fn is_enabled(&self) -> bool {
241 *self == CH3_A::ENABLED
242 }
243}
244#[doc = "Channel 3 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
245#[derive(Clone, Copy, Debug, PartialEq)]
246pub enum CH3_AW {
247 #[doc = "1: Write: Disable channel"]
248 CLEAR = 1,
249}
250impl From<CH3_AW> for bool {
251 #[inline(always)]
252 fn from(variant: CH3_AW) -> Self {
253 variant as u8 != 0
254 }
255}
256#[doc = "Field `CH3` writer - Channel 3 enable clear register. Writing 0 has no effect."]
257pub type CH3_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, CHENCLR_SPEC, CH3_AW, O>;
258impl<'a, const O: u8> CH3_W<'a, O> {
259 #[doc = "Write: Disable channel"]
260 #[inline(always)]
261 pub fn clear(self) -> &'a mut W {
262 self.variant(CH3_AW::CLEAR)
263 }
264}
265#[doc = "Field `CH4` reader - Channel 4 enable clear register. Writing 0 has no effect."]
266pub type CH4_R = crate::BitReader<CH4_A>;
267#[doc = "Channel 4 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
268#[derive(Clone, Copy, Debug, PartialEq)]
269pub enum CH4_A {
270 #[doc = "0: Read: Channel disabled"]
271 DISABLED = 0,
272 #[doc = "1: Read: Channel enabled"]
273 ENABLED = 1,
274}
275impl From<CH4_A> for bool {
276 #[inline(always)]
277 fn from(variant: CH4_A) -> Self {
278 variant as u8 != 0
279 }
280}
281impl CH4_R {
282 #[doc = "Get enumerated values variant"]
283 #[inline(always)]
284 pub fn variant(&self) -> CH4_A {
285 match self.bits {
286 false => CH4_A::DISABLED,
287 true => CH4_A::ENABLED,
288 }
289 }
290 #[doc = "Checks if the value of the field is `DISABLED`"]
291 #[inline(always)]
292 pub fn is_disabled(&self) -> bool {
293 *self == CH4_A::DISABLED
294 }
295 #[doc = "Checks if the value of the field is `ENABLED`"]
296 #[inline(always)]
297 pub fn is_enabled(&self) -> bool {
298 *self == CH4_A::ENABLED
299 }
300}
301#[doc = "Channel 4 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
302#[derive(Clone, Copy, Debug, PartialEq)]
303pub enum CH4_AW {
304 #[doc = "1: Write: Disable channel"]
305 CLEAR = 1,
306}
307impl From<CH4_AW> for bool {
308 #[inline(always)]
309 fn from(variant: CH4_AW) -> Self {
310 variant as u8 != 0
311 }
312}
313#[doc = "Field `CH4` writer - Channel 4 enable clear register. Writing 0 has no effect."]
314pub type CH4_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, CHENCLR_SPEC, CH4_AW, O>;
315impl<'a, const O: u8> CH4_W<'a, O> {
316 #[doc = "Write: Disable channel"]
317 #[inline(always)]
318 pub fn clear(self) -> &'a mut W {
319 self.variant(CH4_AW::CLEAR)
320 }
321}
322#[doc = "Field `CH5` reader - Channel 5 enable clear register. Writing 0 has no effect."]
323pub type CH5_R = crate::BitReader<CH5_A>;
324#[doc = "Channel 5 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
325#[derive(Clone, Copy, Debug, PartialEq)]
326pub enum CH5_A {
327 #[doc = "0: Read: Channel disabled"]
328 DISABLED = 0,
329 #[doc = "1: Read: Channel enabled"]
330 ENABLED = 1,
331}
332impl From<CH5_A> for bool {
333 #[inline(always)]
334 fn from(variant: CH5_A) -> Self {
335 variant as u8 != 0
336 }
337}
338impl CH5_R {
339 #[doc = "Get enumerated values variant"]
340 #[inline(always)]
341 pub fn variant(&self) -> CH5_A {
342 match self.bits {
343 false => CH5_A::DISABLED,
344 true => CH5_A::ENABLED,
345 }
346 }
347 #[doc = "Checks if the value of the field is `DISABLED`"]
348 #[inline(always)]
349 pub fn is_disabled(&self) -> bool {
350 *self == CH5_A::DISABLED
351 }
352 #[doc = "Checks if the value of the field is `ENABLED`"]
353 #[inline(always)]
354 pub fn is_enabled(&self) -> bool {
355 *self == CH5_A::ENABLED
356 }
357}
358#[doc = "Channel 5 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
359#[derive(Clone, Copy, Debug, PartialEq)]
360pub enum CH5_AW {
361 #[doc = "1: Write: Disable channel"]
362 CLEAR = 1,
363}
364impl From<CH5_AW> for bool {
365 #[inline(always)]
366 fn from(variant: CH5_AW) -> Self {
367 variant as u8 != 0
368 }
369}
370#[doc = "Field `CH5` writer - Channel 5 enable clear register. Writing 0 has no effect."]
371pub type CH5_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, CHENCLR_SPEC, CH5_AW, O>;
372impl<'a, const O: u8> CH5_W<'a, O> {
373 #[doc = "Write: Disable channel"]
374 #[inline(always)]
375 pub fn clear(self) -> &'a mut W {
376 self.variant(CH5_AW::CLEAR)
377 }
378}
379#[doc = "Field `CH6` reader - Channel 6 enable clear register. Writing 0 has no effect."]
380pub type CH6_R = crate::BitReader<CH6_A>;
381#[doc = "Channel 6 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
382#[derive(Clone, Copy, Debug, PartialEq)]
383pub enum CH6_A {
384 #[doc = "0: Read: Channel disabled"]
385 DISABLED = 0,
386 #[doc = "1: Read: Channel enabled"]
387 ENABLED = 1,
388}
389impl From<CH6_A> for bool {
390 #[inline(always)]
391 fn from(variant: CH6_A) -> Self {
392 variant as u8 != 0
393 }
394}
395impl CH6_R {
396 #[doc = "Get enumerated values variant"]
397 #[inline(always)]
398 pub fn variant(&self) -> CH6_A {
399 match self.bits {
400 false => CH6_A::DISABLED,
401 true => CH6_A::ENABLED,
402 }
403 }
404 #[doc = "Checks if the value of the field is `DISABLED`"]
405 #[inline(always)]
406 pub fn is_disabled(&self) -> bool {
407 *self == CH6_A::DISABLED
408 }
409 #[doc = "Checks if the value of the field is `ENABLED`"]
410 #[inline(always)]
411 pub fn is_enabled(&self) -> bool {
412 *self == CH6_A::ENABLED
413 }
414}
415#[doc = "Channel 6 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
416#[derive(Clone, Copy, Debug, PartialEq)]
417pub enum CH6_AW {
418 #[doc = "1: Write: Disable channel"]
419 CLEAR = 1,
420}
421impl From<CH6_AW> for bool {
422 #[inline(always)]
423 fn from(variant: CH6_AW) -> Self {
424 variant as u8 != 0
425 }
426}
427#[doc = "Field `CH6` writer - Channel 6 enable clear register. Writing 0 has no effect."]
428pub type CH6_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, CHENCLR_SPEC, CH6_AW, O>;
429impl<'a, const O: u8> CH6_W<'a, O> {
430 #[doc = "Write: Disable channel"]
431 #[inline(always)]
432 pub fn clear(self) -> &'a mut W {
433 self.variant(CH6_AW::CLEAR)
434 }
435}
436#[doc = "Field `CH7` reader - Channel 7 enable clear register. Writing 0 has no effect."]
437pub type CH7_R = crate::BitReader<CH7_A>;
438#[doc = "Channel 7 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
439#[derive(Clone, Copy, Debug, PartialEq)]
440pub enum CH7_A {
441 #[doc = "0: Read: Channel disabled"]
442 DISABLED = 0,
443 #[doc = "1: Read: Channel enabled"]
444 ENABLED = 1,
445}
446impl From<CH7_A> for bool {
447 #[inline(always)]
448 fn from(variant: CH7_A) -> Self {
449 variant as u8 != 0
450 }
451}
452impl CH7_R {
453 #[doc = "Get enumerated values variant"]
454 #[inline(always)]
455 pub fn variant(&self) -> CH7_A {
456 match self.bits {
457 false => CH7_A::DISABLED,
458 true => CH7_A::ENABLED,
459 }
460 }
461 #[doc = "Checks if the value of the field is `DISABLED`"]
462 #[inline(always)]
463 pub fn is_disabled(&self) -> bool {
464 *self == CH7_A::DISABLED
465 }
466 #[doc = "Checks if the value of the field is `ENABLED`"]
467 #[inline(always)]
468 pub fn is_enabled(&self) -> bool {
469 *self == CH7_A::ENABLED
470 }
471}
472#[doc = "Channel 7 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
473#[derive(Clone, Copy, Debug, PartialEq)]
474pub enum CH7_AW {
475 #[doc = "1: Write: Disable channel"]
476 CLEAR = 1,
477}
478impl From<CH7_AW> for bool {
479 #[inline(always)]
480 fn from(variant: CH7_AW) -> Self {
481 variant as u8 != 0
482 }
483}
484#[doc = "Field `CH7` writer - Channel 7 enable clear register. Writing 0 has no effect."]
485pub type CH7_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, CHENCLR_SPEC, CH7_AW, O>;
486impl<'a, const O: u8> CH7_W<'a, O> {
487 #[doc = "Write: Disable channel"]
488 #[inline(always)]
489 pub fn clear(self) -> &'a mut W {
490 self.variant(CH7_AW::CLEAR)
491 }
492}
493#[doc = "Field `CH8` reader - Channel 8 enable clear register. Writing 0 has no effect."]
494pub type CH8_R = crate::BitReader<CH8_A>;
495#[doc = "Channel 8 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
496#[derive(Clone, Copy, Debug, PartialEq)]
497pub enum CH8_A {
498 #[doc = "0: Read: Channel disabled"]
499 DISABLED = 0,
500 #[doc = "1: Read: Channel enabled"]
501 ENABLED = 1,
502}
503impl From<CH8_A> for bool {
504 #[inline(always)]
505 fn from(variant: CH8_A) -> Self {
506 variant as u8 != 0
507 }
508}
509impl CH8_R {
510 #[doc = "Get enumerated values variant"]
511 #[inline(always)]
512 pub fn variant(&self) -> CH8_A {
513 match self.bits {
514 false => CH8_A::DISABLED,
515 true => CH8_A::ENABLED,
516 }
517 }
518 #[doc = "Checks if the value of the field is `DISABLED`"]
519 #[inline(always)]
520 pub fn is_disabled(&self) -> bool {
521 *self == CH8_A::DISABLED
522 }
523 #[doc = "Checks if the value of the field is `ENABLED`"]
524 #[inline(always)]
525 pub fn is_enabled(&self) -> bool {
526 *self == CH8_A::ENABLED
527 }
528}
529#[doc = "Channel 8 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
530#[derive(Clone, Copy, Debug, PartialEq)]
531pub enum CH8_AW {
532 #[doc = "1: Write: Disable channel"]
533 CLEAR = 1,
534}
535impl From<CH8_AW> for bool {
536 #[inline(always)]
537 fn from(variant: CH8_AW) -> Self {
538 variant as u8 != 0
539 }
540}
541#[doc = "Field `CH8` writer - Channel 8 enable clear register. Writing 0 has no effect."]
542pub type CH8_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, CHENCLR_SPEC, CH8_AW, O>;
543impl<'a, const O: u8> CH8_W<'a, O> {
544 #[doc = "Write: Disable channel"]
545 #[inline(always)]
546 pub fn clear(self) -> &'a mut W {
547 self.variant(CH8_AW::CLEAR)
548 }
549}
550#[doc = "Field `CH9` reader - Channel 9 enable clear register. Writing 0 has no effect."]
551pub type CH9_R = crate::BitReader<CH9_A>;
552#[doc = "Channel 9 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
553#[derive(Clone, Copy, Debug, PartialEq)]
554pub enum CH9_A {
555 #[doc = "0: Read: Channel disabled"]
556 DISABLED = 0,
557 #[doc = "1: Read: Channel enabled"]
558 ENABLED = 1,
559}
560impl From<CH9_A> for bool {
561 #[inline(always)]
562 fn from(variant: CH9_A) -> Self {
563 variant as u8 != 0
564 }
565}
566impl CH9_R {
567 #[doc = "Get enumerated values variant"]
568 #[inline(always)]
569 pub fn variant(&self) -> CH9_A {
570 match self.bits {
571 false => CH9_A::DISABLED,
572 true => CH9_A::ENABLED,
573 }
574 }
575 #[doc = "Checks if the value of the field is `DISABLED`"]
576 #[inline(always)]
577 pub fn is_disabled(&self) -> bool {
578 *self == CH9_A::DISABLED
579 }
580 #[doc = "Checks if the value of the field is `ENABLED`"]
581 #[inline(always)]
582 pub fn is_enabled(&self) -> bool {
583 *self == CH9_A::ENABLED
584 }
585}
586#[doc = "Channel 9 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
587#[derive(Clone, Copy, Debug, PartialEq)]
588pub enum CH9_AW {
589 #[doc = "1: Write: Disable channel"]
590 CLEAR = 1,
591}
592impl From<CH9_AW> for bool {
593 #[inline(always)]
594 fn from(variant: CH9_AW) -> Self {
595 variant as u8 != 0
596 }
597}
598#[doc = "Field `CH9` writer - Channel 9 enable clear register. Writing 0 has no effect."]
599pub type CH9_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, CHENCLR_SPEC, CH9_AW, O>;
600impl<'a, const O: u8> CH9_W<'a, O> {
601 #[doc = "Write: Disable channel"]
602 #[inline(always)]
603 pub fn clear(self) -> &'a mut W {
604 self.variant(CH9_AW::CLEAR)
605 }
606}
607#[doc = "Field `CH10` reader - Channel 10 enable clear register. Writing 0 has no effect."]
608pub type CH10_R = crate::BitReader<CH10_A>;
609#[doc = "Channel 10 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
610#[derive(Clone, Copy, Debug, PartialEq)]
611pub enum CH10_A {
612 #[doc = "0: Read: Channel disabled"]
613 DISABLED = 0,
614 #[doc = "1: Read: Channel enabled"]
615 ENABLED = 1,
616}
617impl From<CH10_A> for bool {
618 #[inline(always)]
619 fn from(variant: CH10_A) -> Self {
620 variant as u8 != 0
621 }
622}
623impl CH10_R {
624 #[doc = "Get enumerated values variant"]
625 #[inline(always)]
626 pub fn variant(&self) -> CH10_A {
627 match self.bits {
628 false => CH10_A::DISABLED,
629 true => CH10_A::ENABLED,
630 }
631 }
632 #[doc = "Checks if the value of the field is `DISABLED`"]
633 #[inline(always)]
634 pub fn is_disabled(&self) -> bool {
635 *self == CH10_A::DISABLED
636 }
637 #[doc = "Checks if the value of the field is `ENABLED`"]
638 #[inline(always)]
639 pub fn is_enabled(&self) -> bool {
640 *self == CH10_A::ENABLED
641 }
642}
643#[doc = "Channel 10 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
644#[derive(Clone, Copy, Debug, PartialEq)]
645pub enum CH10_AW {
646 #[doc = "1: Write: Disable channel"]
647 CLEAR = 1,
648}
649impl From<CH10_AW> for bool {
650 #[inline(always)]
651 fn from(variant: CH10_AW) -> Self {
652 variant as u8 != 0
653 }
654}
655#[doc = "Field `CH10` writer - Channel 10 enable clear register. Writing 0 has no effect."]
656pub type CH10_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, CHENCLR_SPEC, CH10_AW, O>;
657impl<'a, const O: u8> CH10_W<'a, O> {
658 #[doc = "Write: Disable channel"]
659 #[inline(always)]
660 pub fn clear(self) -> &'a mut W {
661 self.variant(CH10_AW::CLEAR)
662 }
663}
664#[doc = "Field `CH11` reader - Channel 11 enable clear register. Writing 0 has no effect."]
665pub type CH11_R = crate::BitReader<CH11_A>;
666#[doc = "Channel 11 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
667#[derive(Clone, Copy, Debug, PartialEq)]
668pub enum CH11_A {
669 #[doc = "0: Read: Channel disabled"]
670 DISABLED = 0,
671 #[doc = "1: Read: Channel enabled"]
672 ENABLED = 1,
673}
674impl From<CH11_A> for bool {
675 #[inline(always)]
676 fn from(variant: CH11_A) -> Self {
677 variant as u8 != 0
678 }
679}
680impl CH11_R {
681 #[doc = "Get enumerated values variant"]
682 #[inline(always)]
683 pub fn variant(&self) -> CH11_A {
684 match self.bits {
685 false => CH11_A::DISABLED,
686 true => CH11_A::ENABLED,
687 }
688 }
689 #[doc = "Checks if the value of the field is `DISABLED`"]
690 #[inline(always)]
691 pub fn is_disabled(&self) -> bool {
692 *self == CH11_A::DISABLED
693 }
694 #[doc = "Checks if the value of the field is `ENABLED`"]
695 #[inline(always)]
696 pub fn is_enabled(&self) -> bool {
697 *self == CH11_A::ENABLED
698 }
699}
700#[doc = "Channel 11 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
701#[derive(Clone, Copy, Debug, PartialEq)]
702pub enum CH11_AW {
703 #[doc = "1: Write: Disable channel"]
704 CLEAR = 1,
705}
706impl From<CH11_AW> for bool {
707 #[inline(always)]
708 fn from(variant: CH11_AW) -> Self {
709 variant as u8 != 0
710 }
711}
712#[doc = "Field `CH11` writer - Channel 11 enable clear register. Writing 0 has no effect."]
713pub type CH11_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, CHENCLR_SPEC, CH11_AW, O>;
714impl<'a, const O: u8> CH11_W<'a, O> {
715 #[doc = "Write: Disable channel"]
716 #[inline(always)]
717 pub fn clear(self) -> &'a mut W {
718 self.variant(CH11_AW::CLEAR)
719 }
720}
721#[doc = "Field `CH12` reader - Channel 12 enable clear register. Writing 0 has no effect."]
722pub type CH12_R = crate::BitReader<CH12_A>;
723#[doc = "Channel 12 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
724#[derive(Clone, Copy, Debug, PartialEq)]
725pub enum CH12_A {
726 #[doc = "0: Read: Channel disabled"]
727 DISABLED = 0,
728 #[doc = "1: Read: Channel enabled"]
729 ENABLED = 1,
730}
731impl From<CH12_A> for bool {
732 #[inline(always)]
733 fn from(variant: CH12_A) -> Self {
734 variant as u8 != 0
735 }
736}
737impl CH12_R {
738 #[doc = "Get enumerated values variant"]
739 #[inline(always)]
740 pub fn variant(&self) -> CH12_A {
741 match self.bits {
742 false => CH12_A::DISABLED,
743 true => CH12_A::ENABLED,
744 }
745 }
746 #[doc = "Checks if the value of the field is `DISABLED`"]
747 #[inline(always)]
748 pub fn is_disabled(&self) -> bool {
749 *self == CH12_A::DISABLED
750 }
751 #[doc = "Checks if the value of the field is `ENABLED`"]
752 #[inline(always)]
753 pub fn is_enabled(&self) -> bool {
754 *self == CH12_A::ENABLED
755 }
756}
757#[doc = "Channel 12 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
758#[derive(Clone, Copy, Debug, PartialEq)]
759pub enum CH12_AW {
760 #[doc = "1: Write: Disable channel"]
761 CLEAR = 1,
762}
763impl From<CH12_AW> for bool {
764 #[inline(always)]
765 fn from(variant: CH12_AW) -> Self {
766 variant as u8 != 0
767 }
768}
769#[doc = "Field `CH12` writer - Channel 12 enable clear register. Writing 0 has no effect."]
770pub type CH12_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, CHENCLR_SPEC, CH12_AW, O>;
771impl<'a, const O: u8> CH12_W<'a, O> {
772 #[doc = "Write: Disable channel"]
773 #[inline(always)]
774 pub fn clear(self) -> &'a mut W {
775 self.variant(CH12_AW::CLEAR)
776 }
777}
778#[doc = "Field `CH13` reader - Channel 13 enable clear register. Writing 0 has no effect."]
779pub type CH13_R = crate::BitReader<CH13_A>;
780#[doc = "Channel 13 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
781#[derive(Clone, Copy, Debug, PartialEq)]
782pub enum CH13_A {
783 #[doc = "0: Read: Channel disabled"]
784 DISABLED = 0,
785 #[doc = "1: Read: Channel enabled"]
786 ENABLED = 1,
787}
788impl From<CH13_A> for bool {
789 #[inline(always)]
790 fn from(variant: CH13_A) -> Self {
791 variant as u8 != 0
792 }
793}
794impl CH13_R {
795 #[doc = "Get enumerated values variant"]
796 #[inline(always)]
797 pub fn variant(&self) -> CH13_A {
798 match self.bits {
799 false => CH13_A::DISABLED,
800 true => CH13_A::ENABLED,
801 }
802 }
803 #[doc = "Checks if the value of the field is `DISABLED`"]
804 #[inline(always)]
805 pub fn is_disabled(&self) -> bool {
806 *self == CH13_A::DISABLED
807 }
808 #[doc = "Checks if the value of the field is `ENABLED`"]
809 #[inline(always)]
810 pub fn is_enabled(&self) -> bool {
811 *self == CH13_A::ENABLED
812 }
813}
814#[doc = "Channel 13 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
815#[derive(Clone, Copy, Debug, PartialEq)]
816pub enum CH13_AW {
817 #[doc = "1: Write: Disable channel"]
818 CLEAR = 1,
819}
820impl From<CH13_AW> for bool {
821 #[inline(always)]
822 fn from(variant: CH13_AW) -> Self {
823 variant as u8 != 0
824 }
825}
826#[doc = "Field `CH13` writer - Channel 13 enable clear register. Writing 0 has no effect."]
827pub type CH13_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, CHENCLR_SPEC, CH13_AW, O>;
828impl<'a, const O: u8> CH13_W<'a, O> {
829 #[doc = "Write: Disable channel"]
830 #[inline(always)]
831 pub fn clear(self) -> &'a mut W {
832 self.variant(CH13_AW::CLEAR)
833 }
834}
835#[doc = "Field `CH14` reader - Channel 14 enable clear register. Writing 0 has no effect."]
836pub type CH14_R = crate::BitReader<CH14_A>;
837#[doc = "Channel 14 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
838#[derive(Clone, Copy, Debug, PartialEq)]
839pub enum CH14_A {
840 #[doc = "0: Read: Channel disabled"]
841 DISABLED = 0,
842 #[doc = "1: Read: Channel enabled"]
843 ENABLED = 1,
844}
845impl From<CH14_A> for bool {
846 #[inline(always)]
847 fn from(variant: CH14_A) -> Self {
848 variant as u8 != 0
849 }
850}
851impl CH14_R {
852 #[doc = "Get enumerated values variant"]
853 #[inline(always)]
854 pub fn variant(&self) -> CH14_A {
855 match self.bits {
856 false => CH14_A::DISABLED,
857 true => CH14_A::ENABLED,
858 }
859 }
860 #[doc = "Checks if the value of the field is `DISABLED`"]
861 #[inline(always)]
862 pub fn is_disabled(&self) -> bool {
863 *self == CH14_A::DISABLED
864 }
865 #[doc = "Checks if the value of the field is `ENABLED`"]
866 #[inline(always)]
867 pub fn is_enabled(&self) -> bool {
868 *self == CH14_A::ENABLED
869 }
870}
871#[doc = "Channel 14 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
872#[derive(Clone, Copy, Debug, PartialEq)]
873pub enum CH14_AW {
874 #[doc = "1: Write: Disable channel"]
875 CLEAR = 1,
876}
877impl From<CH14_AW> for bool {
878 #[inline(always)]
879 fn from(variant: CH14_AW) -> Self {
880 variant as u8 != 0
881 }
882}
883#[doc = "Field `CH14` writer - Channel 14 enable clear register. Writing 0 has no effect."]
884pub type CH14_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, CHENCLR_SPEC, CH14_AW, O>;
885impl<'a, const O: u8> CH14_W<'a, O> {
886 #[doc = "Write: Disable channel"]
887 #[inline(always)]
888 pub fn clear(self) -> &'a mut W {
889 self.variant(CH14_AW::CLEAR)
890 }
891}
892#[doc = "Field `CH15` reader - Channel 15 enable clear register. Writing 0 has no effect."]
893pub type CH15_R = crate::BitReader<CH15_A>;
894#[doc = "Channel 15 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
895#[derive(Clone, Copy, Debug, PartialEq)]
896pub enum CH15_A {
897 #[doc = "0: Read: Channel disabled"]
898 DISABLED = 0,
899 #[doc = "1: Read: Channel enabled"]
900 ENABLED = 1,
901}
902impl From<CH15_A> for bool {
903 #[inline(always)]
904 fn from(variant: CH15_A) -> Self {
905 variant as u8 != 0
906 }
907}
908impl CH15_R {
909 #[doc = "Get enumerated values variant"]
910 #[inline(always)]
911 pub fn variant(&self) -> CH15_A {
912 match self.bits {
913 false => CH15_A::DISABLED,
914 true => CH15_A::ENABLED,
915 }
916 }
917 #[doc = "Checks if the value of the field is `DISABLED`"]
918 #[inline(always)]
919 pub fn is_disabled(&self) -> bool {
920 *self == CH15_A::DISABLED
921 }
922 #[doc = "Checks if the value of the field is `ENABLED`"]
923 #[inline(always)]
924 pub fn is_enabled(&self) -> bool {
925 *self == CH15_A::ENABLED
926 }
927}
928#[doc = "Channel 15 enable clear register. Writing 0 has no effect.\n\nValue on reset: 0"]
929#[derive(Clone, Copy, Debug, PartialEq)]
930pub enum CH15_AW {
931 #[doc = "1: Write: Disable channel"]
932 CLEAR = 1,
933}
934impl From<CH15_AW> for bool {
935 #[inline(always)]
936 fn from(variant: CH15_AW) -> Self {
937 variant as u8 != 0
938 }
939}
940#[doc = "Field `CH15` writer - Channel 15 enable clear register. Writing 0 has no effect."]
941pub type CH15_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, CHENCLR_SPEC, CH15_AW, O>;
942impl<'a, const O: u8> CH15_W<'a, O> {
943 #[doc = "Write: Disable channel"]
944 #[inline(always)]
945 pub fn clear(self) -> &'a mut W {
946 self.variant(CH15_AW::CLEAR)
947 }
948}
949impl R {
950 #[doc = "Bit 0 - Channel 0 enable clear register. Writing 0 has no effect."]
951 #[inline(always)]
952 pub fn ch0(&self) -> CH0_R {
953 CH0_R::new((self.bits & 1) != 0)
954 }
955 #[doc = "Bit 1 - Channel 1 enable clear register. Writing 0 has no effect."]
956 #[inline(always)]
957 pub fn ch1(&self) -> CH1_R {
958 CH1_R::new(((self.bits >> 1) & 1) != 0)
959 }
960 #[doc = "Bit 2 - Channel 2 enable clear register. Writing 0 has no effect."]
961 #[inline(always)]
962 pub fn ch2(&self) -> CH2_R {
963 CH2_R::new(((self.bits >> 2) & 1) != 0)
964 }
965 #[doc = "Bit 3 - Channel 3 enable clear register. Writing 0 has no effect."]
966 #[inline(always)]
967 pub fn ch3(&self) -> CH3_R {
968 CH3_R::new(((self.bits >> 3) & 1) != 0)
969 }
970 #[doc = "Bit 4 - Channel 4 enable clear register. Writing 0 has no effect."]
971 #[inline(always)]
972 pub fn ch4(&self) -> CH4_R {
973 CH4_R::new(((self.bits >> 4) & 1) != 0)
974 }
975 #[doc = "Bit 5 - Channel 5 enable clear register. Writing 0 has no effect."]
976 #[inline(always)]
977 pub fn ch5(&self) -> CH5_R {
978 CH5_R::new(((self.bits >> 5) & 1) != 0)
979 }
980 #[doc = "Bit 6 - Channel 6 enable clear register. Writing 0 has no effect."]
981 #[inline(always)]
982 pub fn ch6(&self) -> CH6_R {
983 CH6_R::new(((self.bits >> 6) & 1) != 0)
984 }
985 #[doc = "Bit 7 - Channel 7 enable clear register. Writing 0 has no effect."]
986 #[inline(always)]
987 pub fn ch7(&self) -> CH7_R {
988 CH7_R::new(((self.bits >> 7) & 1) != 0)
989 }
990 #[doc = "Bit 8 - Channel 8 enable clear register. Writing 0 has no effect."]
991 #[inline(always)]
992 pub fn ch8(&self) -> CH8_R {
993 CH8_R::new(((self.bits >> 8) & 1) != 0)
994 }
995 #[doc = "Bit 9 - Channel 9 enable clear register. Writing 0 has no effect."]
996 #[inline(always)]
997 pub fn ch9(&self) -> CH9_R {
998 CH9_R::new(((self.bits >> 9) & 1) != 0)
999 }
1000 #[doc = "Bit 10 - Channel 10 enable clear register. Writing 0 has no effect."]
1001 #[inline(always)]
1002 pub fn ch10(&self) -> CH10_R {
1003 CH10_R::new(((self.bits >> 10) & 1) != 0)
1004 }
1005 #[doc = "Bit 11 - Channel 11 enable clear register. Writing 0 has no effect."]
1006 #[inline(always)]
1007 pub fn ch11(&self) -> CH11_R {
1008 CH11_R::new(((self.bits >> 11) & 1) != 0)
1009 }
1010 #[doc = "Bit 12 - Channel 12 enable clear register. Writing 0 has no effect."]
1011 #[inline(always)]
1012 pub fn ch12(&self) -> CH12_R {
1013 CH12_R::new(((self.bits >> 12) & 1) != 0)
1014 }
1015 #[doc = "Bit 13 - Channel 13 enable clear register. Writing 0 has no effect."]
1016 #[inline(always)]
1017 pub fn ch13(&self) -> CH13_R {
1018 CH13_R::new(((self.bits >> 13) & 1) != 0)
1019 }
1020 #[doc = "Bit 14 - Channel 14 enable clear register. Writing 0 has no effect."]
1021 #[inline(always)]
1022 pub fn ch14(&self) -> CH14_R {
1023 CH14_R::new(((self.bits >> 14) & 1) != 0)
1024 }
1025 #[doc = "Bit 15 - Channel 15 enable clear register. Writing 0 has no effect."]
1026 #[inline(always)]
1027 pub fn ch15(&self) -> CH15_R {
1028 CH15_R::new(((self.bits >> 15) & 1) != 0)
1029 }
1030}
1031impl W {
1032 #[doc = "Bit 0 - Channel 0 enable clear register. Writing 0 has no effect."]
1033 #[inline(always)]
1034 pub fn ch0(&mut self) -> CH0_W<0> {
1035 CH0_W::new(self)
1036 }
1037 #[doc = "Bit 1 - Channel 1 enable clear register. Writing 0 has no effect."]
1038 #[inline(always)]
1039 pub fn ch1(&mut self) -> CH1_W<1> {
1040 CH1_W::new(self)
1041 }
1042 #[doc = "Bit 2 - Channel 2 enable clear register. Writing 0 has no effect."]
1043 #[inline(always)]
1044 pub fn ch2(&mut self) -> CH2_W<2> {
1045 CH2_W::new(self)
1046 }
1047 #[doc = "Bit 3 - Channel 3 enable clear register. Writing 0 has no effect."]
1048 #[inline(always)]
1049 pub fn ch3(&mut self) -> CH3_W<3> {
1050 CH3_W::new(self)
1051 }
1052 #[doc = "Bit 4 - Channel 4 enable clear register. Writing 0 has no effect."]
1053 #[inline(always)]
1054 pub fn ch4(&mut self) -> CH4_W<4> {
1055 CH4_W::new(self)
1056 }
1057 #[doc = "Bit 5 - Channel 5 enable clear register. Writing 0 has no effect."]
1058 #[inline(always)]
1059 pub fn ch5(&mut self) -> CH5_W<5> {
1060 CH5_W::new(self)
1061 }
1062 #[doc = "Bit 6 - Channel 6 enable clear register. Writing 0 has no effect."]
1063 #[inline(always)]
1064 pub fn ch6(&mut self) -> CH6_W<6> {
1065 CH6_W::new(self)
1066 }
1067 #[doc = "Bit 7 - Channel 7 enable clear register. Writing 0 has no effect."]
1068 #[inline(always)]
1069 pub fn ch7(&mut self) -> CH7_W<7> {
1070 CH7_W::new(self)
1071 }
1072 #[doc = "Bit 8 - Channel 8 enable clear register. Writing 0 has no effect."]
1073 #[inline(always)]
1074 pub fn ch8(&mut self) -> CH8_W<8> {
1075 CH8_W::new(self)
1076 }
1077 #[doc = "Bit 9 - Channel 9 enable clear register. Writing 0 has no effect."]
1078 #[inline(always)]
1079 pub fn ch9(&mut self) -> CH9_W<9> {
1080 CH9_W::new(self)
1081 }
1082 #[doc = "Bit 10 - Channel 10 enable clear register. Writing 0 has no effect."]
1083 #[inline(always)]
1084 pub fn ch10(&mut self) -> CH10_W<10> {
1085 CH10_W::new(self)
1086 }
1087 #[doc = "Bit 11 - Channel 11 enable clear register. Writing 0 has no effect."]
1088 #[inline(always)]
1089 pub fn ch11(&mut self) -> CH11_W<11> {
1090 CH11_W::new(self)
1091 }
1092 #[doc = "Bit 12 - Channel 12 enable clear register. Writing 0 has no effect."]
1093 #[inline(always)]
1094 pub fn ch12(&mut self) -> CH12_W<12> {
1095 CH12_W::new(self)
1096 }
1097 #[doc = "Bit 13 - Channel 13 enable clear register. Writing 0 has no effect."]
1098 #[inline(always)]
1099 pub fn ch13(&mut self) -> CH13_W<13> {
1100 CH13_W::new(self)
1101 }
1102 #[doc = "Bit 14 - Channel 14 enable clear register. Writing 0 has no effect."]
1103 #[inline(always)]
1104 pub fn ch14(&mut self) -> CH14_W<14> {
1105 CH14_W::new(self)
1106 }
1107 #[doc = "Bit 15 - Channel 15 enable clear register. Writing 0 has no effect."]
1108 #[inline(always)]
1109 pub fn ch15(&mut self) -> CH15_W<15> {
1110 CH15_W::new(self)
1111 }
1112 #[doc = "Writes raw bits to the register."]
1113 #[inline(always)]
1114 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1115 self.0.bits(bits);
1116 self
1117 }
1118}
1119#[doc = "Channel enable clear register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [chenclr](index.html) module"]
1120pub struct CHENCLR_SPEC;
1121impl crate::RegisterSpec for CHENCLR_SPEC {
1122 type Ux = u32;
1123}
1124#[doc = "`read()` method returns [chenclr::R](R) reader structure"]
1125impl crate::Readable for CHENCLR_SPEC {
1126 type Reader = R;
1127}
1128#[doc = "`write(|w| ..)` method takes [chenclr::W](W) writer structure"]
1129impl crate::Writable for CHENCLR_SPEC {
1130 type Writer = W;
1131}
1132#[doc = "`reset()` method sets CHENCLR to value 0"]
1133impl crate::Resettable for CHENCLR_SPEC {
1134 #[inline(always)]
1135 fn reset_value() -> Self::Ux {
1136 0
1137 }
1138}