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