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 `TRIGGERED0` reader - Enable or disable interrupt for event TRIGGERED\\[0\\]"]
38pub type TRIGGERED0_R = crate::BitReader<TRIGGERED0_A>;
39#[doc = "Enable or disable interrupt for event TRIGGERED\\[0\\]\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq)]
41pub enum TRIGGERED0_A {
42 #[doc = "0: Disable"]
43 DISABLED = 0,
44 #[doc = "1: Enable"]
45 ENABLED = 1,
46}
47impl From<TRIGGERED0_A> for bool {
48 #[inline(always)]
49 fn from(variant: TRIGGERED0_A) -> Self {
50 variant as u8 != 0
51 }
52}
53impl TRIGGERED0_R {
54 #[doc = "Get enumerated values variant"]
55 #[inline(always)]
56 pub fn variant(&self) -> TRIGGERED0_A {
57 match self.bits {
58 false => TRIGGERED0_A::DISABLED,
59 true => TRIGGERED0_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 == TRIGGERED0_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 == TRIGGERED0_A::ENABLED
71 }
72}
73#[doc = "Field `TRIGGERED0` writer - Enable or disable interrupt for event TRIGGERED\\[0\\]"]
74pub type TRIGGERED0_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TRIGGERED0_A, O>;
75impl<'a, const O: u8> TRIGGERED0_W<'a, O> {
76 #[doc = "Disable"]
77 #[inline(always)]
78 pub fn disabled(self) -> &'a mut W {
79 self.variant(TRIGGERED0_A::DISABLED)
80 }
81 #[doc = "Enable"]
82 #[inline(always)]
83 pub fn enabled(self) -> &'a mut W {
84 self.variant(TRIGGERED0_A::ENABLED)
85 }
86}
87#[doc = "Field `TRIGGERED1` reader - Enable or disable interrupt for event TRIGGERED\\[1\\]"]
88pub type TRIGGERED1_R = crate::BitReader<TRIGGERED1_A>;
89#[doc = "Enable or disable interrupt for event TRIGGERED\\[1\\]\n\nValue on reset: 0"]
90#[derive(Clone, Copy, Debug, PartialEq)]
91pub enum TRIGGERED1_A {
92 #[doc = "0: Disable"]
93 DISABLED = 0,
94 #[doc = "1: Enable"]
95 ENABLED = 1,
96}
97impl From<TRIGGERED1_A> for bool {
98 #[inline(always)]
99 fn from(variant: TRIGGERED1_A) -> Self {
100 variant as u8 != 0
101 }
102}
103impl TRIGGERED1_R {
104 #[doc = "Get enumerated values variant"]
105 #[inline(always)]
106 pub fn variant(&self) -> TRIGGERED1_A {
107 match self.bits {
108 false => TRIGGERED1_A::DISABLED,
109 true => TRIGGERED1_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 == TRIGGERED1_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 == TRIGGERED1_A::ENABLED
121 }
122}
123#[doc = "Field `TRIGGERED1` writer - Enable or disable interrupt for event TRIGGERED\\[1\\]"]
124pub type TRIGGERED1_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TRIGGERED1_A, O>;
125impl<'a, const O: u8> TRIGGERED1_W<'a, O> {
126 #[doc = "Disable"]
127 #[inline(always)]
128 pub fn disabled(self) -> &'a mut W {
129 self.variant(TRIGGERED1_A::DISABLED)
130 }
131 #[doc = "Enable"]
132 #[inline(always)]
133 pub fn enabled(self) -> &'a mut W {
134 self.variant(TRIGGERED1_A::ENABLED)
135 }
136}
137#[doc = "Field `TRIGGERED2` reader - Enable or disable interrupt for event TRIGGERED\\[2\\]"]
138pub type TRIGGERED2_R = crate::BitReader<TRIGGERED2_A>;
139#[doc = "Enable or disable interrupt for event TRIGGERED\\[2\\]\n\nValue on reset: 0"]
140#[derive(Clone, Copy, Debug, PartialEq)]
141pub enum TRIGGERED2_A {
142 #[doc = "0: Disable"]
143 DISABLED = 0,
144 #[doc = "1: Enable"]
145 ENABLED = 1,
146}
147impl From<TRIGGERED2_A> for bool {
148 #[inline(always)]
149 fn from(variant: TRIGGERED2_A) -> Self {
150 variant as u8 != 0
151 }
152}
153impl TRIGGERED2_R {
154 #[doc = "Get enumerated values variant"]
155 #[inline(always)]
156 pub fn variant(&self) -> TRIGGERED2_A {
157 match self.bits {
158 false => TRIGGERED2_A::DISABLED,
159 true => TRIGGERED2_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 == TRIGGERED2_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 == TRIGGERED2_A::ENABLED
171 }
172}
173#[doc = "Field `TRIGGERED2` writer - Enable or disable interrupt for event TRIGGERED\\[2\\]"]
174pub type TRIGGERED2_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TRIGGERED2_A, O>;
175impl<'a, const O: u8> TRIGGERED2_W<'a, O> {
176 #[doc = "Disable"]
177 #[inline(always)]
178 pub fn disabled(self) -> &'a mut W {
179 self.variant(TRIGGERED2_A::DISABLED)
180 }
181 #[doc = "Enable"]
182 #[inline(always)]
183 pub fn enabled(self) -> &'a mut W {
184 self.variant(TRIGGERED2_A::ENABLED)
185 }
186}
187#[doc = "Field `TRIGGERED3` reader - Enable or disable interrupt for event TRIGGERED\\[3\\]"]
188pub type TRIGGERED3_R = crate::BitReader<TRIGGERED3_A>;
189#[doc = "Enable or disable interrupt for event TRIGGERED\\[3\\]\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq)]
191pub enum TRIGGERED3_A {
192 #[doc = "0: Disable"]
193 DISABLED = 0,
194 #[doc = "1: Enable"]
195 ENABLED = 1,
196}
197impl From<TRIGGERED3_A> for bool {
198 #[inline(always)]
199 fn from(variant: TRIGGERED3_A) -> Self {
200 variant as u8 != 0
201 }
202}
203impl TRIGGERED3_R {
204 #[doc = "Get enumerated values variant"]
205 #[inline(always)]
206 pub fn variant(&self) -> TRIGGERED3_A {
207 match self.bits {
208 false => TRIGGERED3_A::DISABLED,
209 true => TRIGGERED3_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 == TRIGGERED3_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 == TRIGGERED3_A::ENABLED
221 }
222}
223#[doc = "Field `TRIGGERED3` writer - Enable or disable interrupt for event TRIGGERED\\[3\\]"]
224pub type TRIGGERED3_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TRIGGERED3_A, O>;
225impl<'a, const O: u8> TRIGGERED3_W<'a, O> {
226 #[doc = "Disable"]
227 #[inline(always)]
228 pub fn disabled(self) -> &'a mut W {
229 self.variant(TRIGGERED3_A::DISABLED)
230 }
231 #[doc = "Enable"]
232 #[inline(always)]
233 pub fn enabled(self) -> &'a mut W {
234 self.variant(TRIGGERED3_A::ENABLED)
235 }
236}
237#[doc = "Field `TRIGGERED4` reader - Enable or disable interrupt for event TRIGGERED\\[4\\]"]
238pub type TRIGGERED4_R = crate::BitReader<TRIGGERED4_A>;
239#[doc = "Enable or disable interrupt for event TRIGGERED\\[4\\]\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq)]
241pub enum TRIGGERED4_A {
242 #[doc = "0: Disable"]
243 DISABLED = 0,
244 #[doc = "1: Enable"]
245 ENABLED = 1,
246}
247impl From<TRIGGERED4_A> for bool {
248 #[inline(always)]
249 fn from(variant: TRIGGERED4_A) -> Self {
250 variant as u8 != 0
251 }
252}
253impl TRIGGERED4_R {
254 #[doc = "Get enumerated values variant"]
255 #[inline(always)]
256 pub fn variant(&self) -> TRIGGERED4_A {
257 match self.bits {
258 false => TRIGGERED4_A::DISABLED,
259 true => TRIGGERED4_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 == TRIGGERED4_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 == TRIGGERED4_A::ENABLED
271 }
272}
273#[doc = "Field `TRIGGERED4` writer - Enable or disable interrupt for event TRIGGERED\\[4\\]"]
274pub type TRIGGERED4_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TRIGGERED4_A, O>;
275impl<'a, const O: u8> TRIGGERED4_W<'a, O> {
276 #[doc = "Disable"]
277 #[inline(always)]
278 pub fn disabled(self) -> &'a mut W {
279 self.variant(TRIGGERED4_A::DISABLED)
280 }
281 #[doc = "Enable"]
282 #[inline(always)]
283 pub fn enabled(self) -> &'a mut W {
284 self.variant(TRIGGERED4_A::ENABLED)
285 }
286}
287#[doc = "Field `TRIGGERED5` reader - Enable or disable interrupt for event TRIGGERED\\[5\\]"]
288pub type TRIGGERED5_R = crate::BitReader<TRIGGERED5_A>;
289#[doc = "Enable or disable interrupt for event TRIGGERED\\[5\\]\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq)]
291pub enum TRIGGERED5_A {
292 #[doc = "0: Disable"]
293 DISABLED = 0,
294 #[doc = "1: Enable"]
295 ENABLED = 1,
296}
297impl From<TRIGGERED5_A> for bool {
298 #[inline(always)]
299 fn from(variant: TRIGGERED5_A) -> Self {
300 variant as u8 != 0
301 }
302}
303impl TRIGGERED5_R {
304 #[doc = "Get enumerated values variant"]
305 #[inline(always)]
306 pub fn variant(&self) -> TRIGGERED5_A {
307 match self.bits {
308 false => TRIGGERED5_A::DISABLED,
309 true => TRIGGERED5_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 == TRIGGERED5_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 == TRIGGERED5_A::ENABLED
321 }
322}
323#[doc = "Field `TRIGGERED5` writer - Enable or disable interrupt for event TRIGGERED\\[5\\]"]
324pub type TRIGGERED5_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TRIGGERED5_A, O>;
325impl<'a, const O: u8> TRIGGERED5_W<'a, O> {
326 #[doc = "Disable"]
327 #[inline(always)]
328 pub fn disabled(self) -> &'a mut W {
329 self.variant(TRIGGERED5_A::DISABLED)
330 }
331 #[doc = "Enable"]
332 #[inline(always)]
333 pub fn enabled(self) -> &'a mut W {
334 self.variant(TRIGGERED5_A::ENABLED)
335 }
336}
337#[doc = "Field `TRIGGERED6` reader - Enable or disable interrupt for event TRIGGERED\\[6\\]"]
338pub type TRIGGERED6_R = crate::BitReader<TRIGGERED6_A>;
339#[doc = "Enable or disable interrupt for event TRIGGERED\\[6\\]\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq)]
341pub enum TRIGGERED6_A {
342 #[doc = "0: Disable"]
343 DISABLED = 0,
344 #[doc = "1: Enable"]
345 ENABLED = 1,
346}
347impl From<TRIGGERED6_A> for bool {
348 #[inline(always)]
349 fn from(variant: TRIGGERED6_A) -> Self {
350 variant as u8 != 0
351 }
352}
353impl TRIGGERED6_R {
354 #[doc = "Get enumerated values variant"]
355 #[inline(always)]
356 pub fn variant(&self) -> TRIGGERED6_A {
357 match self.bits {
358 false => TRIGGERED6_A::DISABLED,
359 true => TRIGGERED6_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 == TRIGGERED6_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 == TRIGGERED6_A::ENABLED
371 }
372}
373#[doc = "Field `TRIGGERED6` writer - Enable or disable interrupt for event TRIGGERED\\[6\\]"]
374pub type TRIGGERED6_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TRIGGERED6_A, O>;
375impl<'a, const O: u8> TRIGGERED6_W<'a, O> {
376 #[doc = "Disable"]
377 #[inline(always)]
378 pub fn disabled(self) -> &'a mut W {
379 self.variant(TRIGGERED6_A::DISABLED)
380 }
381 #[doc = "Enable"]
382 #[inline(always)]
383 pub fn enabled(self) -> &'a mut W {
384 self.variant(TRIGGERED6_A::ENABLED)
385 }
386}
387#[doc = "Field `TRIGGERED7` reader - Enable or disable interrupt for event TRIGGERED\\[7\\]"]
388pub type TRIGGERED7_R = crate::BitReader<TRIGGERED7_A>;
389#[doc = "Enable or disable interrupt for event TRIGGERED\\[7\\]\n\nValue on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq)]
391pub enum TRIGGERED7_A {
392 #[doc = "0: Disable"]
393 DISABLED = 0,
394 #[doc = "1: Enable"]
395 ENABLED = 1,
396}
397impl From<TRIGGERED7_A> for bool {
398 #[inline(always)]
399 fn from(variant: TRIGGERED7_A) -> Self {
400 variant as u8 != 0
401 }
402}
403impl TRIGGERED7_R {
404 #[doc = "Get enumerated values variant"]
405 #[inline(always)]
406 pub fn variant(&self) -> TRIGGERED7_A {
407 match self.bits {
408 false => TRIGGERED7_A::DISABLED,
409 true => TRIGGERED7_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 == TRIGGERED7_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 == TRIGGERED7_A::ENABLED
421 }
422}
423#[doc = "Field `TRIGGERED7` writer - Enable or disable interrupt for event TRIGGERED\\[7\\]"]
424pub type TRIGGERED7_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TRIGGERED7_A, O>;
425impl<'a, const O: u8> TRIGGERED7_W<'a, O> {
426 #[doc = "Disable"]
427 #[inline(always)]
428 pub fn disabled(self) -> &'a mut W {
429 self.variant(TRIGGERED7_A::DISABLED)
430 }
431 #[doc = "Enable"]
432 #[inline(always)]
433 pub fn enabled(self) -> &'a mut W {
434 self.variant(TRIGGERED7_A::ENABLED)
435 }
436}
437#[doc = "Field `TRIGGERED8` reader - Enable or disable interrupt for event TRIGGERED\\[8\\]"]
438pub type TRIGGERED8_R = crate::BitReader<TRIGGERED8_A>;
439#[doc = "Enable or disable interrupt for event TRIGGERED\\[8\\]\n\nValue on reset: 0"]
440#[derive(Clone, Copy, Debug, PartialEq)]
441pub enum TRIGGERED8_A {
442 #[doc = "0: Disable"]
443 DISABLED = 0,
444 #[doc = "1: Enable"]
445 ENABLED = 1,
446}
447impl From<TRIGGERED8_A> for bool {
448 #[inline(always)]
449 fn from(variant: TRIGGERED8_A) -> Self {
450 variant as u8 != 0
451 }
452}
453impl TRIGGERED8_R {
454 #[doc = "Get enumerated values variant"]
455 #[inline(always)]
456 pub fn variant(&self) -> TRIGGERED8_A {
457 match self.bits {
458 false => TRIGGERED8_A::DISABLED,
459 true => TRIGGERED8_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 == TRIGGERED8_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 == TRIGGERED8_A::ENABLED
471 }
472}
473#[doc = "Field `TRIGGERED8` writer - Enable or disable interrupt for event TRIGGERED\\[8\\]"]
474pub type TRIGGERED8_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TRIGGERED8_A, O>;
475impl<'a, const O: u8> TRIGGERED8_W<'a, O> {
476 #[doc = "Disable"]
477 #[inline(always)]
478 pub fn disabled(self) -> &'a mut W {
479 self.variant(TRIGGERED8_A::DISABLED)
480 }
481 #[doc = "Enable"]
482 #[inline(always)]
483 pub fn enabled(self) -> &'a mut W {
484 self.variant(TRIGGERED8_A::ENABLED)
485 }
486}
487#[doc = "Field `TRIGGERED9` reader - Enable or disable interrupt for event TRIGGERED\\[9\\]"]
488pub type TRIGGERED9_R = crate::BitReader<TRIGGERED9_A>;
489#[doc = "Enable or disable interrupt for event TRIGGERED\\[9\\]\n\nValue on reset: 0"]
490#[derive(Clone, Copy, Debug, PartialEq)]
491pub enum TRIGGERED9_A {
492 #[doc = "0: Disable"]
493 DISABLED = 0,
494 #[doc = "1: Enable"]
495 ENABLED = 1,
496}
497impl From<TRIGGERED9_A> for bool {
498 #[inline(always)]
499 fn from(variant: TRIGGERED9_A) -> Self {
500 variant as u8 != 0
501 }
502}
503impl TRIGGERED9_R {
504 #[doc = "Get enumerated values variant"]
505 #[inline(always)]
506 pub fn variant(&self) -> TRIGGERED9_A {
507 match self.bits {
508 false => TRIGGERED9_A::DISABLED,
509 true => TRIGGERED9_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 == TRIGGERED9_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 == TRIGGERED9_A::ENABLED
521 }
522}
523#[doc = "Field `TRIGGERED9` writer - Enable or disable interrupt for event TRIGGERED\\[9\\]"]
524pub type TRIGGERED9_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TRIGGERED9_A, O>;
525impl<'a, const O: u8> TRIGGERED9_W<'a, O> {
526 #[doc = "Disable"]
527 #[inline(always)]
528 pub fn disabled(self) -> &'a mut W {
529 self.variant(TRIGGERED9_A::DISABLED)
530 }
531 #[doc = "Enable"]
532 #[inline(always)]
533 pub fn enabled(self) -> &'a mut W {
534 self.variant(TRIGGERED9_A::ENABLED)
535 }
536}
537#[doc = "Field `TRIGGERED10` reader - Enable or disable interrupt for event TRIGGERED\\[10\\]"]
538pub type TRIGGERED10_R = crate::BitReader<TRIGGERED10_A>;
539#[doc = "Enable or disable interrupt for event TRIGGERED\\[10\\]\n\nValue on reset: 0"]
540#[derive(Clone, Copy, Debug, PartialEq)]
541pub enum TRIGGERED10_A {
542 #[doc = "0: Disable"]
543 DISABLED = 0,
544 #[doc = "1: Enable"]
545 ENABLED = 1,
546}
547impl From<TRIGGERED10_A> for bool {
548 #[inline(always)]
549 fn from(variant: TRIGGERED10_A) -> Self {
550 variant as u8 != 0
551 }
552}
553impl TRIGGERED10_R {
554 #[doc = "Get enumerated values variant"]
555 #[inline(always)]
556 pub fn variant(&self) -> TRIGGERED10_A {
557 match self.bits {
558 false => TRIGGERED10_A::DISABLED,
559 true => TRIGGERED10_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 == TRIGGERED10_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 == TRIGGERED10_A::ENABLED
571 }
572}
573#[doc = "Field `TRIGGERED10` writer - Enable or disable interrupt for event TRIGGERED\\[10\\]"]
574pub type TRIGGERED10_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TRIGGERED10_A, O>;
575impl<'a, const O: u8> TRIGGERED10_W<'a, O> {
576 #[doc = "Disable"]
577 #[inline(always)]
578 pub fn disabled(self) -> &'a mut W {
579 self.variant(TRIGGERED10_A::DISABLED)
580 }
581 #[doc = "Enable"]
582 #[inline(always)]
583 pub fn enabled(self) -> &'a mut W {
584 self.variant(TRIGGERED10_A::ENABLED)
585 }
586}
587#[doc = "Field `TRIGGERED11` reader - Enable or disable interrupt for event TRIGGERED\\[11\\]"]
588pub type TRIGGERED11_R = crate::BitReader<TRIGGERED11_A>;
589#[doc = "Enable or disable interrupt for event TRIGGERED\\[11\\]\n\nValue on reset: 0"]
590#[derive(Clone, Copy, Debug, PartialEq)]
591pub enum TRIGGERED11_A {
592 #[doc = "0: Disable"]
593 DISABLED = 0,
594 #[doc = "1: Enable"]
595 ENABLED = 1,
596}
597impl From<TRIGGERED11_A> for bool {
598 #[inline(always)]
599 fn from(variant: TRIGGERED11_A) -> Self {
600 variant as u8 != 0
601 }
602}
603impl TRIGGERED11_R {
604 #[doc = "Get enumerated values variant"]
605 #[inline(always)]
606 pub fn variant(&self) -> TRIGGERED11_A {
607 match self.bits {
608 false => TRIGGERED11_A::DISABLED,
609 true => TRIGGERED11_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 == TRIGGERED11_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 == TRIGGERED11_A::ENABLED
621 }
622}
623#[doc = "Field `TRIGGERED11` writer - Enable or disable interrupt for event TRIGGERED\\[11\\]"]
624pub type TRIGGERED11_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TRIGGERED11_A, O>;
625impl<'a, const O: u8> TRIGGERED11_W<'a, O> {
626 #[doc = "Disable"]
627 #[inline(always)]
628 pub fn disabled(self) -> &'a mut W {
629 self.variant(TRIGGERED11_A::DISABLED)
630 }
631 #[doc = "Enable"]
632 #[inline(always)]
633 pub fn enabled(self) -> &'a mut W {
634 self.variant(TRIGGERED11_A::ENABLED)
635 }
636}
637#[doc = "Field `TRIGGERED12` reader - Enable or disable interrupt for event TRIGGERED\\[12\\]"]
638pub type TRIGGERED12_R = crate::BitReader<TRIGGERED12_A>;
639#[doc = "Enable or disable interrupt for event TRIGGERED\\[12\\]\n\nValue on reset: 0"]
640#[derive(Clone, Copy, Debug, PartialEq)]
641pub enum TRIGGERED12_A {
642 #[doc = "0: Disable"]
643 DISABLED = 0,
644 #[doc = "1: Enable"]
645 ENABLED = 1,
646}
647impl From<TRIGGERED12_A> for bool {
648 #[inline(always)]
649 fn from(variant: TRIGGERED12_A) -> Self {
650 variant as u8 != 0
651 }
652}
653impl TRIGGERED12_R {
654 #[doc = "Get enumerated values variant"]
655 #[inline(always)]
656 pub fn variant(&self) -> TRIGGERED12_A {
657 match self.bits {
658 false => TRIGGERED12_A::DISABLED,
659 true => TRIGGERED12_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 == TRIGGERED12_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 == TRIGGERED12_A::ENABLED
671 }
672}
673#[doc = "Field `TRIGGERED12` writer - Enable or disable interrupt for event TRIGGERED\\[12\\]"]
674pub type TRIGGERED12_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TRIGGERED12_A, O>;
675impl<'a, const O: u8> TRIGGERED12_W<'a, O> {
676 #[doc = "Disable"]
677 #[inline(always)]
678 pub fn disabled(self) -> &'a mut W {
679 self.variant(TRIGGERED12_A::DISABLED)
680 }
681 #[doc = "Enable"]
682 #[inline(always)]
683 pub fn enabled(self) -> &'a mut W {
684 self.variant(TRIGGERED12_A::ENABLED)
685 }
686}
687#[doc = "Field `TRIGGERED13` reader - Enable or disable interrupt for event TRIGGERED\\[13\\]"]
688pub type TRIGGERED13_R = crate::BitReader<TRIGGERED13_A>;
689#[doc = "Enable or disable interrupt for event TRIGGERED\\[13\\]\n\nValue on reset: 0"]
690#[derive(Clone, Copy, Debug, PartialEq)]
691pub enum TRIGGERED13_A {
692 #[doc = "0: Disable"]
693 DISABLED = 0,
694 #[doc = "1: Enable"]
695 ENABLED = 1,
696}
697impl From<TRIGGERED13_A> for bool {
698 #[inline(always)]
699 fn from(variant: TRIGGERED13_A) -> Self {
700 variant as u8 != 0
701 }
702}
703impl TRIGGERED13_R {
704 #[doc = "Get enumerated values variant"]
705 #[inline(always)]
706 pub fn variant(&self) -> TRIGGERED13_A {
707 match self.bits {
708 false => TRIGGERED13_A::DISABLED,
709 true => TRIGGERED13_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 == TRIGGERED13_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 == TRIGGERED13_A::ENABLED
721 }
722}
723#[doc = "Field `TRIGGERED13` writer - Enable or disable interrupt for event TRIGGERED\\[13\\]"]
724pub type TRIGGERED13_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TRIGGERED13_A, O>;
725impl<'a, const O: u8> TRIGGERED13_W<'a, O> {
726 #[doc = "Disable"]
727 #[inline(always)]
728 pub fn disabled(self) -> &'a mut W {
729 self.variant(TRIGGERED13_A::DISABLED)
730 }
731 #[doc = "Enable"]
732 #[inline(always)]
733 pub fn enabled(self) -> &'a mut W {
734 self.variant(TRIGGERED13_A::ENABLED)
735 }
736}
737#[doc = "Field `TRIGGERED14` reader - Enable or disable interrupt for event TRIGGERED\\[14\\]"]
738pub type TRIGGERED14_R = crate::BitReader<TRIGGERED14_A>;
739#[doc = "Enable or disable interrupt for event TRIGGERED\\[14\\]\n\nValue on reset: 0"]
740#[derive(Clone, Copy, Debug, PartialEq)]
741pub enum TRIGGERED14_A {
742 #[doc = "0: Disable"]
743 DISABLED = 0,
744 #[doc = "1: Enable"]
745 ENABLED = 1,
746}
747impl From<TRIGGERED14_A> for bool {
748 #[inline(always)]
749 fn from(variant: TRIGGERED14_A) -> Self {
750 variant as u8 != 0
751 }
752}
753impl TRIGGERED14_R {
754 #[doc = "Get enumerated values variant"]
755 #[inline(always)]
756 pub fn variant(&self) -> TRIGGERED14_A {
757 match self.bits {
758 false => TRIGGERED14_A::DISABLED,
759 true => TRIGGERED14_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 == TRIGGERED14_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 == TRIGGERED14_A::ENABLED
771 }
772}
773#[doc = "Field `TRIGGERED14` writer - Enable or disable interrupt for event TRIGGERED\\[14\\]"]
774pub type TRIGGERED14_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TRIGGERED14_A, O>;
775impl<'a, const O: u8> TRIGGERED14_W<'a, O> {
776 #[doc = "Disable"]
777 #[inline(always)]
778 pub fn disabled(self) -> &'a mut W {
779 self.variant(TRIGGERED14_A::DISABLED)
780 }
781 #[doc = "Enable"]
782 #[inline(always)]
783 pub fn enabled(self) -> &'a mut W {
784 self.variant(TRIGGERED14_A::ENABLED)
785 }
786}
787#[doc = "Field `TRIGGERED15` reader - Enable or disable interrupt for event TRIGGERED\\[15\\]"]
788pub type TRIGGERED15_R = crate::BitReader<TRIGGERED15_A>;
789#[doc = "Enable or disable interrupt for event TRIGGERED\\[15\\]\n\nValue on reset: 0"]
790#[derive(Clone, Copy, Debug, PartialEq)]
791pub enum TRIGGERED15_A {
792 #[doc = "0: Disable"]
793 DISABLED = 0,
794 #[doc = "1: Enable"]
795 ENABLED = 1,
796}
797impl From<TRIGGERED15_A> for bool {
798 #[inline(always)]
799 fn from(variant: TRIGGERED15_A) -> Self {
800 variant as u8 != 0
801 }
802}
803impl TRIGGERED15_R {
804 #[doc = "Get enumerated values variant"]
805 #[inline(always)]
806 pub fn variant(&self) -> TRIGGERED15_A {
807 match self.bits {
808 false => TRIGGERED15_A::DISABLED,
809 true => TRIGGERED15_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 == TRIGGERED15_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 == TRIGGERED15_A::ENABLED
821 }
822}
823#[doc = "Field `TRIGGERED15` writer - Enable or disable interrupt for event TRIGGERED\\[15\\]"]
824pub type TRIGGERED15_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, TRIGGERED15_A, O>;
825impl<'a, const O: u8> TRIGGERED15_W<'a, O> {
826 #[doc = "Disable"]
827 #[inline(always)]
828 pub fn disabled(self) -> &'a mut W {
829 self.variant(TRIGGERED15_A::DISABLED)
830 }
831 #[doc = "Enable"]
832 #[inline(always)]
833 pub fn enabled(self) -> &'a mut W {
834 self.variant(TRIGGERED15_A::ENABLED)
835 }
836}
837impl R {
838 #[doc = "Bit 0 - Enable or disable interrupt for event TRIGGERED\\[0\\]"]
839 #[inline(always)]
840 pub fn triggered0(&self) -> TRIGGERED0_R {
841 TRIGGERED0_R::new((self.bits & 1) != 0)
842 }
843 #[doc = "Bit 1 - Enable or disable interrupt for event TRIGGERED\\[1\\]"]
844 #[inline(always)]
845 pub fn triggered1(&self) -> TRIGGERED1_R {
846 TRIGGERED1_R::new(((self.bits >> 1) & 1) != 0)
847 }
848 #[doc = "Bit 2 - Enable or disable interrupt for event TRIGGERED\\[2\\]"]
849 #[inline(always)]
850 pub fn triggered2(&self) -> TRIGGERED2_R {
851 TRIGGERED2_R::new(((self.bits >> 2) & 1) != 0)
852 }
853 #[doc = "Bit 3 - Enable or disable interrupt for event TRIGGERED\\[3\\]"]
854 #[inline(always)]
855 pub fn triggered3(&self) -> TRIGGERED3_R {
856 TRIGGERED3_R::new(((self.bits >> 3) & 1) != 0)
857 }
858 #[doc = "Bit 4 - Enable or disable interrupt for event TRIGGERED\\[4\\]"]
859 #[inline(always)]
860 pub fn triggered4(&self) -> TRIGGERED4_R {
861 TRIGGERED4_R::new(((self.bits >> 4) & 1) != 0)
862 }
863 #[doc = "Bit 5 - Enable or disable interrupt for event TRIGGERED\\[5\\]"]
864 #[inline(always)]
865 pub fn triggered5(&self) -> TRIGGERED5_R {
866 TRIGGERED5_R::new(((self.bits >> 5) & 1) != 0)
867 }
868 #[doc = "Bit 6 - Enable or disable interrupt for event TRIGGERED\\[6\\]"]
869 #[inline(always)]
870 pub fn triggered6(&self) -> TRIGGERED6_R {
871 TRIGGERED6_R::new(((self.bits >> 6) & 1) != 0)
872 }
873 #[doc = "Bit 7 - Enable or disable interrupt for event TRIGGERED\\[7\\]"]
874 #[inline(always)]
875 pub fn triggered7(&self) -> TRIGGERED7_R {
876 TRIGGERED7_R::new(((self.bits >> 7) & 1) != 0)
877 }
878 #[doc = "Bit 8 - Enable or disable interrupt for event TRIGGERED\\[8\\]"]
879 #[inline(always)]
880 pub fn triggered8(&self) -> TRIGGERED8_R {
881 TRIGGERED8_R::new(((self.bits >> 8) & 1) != 0)
882 }
883 #[doc = "Bit 9 - Enable or disable interrupt for event TRIGGERED\\[9\\]"]
884 #[inline(always)]
885 pub fn triggered9(&self) -> TRIGGERED9_R {
886 TRIGGERED9_R::new(((self.bits >> 9) & 1) != 0)
887 }
888 #[doc = "Bit 10 - Enable or disable interrupt for event TRIGGERED\\[10\\]"]
889 #[inline(always)]
890 pub fn triggered10(&self) -> TRIGGERED10_R {
891 TRIGGERED10_R::new(((self.bits >> 10) & 1) != 0)
892 }
893 #[doc = "Bit 11 - Enable or disable interrupt for event TRIGGERED\\[11\\]"]
894 #[inline(always)]
895 pub fn triggered11(&self) -> TRIGGERED11_R {
896 TRIGGERED11_R::new(((self.bits >> 11) & 1) != 0)
897 }
898 #[doc = "Bit 12 - Enable or disable interrupt for event TRIGGERED\\[12\\]"]
899 #[inline(always)]
900 pub fn triggered12(&self) -> TRIGGERED12_R {
901 TRIGGERED12_R::new(((self.bits >> 12) & 1) != 0)
902 }
903 #[doc = "Bit 13 - Enable or disable interrupt for event TRIGGERED\\[13\\]"]
904 #[inline(always)]
905 pub fn triggered13(&self) -> TRIGGERED13_R {
906 TRIGGERED13_R::new(((self.bits >> 13) & 1) != 0)
907 }
908 #[doc = "Bit 14 - Enable or disable interrupt for event TRIGGERED\\[14\\]"]
909 #[inline(always)]
910 pub fn triggered14(&self) -> TRIGGERED14_R {
911 TRIGGERED14_R::new(((self.bits >> 14) & 1) != 0)
912 }
913 #[doc = "Bit 15 - Enable or disable interrupt for event TRIGGERED\\[15\\]"]
914 #[inline(always)]
915 pub fn triggered15(&self) -> TRIGGERED15_R {
916 TRIGGERED15_R::new(((self.bits >> 15) & 1) != 0)
917 }
918}
919impl W {
920 #[doc = "Bit 0 - Enable or disable interrupt for event TRIGGERED\\[0\\]"]
921 #[inline(always)]
922 pub fn triggered0(&mut self) -> TRIGGERED0_W<0> {
923 TRIGGERED0_W::new(self)
924 }
925 #[doc = "Bit 1 - Enable or disable interrupt for event TRIGGERED\\[1\\]"]
926 #[inline(always)]
927 pub fn triggered1(&mut self) -> TRIGGERED1_W<1> {
928 TRIGGERED1_W::new(self)
929 }
930 #[doc = "Bit 2 - Enable or disable interrupt for event TRIGGERED\\[2\\]"]
931 #[inline(always)]
932 pub fn triggered2(&mut self) -> TRIGGERED2_W<2> {
933 TRIGGERED2_W::new(self)
934 }
935 #[doc = "Bit 3 - Enable or disable interrupt for event TRIGGERED\\[3\\]"]
936 #[inline(always)]
937 pub fn triggered3(&mut self) -> TRIGGERED3_W<3> {
938 TRIGGERED3_W::new(self)
939 }
940 #[doc = "Bit 4 - Enable or disable interrupt for event TRIGGERED\\[4\\]"]
941 #[inline(always)]
942 pub fn triggered4(&mut self) -> TRIGGERED4_W<4> {
943 TRIGGERED4_W::new(self)
944 }
945 #[doc = "Bit 5 - Enable or disable interrupt for event TRIGGERED\\[5\\]"]
946 #[inline(always)]
947 pub fn triggered5(&mut self) -> TRIGGERED5_W<5> {
948 TRIGGERED5_W::new(self)
949 }
950 #[doc = "Bit 6 - Enable or disable interrupt for event TRIGGERED\\[6\\]"]
951 #[inline(always)]
952 pub fn triggered6(&mut self) -> TRIGGERED6_W<6> {
953 TRIGGERED6_W::new(self)
954 }
955 #[doc = "Bit 7 - Enable or disable interrupt for event TRIGGERED\\[7\\]"]
956 #[inline(always)]
957 pub fn triggered7(&mut self) -> TRIGGERED7_W<7> {
958 TRIGGERED7_W::new(self)
959 }
960 #[doc = "Bit 8 - Enable or disable interrupt for event TRIGGERED\\[8\\]"]
961 #[inline(always)]
962 pub fn triggered8(&mut self) -> TRIGGERED8_W<8> {
963 TRIGGERED8_W::new(self)
964 }
965 #[doc = "Bit 9 - Enable or disable interrupt for event TRIGGERED\\[9\\]"]
966 #[inline(always)]
967 pub fn triggered9(&mut self) -> TRIGGERED9_W<9> {
968 TRIGGERED9_W::new(self)
969 }
970 #[doc = "Bit 10 - Enable or disable interrupt for event TRIGGERED\\[10\\]"]
971 #[inline(always)]
972 pub fn triggered10(&mut self) -> TRIGGERED10_W<10> {
973 TRIGGERED10_W::new(self)
974 }
975 #[doc = "Bit 11 - Enable or disable interrupt for event TRIGGERED\\[11\\]"]
976 #[inline(always)]
977 pub fn triggered11(&mut self) -> TRIGGERED11_W<11> {
978 TRIGGERED11_W::new(self)
979 }
980 #[doc = "Bit 12 - Enable or disable interrupt for event TRIGGERED\\[12\\]"]
981 #[inline(always)]
982 pub fn triggered12(&mut self) -> TRIGGERED12_W<12> {
983 TRIGGERED12_W::new(self)
984 }
985 #[doc = "Bit 13 - Enable or disable interrupt for event TRIGGERED\\[13\\]"]
986 #[inline(always)]
987 pub fn triggered13(&mut self) -> TRIGGERED13_W<13> {
988 TRIGGERED13_W::new(self)
989 }
990 #[doc = "Bit 14 - Enable or disable interrupt for event TRIGGERED\\[14\\]"]
991 #[inline(always)]
992 pub fn triggered14(&mut self) -> TRIGGERED14_W<14> {
993 TRIGGERED14_W::new(self)
994 }
995 #[doc = "Bit 15 - Enable or disable interrupt for event TRIGGERED\\[15\\]"]
996 #[inline(always)]
997 pub fn triggered15(&mut self) -> TRIGGERED15_W<15> {
998 TRIGGERED15_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}