1#[doc = "Register `EVFLAG` reader"]
2pub struct R(crate::R<EVFLAG_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<EVFLAG_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<EVFLAG_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<EVFLAG_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `EVFLAG` writer"]
17pub struct W(crate::W<EVFLAG_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<EVFLAG_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<EVFLAG_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<EVFLAG_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `FLAG0` reader - Event Flag n"]
38pub type FLAG0_R = crate::BitReader<FLAG0_A>;
39#[doc = "Event Flag n\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq, Eq)]
41pub enum FLAG0_A {
42 #[doc = "0: No Flag"]
43 NO_FLAG = 0,
44 #[doc = "1: Event n Flag"]
45 FLAG = 1,
46}
47impl From<FLAG0_A> for bool {
48 #[inline(always)]
49 fn from(variant: FLAG0_A) -> Self {
50 variant as u8 != 0
51 }
52}
53impl FLAG0_R {
54 #[doc = "Get enumerated values variant"]
55 #[inline(always)]
56 pub fn variant(&self) -> FLAG0_A {
57 match self.bits {
58 false => FLAG0_A::NO_FLAG,
59 true => FLAG0_A::FLAG,
60 }
61 }
62 #[doc = "Checks if the value of the field is `NO_FLAG`"]
63 #[inline(always)]
64 pub fn is_no_flag(&self) -> bool {
65 *self == FLAG0_A::NO_FLAG
66 }
67 #[doc = "Checks if the value of the field is `FLAG`"]
68 #[inline(always)]
69 pub fn is_flag(&self) -> bool {
70 *self == FLAG0_A::FLAG
71 }
72}
73#[doc = "Field `FLAG0` writer - Event Flag n"]
74pub type FLAG0_W<'a, const O: u8> = crate::BitWriter<'a, u32, EVFLAG_SPEC, FLAG0_A, O>;
75impl<'a, const O: u8> FLAG0_W<'a, O> {
76 #[doc = "No Flag"]
77 #[inline(always)]
78 pub fn no_flag(self) -> &'a mut W {
79 self.variant(FLAG0_A::NO_FLAG)
80 }
81 #[doc = "Event n Flag"]
82 #[inline(always)]
83 pub fn flag(self) -> &'a mut W {
84 self.variant(FLAG0_A::FLAG)
85 }
86}
87#[doc = "Field `FLAG1` reader - Event Flag n"]
88pub type FLAG1_R = crate::BitReader<FLAG1_A>;
89#[doc = "Event Flag n\n\nValue on reset: 0"]
90#[derive(Clone, Copy, Debug, PartialEq, Eq)]
91pub enum FLAG1_A {
92 #[doc = "0: No Flag"]
93 NO_FLAG = 0,
94 #[doc = "1: Event n Flag"]
95 FLAG = 1,
96}
97impl From<FLAG1_A> for bool {
98 #[inline(always)]
99 fn from(variant: FLAG1_A) -> Self {
100 variant as u8 != 0
101 }
102}
103impl FLAG1_R {
104 #[doc = "Get enumerated values variant"]
105 #[inline(always)]
106 pub fn variant(&self) -> FLAG1_A {
107 match self.bits {
108 false => FLAG1_A::NO_FLAG,
109 true => FLAG1_A::FLAG,
110 }
111 }
112 #[doc = "Checks if the value of the field is `NO_FLAG`"]
113 #[inline(always)]
114 pub fn is_no_flag(&self) -> bool {
115 *self == FLAG1_A::NO_FLAG
116 }
117 #[doc = "Checks if the value of the field is `FLAG`"]
118 #[inline(always)]
119 pub fn is_flag(&self) -> bool {
120 *self == FLAG1_A::FLAG
121 }
122}
123#[doc = "Field `FLAG1` writer - Event Flag n"]
124pub type FLAG1_W<'a, const O: u8> = crate::BitWriter<'a, u32, EVFLAG_SPEC, FLAG1_A, O>;
125impl<'a, const O: u8> FLAG1_W<'a, O> {
126 #[doc = "No Flag"]
127 #[inline(always)]
128 pub fn no_flag(self) -> &'a mut W {
129 self.variant(FLAG1_A::NO_FLAG)
130 }
131 #[doc = "Event n Flag"]
132 #[inline(always)]
133 pub fn flag(self) -> &'a mut W {
134 self.variant(FLAG1_A::FLAG)
135 }
136}
137#[doc = "Field `FLAG2` reader - Event Flag n"]
138pub type FLAG2_R = crate::BitReader<FLAG2_A>;
139#[doc = "Event Flag n\n\nValue on reset: 0"]
140#[derive(Clone, Copy, Debug, PartialEq, Eq)]
141pub enum FLAG2_A {
142 #[doc = "0: No Flag"]
143 NO_FLAG = 0,
144 #[doc = "1: Event n Flag"]
145 FLAG = 1,
146}
147impl From<FLAG2_A> for bool {
148 #[inline(always)]
149 fn from(variant: FLAG2_A) -> Self {
150 variant as u8 != 0
151 }
152}
153impl FLAG2_R {
154 #[doc = "Get enumerated values variant"]
155 #[inline(always)]
156 pub fn variant(&self) -> FLAG2_A {
157 match self.bits {
158 false => FLAG2_A::NO_FLAG,
159 true => FLAG2_A::FLAG,
160 }
161 }
162 #[doc = "Checks if the value of the field is `NO_FLAG`"]
163 #[inline(always)]
164 pub fn is_no_flag(&self) -> bool {
165 *self == FLAG2_A::NO_FLAG
166 }
167 #[doc = "Checks if the value of the field is `FLAG`"]
168 #[inline(always)]
169 pub fn is_flag(&self) -> bool {
170 *self == FLAG2_A::FLAG
171 }
172}
173#[doc = "Field `FLAG2` writer - Event Flag n"]
174pub type FLAG2_W<'a, const O: u8> = crate::BitWriter<'a, u32, EVFLAG_SPEC, FLAG2_A, O>;
175impl<'a, const O: u8> FLAG2_W<'a, O> {
176 #[doc = "No Flag"]
177 #[inline(always)]
178 pub fn no_flag(self) -> &'a mut W {
179 self.variant(FLAG2_A::NO_FLAG)
180 }
181 #[doc = "Event n Flag"]
182 #[inline(always)]
183 pub fn flag(self) -> &'a mut W {
184 self.variant(FLAG2_A::FLAG)
185 }
186}
187#[doc = "Field `FLAG3` reader - Event Flag n"]
188pub type FLAG3_R = crate::BitReader<FLAG3_A>;
189#[doc = "Event Flag n\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq, Eq)]
191pub enum FLAG3_A {
192 #[doc = "0: No Flag"]
193 NO_FLAG = 0,
194 #[doc = "1: Event n Flag"]
195 FLAG = 1,
196}
197impl From<FLAG3_A> for bool {
198 #[inline(always)]
199 fn from(variant: FLAG3_A) -> Self {
200 variant as u8 != 0
201 }
202}
203impl FLAG3_R {
204 #[doc = "Get enumerated values variant"]
205 #[inline(always)]
206 pub fn variant(&self) -> FLAG3_A {
207 match self.bits {
208 false => FLAG3_A::NO_FLAG,
209 true => FLAG3_A::FLAG,
210 }
211 }
212 #[doc = "Checks if the value of the field is `NO_FLAG`"]
213 #[inline(always)]
214 pub fn is_no_flag(&self) -> bool {
215 *self == FLAG3_A::NO_FLAG
216 }
217 #[doc = "Checks if the value of the field is `FLAG`"]
218 #[inline(always)]
219 pub fn is_flag(&self) -> bool {
220 *self == FLAG3_A::FLAG
221 }
222}
223#[doc = "Field `FLAG3` writer - Event Flag n"]
224pub type FLAG3_W<'a, const O: u8> = crate::BitWriter<'a, u32, EVFLAG_SPEC, FLAG3_A, O>;
225impl<'a, const O: u8> FLAG3_W<'a, O> {
226 #[doc = "No Flag"]
227 #[inline(always)]
228 pub fn no_flag(self) -> &'a mut W {
229 self.variant(FLAG3_A::NO_FLAG)
230 }
231 #[doc = "Event n Flag"]
232 #[inline(always)]
233 pub fn flag(self) -> &'a mut W {
234 self.variant(FLAG3_A::FLAG)
235 }
236}
237#[doc = "Field `FLAG4` reader - Event Flag n"]
238pub type FLAG4_R = crate::BitReader<FLAG4_A>;
239#[doc = "Event Flag n\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq, Eq)]
241pub enum FLAG4_A {
242 #[doc = "0: No Flag"]
243 NO_FLAG = 0,
244 #[doc = "1: Event n Flag"]
245 FLAG = 1,
246}
247impl From<FLAG4_A> for bool {
248 #[inline(always)]
249 fn from(variant: FLAG4_A) -> Self {
250 variant as u8 != 0
251 }
252}
253impl FLAG4_R {
254 #[doc = "Get enumerated values variant"]
255 #[inline(always)]
256 pub fn variant(&self) -> FLAG4_A {
257 match self.bits {
258 false => FLAG4_A::NO_FLAG,
259 true => FLAG4_A::FLAG,
260 }
261 }
262 #[doc = "Checks if the value of the field is `NO_FLAG`"]
263 #[inline(always)]
264 pub fn is_no_flag(&self) -> bool {
265 *self == FLAG4_A::NO_FLAG
266 }
267 #[doc = "Checks if the value of the field is `FLAG`"]
268 #[inline(always)]
269 pub fn is_flag(&self) -> bool {
270 *self == FLAG4_A::FLAG
271 }
272}
273#[doc = "Field `FLAG4` writer - Event Flag n"]
274pub type FLAG4_W<'a, const O: u8> = crate::BitWriter<'a, u32, EVFLAG_SPEC, FLAG4_A, O>;
275impl<'a, const O: u8> FLAG4_W<'a, O> {
276 #[doc = "No Flag"]
277 #[inline(always)]
278 pub fn no_flag(self) -> &'a mut W {
279 self.variant(FLAG4_A::NO_FLAG)
280 }
281 #[doc = "Event n Flag"]
282 #[inline(always)]
283 pub fn flag(self) -> &'a mut W {
284 self.variant(FLAG4_A::FLAG)
285 }
286}
287#[doc = "Field `FLAG5` reader - Event Flag n"]
288pub type FLAG5_R = crate::BitReader<FLAG5_A>;
289#[doc = "Event Flag n\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq, Eq)]
291pub enum FLAG5_A {
292 #[doc = "0: No Flag"]
293 NO_FLAG = 0,
294 #[doc = "1: Event n Flag"]
295 FLAG = 1,
296}
297impl From<FLAG5_A> for bool {
298 #[inline(always)]
299 fn from(variant: FLAG5_A) -> Self {
300 variant as u8 != 0
301 }
302}
303impl FLAG5_R {
304 #[doc = "Get enumerated values variant"]
305 #[inline(always)]
306 pub fn variant(&self) -> FLAG5_A {
307 match self.bits {
308 false => FLAG5_A::NO_FLAG,
309 true => FLAG5_A::FLAG,
310 }
311 }
312 #[doc = "Checks if the value of the field is `NO_FLAG`"]
313 #[inline(always)]
314 pub fn is_no_flag(&self) -> bool {
315 *self == FLAG5_A::NO_FLAG
316 }
317 #[doc = "Checks if the value of the field is `FLAG`"]
318 #[inline(always)]
319 pub fn is_flag(&self) -> bool {
320 *self == FLAG5_A::FLAG
321 }
322}
323#[doc = "Field `FLAG5` writer - Event Flag n"]
324pub type FLAG5_W<'a, const O: u8> = crate::BitWriter<'a, u32, EVFLAG_SPEC, FLAG5_A, O>;
325impl<'a, const O: u8> FLAG5_W<'a, O> {
326 #[doc = "No Flag"]
327 #[inline(always)]
328 pub fn no_flag(self) -> &'a mut W {
329 self.variant(FLAG5_A::NO_FLAG)
330 }
331 #[doc = "Event n Flag"]
332 #[inline(always)]
333 pub fn flag(self) -> &'a mut W {
334 self.variant(FLAG5_A::FLAG)
335 }
336}
337#[doc = "Field `FLAG6` reader - Event Flag n"]
338pub type FLAG6_R = crate::BitReader<FLAG6_A>;
339#[doc = "Event Flag n\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq, Eq)]
341pub enum FLAG6_A {
342 #[doc = "0: No Flag"]
343 NO_FLAG = 0,
344 #[doc = "1: Event n Flag"]
345 FLAG = 1,
346}
347impl From<FLAG6_A> for bool {
348 #[inline(always)]
349 fn from(variant: FLAG6_A) -> Self {
350 variant as u8 != 0
351 }
352}
353impl FLAG6_R {
354 #[doc = "Get enumerated values variant"]
355 #[inline(always)]
356 pub fn variant(&self) -> FLAG6_A {
357 match self.bits {
358 false => FLAG6_A::NO_FLAG,
359 true => FLAG6_A::FLAG,
360 }
361 }
362 #[doc = "Checks if the value of the field is `NO_FLAG`"]
363 #[inline(always)]
364 pub fn is_no_flag(&self) -> bool {
365 *self == FLAG6_A::NO_FLAG
366 }
367 #[doc = "Checks if the value of the field is `FLAG`"]
368 #[inline(always)]
369 pub fn is_flag(&self) -> bool {
370 *self == FLAG6_A::FLAG
371 }
372}
373#[doc = "Field `FLAG6` writer - Event Flag n"]
374pub type FLAG6_W<'a, const O: u8> = crate::BitWriter<'a, u32, EVFLAG_SPEC, FLAG6_A, O>;
375impl<'a, const O: u8> FLAG6_W<'a, O> {
376 #[doc = "No Flag"]
377 #[inline(always)]
378 pub fn no_flag(self) -> &'a mut W {
379 self.variant(FLAG6_A::NO_FLAG)
380 }
381 #[doc = "Event n Flag"]
382 #[inline(always)]
383 pub fn flag(self) -> &'a mut W {
384 self.variant(FLAG6_A::FLAG)
385 }
386}
387#[doc = "Field `FLAG7` reader - Event Flag n"]
388pub type FLAG7_R = crate::BitReader<FLAG7_A>;
389#[doc = "Event Flag n\n\nValue on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq, Eq)]
391pub enum FLAG7_A {
392 #[doc = "0: No Flag"]
393 NO_FLAG = 0,
394 #[doc = "1: Event n Flag"]
395 FLAG = 1,
396}
397impl From<FLAG7_A> for bool {
398 #[inline(always)]
399 fn from(variant: FLAG7_A) -> Self {
400 variant as u8 != 0
401 }
402}
403impl FLAG7_R {
404 #[doc = "Get enumerated values variant"]
405 #[inline(always)]
406 pub fn variant(&self) -> FLAG7_A {
407 match self.bits {
408 false => FLAG7_A::NO_FLAG,
409 true => FLAG7_A::FLAG,
410 }
411 }
412 #[doc = "Checks if the value of the field is `NO_FLAG`"]
413 #[inline(always)]
414 pub fn is_no_flag(&self) -> bool {
415 *self == FLAG7_A::NO_FLAG
416 }
417 #[doc = "Checks if the value of the field is `FLAG`"]
418 #[inline(always)]
419 pub fn is_flag(&self) -> bool {
420 *self == FLAG7_A::FLAG
421 }
422}
423#[doc = "Field `FLAG7` writer - Event Flag n"]
424pub type FLAG7_W<'a, const O: u8> = crate::BitWriter<'a, u32, EVFLAG_SPEC, FLAG7_A, O>;
425impl<'a, const O: u8> FLAG7_W<'a, O> {
426 #[doc = "No Flag"]
427 #[inline(always)]
428 pub fn no_flag(self) -> &'a mut W {
429 self.variant(FLAG7_A::NO_FLAG)
430 }
431 #[doc = "Event n Flag"]
432 #[inline(always)]
433 pub fn flag(self) -> &'a mut W {
434 self.variant(FLAG7_A::FLAG)
435 }
436}
437#[doc = "Field `FLAG8` reader - Event Flag n"]
438pub type FLAG8_R = crate::BitReader<FLAG8_A>;
439#[doc = "Event Flag n\n\nValue on reset: 0"]
440#[derive(Clone, Copy, Debug, PartialEq, Eq)]
441pub enum FLAG8_A {
442 #[doc = "0: No Flag"]
443 NO_FLAG = 0,
444 #[doc = "1: Event n Flag"]
445 FLAG = 1,
446}
447impl From<FLAG8_A> for bool {
448 #[inline(always)]
449 fn from(variant: FLAG8_A) -> Self {
450 variant as u8 != 0
451 }
452}
453impl FLAG8_R {
454 #[doc = "Get enumerated values variant"]
455 #[inline(always)]
456 pub fn variant(&self) -> FLAG8_A {
457 match self.bits {
458 false => FLAG8_A::NO_FLAG,
459 true => FLAG8_A::FLAG,
460 }
461 }
462 #[doc = "Checks if the value of the field is `NO_FLAG`"]
463 #[inline(always)]
464 pub fn is_no_flag(&self) -> bool {
465 *self == FLAG8_A::NO_FLAG
466 }
467 #[doc = "Checks if the value of the field is `FLAG`"]
468 #[inline(always)]
469 pub fn is_flag(&self) -> bool {
470 *self == FLAG8_A::FLAG
471 }
472}
473#[doc = "Field `FLAG8` writer - Event Flag n"]
474pub type FLAG8_W<'a, const O: u8> = crate::BitWriter<'a, u32, EVFLAG_SPEC, FLAG8_A, O>;
475impl<'a, const O: u8> FLAG8_W<'a, O> {
476 #[doc = "No Flag"]
477 #[inline(always)]
478 pub fn no_flag(self) -> &'a mut W {
479 self.variant(FLAG8_A::NO_FLAG)
480 }
481 #[doc = "Event n Flag"]
482 #[inline(always)]
483 pub fn flag(self) -> &'a mut W {
484 self.variant(FLAG8_A::FLAG)
485 }
486}
487#[doc = "Field `FLAG9` reader - Event Flag n"]
488pub type FLAG9_R = crate::BitReader<FLAG9_A>;
489#[doc = "Event Flag n\n\nValue on reset: 0"]
490#[derive(Clone, Copy, Debug, PartialEq, Eq)]
491pub enum FLAG9_A {
492 #[doc = "0: No Flag"]
493 NO_FLAG = 0,
494 #[doc = "1: Event n Flag"]
495 FLAG = 1,
496}
497impl From<FLAG9_A> for bool {
498 #[inline(always)]
499 fn from(variant: FLAG9_A) -> Self {
500 variant as u8 != 0
501 }
502}
503impl FLAG9_R {
504 #[doc = "Get enumerated values variant"]
505 #[inline(always)]
506 pub fn variant(&self) -> FLAG9_A {
507 match self.bits {
508 false => FLAG9_A::NO_FLAG,
509 true => FLAG9_A::FLAG,
510 }
511 }
512 #[doc = "Checks if the value of the field is `NO_FLAG`"]
513 #[inline(always)]
514 pub fn is_no_flag(&self) -> bool {
515 *self == FLAG9_A::NO_FLAG
516 }
517 #[doc = "Checks if the value of the field is `FLAG`"]
518 #[inline(always)]
519 pub fn is_flag(&self) -> bool {
520 *self == FLAG9_A::FLAG
521 }
522}
523#[doc = "Field `FLAG9` writer - Event Flag n"]
524pub type FLAG9_W<'a, const O: u8> = crate::BitWriter<'a, u32, EVFLAG_SPEC, FLAG9_A, O>;
525impl<'a, const O: u8> FLAG9_W<'a, O> {
526 #[doc = "No Flag"]
527 #[inline(always)]
528 pub fn no_flag(self) -> &'a mut W {
529 self.variant(FLAG9_A::NO_FLAG)
530 }
531 #[doc = "Event n Flag"]
532 #[inline(always)]
533 pub fn flag(self) -> &'a mut W {
534 self.variant(FLAG9_A::FLAG)
535 }
536}
537#[doc = "Field `FLAG10` reader - Event Flag n"]
538pub type FLAG10_R = crate::BitReader<FLAG10_A>;
539#[doc = "Event Flag n\n\nValue on reset: 0"]
540#[derive(Clone, Copy, Debug, PartialEq, Eq)]
541pub enum FLAG10_A {
542 #[doc = "0: No Flag"]
543 NO_FLAG = 0,
544 #[doc = "1: Event n Flag"]
545 FLAG = 1,
546}
547impl From<FLAG10_A> for bool {
548 #[inline(always)]
549 fn from(variant: FLAG10_A) -> Self {
550 variant as u8 != 0
551 }
552}
553impl FLAG10_R {
554 #[doc = "Get enumerated values variant"]
555 #[inline(always)]
556 pub fn variant(&self) -> FLAG10_A {
557 match self.bits {
558 false => FLAG10_A::NO_FLAG,
559 true => FLAG10_A::FLAG,
560 }
561 }
562 #[doc = "Checks if the value of the field is `NO_FLAG`"]
563 #[inline(always)]
564 pub fn is_no_flag(&self) -> bool {
565 *self == FLAG10_A::NO_FLAG
566 }
567 #[doc = "Checks if the value of the field is `FLAG`"]
568 #[inline(always)]
569 pub fn is_flag(&self) -> bool {
570 *self == FLAG10_A::FLAG
571 }
572}
573#[doc = "Field `FLAG10` writer - Event Flag n"]
574pub type FLAG10_W<'a, const O: u8> = crate::BitWriter<'a, u32, EVFLAG_SPEC, FLAG10_A, O>;
575impl<'a, const O: u8> FLAG10_W<'a, O> {
576 #[doc = "No Flag"]
577 #[inline(always)]
578 pub fn no_flag(self) -> &'a mut W {
579 self.variant(FLAG10_A::NO_FLAG)
580 }
581 #[doc = "Event n Flag"]
582 #[inline(always)]
583 pub fn flag(self) -> &'a mut W {
584 self.variant(FLAG10_A::FLAG)
585 }
586}
587#[doc = "Field `FLAG11` reader - Event Flag n"]
588pub type FLAG11_R = crate::BitReader<FLAG11_A>;
589#[doc = "Event Flag n\n\nValue on reset: 0"]
590#[derive(Clone, Copy, Debug, PartialEq, Eq)]
591pub enum FLAG11_A {
592 #[doc = "0: No Flag"]
593 NO_FLAG = 0,
594 #[doc = "1: Event n Flag"]
595 FLAG = 1,
596}
597impl From<FLAG11_A> for bool {
598 #[inline(always)]
599 fn from(variant: FLAG11_A) -> Self {
600 variant as u8 != 0
601 }
602}
603impl FLAG11_R {
604 #[doc = "Get enumerated values variant"]
605 #[inline(always)]
606 pub fn variant(&self) -> FLAG11_A {
607 match self.bits {
608 false => FLAG11_A::NO_FLAG,
609 true => FLAG11_A::FLAG,
610 }
611 }
612 #[doc = "Checks if the value of the field is `NO_FLAG`"]
613 #[inline(always)]
614 pub fn is_no_flag(&self) -> bool {
615 *self == FLAG11_A::NO_FLAG
616 }
617 #[doc = "Checks if the value of the field is `FLAG`"]
618 #[inline(always)]
619 pub fn is_flag(&self) -> bool {
620 *self == FLAG11_A::FLAG
621 }
622}
623#[doc = "Field `FLAG11` writer - Event Flag n"]
624pub type FLAG11_W<'a, const O: u8> = crate::BitWriter<'a, u32, EVFLAG_SPEC, FLAG11_A, O>;
625impl<'a, const O: u8> FLAG11_W<'a, O> {
626 #[doc = "No Flag"]
627 #[inline(always)]
628 pub fn no_flag(self) -> &'a mut W {
629 self.variant(FLAG11_A::NO_FLAG)
630 }
631 #[doc = "Event n Flag"]
632 #[inline(always)]
633 pub fn flag(self) -> &'a mut W {
634 self.variant(FLAG11_A::FLAG)
635 }
636}
637#[doc = "Field `FLAG12` reader - Event Flag n"]
638pub type FLAG12_R = crate::BitReader<FLAG12_A>;
639#[doc = "Event Flag n\n\nValue on reset: 0"]
640#[derive(Clone, Copy, Debug, PartialEq, Eq)]
641pub enum FLAG12_A {
642 #[doc = "0: No Flag"]
643 NO_FLAG = 0,
644 #[doc = "1: Event n Flag"]
645 FLAG = 1,
646}
647impl From<FLAG12_A> for bool {
648 #[inline(always)]
649 fn from(variant: FLAG12_A) -> Self {
650 variant as u8 != 0
651 }
652}
653impl FLAG12_R {
654 #[doc = "Get enumerated values variant"]
655 #[inline(always)]
656 pub fn variant(&self) -> FLAG12_A {
657 match self.bits {
658 false => FLAG12_A::NO_FLAG,
659 true => FLAG12_A::FLAG,
660 }
661 }
662 #[doc = "Checks if the value of the field is `NO_FLAG`"]
663 #[inline(always)]
664 pub fn is_no_flag(&self) -> bool {
665 *self == FLAG12_A::NO_FLAG
666 }
667 #[doc = "Checks if the value of the field is `FLAG`"]
668 #[inline(always)]
669 pub fn is_flag(&self) -> bool {
670 *self == FLAG12_A::FLAG
671 }
672}
673#[doc = "Field `FLAG12` writer - Event Flag n"]
674pub type FLAG12_W<'a, const O: u8> = crate::BitWriter<'a, u32, EVFLAG_SPEC, FLAG12_A, O>;
675impl<'a, const O: u8> FLAG12_W<'a, O> {
676 #[doc = "No Flag"]
677 #[inline(always)]
678 pub fn no_flag(self) -> &'a mut W {
679 self.variant(FLAG12_A::NO_FLAG)
680 }
681 #[doc = "Event n Flag"]
682 #[inline(always)]
683 pub fn flag(self) -> &'a mut W {
684 self.variant(FLAG12_A::FLAG)
685 }
686}
687#[doc = "Field `FLAG13` reader - Event Flag n"]
688pub type FLAG13_R = crate::BitReader<FLAG13_A>;
689#[doc = "Event Flag n\n\nValue on reset: 0"]
690#[derive(Clone, Copy, Debug, PartialEq, Eq)]
691pub enum FLAG13_A {
692 #[doc = "0: No Flag"]
693 NO_FLAG = 0,
694 #[doc = "1: Event n Flag"]
695 FLAG = 1,
696}
697impl From<FLAG13_A> for bool {
698 #[inline(always)]
699 fn from(variant: FLAG13_A) -> Self {
700 variant as u8 != 0
701 }
702}
703impl FLAG13_R {
704 #[doc = "Get enumerated values variant"]
705 #[inline(always)]
706 pub fn variant(&self) -> FLAG13_A {
707 match self.bits {
708 false => FLAG13_A::NO_FLAG,
709 true => FLAG13_A::FLAG,
710 }
711 }
712 #[doc = "Checks if the value of the field is `NO_FLAG`"]
713 #[inline(always)]
714 pub fn is_no_flag(&self) -> bool {
715 *self == FLAG13_A::NO_FLAG
716 }
717 #[doc = "Checks if the value of the field is `FLAG`"]
718 #[inline(always)]
719 pub fn is_flag(&self) -> bool {
720 *self == FLAG13_A::FLAG
721 }
722}
723#[doc = "Field `FLAG13` writer - Event Flag n"]
724pub type FLAG13_W<'a, const O: u8> = crate::BitWriter<'a, u32, EVFLAG_SPEC, FLAG13_A, O>;
725impl<'a, const O: u8> FLAG13_W<'a, O> {
726 #[doc = "No Flag"]
727 #[inline(always)]
728 pub fn no_flag(self) -> &'a mut W {
729 self.variant(FLAG13_A::NO_FLAG)
730 }
731 #[doc = "Event n Flag"]
732 #[inline(always)]
733 pub fn flag(self) -> &'a mut W {
734 self.variant(FLAG13_A::FLAG)
735 }
736}
737#[doc = "Field `FLAG14` reader - Event Flag n"]
738pub type FLAG14_R = crate::BitReader<FLAG14_A>;
739#[doc = "Event Flag n\n\nValue on reset: 0"]
740#[derive(Clone, Copy, Debug, PartialEq, Eq)]
741pub enum FLAG14_A {
742 #[doc = "0: No Flag"]
743 NO_FLAG = 0,
744 #[doc = "1: Event n Flag"]
745 FLAG = 1,
746}
747impl From<FLAG14_A> for bool {
748 #[inline(always)]
749 fn from(variant: FLAG14_A) -> Self {
750 variant as u8 != 0
751 }
752}
753impl FLAG14_R {
754 #[doc = "Get enumerated values variant"]
755 #[inline(always)]
756 pub fn variant(&self) -> FLAG14_A {
757 match self.bits {
758 false => FLAG14_A::NO_FLAG,
759 true => FLAG14_A::FLAG,
760 }
761 }
762 #[doc = "Checks if the value of the field is `NO_FLAG`"]
763 #[inline(always)]
764 pub fn is_no_flag(&self) -> bool {
765 *self == FLAG14_A::NO_FLAG
766 }
767 #[doc = "Checks if the value of the field is `FLAG`"]
768 #[inline(always)]
769 pub fn is_flag(&self) -> bool {
770 *self == FLAG14_A::FLAG
771 }
772}
773#[doc = "Field `FLAG14` writer - Event Flag n"]
774pub type FLAG14_W<'a, const O: u8> = crate::BitWriter<'a, u32, EVFLAG_SPEC, FLAG14_A, O>;
775impl<'a, const O: u8> FLAG14_W<'a, O> {
776 #[doc = "No Flag"]
777 #[inline(always)]
778 pub fn no_flag(self) -> &'a mut W {
779 self.variant(FLAG14_A::NO_FLAG)
780 }
781 #[doc = "Event n Flag"]
782 #[inline(always)]
783 pub fn flag(self) -> &'a mut W {
784 self.variant(FLAG14_A::FLAG)
785 }
786}
787#[doc = "Field `FLAG15` reader - Event Flag n"]
788pub type FLAG15_R = crate::BitReader<FLAG15_A>;
789#[doc = "Event Flag n\n\nValue on reset: 0"]
790#[derive(Clone, Copy, Debug, PartialEq, Eq)]
791pub enum FLAG15_A {
792 #[doc = "0: No Flag"]
793 NO_FLAG = 0,
794 #[doc = "1: Event n Flag"]
795 FLAG = 1,
796}
797impl From<FLAG15_A> for bool {
798 #[inline(always)]
799 fn from(variant: FLAG15_A) -> Self {
800 variant as u8 != 0
801 }
802}
803impl FLAG15_R {
804 #[doc = "Get enumerated values variant"]
805 #[inline(always)]
806 pub fn variant(&self) -> FLAG15_A {
807 match self.bits {
808 false => FLAG15_A::NO_FLAG,
809 true => FLAG15_A::FLAG,
810 }
811 }
812 #[doc = "Checks if the value of the field is `NO_FLAG`"]
813 #[inline(always)]
814 pub fn is_no_flag(&self) -> bool {
815 *self == FLAG15_A::NO_FLAG
816 }
817 #[doc = "Checks if the value of the field is `FLAG`"]
818 #[inline(always)]
819 pub fn is_flag(&self) -> bool {
820 *self == FLAG15_A::FLAG
821 }
822}
823#[doc = "Field `FLAG15` writer - Event Flag n"]
824pub type FLAG15_W<'a, const O: u8> = crate::BitWriter<'a, u32, EVFLAG_SPEC, FLAG15_A, O>;
825impl<'a, const O: u8> FLAG15_W<'a, O> {
826 #[doc = "No Flag"]
827 #[inline(always)]
828 pub fn no_flag(self) -> &'a mut W {
829 self.variant(FLAG15_A::NO_FLAG)
830 }
831 #[doc = "Event n Flag"]
832 #[inline(always)]
833 pub fn flag(self) -> &'a mut W {
834 self.variant(FLAG15_A::FLAG)
835 }
836}
837impl R {
838 #[doc = "Bit 0 - Event Flag n"]
839 #[inline(always)]
840 pub fn flag0(&self) -> FLAG0_R {
841 FLAG0_R::new((self.bits & 1) != 0)
842 }
843 #[doc = "Bit 1 - Event Flag n"]
844 #[inline(always)]
845 pub fn flag1(&self) -> FLAG1_R {
846 FLAG1_R::new(((self.bits >> 1) & 1) != 0)
847 }
848 #[doc = "Bit 2 - Event Flag n"]
849 #[inline(always)]
850 pub fn flag2(&self) -> FLAG2_R {
851 FLAG2_R::new(((self.bits >> 2) & 1) != 0)
852 }
853 #[doc = "Bit 3 - Event Flag n"]
854 #[inline(always)]
855 pub fn flag3(&self) -> FLAG3_R {
856 FLAG3_R::new(((self.bits >> 3) & 1) != 0)
857 }
858 #[doc = "Bit 4 - Event Flag n"]
859 #[inline(always)]
860 pub fn flag4(&self) -> FLAG4_R {
861 FLAG4_R::new(((self.bits >> 4) & 1) != 0)
862 }
863 #[doc = "Bit 5 - Event Flag n"]
864 #[inline(always)]
865 pub fn flag5(&self) -> FLAG5_R {
866 FLAG5_R::new(((self.bits >> 5) & 1) != 0)
867 }
868 #[doc = "Bit 6 - Event Flag n"]
869 #[inline(always)]
870 pub fn flag6(&self) -> FLAG6_R {
871 FLAG6_R::new(((self.bits >> 6) & 1) != 0)
872 }
873 #[doc = "Bit 7 - Event Flag n"]
874 #[inline(always)]
875 pub fn flag7(&self) -> FLAG7_R {
876 FLAG7_R::new(((self.bits >> 7) & 1) != 0)
877 }
878 #[doc = "Bit 8 - Event Flag n"]
879 #[inline(always)]
880 pub fn flag8(&self) -> FLAG8_R {
881 FLAG8_R::new(((self.bits >> 8) & 1) != 0)
882 }
883 #[doc = "Bit 9 - Event Flag n"]
884 #[inline(always)]
885 pub fn flag9(&self) -> FLAG9_R {
886 FLAG9_R::new(((self.bits >> 9) & 1) != 0)
887 }
888 #[doc = "Bit 10 - Event Flag n"]
889 #[inline(always)]
890 pub fn flag10(&self) -> FLAG10_R {
891 FLAG10_R::new(((self.bits >> 10) & 1) != 0)
892 }
893 #[doc = "Bit 11 - Event Flag n"]
894 #[inline(always)]
895 pub fn flag11(&self) -> FLAG11_R {
896 FLAG11_R::new(((self.bits >> 11) & 1) != 0)
897 }
898 #[doc = "Bit 12 - Event Flag n"]
899 #[inline(always)]
900 pub fn flag12(&self) -> FLAG12_R {
901 FLAG12_R::new(((self.bits >> 12) & 1) != 0)
902 }
903 #[doc = "Bit 13 - Event Flag n"]
904 #[inline(always)]
905 pub fn flag13(&self) -> FLAG13_R {
906 FLAG13_R::new(((self.bits >> 13) & 1) != 0)
907 }
908 #[doc = "Bit 14 - Event Flag n"]
909 #[inline(always)]
910 pub fn flag14(&self) -> FLAG14_R {
911 FLAG14_R::new(((self.bits >> 14) & 1) != 0)
912 }
913 #[doc = "Bit 15 - Event Flag n"]
914 #[inline(always)]
915 pub fn flag15(&self) -> FLAG15_R {
916 FLAG15_R::new(((self.bits >> 15) & 1) != 0)
917 }
918}
919impl W {
920 #[doc = "Bit 0 - Event Flag n"]
921 #[inline(always)]
922 #[must_use]
923 pub fn flag0(&mut self) -> FLAG0_W<0> {
924 FLAG0_W::new(self)
925 }
926 #[doc = "Bit 1 - Event Flag n"]
927 #[inline(always)]
928 #[must_use]
929 pub fn flag1(&mut self) -> FLAG1_W<1> {
930 FLAG1_W::new(self)
931 }
932 #[doc = "Bit 2 - Event Flag n"]
933 #[inline(always)]
934 #[must_use]
935 pub fn flag2(&mut self) -> FLAG2_W<2> {
936 FLAG2_W::new(self)
937 }
938 #[doc = "Bit 3 - Event Flag n"]
939 #[inline(always)]
940 #[must_use]
941 pub fn flag3(&mut self) -> FLAG3_W<3> {
942 FLAG3_W::new(self)
943 }
944 #[doc = "Bit 4 - Event Flag n"]
945 #[inline(always)]
946 #[must_use]
947 pub fn flag4(&mut self) -> FLAG4_W<4> {
948 FLAG4_W::new(self)
949 }
950 #[doc = "Bit 5 - Event Flag n"]
951 #[inline(always)]
952 #[must_use]
953 pub fn flag5(&mut self) -> FLAG5_W<5> {
954 FLAG5_W::new(self)
955 }
956 #[doc = "Bit 6 - Event Flag n"]
957 #[inline(always)]
958 #[must_use]
959 pub fn flag6(&mut self) -> FLAG6_W<6> {
960 FLAG6_W::new(self)
961 }
962 #[doc = "Bit 7 - Event Flag n"]
963 #[inline(always)]
964 #[must_use]
965 pub fn flag7(&mut self) -> FLAG7_W<7> {
966 FLAG7_W::new(self)
967 }
968 #[doc = "Bit 8 - Event Flag n"]
969 #[inline(always)]
970 #[must_use]
971 pub fn flag8(&mut self) -> FLAG8_W<8> {
972 FLAG8_W::new(self)
973 }
974 #[doc = "Bit 9 - Event Flag n"]
975 #[inline(always)]
976 #[must_use]
977 pub fn flag9(&mut self) -> FLAG9_W<9> {
978 FLAG9_W::new(self)
979 }
980 #[doc = "Bit 10 - Event Flag n"]
981 #[inline(always)]
982 #[must_use]
983 pub fn flag10(&mut self) -> FLAG10_W<10> {
984 FLAG10_W::new(self)
985 }
986 #[doc = "Bit 11 - Event Flag n"]
987 #[inline(always)]
988 #[must_use]
989 pub fn flag11(&mut self) -> FLAG11_W<11> {
990 FLAG11_W::new(self)
991 }
992 #[doc = "Bit 12 - Event Flag n"]
993 #[inline(always)]
994 #[must_use]
995 pub fn flag12(&mut self) -> FLAG12_W<12> {
996 FLAG12_W::new(self)
997 }
998 #[doc = "Bit 13 - Event Flag n"]
999 #[inline(always)]
1000 #[must_use]
1001 pub fn flag13(&mut self) -> FLAG13_W<13> {
1002 FLAG13_W::new(self)
1003 }
1004 #[doc = "Bit 14 - Event Flag n"]
1005 #[inline(always)]
1006 #[must_use]
1007 pub fn flag14(&mut self) -> FLAG14_W<14> {
1008 FLAG14_W::new(self)
1009 }
1010 #[doc = "Bit 15 - Event Flag n"]
1011 #[inline(always)]
1012 #[must_use]
1013 pub fn flag15(&mut self) -> FLAG15_W<15> {
1014 FLAG15_W::new(self)
1015 }
1016 #[doc = "Writes raw bits to the register."]
1017 #[inline(always)]
1018 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1019 self.0.bits(bits);
1020 self
1021 }
1022}
1023#[doc = "Event Flag\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 [evflag](index.html) module"]
1024pub struct EVFLAG_SPEC;
1025impl crate::RegisterSpec for EVFLAG_SPEC {
1026 type Ux = u32;
1027}
1028#[doc = "`read()` method returns [evflag::R](R) reader structure"]
1029impl crate::Readable for EVFLAG_SPEC {
1030 type Reader = R;
1031}
1032#[doc = "`write(|w| ..)` method takes [evflag::W](W) writer structure"]
1033impl crate::Writable for EVFLAG_SPEC {
1034 type Writer = W;
1035 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
1036 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
1037}
1038#[doc = "`reset()` method sets EVFLAG to value 0"]
1039impl crate::Resettable for EVFLAG_SPEC {
1040 const RESET_VALUE: Self::Ux = 0;
1041}