ra4m1/can0/
mier_fifo.rs

1#[doc = "Register `MIER_FIFO` reader"]
2pub struct R(crate::R<MIER_FIFO_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<MIER_FIFO_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<MIER_FIFO_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<MIER_FIFO_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `MIER_FIFO` writer"]
17pub struct W(crate::W<MIER_FIFO_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<MIER_FIFO_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<MIER_FIFO_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<MIER_FIFO_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `MB0` reader - mailbox 0 Interrupt Enable"]
38pub type MB0_R = crate::BitReader<MB0_A>;
39#[doc = "mailbox 0 Interrupt Enable\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq, Eq)]
41pub enum MB0_A {
42    #[doc = "0: Interrupt disabled"]
43    _0 = 0,
44    #[doc = "1: Interrupt enabled"]
45    _1 = 1,
46}
47impl From<MB0_A> for bool {
48    #[inline(always)]
49    fn from(variant: MB0_A) -> Self {
50        variant as u8 != 0
51    }
52}
53impl MB0_R {
54    #[doc = "Get enumerated values variant"]
55    #[inline(always)]
56    pub fn variant(&self) -> MB0_A {
57        match self.bits {
58            false => MB0_A::_0,
59            true => MB0_A::_1,
60        }
61    }
62    #[doc = "Checks if the value of the field is `_0`"]
63    #[inline(always)]
64    pub fn is_0(&self) -> bool {
65        *self == MB0_A::_0
66    }
67    #[doc = "Checks if the value of the field is `_1`"]
68    #[inline(always)]
69    pub fn is_1(&self) -> bool {
70        *self == MB0_A::_1
71    }
72}
73#[doc = "Field `MB0` writer - mailbox 0 Interrupt Enable"]
74pub type MB0_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB0_A, O>;
75impl<'a, const O: u8> MB0_W<'a, O> {
76    #[doc = "Interrupt disabled"]
77    #[inline(always)]
78    pub fn _0(self) -> &'a mut W {
79        self.variant(MB0_A::_0)
80    }
81    #[doc = "Interrupt enabled"]
82    #[inline(always)]
83    pub fn _1(self) -> &'a mut W {
84        self.variant(MB0_A::_1)
85    }
86}
87#[doc = "Field `MB1` reader - mailbox 1 Interrupt Enable"]
88pub type MB1_R = crate::BitReader<MB1_A>;
89#[doc = "mailbox 1 Interrupt Enable\n\nValue on reset: 0"]
90#[derive(Clone, Copy, Debug, PartialEq, Eq)]
91pub enum MB1_A {
92    #[doc = "0: Interrupt disabled"]
93    _0 = 0,
94    #[doc = "1: Interrupt enabled"]
95    _1 = 1,
96}
97impl From<MB1_A> for bool {
98    #[inline(always)]
99    fn from(variant: MB1_A) -> Self {
100        variant as u8 != 0
101    }
102}
103impl MB1_R {
104    #[doc = "Get enumerated values variant"]
105    #[inline(always)]
106    pub fn variant(&self) -> MB1_A {
107        match self.bits {
108            false => MB1_A::_0,
109            true => MB1_A::_1,
110        }
111    }
112    #[doc = "Checks if the value of the field is `_0`"]
113    #[inline(always)]
114    pub fn is_0(&self) -> bool {
115        *self == MB1_A::_0
116    }
117    #[doc = "Checks if the value of the field is `_1`"]
118    #[inline(always)]
119    pub fn is_1(&self) -> bool {
120        *self == MB1_A::_1
121    }
122}
123#[doc = "Field `MB1` writer - mailbox 1 Interrupt Enable"]
124pub type MB1_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB1_A, O>;
125impl<'a, const O: u8> MB1_W<'a, O> {
126    #[doc = "Interrupt disabled"]
127    #[inline(always)]
128    pub fn _0(self) -> &'a mut W {
129        self.variant(MB1_A::_0)
130    }
131    #[doc = "Interrupt enabled"]
132    #[inline(always)]
133    pub fn _1(self) -> &'a mut W {
134        self.variant(MB1_A::_1)
135    }
136}
137#[doc = "Field `MB2` reader - mailbox 2 Interrupt Enable"]
138pub type MB2_R = crate::BitReader<MB2_A>;
139#[doc = "mailbox 2 Interrupt Enable\n\nValue on reset: 0"]
140#[derive(Clone, Copy, Debug, PartialEq, Eq)]
141pub enum MB2_A {
142    #[doc = "0: Interrupt disabled"]
143    _0 = 0,
144    #[doc = "1: Interrupt enabled"]
145    _1 = 1,
146}
147impl From<MB2_A> for bool {
148    #[inline(always)]
149    fn from(variant: MB2_A) -> Self {
150        variant as u8 != 0
151    }
152}
153impl MB2_R {
154    #[doc = "Get enumerated values variant"]
155    #[inline(always)]
156    pub fn variant(&self) -> MB2_A {
157        match self.bits {
158            false => MB2_A::_0,
159            true => MB2_A::_1,
160        }
161    }
162    #[doc = "Checks if the value of the field is `_0`"]
163    #[inline(always)]
164    pub fn is_0(&self) -> bool {
165        *self == MB2_A::_0
166    }
167    #[doc = "Checks if the value of the field is `_1`"]
168    #[inline(always)]
169    pub fn is_1(&self) -> bool {
170        *self == MB2_A::_1
171    }
172}
173#[doc = "Field `MB2` writer - mailbox 2 Interrupt Enable"]
174pub type MB2_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB2_A, O>;
175impl<'a, const O: u8> MB2_W<'a, O> {
176    #[doc = "Interrupt disabled"]
177    #[inline(always)]
178    pub fn _0(self) -> &'a mut W {
179        self.variant(MB2_A::_0)
180    }
181    #[doc = "Interrupt enabled"]
182    #[inline(always)]
183    pub fn _1(self) -> &'a mut W {
184        self.variant(MB2_A::_1)
185    }
186}
187#[doc = "Field `MB3` reader - mailbox 3 Interrupt Enable"]
188pub type MB3_R = crate::BitReader<MB3_A>;
189#[doc = "mailbox 3 Interrupt Enable\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq, Eq)]
191pub enum MB3_A {
192    #[doc = "0: Interrupt disabled"]
193    _0 = 0,
194    #[doc = "1: Interrupt enabled"]
195    _1 = 1,
196}
197impl From<MB3_A> for bool {
198    #[inline(always)]
199    fn from(variant: MB3_A) -> Self {
200        variant as u8 != 0
201    }
202}
203impl MB3_R {
204    #[doc = "Get enumerated values variant"]
205    #[inline(always)]
206    pub fn variant(&self) -> MB3_A {
207        match self.bits {
208            false => MB3_A::_0,
209            true => MB3_A::_1,
210        }
211    }
212    #[doc = "Checks if the value of the field is `_0`"]
213    #[inline(always)]
214    pub fn is_0(&self) -> bool {
215        *self == MB3_A::_0
216    }
217    #[doc = "Checks if the value of the field is `_1`"]
218    #[inline(always)]
219    pub fn is_1(&self) -> bool {
220        *self == MB3_A::_1
221    }
222}
223#[doc = "Field `MB3` writer - mailbox 3 Interrupt Enable"]
224pub type MB3_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB3_A, O>;
225impl<'a, const O: u8> MB3_W<'a, O> {
226    #[doc = "Interrupt disabled"]
227    #[inline(always)]
228    pub fn _0(self) -> &'a mut W {
229        self.variant(MB3_A::_0)
230    }
231    #[doc = "Interrupt enabled"]
232    #[inline(always)]
233    pub fn _1(self) -> &'a mut W {
234        self.variant(MB3_A::_1)
235    }
236}
237#[doc = "Field `MB4` reader - mailbox 4 Interrupt Enable"]
238pub type MB4_R = crate::BitReader<MB4_A>;
239#[doc = "mailbox 4 Interrupt Enable\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq, Eq)]
241pub enum MB4_A {
242    #[doc = "0: Interrupt disabled"]
243    _0 = 0,
244    #[doc = "1: Interrupt enabled"]
245    _1 = 1,
246}
247impl From<MB4_A> for bool {
248    #[inline(always)]
249    fn from(variant: MB4_A) -> Self {
250        variant as u8 != 0
251    }
252}
253impl MB4_R {
254    #[doc = "Get enumerated values variant"]
255    #[inline(always)]
256    pub fn variant(&self) -> MB4_A {
257        match self.bits {
258            false => MB4_A::_0,
259            true => MB4_A::_1,
260        }
261    }
262    #[doc = "Checks if the value of the field is `_0`"]
263    #[inline(always)]
264    pub fn is_0(&self) -> bool {
265        *self == MB4_A::_0
266    }
267    #[doc = "Checks if the value of the field is `_1`"]
268    #[inline(always)]
269    pub fn is_1(&self) -> bool {
270        *self == MB4_A::_1
271    }
272}
273#[doc = "Field `MB4` writer - mailbox 4 Interrupt Enable"]
274pub type MB4_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB4_A, O>;
275impl<'a, const O: u8> MB4_W<'a, O> {
276    #[doc = "Interrupt disabled"]
277    #[inline(always)]
278    pub fn _0(self) -> &'a mut W {
279        self.variant(MB4_A::_0)
280    }
281    #[doc = "Interrupt enabled"]
282    #[inline(always)]
283    pub fn _1(self) -> &'a mut W {
284        self.variant(MB4_A::_1)
285    }
286}
287#[doc = "Field `MB5` reader - mailbox 5 Interrupt Enable"]
288pub type MB5_R = crate::BitReader<MB5_A>;
289#[doc = "mailbox 5 Interrupt Enable\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq, Eq)]
291pub enum MB5_A {
292    #[doc = "0: Interrupt disabled"]
293    _0 = 0,
294    #[doc = "1: Interrupt enabled"]
295    _1 = 1,
296}
297impl From<MB5_A> for bool {
298    #[inline(always)]
299    fn from(variant: MB5_A) -> Self {
300        variant as u8 != 0
301    }
302}
303impl MB5_R {
304    #[doc = "Get enumerated values variant"]
305    #[inline(always)]
306    pub fn variant(&self) -> MB5_A {
307        match self.bits {
308            false => MB5_A::_0,
309            true => MB5_A::_1,
310        }
311    }
312    #[doc = "Checks if the value of the field is `_0`"]
313    #[inline(always)]
314    pub fn is_0(&self) -> bool {
315        *self == MB5_A::_0
316    }
317    #[doc = "Checks if the value of the field is `_1`"]
318    #[inline(always)]
319    pub fn is_1(&self) -> bool {
320        *self == MB5_A::_1
321    }
322}
323#[doc = "Field `MB5` writer - mailbox 5 Interrupt Enable"]
324pub type MB5_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB5_A, O>;
325impl<'a, const O: u8> MB5_W<'a, O> {
326    #[doc = "Interrupt disabled"]
327    #[inline(always)]
328    pub fn _0(self) -> &'a mut W {
329        self.variant(MB5_A::_0)
330    }
331    #[doc = "Interrupt enabled"]
332    #[inline(always)]
333    pub fn _1(self) -> &'a mut W {
334        self.variant(MB5_A::_1)
335    }
336}
337#[doc = "Field `MB6` reader - mailbox 6 Interrupt Enable"]
338pub type MB6_R = crate::BitReader<MB6_A>;
339#[doc = "mailbox 6 Interrupt Enable\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq, Eq)]
341pub enum MB6_A {
342    #[doc = "0: Interrupt disabled"]
343    _0 = 0,
344    #[doc = "1: Interrupt enabled"]
345    _1 = 1,
346}
347impl From<MB6_A> for bool {
348    #[inline(always)]
349    fn from(variant: MB6_A) -> Self {
350        variant as u8 != 0
351    }
352}
353impl MB6_R {
354    #[doc = "Get enumerated values variant"]
355    #[inline(always)]
356    pub fn variant(&self) -> MB6_A {
357        match self.bits {
358            false => MB6_A::_0,
359            true => MB6_A::_1,
360        }
361    }
362    #[doc = "Checks if the value of the field is `_0`"]
363    #[inline(always)]
364    pub fn is_0(&self) -> bool {
365        *self == MB6_A::_0
366    }
367    #[doc = "Checks if the value of the field is `_1`"]
368    #[inline(always)]
369    pub fn is_1(&self) -> bool {
370        *self == MB6_A::_1
371    }
372}
373#[doc = "Field `MB6` writer - mailbox 6 Interrupt Enable"]
374pub type MB6_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB6_A, O>;
375impl<'a, const O: u8> MB6_W<'a, O> {
376    #[doc = "Interrupt disabled"]
377    #[inline(always)]
378    pub fn _0(self) -> &'a mut W {
379        self.variant(MB6_A::_0)
380    }
381    #[doc = "Interrupt enabled"]
382    #[inline(always)]
383    pub fn _1(self) -> &'a mut W {
384        self.variant(MB6_A::_1)
385    }
386}
387#[doc = "Field `MB7` reader - mailbox 7 Interrupt Enable"]
388pub type MB7_R = crate::BitReader<MB7_A>;
389#[doc = "mailbox 7 Interrupt Enable\n\nValue on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq, Eq)]
391pub enum MB7_A {
392    #[doc = "0: Interrupt disabled"]
393    _0 = 0,
394    #[doc = "1: Interrupt enabled"]
395    _1 = 1,
396}
397impl From<MB7_A> for bool {
398    #[inline(always)]
399    fn from(variant: MB7_A) -> Self {
400        variant as u8 != 0
401    }
402}
403impl MB7_R {
404    #[doc = "Get enumerated values variant"]
405    #[inline(always)]
406    pub fn variant(&self) -> MB7_A {
407        match self.bits {
408            false => MB7_A::_0,
409            true => MB7_A::_1,
410        }
411    }
412    #[doc = "Checks if the value of the field is `_0`"]
413    #[inline(always)]
414    pub fn is_0(&self) -> bool {
415        *self == MB7_A::_0
416    }
417    #[doc = "Checks if the value of the field is `_1`"]
418    #[inline(always)]
419    pub fn is_1(&self) -> bool {
420        *self == MB7_A::_1
421    }
422}
423#[doc = "Field `MB7` writer - mailbox 7 Interrupt Enable"]
424pub type MB7_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB7_A, O>;
425impl<'a, const O: u8> MB7_W<'a, O> {
426    #[doc = "Interrupt disabled"]
427    #[inline(always)]
428    pub fn _0(self) -> &'a mut W {
429        self.variant(MB7_A::_0)
430    }
431    #[doc = "Interrupt enabled"]
432    #[inline(always)]
433    pub fn _1(self) -> &'a mut W {
434        self.variant(MB7_A::_1)
435    }
436}
437#[doc = "Field `MB8` reader - mailbox 8 Interrupt Enable"]
438pub type MB8_R = crate::BitReader<MB8_A>;
439#[doc = "mailbox 8 Interrupt Enable\n\nValue on reset: 0"]
440#[derive(Clone, Copy, Debug, PartialEq, Eq)]
441pub enum MB8_A {
442    #[doc = "0: Interrupt disabled"]
443    _0 = 0,
444    #[doc = "1: Interrupt enabled"]
445    _1 = 1,
446}
447impl From<MB8_A> for bool {
448    #[inline(always)]
449    fn from(variant: MB8_A) -> Self {
450        variant as u8 != 0
451    }
452}
453impl MB8_R {
454    #[doc = "Get enumerated values variant"]
455    #[inline(always)]
456    pub fn variant(&self) -> MB8_A {
457        match self.bits {
458            false => MB8_A::_0,
459            true => MB8_A::_1,
460        }
461    }
462    #[doc = "Checks if the value of the field is `_0`"]
463    #[inline(always)]
464    pub fn is_0(&self) -> bool {
465        *self == MB8_A::_0
466    }
467    #[doc = "Checks if the value of the field is `_1`"]
468    #[inline(always)]
469    pub fn is_1(&self) -> bool {
470        *self == MB8_A::_1
471    }
472}
473#[doc = "Field `MB8` writer - mailbox 8 Interrupt Enable"]
474pub type MB8_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB8_A, O>;
475impl<'a, const O: u8> MB8_W<'a, O> {
476    #[doc = "Interrupt disabled"]
477    #[inline(always)]
478    pub fn _0(self) -> &'a mut W {
479        self.variant(MB8_A::_0)
480    }
481    #[doc = "Interrupt enabled"]
482    #[inline(always)]
483    pub fn _1(self) -> &'a mut W {
484        self.variant(MB8_A::_1)
485    }
486}
487#[doc = "Field `MB9` reader - mailbox 9 Interrupt Enable"]
488pub type MB9_R = crate::BitReader<MB9_A>;
489#[doc = "mailbox 9 Interrupt Enable\n\nValue on reset: 0"]
490#[derive(Clone, Copy, Debug, PartialEq, Eq)]
491pub enum MB9_A {
492    #[doc = "0: Interrupt disabled"]
493    _0 = 0,
494    #[doc = "1: Interrupt enabled"]
495    _1 = 1,
496}
497impl From<MB9_A> for bool {
498    #[inline(always)]
499    fn from(variant: MB9_A) -> Self {
500        variant as u8 != 0
501    }
502}
503impl MB9_R {
504    #[doc = "Get enumerated values variant"]
505    #[inline(always)]
506    pub fn variant(&self) -> MB9_A {
507        match self.bits {
508            false => MB9_A::_0,
509            true => MB9_A::_1,
510        }
511    }
512    #[doc = "Checks if the value of the field is `_0`"]
513    #[inline(always)]
514    pub fn is_0(&self) -> bool {
515        *self == MB9_A::_0
516    }
517    #[doc = "Checks if the value of the field is `_1`"]
518    #[inline(always)]
519    pub fn is_1(&self) -> bool {
520        *self == MB9_A::_1
521    }
522}
523#[doc = "Field `MB9` writer - mailbox 9 Interrupt Enable"]
524pub type MB9_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB9_A, O>;
525impl<'a, const O: u8> MB9_W<'a, O> {
526    #[doc = "Interrupt disabled"]
527    #[inline(always)]
528    pub fn _0(self) -> &'a mut W {
529        self.variant(MB9_A::_0)
530    }
531    #[doc = "Interrupt enabled"]
532    #[inline(always)]
533    pub fn _1(self) -> &'a mut W {
534        self.variant(MB9_A::_1)
535    }
536}
537#[doc = "Field `MB10` reader - mailbox 10 Interrupt Enable"]
538pub type MB10_R = crate::BitReader<MB10_A>;
539#[doc = "mailbox 10 Interrupt Enable\n\nValue on reset: 0"]
540#[derive(Clone, Copy, Debug, PartialEq, Eq)]
541pub enum MB10_A {
542    #[doc = "0: Interrupt disabled"]
543    _0 = 0,
544    #[doc = "1: Interrupt enabled"]
545    _1 = 1,
546}
547impl From<MB10_A> for bool {
548    #[inline(always)]
549    fn from(variant: MB10_A) -> Self {
550        variant as u8 != 0
551    }
552}
553impl MB10_R {
554    #[doc = "Get enumerated values variant"]
555    #[inline(always)]
556    pub fn variant(&self) -> MB10_A {
557        match self.bits {
558            false => MB10_A::_0,
559            true => MB10_A::_1,
560        }
561    }
562    #[doc = "Checks if the value of the field is `_0`"]
563    #[inline(always)]
564    pub fn is_0(&self) -> bool {
565        *self == MB10_A::_0
566    }
567    #[doc = "Checks if the value of the field is `_1`"]
568    #[inline(always)]
569    pub fn is_1(&self) -> bool {
570        *self == MB10_A::_1
571    }
572}
573#[doc = "Field `MB10` writer - mailbox 10 Interrupt Enable"]
574pub type MB10_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB10_A, O>;
575impl<'a, const O: u8> MB10_W<'a, O> {
576    #[doc = "Interrupt disabled"]
577    #[inline(always)]
578    pub fn _0(self) -> &'a mut W {
579        self.variant(MB10_A::_0)
580    }
581    #[doc = "Interrupt enabled"]
582    #[inline(always)]
583    pub fn _1(self) -> &'a mut W {
584        self.variant(MB10_A::_1)
585    }
586}
587#[doc = "Field `MB11` reader - mailbox 11 Interrupt Enable"]
588pub type MB11_R = crate::BitReader<MB11_A>;
589#[doc = "mailbox 11 Interrupt Enable\n\nValue on reset: 0"]
590#[derive(Clone, Copy, Debug, PartialEq, Eq)]
591pub enum MB11_A {
592    #[doc = "0: Interrupt disabled"]
593    _0 = 0,
594    #[doc = "1: Interrupt enabled"]
595    _1 = 1,
596}
597impl From<MB11_A> for bool {
598    #[inline(always)]
599    fn from(variant: MB11_A) -> Self {
600        variant as u8 != 0
601    }
602}
603impl MB11_R {
604    #[doc = "Get enumerated values variant"]
605    #[inline(always)]
606    pub fn variant(&self) -> MB11_A {
607        match self.bits {
608            false => MB11_A::_0,
609            true => MB11_A::_1,
610        }
611    }
612    #[doc = "Checks if the value of the field is `_0`"]
613    #[inline(always)]
614    pub fn is_0(&self) -> bool {
615        *self == MB11_A::_0
616    }
617    #[doc = "Checks if the value of the field is `_1`"]
618    #[inline(always)]
619    pub fn is_1(&self) -> bool {
620        *self == MB11_A::_1
621    }
622}
623#[doc = "Field `MB11` writer - mailbox 11 Interrupt Enable"]
624pub type MB11_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB11_A, O>;
625impl<'a, const O: u8> MB11_W<'a, O> {
626    #[doc = "Interrupt disabled"]
627    #[inline(always)]
628    pub fn _0(self) -> &'a mut W {
629        self.variant(MB11_A::_0)
630    }
631    #[doc = "Interrupt enabled"]
632    #[inline(always)]
633    pub fn _1(self) -> &'a mut W {
634        self.variant(MB11_A::_1)
635    }
636}
637#[doc = "Field `MB12` reader - mailbox 12 Interrupt Enable"]
638pub type MB12_R = crate::BitReader<MB12_A>;
639#[doc = "mailbox 12 Interrupt Enable\n\nValue on reset: 0"]
640#[derive(Clone, Copy, Debug, PartialEq, Eq)]
641pub enum MB12_A {
642    #[doc = "0: Interrupt disabled"]
643    _0 = 0,
644    #[doc = "1: Interrupt enabled"]
645    _1 = 1,
646}
647impl From<MB12_A> for bool {
648    #[inline(always)]
649    fn from(variant: MB12_A) -> Self {
650        variant as u8 != 0
651    }
652}
653impl MB12_R {
654    #[doc = "Get enumerated values variant"]
655    #[inline(always)]
656    pub fn variant(&self) -> MB12_A {
657        match self.bits {
658            false => MB12_A::_0,
659            true => MB12_A::_1,
660        }
661    }
662    #[doc = "Checks if the value of the field is `_0`"]
663    #[inline(always)]
664    pub fn is_0(&self) -> bool {
665        *self == MB12_A::_0
666    }
667    #[doc = "Checks if the value of the field is `_1`"]
668    #[inline(always)]
669    pub fn is_1(&self) -> bool {
670        *self == MB12_A::_1
671    }
672}
673#[doc = "Field `MB12` writer - mailbox 12 Interrupt Enable"]
674pub type MB12_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB12_A, O>;
675impl<'a, const O: u8> MB12_W<'a, O> {
676    #[doc = "Interrupt disabled"]
677    #[inline(always)]
678    pub fn _0(self) -> &'a mut W {
679        self.variant(MB12_A::_0)
680    }
681    #[doc = "Interrupt enabled"]
682    #[inline(always)]
683    pub fn _1(self) -> &'a mut W {
684        self.variant(MB12_A::_1)
685    }
686}
687#[doc = "Field `MB13` reader - mailbox 13 Interrupt Enable"]
688pub type MB13_R = crate::BitReader<MB13_A>;
689#[doc = "mailbox 13 Interrupt Enable\n\nValue on reset: 0"]
690#[derive(Clone, Copy, Debug, PartialEq, Eq)]
691pub enum MB13_A {
692    #[doc = "0: Interrupt disabled"]
693    _0 = 0,
694    #[doc = "1: Interrupt enabled"]
695    _1 = 1,
696}
697impl From<MB13_A> for bool {
698    #[inline(always)]
699    fn from(variant: MB13_A) -> Self {
700        variant as u8 != 0
701    }
702}
703impl MB13_R {
704    #[doc = "Get enumerated values variant"]
705    #[inline(always)]
706    pub fn variant(&self) -> MB13_A {
707        match self.bits {
708            false => MB13_A::_0,
709            true => MB13_A::_1,
710        }
711    }
712    #[doc = "Checks if the value of the field is `_0`"]
713    #[inline(always)]
714    pub fn is_0(&self) -> bool {
715        *self == MB13_A::_0
716    }
717    #[doc = "Checks if the value of the field is `_1`"]
718    #[inline(always)]
719    pub fn is_1(&self) -> bool {
720        *self == MB13_A::_1
721    }
722}
723#[doc = "Field `MB13` writer - mailbox 13 Interrupt Enable"]
724pub type MB13_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB13_A, O>;
725impl<'a, const O: u8> MB13_W<'a, O> {
726    #[doc = "Interrupt disabled"]
727    #[inline(always)]
728    pub fn _0(self) -> &'a mut W {
729        self.variant(MB13_A::_0)
730    }
731    #[doc = "Interrupt enabled"]
732    #[inline(always)]
733    pub fn _1(self) -> &'a mut W {
734        self.variant(MB13_A::_1)
735    }
736}
737#[doc = "Field `MB14` reader - mailbox 14 Interrupt Enable"]
738pub type MB14_R = crate::BitReader<MB14_A>;
739#[doc = "mailbox 14 Interrupt Enable\n\nValue on reset: 0"]
740#[derive(Clone, Copy, Debug, PartialEq, Eq)]
741pub enum MB14_A {
742    #[doc = "0: Interrupt disabled"]
743    _0 = 0,
744    #[doc = "1: Interrupt enabled"]
745    _1 = 1,
746}
747impl From<MB14_A> for bool {
748    #[inline(always)]
749    fn from(variant: MB14_A) -> Self {
750        variant as u8 != 0
751    }
752}
753impl MB14_R {
754    #[doc = "Get enumerated values variant"]
755    #[inline(always)]
756    pub fn variant(&self) -> MB14_A {
757        match self.bits {
758            false => MB14_A::_0,
759            true => MB14_A::_1,
760        }
761    }
762    #[doc = "Checks if the value of the field is `_0`"]
763    #[inline(always)]
764    pub fn is_0(&self) -> bool {
765        *self == MB14_A::_0
766    }
767    #[doc = "Checks if the value of the field is `_1`"]
768    #[inline(always)]
769    pub fn is_1(&self) -> bool {
770        *self == MB14_A::_1
771    }
772}
773#[doc = "Field `MB14` writer - mailbox 14 Interrupt Enable"]
774pub type MB14_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB14_A, O>;
775impl<'a, const O: u8> MB14_W<'a, O> {
776    #[doc = "Interrupt disabled"]
777    #[inline(always)]
778    pub fn _0(self) -> &'a mut W {
779        self.variant(MB14_A::_0)
780    }
781    #[doc = "Interrupt enabled"]
782    #[inline(always)]
783    pub fn _1(self) -> &'a mut W {
784        self.variant(MB14_A::_1)
785    }
786}
787#[doc = "Field `MB15` reader - mailbox 15 Interrupt Enable"]
788pub type MB15_R = crate::BitReader<MB15_A>;
789#[doc = "mailbox 15 Interrupt Enable\n\nValue on reset: 0"]
790#[derive(Clone, Copy, Debug, PartialEq, Eq)]
791pub enum MB15_A {
792    #[doc = "0: Interrupt disabled"]
793    _0 = 0,
794    #[doc = "1: Interrupt enabled"]
795    _1 = 1,
796}
797impl From<MB15_A> for bool {
798    #[inline(always)]
799    fn from(variant: MB15_A) -> Self {
800        variant as u8 != 0
801    }
802}
803impl MB15_R {
804    #[doc = "Get enumerated values variant"]
805    #[inline(always)]
806    pub fn variant(&self) -> MB15_A {
807        match self.bits {
808            false => MB15_A::_0,
809            true => MB15_A::_1,
810        }
811    }
812    #[doc = "Checks if the value of the field is `_0`"]
813    #[inline(always)]
814    pub fn is_0(&self) -> bool {
815        *self == MB15_A::_0
816    }
817    #[doc = "Checks if the value of the field is `_1`"]
818    #[inline(always)]
819    pub fn is_1(&self) -> bool {
820        *self == MB15_A::_1
821    }
822}
823#[doc = "Field `MB15` writer - mailbox 15 Interrupt Enable"]
824pub type MB15_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB15_A, O>;
825impl<'a, const O: u8> MB15_W<'a, O> {
826    #[doc = "Interrupt disabled"]
827    #[inline(always)]
828    pub fn _0(self) -> &'a mut W {
829        self.variant(MB15_A::_0)
830    }
831    #[doc = "Interrupt enabled"]
832    #[inline(always)]
833    pub fn _1(self) -> &'a mut W {
834        self.variant(MB15_A::_1)
835    }
836}
837#[doc = "Field `MB16` reader - mailbox 16 Interrupt Enable"]
838pub type MB16_R = crate::BitReader<MB16_A>;
839#[doc = "mailbox 16 Interrupt Enable\n\nValue on reset: 0"]
840#[derive(Clone, Copy, Debug, PartialEq, Eq)]
841pub enum MB16_A {
842    #[doc = "0: Interrupt disabled"]
843    _0 = 0,
844    #[doc = "1: Interrupt enabled"]
845    _1 = 1,
846}
847impl From<MB16_A> for bool {
848    #[inline(always)]
849    fn from(variant: MB16_A) -> Self {
850        variant as u8 != 0
851    }
852}
853impl MB16_R {
854    #[doc = "Get enumerated values variant"]
855    #[inline(always)]
856    pub fn variant(&self) -> MB16_A {
857        match self.bits {
858            false => MB16_A::_0,
859            true => MB16_A::_1,
860        }
861    }
862    #[doc = "Checks if the value of the field is `_0`"]
863    #[inline(always)]
864    pub fn is_0(&self) -> bool {
865        *self == MB16_A::_0
866    }
867    #[doc = "Checks if the value of the field is `_1`"]
868    #[inline(always)]
869    pub fn is_1(&self) -> bool {
870        *self == MB16_A::_1
871    }
872}
873#[doc = "Field `MB16` writer - mailbox 16 Interrupt Enable"]
874pub type MB16_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB16_A, O>;
875impl<'a, const O: u8> MB16_W<'a, O> {
876    #[doc = "Interrupt disabled"]
877    #[inline(always)]
878    pub fn _0(self) -> &'a mut W {
879        self.variant(MB16_A::_0)
880    }
881    #[doc = "Interrupt enabled"]
882    #[inline(always)]
883    pub fn _1(self) -> &'a mut W {
884        self.variant(MB16_A::_1)
885    }
886}
887#[doc = "Field `MB17` reader - mailbox 17 Interrupt Enable"]
888pub type MB17_R = crate::BitReader<MB17_A>;
889#[doc = "mailbox 17 Interrupt Enable\n\nValue on reset: 0"]
890#[derive(Clone, Copy, Debug, PartialEq, Eq)]
891pub enum MB17_A {
892    #[doc = "0: Interrupt disabled"]
893    _0 = 0,
894    #[doc = "1: Interrupt enabled"]
895    _1 = 1,
896}
897impl From<MB17_A> for bool {
898    #[inline(always)]
899    fn from(variant: MB17_A) -> Self {
900        variant as u8 != 0
901    }
902}
903impl MB17_R {
904    #[doc = "Get enumerated values variant"]
905    #[inline(always)]
906    pub fn variant(&self) -> MB17_A {
907        match self.bits {
908            false => MB17_A::_0,
909            true => MB17_A::_1,
910        }
911    }
912    #[doc = "Checks if the value of the field is `_0`"]
913    #[inline(always)]
914    pub fn is_0(&self) -> bool {
915        *self == MB17_A::_0
916    }
917    #[doc = "Checks if the value of the field is `_1`"]
918    #[inline(always)]
919    pub fn is_1(&self) -> bool {
920        *self == MB17_A::_1
921    }
922}
923#[doc = "Field `MB17` writer - mailbox 17 Interrupt Enable"]
924pub type MB17_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB17_A, O>;
925impl<'a, const O: u8> MB17_W<'a, O> {
926    #[doc = "Interrupt disabled"]
927    #[inline(always)]
928    pub fn _0(self) -> &'a mut W {
929        self.variant(MB17_A::_0)
930    }
931    #[doc = "Interrupt enabled"]
932    #[inline(always)]
933    pub fn _1(self) -> &'a mut W {
934        self.variant(MB17_A::_1)
935    }
936}
937#[doc = "Field `MB18` reader - mailbox 18 Interrupt Enable"]
938pub type MB18_R = crate::BitReader<MB18_A>;
939#[doc = "mailbox 18 Interrupt Enable\n\nValue on reset: 0"]
940#[derive(Clone, Copy, Debug, PartialEq, Eq)]
941pub enum MB18_A {
942    #[doc = "0: Interrupt disabled"]
943    _0 = 0,
944    #[doc = "1: Interrupt enabled"]
945    _1 = 1,
946}
947impl From<MB18_A> for bool {
948    #[inline(always)]
949    fn from(variant: MB18_A) -> Self {
950        variant as u8 != 0
951    }
952}
953impl MB18_R {
954    #[doc = "Get enumerated values variant"]
955    #[inline(always)]
956    pub fn variant(&self) -> MB18_A {
957        match self.bits {
958            false => MB18_A::_0,
959            true => MB18_A::_1,
960        }
961    }
962    #[doc = "Checks if the value of the field is `_0`"]
963    #[inline(always)]
964    pub fn is_0(&self) -> bool {
965        *self == MB18_A::_0
966    }
967    #[doc = "Checks if the value of the field is `_1`"]
968    #[inline(always)]
969    pub fn is_1(&self) -> bool {
970        *self == MB18_A::_1
971    }
972}
973#[doc = "Field `MB18` writer - mailbox 18 Interrupt Enable"]
974pub type MB18_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB18_A, O>;
975impl<'a, const O: u8> MB18_W<'a, O> {
976    #[doc = "Interrupt disabled"]
977    #[inline(always)]
978    pub fn _0(self) -> &'a mut W {
979        self.variant(MB18_A::_0)
980    }
981    #[doc = "Interrupt enabled"]
982    #[inline(always)]
983    pub fn _1(self) -> &'a mut W {
984        self.variant(MB18_A::_1)
985    }
986}
987#[doc = "Field `MB19` reader - mailbox 19 Interrupt Enable"]
988pub type MB19_R = crate::BitReader<MB19_A>;
989#[doc = "mailbox 19 Interrupt Enable\n\nValue on reset: 0"]
990#[derive(Clone, Copy, Debug, PartialEq, Eq)]
991pub enum MB19_A {
992    #[doc = "0: Interrupt disabled"]
993    _0 = 0,
994    #[doc = "1: Interrupt enabled"]
995    _1 = 1,
996}
997impl From<MB19_A> for bool {
998    #[inline(always)]
999    fn from(variant: MB19_A) -> Self {
1000        variant as u8 != 0
1001    }
1002}
1003impl MB19_R {
1004    #[doc = "Get enumerated values variant"]
1005    #[inline(always)]
1006    pub fn variant(&self) -> MB19_A {
1007        match self.bits {
1008            false => MB19_A::_0,
1009            true => MB19_A::_1,
1010        }
1011    }
1012    #[doc = "Checks if the value of the field is `_0`"]
1013    #[inline(always)]
1014    pub fn is_0(&self) -> bool {
1015        *self == MB19_A::_0
1016    }
1017    #[doc = "Checks if the value of the field is `_1`"]
1018    #[inline(always)]
1019    pub fn is_1(&self) -> bool {
1020        *self == MB19_A::_1
1021    }
1022}
1023#[doc = "Field `MB19` writer - mailbox 19 Interrupt Enable"]
1024pub type MB19_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB19_A, O>;
1025impl<'a, const O: u8> MB19_W<'a, O> {
1026    #[doc = "Interrupt disabled"]
1027    #[inline(always)]
1028    pub fn _0(self) -> &'a mut W {
1029        self.variant(MB19_A::_0)
1030    }
1031    #[doc = "Interrupt enabled"]
1032    #[inline(always)]
1033    pub fn _1(self) -> &'a mut W {
1034        self.variant(MB19_A::_1)
1035    }
1036}
1037#[doc = "Field `MB20` reader - mailbox 20 Interrupt Enable"]
1038pub type MB20_R = crate::BitReader<MB20_A>;
1039#[doc = "mailbox 20 Interrupt Enable\n\nValue on reset: 0"]
1040#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1041pub enum MB20_A {
1042    #[doc = "0: Interrupt disabled"]
1043    _0 = 0,
1044    #[doc = "1: Interrupt enabled"]
1045    _1 = 1,
1046}
1047impl From<MB20_A> for bool {
1048    #[inline(always)]
1049    fn from(variant: MB20_A) -> Self {
1050        variant as u8 != 0
1051    }
1052}
1053impl MB20_R {
1054    #[doc = "Get enumerated values variant"]
1055    #[inline(always)]
1056    pub fn variant(&self) -> MB20_A {
1057        match self.bits {
1058            false => MB20_A::_0,
1059            true => MB20_A::_1,
1060        }
1061    }
1062    #[doc = "Checks if the value of the field is `_0`"]
1063    #[inline(always)]
1064    pub fn is_0(&self) -> bool {
1065        *self == MB20_A::_0
1066    }
1067    #[doc = "Checks if the value of the field is `_1`"]
1068    #[inline(always)]
1069    pub fn is_1(&self) -> bool {
1070        *self == MB20_A::_1
1071    }
1072}
1073#[doc = "Field `MB20` writer - mailbox 20 Interrupt Enable"]
1074pub type MB20_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB20_A, O>;
1075impl<'a, const O: u8> MB20_W<'a, O> {
1076    #[doc = "Interrupt disabled"]
1077    #[inline(always)]
1078    pub fn _0(self) -> &'a mut W {
1079        self.variant(MB20_A::_0)
1080    }
1081    #[doc = "Interrupt enabled"]
1082    #[inline(always)]
1083    pub fn _1(self) -> &'a mut W {
1084        self.variant(MB20_A::_1)
1085    }
1086}
1087#[doc = "Field `MB21` reader - mailbox 21 Interrupt Enable"]
1088pub type MB21_R = crate::BitReader<MB21_A>;
1089#[doc = "mailbox 21 Interrupt Enable\n\nValue on reset: 0"]
1090#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1091pub enum MB21_A {
1092    #[doc = "0: Interrupt disabled"]
1093    _0 = 0,
1094    #[doc = "1: Interrupt enabled"]
1095    _1 = 1,
1096}
1097impl From<MB21_A> for bool {
1098    #[inline(always)]
1099    fn from(variant: MB21_A) -> Self {
1100        variant as u8 != 0
1101    }
1102}
1103impl MB21_R {
1104    #[doc = "Get enumerated values variant"]
1105    #[inline(always)]
1106    pub fn variant(&self) -> MB21_A {
1107        match self.bits {
1108            false => MB21_A::_0,
1109            true => MB21_A::_1,
1110        }
1111    }
1112    #[doc = "Checks if the value of the field is `_0`"]
1113    #[inline(always)]
1114    pub fn is_0(&self) -> bool {
1115        *self == MB21_A::_0
1116    }
1117    #[doc = "Checks if the value of the field is `_1`"]
1118    #[inline(always)]
1119    pub fn is_1(&self) -> bool {
1120        *self == MB21_A::_1
1121    }
1122}
1123#[doc = "Field `MB21` writer - mailbox 21 Interrupt Enable"]
1124pub type MB21_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB21_A, O>;
1125impl<'a, const O: u8> MB21_W<'a, O> {
1126    #[doc = "Interrupt disabled"]
1127    #[inline(always)]
1128    pub fn _0(self) -> &'a mut W {
1129        self.variant(MB21_A::_0)
1130    }
1131    #[doc = "Interrupt enabled"]
1132    #[inline(always)]
1133    pub fn _1(self) -> &'a mut W {
1134        self.variant(MB21_A::_1)
1135    }
1136}
1137#[doc = "Field `MB22` reader - mailbox 22 Interrupt Enable"]
1138pub type MB22_R = crate::BitReader<MB22_A>;
1139#[doc = "mailbox 22 Interrupt Enable\n\nValue on reset: 0"]
1140#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1141pub enum MB22_A {
1142    #[doc = "0: Interrupt disabled"]
1143    _0 = 0,
1144    #[doc = "1: Interrupt enabled"]
1145    _1 = 1,
1146}
1147impl From<MB22_A> for bool {
1148    #[inline(always)]
1149    fn from(variant: MB22_A) -> Self {
1150        variant as u8 != 0
1151    }
1152}
1153impl MB22_R {
1154    #[doc = "Get enumerated values variant"]
1155    #[inline(always)]
1156    pub fn variant(&self) -> MB22_A {
1157        match self.bits {
1158            false => MB22_A::_0,
1159            true => MB22_A::_1,
1160        }
1161    }
1162    #[doc = "Checks if the value of the field is `_0`"]
1163    #[inline(always)]
1164    pub fn is_0(&self) -> bool {
1165        *self == MB22_A::_0
1166    }
1167    #[doc = "Checks if the value of the field is `_1`"]
1168    #[inline(always)]
1169    pub fn is_1(&self) -> bool {
1170        *self == MB22_A::_1
1171    }
1172}
1173#[doc = "Field `MB22` writer - mailbox 22 Interrupt Enable"]
1174pub type MB22_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB22_A, O>;
1175impl<'a, const O: u8> MB22_W<'a, O> {
1176    #[doc = "Interrupt disabled"]
1177    #[inline(always)]
1178    pub fn _0(self) -> &'a mut W {
1179        self.variant(MB22_A::_0)
1180    }
1181    #[doc = "Interrupt enabled"]
1182    #[inline(always)]
1183    pub fn _1(self) -> &'a mut W {
1184        self.variant(MB22_A::_1)
1185    }
1186}
1187#[doc = "Field `MB23` reader - mailbox 23 Interrupt Enable"]
1188pub type MB23_R = crate::BitReader<MB23_A>;
1189#[doc = "mailbox 23 Interrupt Enable\n\nValue on reset: 0"]
1190#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1191pub enum MB23_A {
1192    #[doc = "0: Interrupt disabled"]
1193    _0 = 0,
1194    #[doc = "1: Interrupt enabled"]
1195    _1 = 1,
1196}
1197impl From<MB23_A> for bool {
1198    #[inline(always)]
1199    fn from(variant: MB23_A) -> Self {
1200        variant as u8 != 0
1201    }
1202}
1203impl MB23_R {
1204    #[doc = "Get enumerated values variant"]
1205    #[inline(always)]
1206    pub fn variant(&self) -> MB23_A {
1207        match self.bits {
1208            false => MB23_A::_0,
1209            true => MB23_A::_1,
1210        }
1211    }
1212    #[doc = "Checks if the value of the field is `_0`"]
1213    #[inline(always)]
1214    pub fn is_0(&self) -> bool {
1215        *self == MB23_A::_0
1216    }
1217    #[doc = "Checks if the value of the field is `_1`"]
1218    #[inline(always)]
1219    pub fn is_1(&self) -> bool {
1220        *self == MB23_A::_1
1221    }
1222}
1223#[doc = "Field `MB23` writer - mailbox 23 Interrupt Enable"]
1224pub type MB23_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB23_A, O>;
1225impl<'a, const O: u8> MB23_W<'a, O> {
1226    #[doc = "Interrupt disabled"]
1227    #[inline(always)]
1228    pub fn _0(self) -> &'a mut W {
1229        self.variant(MB23_A::_0)
1230    }
1231    #[doc = "Interrupt enabled"]
1232    #[inline(always)]
1233    pub fn _1(self) -> &'a mut W {
1234        self.variant(MB23_A::_1)
1235    }
1236}
1237#[doc = "Field `MB24` reader - Transmit FIFO Interrupt Enable"]
1238pub type MB24_R = crate::BitReader<MB24_A>;
1239#[doc = "Transmit FIFO Interrupt Enable\n\nValue on reset: 0"]
1240#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1241pub enum MB24_A {
1242    #[doc = "0: Interrupt disabled"]
1243    _0 = 0,
1244    #[doc = "1: Interrupt enabled"]
1245    _1 = 1,
1246}
1247impl From<MB24_A> for bool {
1248    #[inline(always)]
1249    fn from(variant: MB24_A) -> Self {
1250        variant as u8 != 0
1251    }
1252}
1253impl MB24_R {
1254    #[doc = "Get enumerated values variant"]
1255    #[inline(always)]
1256    pub fn variant(&self) -> MB24_A {
1257        match self.bits {
1258            false => MB24_A::_0,
1259            true => MB24_A::_1,
1260        }
1261    }
1262    #[doc = "Checks if the value of the field is `_0`"]
1263    #[inline(always)]
1264    pub fn is_0(&self) -> bool {
1265        *self == MB24_A::_0
1266    }
1267    #[doc = "Checks if the value of the field is `_1`"]
1268    #[inline(always)]
1269    pub fn is_1(&self) -> bool {
1270        *self == MB24_A::_1
1271    }
1272}
1273#[doc = "Field `MB24` writer - Transmit FIFO Interrupt Enable"]
1274pub type MB24_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB24_A, O>;
1275impl<'a, const O: u8> MB24_W<'a, O> {
1276    #[doc = "Interrupt disabled"]
1277    #[inline(always)]
1278    pub fn _0(self) -> &'a mut W {
1279        self.variant(MB24_A::_0)
1280    }
1281    #[doc = "Interrupt enabled"]
1282    #[inline(always)]
1283    pub fn _1(self) -> &'a mut W {
1284        self.variant(MB24_A::_1)
1285    }
1286}
1287#[doc = "Field `MB25` reader - Transmit FIFO Interrupt Generation Timing Control"]
1288pub type MB25_R = crate::BitReader<MB25_A>;
1289#[doc = "Transmit FIFO Interrupt Generation Timing Control\n\nValue on reset: 0"]
1290#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1291pub enum MB25_A {
1292    #[doc = "0: Every time transmission is completed"]
1293    _0 = 0,
1294    #[doc = "1: When the transmit FIFO becomes empty due to completion of transmission"]
1295    _1 = 1,
1296}
1297impl From<MB25_A> for bool {
1298    #[inline(always)]
1299    fn from(variant: MB25_A) -> Self {
1300        variant as u8 != 0
1301    }
1302}
1303impl MB25_R {
1304    #[doc = "Get enumerated values variant"]
1305    #[inline(always)]
1306    pub fn variant(&self) -> MB25_A {
1307        match self.bits {
1308            false => MB25_A::_0,
1309            true => MB25_A::_1,
1310        }
1311    }
1312    #[doc = "Checks if the value of the field is `_0`"]
1313    #[inline(always)]
1314    pub fn is_0(&self) -> bool {
1315        *self == MB25_A::_0
1316    }
1317    #[doc = "Checks if the value of the field is `_1`"]
1318    #[inline(always)]
1319    pub fn is_1(&self) -> bool {
1320        *self == MB25_A::_1
1321    }
1322}
1323#[doc = "Field `MB25` writer - Transmit FIFO Interrupt Generation Timing Control"]
1324pub type MB25_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB25_A, O>;
1325impl<'a, const O: u8> MB25_W<'a, O> {
1326    #[doc = "Every time transmission is completed"]
1327    #[inline(always)]
1328    pub fn _0(self) -> &'a mut W {
1329        self.variant(MB25_A::_0)
1330    }
1331    #[doc = "When the transmit FIFO becomes empty due to completion of transmission"]
1332    #[inline(always)]
1333    pub fn _1(self) -> &'a mut W {
1334        self.variant(MB25_A::_1)
1335    }
1336}
1337#[doc = "Field `MB28` reader - Receive FIFO Interrupt Enable"]
1338pub type MB28_R = crate::BitReader<MB28_A>;
1339#[doc = "Receive FIFO Interrupt Enable\n\nValue on reset: 0"]
1340#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1341pub enum MB28_A {
1342    #[doc = "0: Interrupt disabled"]
1343    _0 = 0,
1344    #[doc = "1: Interrupt enabled"]
1345    _1 = 1,
1346}
1347impl From<MB28_A> for bool {
1348    #[inline(always)]
1349    fn from(variant: MB28_A) -> Self {
1350        variant as u8 != 0
1351    }
1352}
1353impl MB28_R {
1354    #[doc = "Get enumerated values variant"]
1355    #[inline(always)]
1356    pub fn variant(&self) -> MB28_A {
1357        match self.bits {
1358            false => MB28_A::_0,
1359            true => MB28_A::_1,
1360        }
1361    }
1362    #[doc = "Checks if the value of the field is `_0`"]
1363    #[inline(always)]
1364    pub fn is_0(&self) -> bool {
1365        *self == MB28_A::_0
1366    }
1367    #[doc = "Checks if the value of the field is `_1`"]
1368    #[inline(always)]
1369    pub fn is_1(&self) -> bool {
1370        *self == MB28_A::_1
1371    }
1372}
1373#[doc = "Field `MB28` writer - Receive FIFO Interrupt Enable"]
1374pub type MB28_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB28_A, O>;
1375impl<'a, const O: u8> MB28_W<'a, O> {
1376    #[doc = "Interrupt disabled"]
1377    #[inline(always)]
1378    pub fn _0(self) -> &'a mut W {
1379        self.variant(MB28_A::_0)
1380    }
1381    #[doc = "Interrupt enabled"]
1382    #[inline(always)]
1383    pub fn _1(self) -> &'a mut W {
1384        self.variant(MB28_A::_1)
1385    }
1386}
1387#[doc = "Field `MB29` reader - Receive FIFO Interrupt Generation Timing Control"]
1388pub type MB29_R = crate::BitReader<MB29_A>;
1389#[doc = "Receive FIFO Interrupt Generation Timing Control\n\nValue on reset: 0"]
1390#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1391pub enum MB29_A {
1392    #[doc = "0: Every time reception is completed"]
1393    _0 = 0,
1394    #[doc = "1: When the receive FIFO becomes buffer warning by completion of reception"]
1395    _1 = 1,
1396}
1397impl From<MB29_A> for bool {
1398    #[inline(always)]
1399    fn from(variant: MB29_A) -> Self {
1400        variant as u8 != 0
1401    }
1402}
1403impl MB29_R {
1404    #[doc = "Get enumerated values variant"]
1405    #[inline(always)]
1406    pub fn variant(&self) -> MB29_A {
1407        match self.bits {
1408            false => MB29_A::_0,
1409            true => MB29_A::_1,
1410        }
1411    }
1412    #[doc = "Checks if the value of the field is `_0`"]
1413    #[inline(always)]
1414    pub fn is_0(&self) -> bool {
1415        *self == MB29_A::_0
1416    }
1417    #[doc = "Checks if the value of the field is `_1`"]
1418    #[inline(always)]
1419    pub fn is_1(&self) -> bool {
1420        *self == MB29_A::_1
1421    }
1422}
1423#[doc = "Field `MB29` writer - Receive FIFO Interrupt Generation Timing Control"]
1424pub type MB29_W<'a, const O: u8> = crate::BitWriter<'a, u32, MIER_FIFO_SPEC, MB29_A, O>;
1425impl<'a, const O: u8> MB29_W<'a, O> {
1426    #[doc = "Every time reception is completed"]
1427    #[inline(always)]
1428    pub fn _0(self) -> &'a mut W {
1429        self.variant(MB29_A::_0)
1430    }
1431    #[doc = "When the receive FIFO becomes buffer warning by completion of reception"]
1432    #[inline(always)]
1433    pub fn _1(self) -> &'a mut W {
1434        self.variant(MB29_A::_1)
1435    }
1436}
1437impl R {
1438    #[doc = "Bit 0 - mailbox 0 Interrupt Enable"]
1439    #[inline(always)]
1440    pub fn mb0(&self) -> MB0_R {
1441        MB0_R::new((self.bits & 1) != 0)
1442    }
1443    #[doc = "Bit 1 - mailbox 1 Interrupt Enable"]
1444    #[inline(always)]
1445    pub fn mb1(&self) -> MB1_R {
1446        MB1_R::new(((self.bits >> 1) & 1) != 0)
1447    }
1448    #[doc = "Bit 2 - mailbox 2 Interrupt Enable"]
1449    #[inline(always)]
1450    pub fn mb2(&self) -> MB2_R {
1451        MB2_R::new(((self.bits >> 2) & 1) != 0)
1452    }
1453    #[doc = "Bit 3 - mailbox 3 Interrupt Enable"]
1454    #[inline(always)]
1455    pub fn mb3(&self) -> MB3_R {
1456        MB3_R::new(((self.bits >> 3) & 1) != 0)
1457    }
1458    #[doc = "Bit 4 - mailbox 4 Interrupt Enable"]
1459    #[inline(always)]
1460    pub fn mb4(&self) -> MB4_R {
1461        MB4_R::new(((self.bits >> 4) & 1) != 0)
1462    }
1463    #[doc = "Bit 5 - mailbox 5 Interrupt Enable"]
1464    #[inline(always)]
1465    pub fn mb5(&self) -> MB5_R {
1466        MB5_R::new(((self.bits >> 5) & 1) != 0)
1467    }
1468    #[doc = "Bit 6 - mailbox 6 Interrupt Enable"]
1469    #[inline(always)]
1470    pub fn mb6(&self) -> MB6_R {
1471        MB6_R::new(((self.bits >> 6) & 1) != 0)
1472    }
1473    #[doc = "Bit 7 - mailbox 7 Interrupt Enable"]
1474    #[inline(always)]
1475    pub fn mb7(&self) -> MB7_R {
1476        MB7_R::new(((self.bits >> 7) & 1) != 0)
1477    }
1478    #[doc = "Bit 8 - mailbox 8 Interrupt Enable"]
1479    #[inline(always)]
1480    pub fn mb8(&self) -> MB8_R {
1481        MB8_R::new(((self.bits >> 8) & 1) != 0)
1482    }
1483    #[doc = "Bit 9 - mailbox 9 Interrupt Enable"]
1484    #[inline(always)]
1485    pub fn mb9(&self) -> MB9_R {
1486        MB9_R::new(((self.bits >> 9) & 1) != 0)
1487    }
1488    #[doc = "Bit 10 - mailbox 10 Interrupt Enable"]
1489    #[inline(always)]
1490    pub fn mb10(&self) -> MB10_R {
1491        MB10_R::new(((self.bits >> 10) & 1) != 0)
1492    }
1493    #[doc = "Bit 11 - mailbox 11 Interrupt Enable"]
1494    #[inline(always)]
1495    pub fn mb11(&self) -> MB11_R {
1496        MB11_R::new(((self.bits >> 11) & 1) != 0)
1497    }
1498    #[doc = "Bit 12 - mailbox 12 Interrupt Enable"]
1499    #[inline(always)]
1500    pub fn mb12(&self) -> MB12_R {
1501        MB12_R::new(((self.bits >> 12) & 1) != 0)
1502    }
1503    #[doc = "Bit 13 - mailbox 13 Interrupt Enable"]
1504    #[inline(always)]
1505    pub fn mb13(&self) -> MB13_R {
1506        MB13_R::new(((self.bits >> 13) & 1) != 0)
1507    }
1508    #[doc = "Bit 14 - mailbox 14 Interrupt Enable"]
1509    #[inline(always)]
1510    pub fn mb14(&self) -> MB14_R {
1511        MB14_R::new(((self.bits >> 14) & 1) != 0)
1512    }
1513    #[doc = "Bit 15 - mailbox 15 Interrupt Enable"]
1514    #[inline(always)]
1515    pub fn mb15(&self) -> MB15_R {
1516        MB15_R::new(((self.bits >> 15) & 1) != 0)
1517    }
1518    #[doc = "Bit 16 - mailbox 16 Interrupt Enable"]
1519    #[inline(always)]
1520    pub fn mb16(&self) -> MB16_R {
1521        MB16_R::new(((self.bits >> 16) & 1) != 0)
1522    }
1523    #[doc = "Bit 17 - mailbox 17 Interrupt Enable"]
1524    #[inline(always)]
1525    pub fn mb17(&self) -> MB17_R {
1526        MB17_R::new(((self.bits >> 17) & 1) != 0)
1527    }
1528    #[doc = "Bit 18 - mailbox 18 Interrupt Enable"]
1529    #[inline(always)]
1530    pub fn mb18(&self) -> MB18_R {
1531        MB18_R::new(((self.bits >> 18) & 1) != 0)
1532    }
1533    #[doc = "Bit 19 - mailbox 19 Interrupt Enable"]
1534    #[inline(always)]
1535    pub fn mb19(&self) -> MB19_R {
1536        MB19_R::new(((self.bits >> 19) & 1) != 0)
1537    }
1538    #[doc = "Bit 20 - mailbox 20 Interrupt Enable"]
1539    #[inline(always)]
1540    pub fn mb20(&self) -> MB20_R {
1541        MB20_R::new(((self.bits >> 20) & 1) != 0)
1542    }
1543    #[doc = "Bit 21 - mailbox 21 Interrupt Enable"]
1544    #[inline(always)]
1545    pub fn mb21(&self) -> MB21_R {
1546        MB21_R::new(((self.bits >> 21) & 1) != 0)
1547    }
1548    #[doc = "Bit 22 - mailbox 22 Interrupt Enable"]
1549    #[inline(always)]
1550    pub fn mb22(&self) -> MB22_R {
1551        MB22_R::new(((self.bits >> 22) & 1) != 0)
1552    }
1553    #[doc = "Bit 23 - mailbox 23 Interrupt Enable"]
1554    #[inline(always)]
1555    pub fn mb23(&self) -> MB23_R {
1556        MB23_R::new(((self.bits >> 23) & 1) != 0)
1557    }
1558    #[doc = "Bit 24 - Transmit FIFO Interrupt Enable"]
1559    #[inline(always)]
1560    pub fn mb24(&self) -> MB24_R {
1561        MB24_R::new(((self.bits >> 24) & 1) != 0)
1562    }
1563    #[doc = "Bit 25 - Transmit FIFO Interrupt Generation Timing Control"]
1564    #[inline(always)]
1565    pub fn mb25(&self) -> MB25_R {
1566        MB25_R::new(((self.bits >> 25) & 1) != 0)
1567    }
1568    #[doc = "Bit 28 - Receive FIFO Interrupt Enable"]
1569    #[inline(always)]
1570    pub fn mb28(&self) -> MB28_R {
1571        MB28_R::new(((self.bits >> 28) & 1) != 0)
1572    }
1573    #[doc = "Bit 29 - Receive FIFO Interrupt Generation Timing Control"]
1574    #[inline(always)]
1575    pub fn mb29(&self) -> MB29_R {
1576        MB29_R::new(((self.bits >> 29) & 1) != 0)
1577    }
1578}
1579impl W {
1580    #[doc = "Bit 0 - mailbox 0 Interrupt Enable"]
1581    #[inline(always)]
1582    #[must_use]
1583    pub fn mb0(&mut self) -> MB0_W<0> {
1584        MB0_W::new(self)
1585    }
1586    #[doc = "Bit 1 - mailbox 1 Interrupt Enable"]
1587    #[inline(always)]
1588    #[must_use]
1589    pub fn mb1(&mut self) -> MB1_W<1> {
1590        MB1_W::new(self)
1591    }
1592    #[doc = "Bit 2 - mailbox 2 Interrupt Enable"]
1593    #[inline(always)]
1594    #[must_use]
1595    pub fn mb2(&mut self) -> MB2_W<2> {
1596        MB2_W::new(self)
1597    }
1598    #[doc = "Bit 3 - mailbox 3 Interrupt Enable"]
1599    #[inline(always)]
1600    #[must_use]
1601    pub fn mb3(&mut self) -> MB3_W<3> {
1602        MB3_W::new(self)
1603    }
1604    #[doc = "Bit 4 - mailbox 4 Interrupt Enable"]
1605    #[inline(always)]
1606    #[must_use]
1607    pub fn mb4(&mut self) -> MB4_W<4> {
1608        MB4_W::new(self)
1609    }
1610    #[doc = "Bit 5 - mailbox 5 Interrupt Enable"]
1611    #[inline(always)]
1612    #[must_use]
1613    pub fn mb5(&mut self) -> MB5_W<5> {
1614        MB5_W::new(self)
1615    }
1616    #[doc = "Bit 6 - mailbox 6 Interrupt Enable"]
1617    #[inline(always)]
1618    #[must_use]
1619    pub fn mb6(&mut self) -> MB6_W<6> {
1620        MB6_W::new(self)
1621    }
1622    #[doc = "Bit 7 - mailbox 7 Interrupt Enable"]
1623    #[inline(always)]
1624    #[must_use]
1625    pub fn mb7(&mut self) -> MB7_W<7> {
1626        MB7_W::new(self)
1627    }
1628    #[doc = "Bit 8 - mailbox 8 Interrupt Enable"]
1629    #[inline(always)]
1630    #[must_use]
1631    pub fn mb8(&mut self) -> MB8_W<8> {
1632        MB8_W::new(self)
1633    }
1634    #[doc = "Bit 9 - mailbox 9 Interrupt Enable"]
1635    #[inline(always)]
1636    #[must_use]
1637    pub fn mb9(&mut self) -> MB9_W<9> {
1638        MB9_W::new(self)
1639    }
1640    #[doc = "Bit 10 - mailbox 10 Interrupt Enable"]
1641    #[inline(always)]
1642    #[must_use]
1643    pub fn mb10(&mut self) -> MB10_W<10> {
1644        MB10_W::new(self)
1645    }
1646    #[doc = "Bit 11 - mailbox 11 Interrupt Enable"]
1647    #[inline(always)]
1648    #[must_use]
1649    pub fn mb11(&mut self) -> MB11_W<11> {
1650        MB11_W::new(self)
1651    }
1652    #[doc = "Bit 12 - mailbox 12 Interrupt Enable"]
1653    #[inline(always)]
1654    #[must_use]
1655    pub fn mb12(&mut self) -> MB12_W<12> {
1656        MB12_W::new(self)
1657    }
1658    #[doc = "Bit 13 - mailbox 13 Interrupt Enable"]
1659    #[inline(always)]
1660    #[must_use]
1661    pub fn mb13(&mut self) -> MB13_W<13> {
1662        MB13_W::new(self)
1663    }
1664    #[doc = "Bit 14 - mailbox 14 Interrupt Enable"]
1665    #[inline(always)]
1666    #[must_use]
1667    pub fn mb14(&mut self) -> MB14_W<14> {
1668        MB14_W::new(self)
1669    }
1670    #[doc = "Bit 15 - mailbox 15 Interrupt Enable"]
1671    #[inline(always)]
1672    #[must_use]
1673    pub fn mb15(&mut self) -> MB15_W<15> {
1674        MB15_W::new(self)
1675    }
1676    #[doc = "Bit 16 - mailbox 16 Interrupt Enable"]
1677    #[inline(always)]
1678    #[must_use]
1679    pub fn mb16(&mut self) -> MB16_W<16> {
1680        MB16_W::new(self)
1681    }
1682    #[doc = "Bit 17 - mailbox 17 Interrupt Enable"]
1683    #[inline(always)]
1684    #[must_use]
1685    pub fn mb17(&mut self) -> MB17_W<17> {
1686        MB17_W::new(self)
1687    }
1688    #[doc = "Bit 18 - mailbox 18 Interrupt Enable"]
1689    #[inline(always)]
1690    #[must_use]
1691    pub fn mb18(&mut self) -> MB18_W<18> {
1692        MB18_W::new(self)
1693    }
1694    #[doc = "Bit 19 - mailbox 19 Interrupt Enable"]
1695    #[inline(always)]
1696    #[must_use]
1697    pub fn mb19(&mut self) -> MB19_W<19> {
1698        MB19_W::new(self)
1699    }
1700    #[doc = "Bit 20 - mailbox 20 Interrupt Enable"]
1701    #[inline(always)]
1702    #[must_use]
1703    pub fn mb20(&mut self) -> MB20_W<20> {
1704        MB20_W::new(self)
1705    }
1706    #[doc = "Bit 21 - mailbox 21 Interrupt Enable"]
1707    #[inline(always)]
1708    #[must_use]
1709    pub fn mb21(&mut self) -> MB21_W<21> {
1710        MB21_W::new(self)
1711    }
1712    #[doc = "Bit 22 - mailbox 22 Interrupt Enable"]
1713    #[inline(always)]
1714    #[must_use]
1715    pub fn mb22(&mut self) -> MB22_W<22> {
1716        MB22_W::new(self)
1717    }
1718    #[doc = "Bit 23 - mailbox 23 Interrupt Enable"]
1719    #[inline(always)]
1720    #[must_use]
1721    pub fn mb23(&mut self) -> MB23_W<23> {
1722        MB23_W::new(self)
1723    }
1724    #[doc = "Bit 24 - Transmit FIFO Interrupt Enable"]
1725    #[inline(always)]
1726    #[must_use]
1727    pub fn mb24(&mut self) -> MB24_W<24> {
1728        MB24_W::new(self)
1729    }
1730    #[doc = "Bit 25 - Transmit FIFO Interrupt Generation Timing Control"]
1731    #[inline(always)]
1732    #[must_use]
1733    pub fn mb25(&mut self) -> MB25_W<25> {
1734        MB25_W::new(self)
1735    }
1736    #[doc = "Bit 28 - Receive FIFO Interrupt Enable"]
1737    #[inline(always)]
1738    #[must_use]
1739    pub fn mb28(&mut self) -> MB28_W<28> {
1740        MB28_W::new(self)
1741    }
1742    #[doc = "Bit 29 - Receive FIFO Interrupt Generation Timing Control"]
1743    #[inline(always)]
1744    #[must_use]
1745    pub fn mb29(&mut self) -> MB29_W<29> {
1746        MB29_W::new(self)
1747    }
1748    #[doc = "Writes raw bits to the register."]
1749    #[inline(always)]
1750    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1751        self.0.bits(bits);
1752        self
1753    }
1754}
1755#[doc = "Mailbox Interrupt Enable Register for FIFO Mailbox Mode\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 [mier_fifo](index.html) module"]
1756pub struct MIER_FIFO_SPEC;
1757impl crate::RegisterSpec for MIER_FIFO_SPEC {
1758    type Ux = u32;
1759}
1760#[doc = "`read()` method returns [mier_fifo::R](R) reader structure"]
1761impl crate::Readable for MIER_FIFO_SPEC {
1762    type Reader = R;
1763}
1764#[doc = "`write(|w| ..)` method takes [mier_fifo::W](W) writer structure"]
1765impl crate::Writable for MIER_FIFO_SPEC {
1766    type Writer = W;
1767    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
1768    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
1769}
1770#[doc = "`reset()` method sets MIER_FIFO to value 0"]
1771impl crate::Resettable for MIER_FIFO_SPEC {
1772    const RESET_VALUE: Self::Ux = 0;
1773}