1#[doc = "Register `MASKBLOCK` reader"]
2pub type R = crate::R<MASKBLOCK_SPEC>;
3#[doc = "Register `MASKBLOCK` writer"]
4pub type W = crate::W<MASKBLOCK_SPEC>;
5#[doc = "Mask bit for channel 0\n\nValue on reset: 0"]
6#[derive(Clone, Copy, Debug, PartialEq, Eq)]
7pub enum CH0_A {
8 #[doc = "0: masked"]
9 VALUE1 = 0,
10 #[doc = "1: unmasked"]
11 VALUE2 = 1,
12}
13impl From<CH0_A> for bool {
14 #[inline(always)]
15 fn from(variant: CH0_A) -> Self {
16 variant as u8 != 0
17 }
18}
19#[doc = "Field `CH0` reader - Mask bit for channel 0"]
20pub type CH0_R = crate::BitReader<CH0_A>;
21impl CH0_R {
22 #[doc = "Get enumerated values variant"]
23 #[inline(always)]
24 pub const fn variant(&self) -> CH0_A {
25 match self.bits {
26 false => CH0_A::VALUE1,
27 true => CH0_A::VALUE2,
28 }
29 }
30 #[doc = "masked"]
31 #[inline(always)]
32 pub fn is_value1(&self) -> bool {
33 *self == CH0_A::VALUE1
34 }
35 #[doc = "unmasked"]
36 #[inline(always)]
37 pub fn is_value2(&self) -> bool {
38 *self == CH0_A::VALUE2
39 }
40}
41#[doc = "Field `CH0` writer - Mask bit for channel 0"]
42pub type CH0_W<'a, REG> = crate::BitWriter<'a, REG, CH0_A>;
43impl<'a, REG> CH0_W<'a, REG>
44where
45 REG: crate::Writable + crate::RegisterSpec,
46{
47 #[doc = "masked"]
48 #[inline(always)]
49 pub fn value1(self) -> &'a mut crate::W<REG> {
50 self.variant(CH0_A::VALUE1)
51 }
52 #[doc = "unmasked"]
53 #[inline(always)]
54 pub fn value2(self) -> &'a mut crate::W<REG> {
55 self.variant(CH0_A::VALUE2)
56 }
57}
58#[doc = "Mask bit for channel 1\n\nValue on reset: 0"]
59#[derive(Clone, Copy, Debug, PartialEq, Eq)]
60pub enum CH1_A {
61 #[doc = "0: masked"]
62 VALUE1 = 0,
63 #[doc = "1: unmasked"]
64 VALUE2 = 1,
65}
66impl From<CH1_A> for bool {
67 #[inline(always)]
68 fn from(variant: CH1_A) -> Self {
69 variant as u8 != 0
70 }
71}
72#[doc = "Field `CH1` reader - Mask bit for channel 1"]
73pub type CH1_R = crate::BitReader<CH1_A>;
74impl CH1_R {
75 #[doc = "Get enumerated values variant"]
76 #[inline(always)]
77 pub const fn variant(&self) -> CH1_A {
78 match self.bits {
79 false => CH1_A::VALUE1,
80 true => CH1_A::VALUE2,
81 }
82 }
83 #[doc = "masked"]
84 #[inline(always)]
85 pub fn is_value1(&self) -> bool {
86 *self == CH1_A::VALUE1
87 }
88 #[doc = "unmasked"]
89 #[inline(always)]
90 pub fn is_value2(&self) -> bool {
91 *self == CH1_A::VALUE2
92 }
93}
94#[doc = "Field `CH1` writer - Mask bit for channel 1"]
95pub type CH1_W<'a, REG> = crate::BitWriter<'a, REG, CH1_A>;
96impl<'a, REG> CH1_W<'a, REG>
97where
98 REG: crate::Writable + crate::RegisterSpec,
99{
100 #[doc = "masked"]
101 #[inline(always)]
102 pub fn value1(self) -> &'a mut crate::W<REG> {
103 self.variant(CH1_A::VALUE1)
104 }
105 #[doc = "unmasked"]
106 #[inline(always)]
107 pub fn value2(self) -> &'a mut crate::W<REG> {
108 self.variant(CH1_A::VALUE2)
109 }
110}
111#[doc = "Mask bit for channel 2\n\nValue on reset: 0"]
112#[derive(Clone, Copy, Debug, PartialEq, Eq)]
113pub enum CH2_A {
114 #[doc = "0: masked"]
115 VALUE1 = 0,
116 #[doc = "1: unmasked"]
117 VALUE2 = 1,
118}
119impl From<CH2_A> for bool {
120 #[inline(always)]
121 fn from(variant: CH2_A) -> Self {
122 variant as u8 != 0
123 }
124}
125#[doc = "Field `CH2` reader - Mask bit for channel 2"]
126pub type CH2_R = crate::BitReader<CH2_A>;
127impl CH2_R {
128 #[doc = "Get enumerated values variant"]
129 #[inline(always)]
130 pub const fn variant(&self) -> CH2_A {
131 match self.bits {
132 false => CH2_A::VALUE1,
133 true => CH2_A::VALUE2,
134 }
135 }
136 #[doc = "masked"]
137 #[inline(always)]
138 pub fn is_value1(&self) -> bool {
139 *self == CH2_A::VALUE1
140 }
141 #[doc = "unmasked"]
142 #[inline(always)]
143 pub fn is_value2(&self) -> bool {
144 *self == CH2_A::VALUE2
145 }
146}
147#[doc = "Field `CH2` writer - Mask bit for channel 2"]
148pub type CH2_W<'a, REG> = crate::BitWriter<'a, REG, CH2_A>;
149impl<'a, REG> CH2_W<'a, REG>
150where
151 REG: crate::Writable + crate::RegisterSpec,
152{
153 #[doc = "masked"]
154 #[inline(always)]
155 pub fn value1(self) -> &'a mut crate::W<REG> {
156 self.variant(CH2_A::VALUE1)
157 }
158 #[doc = "unmasked"]
159 #[inline(always)]
160 pub fn value2(self) -> &'a mut crate::W<REG> {
161 self.variant(CH2_A::VALUE2)
162 }
163}
164#[doc = "Mask bit for channel 3\n\nValue on reset: 0"]
165#[derive(Clone, Copy, Debug, PartialEq, Eq)]
166pub enum CH3_A {
167 #[doc = "0: masked"]
168 VALUE1 = 0,
169 #[doc = "1: unmasked"]
170 VALUE2 = 1,
171}
172impl From<CH3_A> for bool {
173 #[inline(always)]
174 fn from(variant: CH3_A) -> Self {
175 variant as u8 != 0
176 }
177}
178#[doc = "Field `CH3` reader - Mask bit for channel 3"]
179pub type CH3_R = crate::BitReader<CH3_A>;
180impl CH3_R {
181 #[doc = "Get enumerated values variant"]
182 #[inline(always)]
183 pub const fn variant(&self) -> CH3_A {
184 match self.bits {
185 false => CH3_A::VALUE1,
186 true => CH3_A::VALUE2,
187 }
188 }
189 #[doc = "masked"]
190 #[inline(always)]
191 pub fn is_value1(&self) -> bool {
192 *self == CH3_A::VALUE1
193 }
194 #[doc = "unmasked"]
195 #[inline(always)]
196 pub fn is_value2(&self) -> bool {
197 *self == CH3_A::VALUE2
198 }
199}
200#[doc = "Field `CH3` writer - Mask bit for channel 3"]
201pub type CH3_W<'a, REG> = crate::BitWriter<'a, REG, CH3_A>;
202impl<'a, REG> CH3_W<'a, REG>
203where
204 REG: crate::Writable + crate::RegisterSpec,
205{
206 #[doc = "masked"]
207 #[inline(always)]
208 pub fn value1(self) -> &'a mut crate::W<REG> {
209 self.variant(CH3_A::VALUE1)
210 }
211 #[doc = "unmasked"]
212 #[inline(always)]
213 pub fn value2(self) -> &'a mut crate::W<REG> {
214 self.variant(CH3_A::VALUE2)
215 }
216}
217#[doc = "Mask bit for channel 4\n\nValue on reset: 0"]
218#[derive(Clone, Copy, Debug, PartialEq, Eq)]
219pub enum CH4_A {
220 #[doc = "0: masked"]
221 VALUE1 = 0,
222 #[doc = "1: unmasked"]
223 VALUE2 = 1,
224}
225impl From<CH4_A> for bool {
226 #[inline(always)]
227 fn from(variant: CH4_A) -> Self {
228 variant as u8 != 0
229 }
230}
231#[doc = "Field `CH4` reader - Mask bit for channel 4"]
232pub type CH4_R = crate::BitReader<CH4_A>;
233impl CH4_R {
234 #[doc = "Get enumerated values variant"]
235 #[inline(always)]
236 pub const fn variant(&self) -> CH4_A {
237 match self.bits {
238 false => CH4_A::VALUE1,
239 true => CH4_A::VALUE2,
240 }
241 }
242 #[doc = "masked"]
243 #[inline(always)]
244 pub fn is_value1(&self) -> bool {
245 *self == CH4_A::VALUE1
246 }
247 #[doc = "unmasked"]
248 #[inline(always)]
249 pub fn is_value2(&self) -> bool {
250 *self == CH4_A::VALUE2
251 }
252}
253#[doc = "Field `CH4` writer - Mask bit for channel 4"]
254pub type CH4_W<'a, REG> = crate::BitWriter<'a, REG, CH4_A>;
255impl<'a, REG> CH4_W<'a, REG>
256where
257 REG: crate::Writable + crate::RegisterSpec,
258{
259 #[doc = "masked"]
260 #[inline(always)]
261 pub fn value1(self) -> &'a mut crate::W<REG> {
262 self.variant(CH4_A::VALUE1)
263 }
264 #[doc = "unmasked"]
265 #[inline(always)]
266 pub fn value2(self) -> &'a mut crate::W<REG> {
267 self.variant(CH4_A::VALUE2)
268 }
269}
270#[doc = "Mask bit for channel 5\n\nValue on reset: 0"]
271#[derive(Clone, Copy, Debug, PartialEq, Eq)]
272pub enum CH5_A {
273 #[doc = "0: masked"]
274 VALUE1 = 0,
275 #[doc = "1: unmasked"]
276 VALUE2 = 1,
277}
278impl From<CH5_A> for bool {
279 #[inline(always)]
280 fn from(variant: CH5_A) -> Self {
281 variant as u8 != 0
282 }
283}
284#[doc = "Field `CH5` reader - Mask bit for channel 5"]
285pub type CH5_R = crate::BitReader<CH5_A>;
286impl CH5_R {
287 #[doc = "Get enumerated values variant"]
288 #[inline(always)]
289 pub const fn variant(&self) -> CH5_A {
290 match self.bits {
291 false => CH5_A::VALUE1,
292 true => CH5_A::VALUE2,
293 }
294 }
295 #[doc = "masked"]
296 #[inline(always)]
297 pub fn is_value1(&self) -> bool {
298 *self == CH5_A::VALUE1
299 }
300 #[doc = "unmasked"]
301 #[inline(always)]
302 pub fn is_value2(&self) -> bool {
303 *self == CH5_A::VALUE2
304 }
305}
306#[doc = "Field `CH5` writer - Mask bit for channel 5"]
307pub type CH5_W<'a, REG> = crate::BitWriter<'a, REG, CH5_A>;
308impl<'a, REG> CH5_W<'a, REG>
309where
310 REG: crate::Writable + crate::RegisterSpec,
311{
312 #[doc = "masked"]
313 #[inline(always)]
314 pub fn value1(self) -> &'a mut crate::W<REG> {
315 self.variant(CH5_A::VALUE1)
316 }
317 #[doc = "unmasked"]
318 #[inline(always)]
319 pub fn value2(self) -> &'a mut crate::W<REG> {
320 self.variant(CH5_A::VALUE2)
321 }
322}
323#[doc = "Mask bit for channel 6\n\nValue on reset: 0"]
324#[derive(Clone, Copy, Debug, PartialEq, Eq)]
325pub enum CH6_A {
326 #[doc = "0: masked"]
327 VALUE1 = 0,
328 #[doc = "1: unmasked"]
329 VALUE2 = 1,
330}
331impl From<CH6_A> for bool {
332 #[inline(always)]
333 fn from(variant: CH6_A) -> Self {
334 variant as u8 != 0
335 }
336}
337#[doc = "Field `CH6` reader - Mask bit for channel 6"]
338pub type CH6_R = crate::BitReader<CH6_A>;
339impl CH6_R {
340 #[doc = "Get enumerated values variant"]
341 #[inline(always)]
342 pub const fn variant(&self) -> CH6_A {
343 match self.bits {
344 false => CH6_A::VALUE1,
345 true => CH6_A::VALUE2,
346 }
347 }
348 #[doc = "masked"]
349 #[inline(always)]
350 pub fn is_value1(&self) -> bool {
351 *self == CH6_A::VALUE1
352 }
353 #[doc = "unmasked"]
354 #[inline(always)]
355 pub fn is_value2(&self) -> bool {
356 *self == CH6_A::VALUE2
357 }
358}
359#[doc = "Field `CH6` writer - Mask bit for channel 6"]
360pub type CH6_W<'a, REG> = crate::BitWriter<'a, REG, CH6_A>;
361impl<'a, REG> CH6_W<'a, REG>
362where
363 REG: crate::Writable + crate::RegisterSpec,
364{
365 #[doc = "masked"]
366 #[inline(always)]
367 pub fn value1(self) -> &'a mut crate::W<REG> {
368 self.variant(CH6_A::VALUE1)
369 }
370 #[doc = "unmasked"]
371 #[inline(always)]
372 pub fn value2(self) -> &'a mut crate::W<REG> {
373 self.variant(CH6_A::VALUE2)
374 }
375}
376#[doc = "Mask bit for channel 7\n\nValue on reset: 0"]
377#[derive(Clone, Copy, Debug, PartialEq, Eq)]
378pub enum CH7_A {
379 #[doc = "0: masked"]
380 VALUE1 = 0,
381 #[doc = "1: unmasked"]
382 VALUE2 = 1,
383}
384impl From<CH7_A> for bool {
385 #[inline(always)]
386 fn from(variant: CH7_A) -> Self {
387 variant as u8 != 0
388 }
389}
390#[doc = "Field `CH7` reader - Mask bit for channel 7"]
391pub type CH7_R = crate::BitReader<CH7_A>;
392impl CH7_R {
393 #[doc = "Get enumerated values variant"]
394 #[inline(always)]
395 pub const fn variant(&self) -> CH7_A {
396 match self.bits {
397 false => CH7_A::VALUE1,
398 true => CH7_A::VALUE2,
399 }
400 }
401 #[doc = "masked"]
402 #[inline(always)]
403 pub fn is_value1(&self) -> bool {
404 *self == CH7_A::VALUE1
405 }
406 #[doc = "unmasked"]
407 #[inline(always)]
408 pub fn is_value2(&self) -> bool {
409 *self == CH7_A::VALUE2
410 }
411}
412#[doc = "Field `CH7` writer - Mask bit for channel 7"]
413pub type CH7_W<'a, REG> = crate::BitWriter<'a, REG, CH7_A>;
414impl<'a, REG> CH7_W<'a, REG>
415where
416 REG: crate::Writable + crate::RegisterSpec,
417{
418 #[doc = "masked"]
419 #[inline(always)]
420 pub fn value1(self) -> &'a mut crate::W<REG> {
421 self.variant(CH7_A::VALUE1)
422 }
423 #[doc = "unmasked"]
424 #[inline(always)]
425 pub fn value2(self) -> &'a mut crate::W<REG> {
426 self.variant(CH7_A::VALUE2)
427 }
428}
429#[doc = "Write enable for mask bit of channel 0\n\nValue on reset: 0"]
430#[derive(Clone, Copy, Debug, PartialEq, Eq)]
431pub enum WE_CH0_A {
432 #[doc = "0: write disabled"]
433 VALUE1 = 0,
434 #[doc = "1: write enabled"]
435 VALUE2 = 1,
436}
437impl From<WE_CH0_A> for bool {
438 #[inline(always)]
439 fn from(variant: WE_CH0_A) -> Self {
440 variant as u8 != 0
441 }
442}
443#[doc = "Field `WE_CH0` writer - Write enable for mask bit of channel 0"]
444pub type WE_CH0_W<'a, REG> = crate::BitWriter<'a, REG, WE_CH0_A>;
445impl<'a, REG> WE_CH0_W<'a, REG>
446where
447 REG: crate::Writable + crate::RegisterSpec,
448{
449 #[doc = "write disabled"]
450 #[inline(always)]
451 pub fn value1(self) -> &'a mut crate::W<REG> {
452 self.variant(WE_CH0_A::VALUE1)
453 }
454 #[doc = "write enabled"]
455 #[inline(always)]
456 pub fn value2(self) -> &'a mut crate::W<REG> {
457 self.variant(WE_CH0_A::VALUE2)
458 }
459}
460#[doc = "Write enable for mask bit of channel 1\n\nValue on reset: 0"]
461#[derive(Clone, Copy, Debug, PartialEq, Eq)]
462pub enum WE_CH1_A {
463 #[doc = "0: write disabled"]
464 VALUE1 = 0,
465 #[doc = "1: write enabled"]
466 VALUE2 = 1,
467}
468impl From<WE_CH1_A> for bool {
469 #[inline(always)]
470 fn from(variant: WE_CH1_A) -> Self {
471 variant as u8 != 0
472 }
473}
474#[doc = "Field `WE_CH1` writer - Write enable for mask bit of channel 1"]
475pub type WE_CH1_W<'a, REG> = crate::BitWriter<'a, REG, WE_CH1_A>;
476impl<'a, REG> WE_CH1_W<'a, REG>
477where
478 REG: crate::Writable + crate::RegisterSpec,
479{
480 #[doc = "write disabled"]
481 #[inline(always)]
482 pub fn value1(self) -> &'a mut crate::W<REG> {
483 self.variant(WE_CH1_A::VALUE1)
484 }
485 #[doc = "write enabled"]
486 #[inline(always)]
487 pub fn value2(self) -> &'a mut crate::W<REG> {
488 self.variant(WE_CH1_A::VALUE2)
489 }
490}
491#[doc = "Write enable for mask bit of channel 2\n\nValue on reset: 0"]
492#[derive(Clone, Copy, Debug, PartialEq, Eq)]
493pub enum WE_CH2_A {
494 #[doc = "0: write disabled"]
495 VALUE1 = 0,
496 #[doc = "1: write enabled"]
497 VALUE2 = 1,
498}
499impl From<WE_CH2_A> for bool {
500 #[inline(always)]
501 fn from(variant: WE_CH2_A) -> Self {
502 variant as u8 != 0
503 }
504}
505#[doc = "Field `WE_CH2` writer - Write enable for mask bit of channel 2"]
506pub type WE_CH2_W<'a, REG> = crate::BitWriter<'a, REG, WE_CH2_A>;
507impl<'a, REG> WE_CH2_W<'a, REG>
508where
509 REG: crate::Writable + crate::RegisterSpec,
510{
511 #[doc = "write disabled"]
512 #[inline(always)]
513 pub fn value1(self) -> &'a mut crate::W<REG> {
514 self.variant(WE_CH2_A::VALUE1)
515 }
516 #[doc = "write enabled"]
517 #[inline(always)]
518 pub fn value2(self) -> &'a mut crate::W<REG> {
519 self.variant(WE_CH2_A::VALUE2)
520 }
521}
522#[doc = "Write enable for mask bit of channel 3\n\nValue on reset: 0"]
523#[derive(Clone, Copy, Debug, PartialEq, Eq)]
524pub enum WE_CH3_A {
525 #[doc = "0: write disabled"]
526 VALUE1 = 0,
527 #[doc = "1: write enabled"]
528 VALUE2 = 1,
529}
530impl From<WE_CH3_A> for bool {
531 #[inline(always)]
532 fn from(variant: WE_CH3_A) -> Self {
533 variant as u8 != 0
534 }
535}
536#[doc = "Field `WE_CH3` writer - Write enable for mask bit of channel 3"]
537pub type WE_CH3_W<'a, REG> = crate::BitWriter<'a, REG, WE_CH3_A>;
538impl<'a, REG> WE_CH3_W<'a, REG>
539where
540 REG: crate::Writable + crate::RegisterSpec,
541{
542 #[doc = "write disabled"]
543 #[inline(always)]
544 pub fn value1(self) -> &'a mut crate::W<REG> {
545 self.variant(WE_CH3_A::VALUE1)
546 }
547 #[doc = "write enabled"]
548 #[inline(always)]
549 pub fn value2(self) -> &'a mut crate::W<REG> {
550 self.variant(WE_CH3_A::VALUE2)
551 }
552}
553#[doc = "Write enable for mask bit of channel 4\n\nValue on reset: 0"]
554#[derive(Clone, Copy, Debug, PartialEq, Eq)]
555pub enum WE_CH4_A {
556 #[doc = "0: write disabled"]
557 VALUE1 = 0,
558 #[doc = "1: write enabled"]
559 VALUE2 = 1,
560}
561impl From<WE_CH4_A> for bool {
562 #[inline(always)]
563 fn from(variant: WE_CH4_A) -> Self {
564 variant as u8 != 0
565 }
566}
567#[doc = "Field `WE_CH4` writer - Write enable for mask bit of channel 4"]
568pub type WE_CH4_W<'a, REG> = crate::BitWriter<'a, REG, WE_CH4_A>;
569impl<'a, REG> WE_CH4_W<'a, REG>
570where
571 REG: crate::Writable + crate::RegisterSpec,
572{
573 #[doc = "write disabled"]
574 #[inline(always)]
575 pub fn value1(self) -> &'a mut crate::W<REG> {
576 self.variant(WE_CH4_A::VALUE1)
577 }
578 #[doc = "write enabled"]
579 #[inline(always)]
580 pub fn value2(self) -> &'a mut crate::W<REG> {
581 self.variant(WE_CH4_A::VALUE2)
582 }
583}
584#[doc = "Write enable for mask bit of channel 5\n\nValue on reset: 0"]
585#[derive(Clone, Copy, Debug, PartialEq, Eq)]
586pub enum WE_CH5_A {
587 #[doc = "0: write disabled"]
588 VALUE1 = 0,
589 #[doc = "1: write enabled"]
590 VALUE2 = 1,
591}
592impl From<WE_CH5_A> for bool {
593 #[inline(always)]
594 fn from(variant: WE_CH5_A) -> Self {
595 variant as u8 != 0
596 }
597}
598#[doc = "Field `WE_CH5` writer - Write enable for mask bit of channel 5"]
599pub type WE_CH5_W<'a, REG> = crate::BitWriter<'a, REG, WE_CH5_A>;
600impl<'a, REG> WE_CH5_W<'a, REG>
601where
602 REG: crate::Writable + crate::RegisterSpec,
603{
604 #[doc = "write disabled"]
605 #[inline(always)]
606 pub fn value1(self) -> &'a mut crate::W<REG> {
607 self.variant(WE_CH5_A::VALUE1)
608 }
609 #[doc = "write enabled"]
610 #[inline(always)]
611 pub fn value2(self) -> &'a mut crate::W<REG> {
612 self.variant(WE_CH5_A::VALUE2)
613 }
614}
615#[doc = "Write enable for mask bit of channel 6\n\nValue on reset: 0"]
616#[derive(Clone, Copy, Debug, PartialEq, Eq)]
617pub enum WE_CH6_A {
618 #[doc = "0: write disabled"]
619 VALUE1 = 0,
620 #[doc = "1: write enabled"]
621 VALUE2 = 1,
622}
623impl From<WE_CH6_A> for bool {
624 #[inline(always)]
625 fn from(variant: WE_CH6_A) -> Self {
626 variant as u8 != 0
627 }
628}
629#[doc = "Field `WE_CH6` writer - Write enable for mask bit of channel 6"]
630pub type WE_CH6_W<'a, REG> = crate::BitWriter<'a, REG, WE_CH6_A>;
631impl<'a, REG> WE_CH6_W<'a, REG>
632where
633 REG: crate::Writable + crate::RegisterSpec,
634{
635 #[doc = "write disabled"]
636 #[inline(always)]
637 pub fn value1(self) -> &'a mut crate::W<REG> {
638 self.variant(WE_CH6_A::VALUE1)
639 }
640 #[doc = "write enabled"]
641 #[inline(always)]
642 pub fn value2(self) -> &'a mut crate::W<REG> {
643 self.variant(WE_CH6_A::VALUE2)
644 }
645}
646#[doc = "Write enable for mask bit of channel 7\n\nValue on reset: 0"]
647#[derive(Clone, Copy, Debug, PartialEq, Eq)]
648pub enum WE_CH7_A {
649 #[doc = "0: write disabled"]
650 VALUE1 = 0,
651 #[doc = "1: write enabled"]
652 VALUE2 = 1,
653}
654impl From<WE_CH7_A> for bool {
655 #[inline(always)]
656 fn from(variant: WE_CH7_A) -> Self {
657 variant as u8 != 0
658 }
659}
660#[doc = "Field `WE_CH7` writer - Write enable for mask bit of channel 7"]
661pub type WE_CH7_W<'a, REG> = crate::BitWriter<'a, REG, WE_CH7_A>;
662impl<'a, REG> WE_CH7_W<'a, REG>
663where
664 REG: crate::Writable + crate::RegisterSpec,
665{
666 #[doc = "write disabled"]
667 #[inline(always)]
668 pub fn value1(self) -> &'a mut crate::W<REG> {
669 self.variant(WE_CH7_A::VALUE1)
670 }
671 #[doc = "write enabled"]
672 #[inline(always)]
673 pub fn value2(self) -> &'a mut crate::W<REG> {
674 self.variant(WE_CH7_A::VALUE2)
675 }
676}
677impl R {
678 #[doc = "Bit 0 - Mask bit for channel 0"]
679 #[inline(always)]
680 pub fn ch0(&self) -> CH0_R {
681 CH0_R::new((self.bits & 1) != 0)
682 }
683 #[doc = "Bit 1 - Mask bit for channel 1"]
684 #[inline(always)]
685 pub fn ch1(&self) -> CH1_R {
686 CH1_R::new(((self.bits >> 1) & 1) != 0)
687 }
688 #[doc = "Bit 2 - Mask bit for channel 2"]
689 #[inline(always)]
690 pub fn ch2(&self) -> CH2_R {
691 CH2_R::new(((self.bits >> 2) & 1) != 0)
692 }
693 #[doc = "Bit 3 - Mask bit for channel 3"]
694 #[inline(always)]
695 pub fn ch3(&self) -> CH3_R {
696 CH3_R::new(((self.bits >> 3) & 1) != 0)
697 }
698 #[doc = "Bit 4 - Mask bit for channel 4"]
699 #[inline(always)]
700 pub fn ch4(&self) -> CH4_R {
701 CH4_R::new(((self.bits >> 4) & 1) != 0)
702 }
703 #[doc = "Bit 5 - Mask bit for channel 5"]
704 #[inline(always)]
705 pub fn ch5(&self) -> CH5_R {
706 CH5_R::new(((self.bits >> 5) & 1) != 0)
707 }
708 #[doc = "Bit 6 - Mask bit for channel 6"]
709 #[inline(always)]
710 pub fn ch6(&self) -> CH6_R {
711 CH6_R::new(((self.bits >> 6) & 1) != 0)
712 }
713 #[doc = "Bit 7 - Mask bit for channel 7"]
714 #[inline(always)]
715 pub fn ch7(&self) -> CH7_R {
716 CH7_R::new(((self.bits >> 7) & 1) != 0)
717 }
718}
719impl W {
720 #[doc = "Bit 0 - Mask bit for channel 0"]
721 #[inline(always)]
722 pub fn ch0(&mut self) -> CH0_W<MASKBLOCK_SPEC> {
723 CH0_W::new(self, 0)
724 }
725 #[doc = "Bit 1 - Mask bit for channel 1"]
726 #[inline(always)]
727 pub fn ch1(&mut self) -> CH1_W<MASKBLOCK_SPEC> {
728 CH1_W::new(self, 1)
729 }
730 #[doc = "Bit 2 - Mask bit for channel 2"]
731 #[inline(always)]
732 pub fn ch2(&mut self) -> CH2_W<MASKBLOCK_SPEC> {
733 CH2_W::new(self, 2)
734 }
735 #[doc = "Bit 3 - Mask bit for channel 3"]
736 #[inline(always)]
737 pub fn ch3(&mut self) -> CH3_W<MASKBLOCK_SPEC> {
738 CH3_W::new(self, 3)
739 }
740 #[doc = "Bit 4 - Mask bit for channel 4"]
741 #[inline(always)]
742 pub fn ch4(&mut self) -> CH4_W<MASKBLOCK_SPEC> {
743 CH4_W::new(self, 4)
744 }
745 #[doc = "Bit 5 - Mask bit for channel 5"]
746 #[inline(always)]
747 pub fn ch5(&mut self) -> CH5_W<MASKBLOCK_SPEC> {
748 CH5_W::new(self, 5)
749 }
750 #[doc = "Bit 6 - Mask bit for channel 6"]
751 #[inline(always)]
752 pub fn ch6(&mut self) -> CH6_W<MASKBLOCK_SPEC> {
753 CH6_W::new(self, 6)
754 }
755 #[doc = "Bit 7 - Mask bit for channel 7"]
756 #[inline(always)]
757 pub fn ch7(&mut self) -> CH7_W<MASKBLOCK_SPEC> {
758 CH7_W::new(self, 7)
759 }
760 #[doc = "Bit 8 - Write enable for mask bit of channel 0"]
761 #[inline(always)]
762 pub fn we_ch0(&mut self) -> WE_CH0_W<MASKBLOCK_SPEC> {
763 WE_CH0_W::new(self, 8)
764 }
765 #[doc = "Bit 9 - Write enable for mask bit of channel 1"]
766 #[inline(always)]
767 pub fn we_ch1(&mut self) -> WE_CH1_W<MASKBLOCK_SPEC> {
768 WE_CH1_W::new(self, 9)
769 }
770 #[doc = "Bit 10 - Write enable for mask bit of channel 2"]
771 #[inline(always)]
772 pub fn we_ch2(&mut self) -> WE_CH2_W<MASKBLOCK_SPEC> {
773 WE_CH2_W::new(self, 10)
774 }
775 #[doc = "Bit 11 - Write enable for mask bit of channel 3"]
776 #[inline(always)]
777 pub fn we_ch3(&mut self) -> WE_CH3_W<MASKBLOCK_SPEC> {
778 WE_CH3_W::new(self, 11)
779 }
780 #[doc = "Bit 12 - Write enable for mask bit of channel 4"]
781 #[inline(always)]
782 pub fn we_ch4(&mut self) -> WE_CH4_W<MASKBLOCK_SPEC> {
783 WE_CH4_W::new(self, 12)
784 }
785 #[doc = "Bit 13 - Write enable for mask bit of channel 5"]
786 #[inline(always)]
787 pub fn we_ch5(&mut self) -> WE_CH5_W<MASKBLOCK_SPEC> {
788 WE_CH5_W::new(self, 13)
789 }
790 #[doc = "Bit 14 - Write enable for mask bit of channel 6"]
791 #[inline(always)]
792 pub fn we_ch6(&mut self) -> WE_CH6_W<MASKBLOCK_SPEC> {
793 WE_CH6_W::new(self, 14)
794 }
795 #[doc = "Bit 15 - Write enable for mask bit of channel 7"]
796 #[inline(always)]
797 pub fn we_ch7(&mut self) -> WE_CH7_W<MASKBLOCK_SPEC> {
798 WE_CH7_W::new(self, 15)
799 }
800}
801#[doc = "Mask for Raw IntBlock Status\n\nYou can [`read`](crate::Reg::read) this register and get [`maskblock::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maskblock::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
802pub struct MASKBLOCK_SPEC;
803impl crate::RegisterSpec for MASKBLOCK_SPEC {
804 type Ux = u32;
805}
806#[doc = "`read()` method returns [`maskblock::R`](R) reader structure"]
807impl crate::Readable for MASKBLOCK_SPEC {}
808#[doc = "`write(|w| ..)` method takes [`maskblock::W`](W) writer structure"]
809impl crate::Writable for MASKBLOCK_SPEC {
810 type Safety = crate::Unsafe;
811 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
812 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
813}
814#[doc = "`reset()` method sets MASKBLOCK to value 0"]
815impl crate::Resettable for MASKBLOCK_SPEC {
816 const RESET_VALUE: u32 = 0;
817}