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 `REGION0WA` reader - Enable or disable interrupt for REGION\\[0\\].WA event"]
38pub type REGION0WA_R = crate::BitReader<REGION0WA_A>;
39#[doc = "Enable or disable interrupt for REGION\\[0\\].WA event\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq)]
41pub enum REGION0WA_A {
42 #[doc = "0: Disable"]
43 DISABLED = 0,
44 #[doc = "1: Enable"]
45 ENABLED = 1,
46}
47impl From<REGION0WA_A> for bool {
48 #[inline(always)]
49 fn from(variant: REGION0WA_A) -> Self {
50 variant as u8 != 0
51 }
52}
53impl REGION0WA_R {
54 #[doc = "Get enumerated values variant"]
55 #[inline(always)]
56 pub fn variant(&self) -> REGION0WA_A {
57 match self.bits {
58 false => REGION0WA_A::DISABLED,
59 true => REGION0WA_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 == REGION0WA_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 == REGION0WA_A::ENABLED
71 }
72}
73#[doc = "Field `REGION0WA` writer - Enable or disable interrupt for REGION\\[0\\].WA event"]
74pub type REGION0WA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, REGION0WA_A, O>;
75impl<'a, const O: u8> REGION0WA_W<'a, O> {
76 #[doc = "Disable"]
77 #[inline(always)]
78 pub fn disabled(self) -> &'a mut W {
79 self.variant(REGION0WA_A::DISABLED)
80 }
81 #[doc = "Enable"]
82 #[inline(always)]
83 pub fn enabled(self) -> &'a mut W {
84 self.variant(REGION0WA_A::ENABLED)
85 }
86}
87#[doc = "Field `REGION0RA` reader - Enable or disable interrupt for REGION\\[0\\].RA event"]
88pub type REGION0RA_R = crate::BitReader<REGION0RA_A>;
89#[doc = "Enable or disable interrupt for REGION\\[0\\].RA event\n\nValue on reset: 0"]
90#[derive(Clone, Copy, Debug, PartialEq)]
91pub enum REGION0RA_A {
92 #[doc = "0: Disable"]
93 DISABLED = 0,
94 #[doc = "1: Enable"]
95 ENABLED = 1,
96}
97impl From<REGION0RA_A> for bool {
98 #[inline(always)]
99 fn from(variant: REGION0RA_A) -> Self {
100 variant as u8 != 0
101 }
102}
103impl REGION0RA_R {
104 #[doc = "Get enumerated values variant"]
105 #[inline(always)]
106 pub fn variant(&self) -> REGION0RA_A {
107 match self.bits {
108 false => REGION0RA_A::DISABLED,
109 true => REGION0RA_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 == REGION0RA_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 == REGION0RA_A::ENABLED
121 }
122}
123#[doc = "Field `REGION0RA` writer - Enable or disable interrupt for REGION\\[0\\].RA event"]
124pub type REGION0RA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, REGION0RA_A, O>;
125impl<'a, const O: u8> REGION0RA_W<'a, O> {
126 #[doc = "Disable"]
127 #[inline(always)]
128 pub fn disabled(self) -> &'a mut W {
129 self.variant(REGION0RA_A::DISABLED)
130 }
131 #[doc = "Enable"]
132 #[inline(always)]
133 pub fn enabled(self) -> &'a mut W {
134 self.variant(REGION0RA_A::ENABLED)
135 }
136}
137#[doc = "Field `REGION1WA` reader - Enable or disable interrupt for REGION\\[1\\].WA event"]
138pub type REGION1WA_R = crate::BitReader<REGION1WA_A>;
139#[doc = "Enable or disable interrupt for REGION\\[1\\].WA event\n\nValue on reset: 0"]
140#[derive(Clone, Copy, Debug, PartialEq)]
141pub enum REGION1WA_A {
142 #[doc = "0: Disable"]
143 DISABLED = 0,
144 #[doc = "1: Enable"]
145 ENABLED = 1,
146}
147impl From<REGION1WA_A> for bool {
148 #[inline(always)]
149 fn from(variant: REGION1WA_A) -> Self {
150 variant as u8 != 0
151 }
152}
153impl REGION1WA_R {
154 #[doc = "Get enumerated values variant"]
155 #[inline(always)]
156 pub fn variant(&self) -> REGION1WA_A {
157 match self.bits {
158 false => REGION1WA_A::DISABLED,
159 true => REGION1WA_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 == REGION1WA_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 == REGION1WA_A::ENABLED
171 }
172}
173#[doc = "Field `REGION1WA` writer - Enable or disable interrupt for REGION\\[1\\].WA event"]
174pub type REGION1WA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, REGION1WA_A, O>;
175impl<'a, const O: u8> REGION1WA_W<'a, O> {
176 #[doc = "Disable"]
177 #[inline(always)]
178 pub fn disabled(self) -> &'a mut W {
179 self.variant(REGION1WA_A::DISABLED)
180 }
181 #[doc = "Enable"]
182 #[inline(always)]
183 pub fn enabled(self) -> &'a mut W {
184 self.variant(REGION1WA_A::ENABLED)
185 }
186}
187#[doc = "Field `REGION1RA` reader - Enable or disable interrupt for REGION\\[1\\].RA event"]
188pub type REGION1RA_R = crate::BitReader<REGION1RA_A>;
189#[doc = "Enable or disable interrupt for REGION\\[1\\].RA event\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq)]
191pub enum REGION1RA_A {
192 #[doc = "0: Disable"]
193 DISABLED = 0,
194 #[doc = "1: Enable"]
195 ENABLED = 1,
196}
197impl From<REGION1RA_A> for bool {
198 #[inline(always)]
199 fn from(variant: REGION1RA_A) -> Self {
200 variant as u8 != 0
201 }
202}
203impl REGION1RA_R {
204 #[doc = "Get enumerated values variant"]
205 #[inline(always)]
206 pub fn variant(&self) -> REGION1RA_A {
207 match self.bits {
208 false => REGION1RA_A::DISABLED,
209 true => REGION1RA_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 == REGION1RA_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 == REGION1RA_A::ENABLED
221 }
222}
223#[doc = "Field `REGION1RA` writer - Enable or disable interrupt for REGION\\[1\\].RA event"]
224pub type REGION1RA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, REGION1RA_A, O>;
225impl<'a, const O: u8> REGION1RA_W<'a, O> {
226 #[doc = "Disable"]
227 #[inline(always)]
228 pub fn disabled(self) -> &'a mut W {
229 self.variant(REGION1RA_A::DISABLED)
230 }
231 #[doc = "Enable"]
232 #[inline(always)]
233 pub fn enabled(self) -> &'a mut W {
234 self.variant(REGION1RA_A::ENABLED)
235 }
236}
237#[doc = "Field `REGION2WA` reader - Enable or disable interrupt for REGION\\[2\\].WA event"]
238pub type REGION2WA_R = crate::BitReader<REGION2WA_A>;
239#[doc = "Enable or disable interrupt for REGION\\[2\\].WA event\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq)]
241pub enum REGION2WA_A {
242 #[doc = "0: Disable"]
243 DISABLED = 0,
244 #[doc = "1: Enable"]
245 ENABLED = 1,
246}
247impl From<REGION2WA_A> for bool {
248 #[inline(always)]
249 fn from(variant: REGION2WA_A) -> Self {
250 variant as u8 != 0
251 }
252}
253impl REGION2WA_R {
254 #[doc = "Get enumerated values variant"]
255 #[inline(always)]
256 pub fn variant(&self) -> REGION2WA_A {
257 match self.bits {
258 false => REGION2WA_A::DISABLED,
259 true => REGION2WA_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 == REGION2WA_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 == REGION2WA_A::ENABLED
271 }
272}
273#[doc = "Field `REGION2WA` writer - Enable or disable interrupt for REGION\\[2\\].WA event"]
274pub type REGION2WA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, REGION2WA_A, O>;
275impl<'a, const O: u8> REGION2WA_W<'a, O> {
276 #[doc = "Disable"]
277 #[inline(always)]
278 pub fn disabled(self) -> &'a mut W {
279 self.variant(REGION2WA_A::DISABLED)
280 }
281 #[doc = "Enable"]
282 #[inline(always)]
283 pub fn enabled(self) -> &'a mut W {
284 self.variant(REGION2WA_A::ENABLED)
285 }
286}
287#[doc = "Field `REGION2RA` reader - Enable or disable interrupt for REGION\\[2\\].RA event"]
288pub type REGION2RA_R = crate::BitReader<REGION2RA_A>;
289#[doc = "Enable or disable interrupt for REGION\\[2\\].RA event\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq)]
291pub enum REGION2RA_A {
292 #[doc = "0: Disable"]
293 DISABLED = 0,
294 #[doc = "1: Enable"]
295 ENABLED = 1,
296}
297impl From<REGION2RA_A> for bool {
298 #[inline(always)]
299 fn from(variant: REGION2RA_A) -> Self {
300 variant as u8 != 0
301 }
302}
303impl REGION2RA_R {
304 #[doc = "Get enumerated values variant"]
305 #[inline(always)]
306 pub fn variant(&self) -> REGION2RA_A {
307 match self.bits {
308 false => REGION2RA_A::DISABLED,
309 true => REGION2RA_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 == REGION2RA_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 == REGION2RA_A::ENABLED
321 }
322}
323#[doc = "Field `REGION2RA` writer - Enable or disable interrupt for REGION\\[2\\].RA event"]
324pub type REGION2RA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, REGION2RA_A, O>;
325impl<'a, const O: u8> REGION2RA_W<'a, O> {
326 #[doc = "Disable"]
327 #[inline(always)]
328 pub fn disabled(self) -> &'a mut W {
329 self.variant(REGION2RA_A::DISABLED)
330 }
331 #[doc = "Enable"]
332 #[inline(always)]
333 pub fn enabled(self) -> &'a mut W {
334 self.variant(REGION2RA_A::ENABLED)
335 }
336}
337#[doc = "Field `REGION3WA` reader - Enable or disable interrupt for REGION\\[3\\].WA event"]
338pub type REGION3WA_R = crate::BitReader<REGION3WA_A>;
339#[doc = "Enable or disable interrupt for REGION\\[3\\].WA event\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq)]
341pub enum REGION3WA_A {
342 #[doc = "0: Disable"]
343 DISABLED = 0,
344 #[doc = "1: Enable"]
345 ENABLED = 1,
346}
347impl From<REGION3WA_A> for bool {
348 #[inline(always)]
349 fn from(variant: REGION3WA_A) -> Self {
350 variant as u8 != 0
351 }
352}
353impl REGION3WA_R {
354 #[doc = "Get enumerated values variant"]
355 #[inline(always)]
356 pub fn variant(&self) -> REGION3WA_A {
357 match self.bits {
358 false => REGION3WA_A::DISABLED,
359 true => REGION3WA_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 == REGION3WA_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 == REGION3WA_A::ENABLED
371 }
372}
373#[doc = "Field `REGION3WA` writer - Enable or disable interrupt for REGION\\[3\\].WA event"]
374pub type REGION3WA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, REGION3WA_A, O>;
375impl<'a, const O: u8> REGION3WA_W<'a, O> {
376 #[doc = "Disable"]
377 #[inline(always)]
378 pub fn disabled(self) -> &'a mut W {
379 self.variant(REGION3WA_A::DISABLED)
380 }
381 #[doc = "Enable"]
382 #[inline(always)]
383 pub fn enabled(self) -> &'a mut W {
384 self.variant(REGION3WA_A::ENABLED)
385 }
386}
387#[doc = "Field `REGION3RA` reader - Enable or disable interrupt for REGION\\[3\\].RA event"]
388pub type REGION3RA_R = crate::BitReader<REGION3RA_A>;
389#[doc = "Enable or disable interrupt for REGION\\[3\\].RA event\n\nValue on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq)]
391pub enum REGION3RA_A {
392 #[doc = "0: Disable"]
393 DISABLED = 0,
394 #[doc = "1: Enable"]
395 ENABLED = 1,
396}
397impl From<REGION3RA_A> for bool {
398 #[inline(always)]
399 fn from(variant: REGION3RA_A) -> Self {
400 variant as u8 != 0
401 }
402}
403impl REGION3RA_R {
404 #[doc = "Get enumerated values variant"]
405 #[inline(always)]
406 pub fn variant(&self) -> REGION3RA_A {
407 match self.bits {
408 false => REGION3RA_A::DISABLED,
409 true => REGION3RA_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 == REGION3RA_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 == REGION3RA_A::ENABLED
421 }
422}
423#[doc = "Field `REGION3RA` writer - Enable or disable interrupt for REGION\\[3\\].RA event"]
424pub type REGION3RA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, REGION3RA_A, O>;
425impl<'a, const O: u8> REGION3RA_W<'a, O> {
426 #[doc = "Disable"]
427 #[inline(always)]
428 pub fn disabled(self) -> &'a mut W {
429 self.variant(REGION3RA_A::DISABLED)
430 }
431 #[doc = "Enable"]
432 #[inline(always)]
433 pub fn enabled(self) -> &'a mut W {
434 self.variant(REGION3RA_A::ENABLED)
435 }
436}
437#[doc = "Field `PREGION0WA` reader - Enable or disable interrupt for PREGION\\[0\\].WA event"]
438pub type PREGION0WA_R = crate::BitReader<PREGION0WA_A>;
439#[doc = "Enable or disable interrupt for PREGION\\[0\\].WA event\n\nValue on reset: 0"]
440#[derive(Clone, Copy, Debug, PartialEq)]
441pub enum PREGION0WA_A {
442 #[doc = "0: Disable"]
443 DISABLED = 0,
444 #[doc = "1: Enable"]
445 ENABLED = 1,
446}
447impl From<PREGION0WA_A> for bool {
448 #[inline(always)]
449 fn from(variant: PREGION0WA_A) -> Self {
450 variant as u8 != 0
451 }
452}
453impl PREGION0WA_R {
454 #[doc = "Get enumerated values variant"]
455 #[inline(always)]
456 pub fn variant(&self) -> PREGION0WA_A {
457 match self.bits {
458 false => PREGION0WA_A::DISABLED,
459 true => PREGION0WA_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 == PREGION0WA_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 == PREGION0WA_A::ENABLED
471 }
472}
473#[doc = "Field `PREGION0WA` writer - Enable or disable interrupt for PREGION\\[0\\].WA event"]
474pub type PREGION0WA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, PREGION0WA_A, O>;
475impl<'a, const O: u8> PREGION0WA_W<'a, O> {
476 #[doc = "Disable"]
477 #[inline(always)]
478 pub fn disabled(self) -> &'a mut W {
479 self.variant(PREGION0WA_A::DISABLED)
480 }
481 #[doc = "Enable"]
482 #[inline(always)]
483 pub fn enabled(self) -> &'a mut W {
484 self.variant(PREGION0WA_A::ENABLED)
485 }
486}
487#[doc = "Field `PREGION0RA` reader - Enable or disable interrupt for PREGION\\[0\\].RA event"]
488pub type PREGION0RA_R = crate::BitReader<PREGION0RA_A>;
489#[doc = "Enable or disable interrupt for PREGION\\[0\\].RA event\n\nValue on reset: 0"]
490#[derive(Clone, Copy, Debug, PartialEq)]
491pub enum PREGION0RA_A {
492 #[doc = "0: Disable"]
493 DISABLED = 0,
494 #[doc = "1: Enable"]
495 ENABLED = 1,
496}
497impl From<PREGION0RA_A> for bool {
498 #[inline(always)]
499 fn from(variant: PREGION0RA_A) -> Self {
500 variant as u8 != 0
501 }
502}
503impl PREGION0RA_R {
504 #[doc = "Get enumerated values variant"]
505 #[inline(always)]
506 pub fn variant(&self) -> PREGION0RA_A {
507 match self.bits {
508 false => PREGION0RA_A::DISABLED,
509 true => PREGION0RA_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 == PREGION0RA_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 == PREGION0RA_A::ENABLED
521 }
522}
523#[doc = "Field `PREGION0RA` writer - Enable or disable interrupt for PREGION\\[0\\].RA event"]
524pub type PREGION0RA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, PREGION0RA_A, O>;
525impl<'a, const O: u8> PREGION0RA_W<'a, O> {
526 #[doc = "Disable"]
527 #[inline(always)]
528 pub fn disabled(self) -> &'a mut W {
529 self.variant(PREGION0RA_A::DISABLED)
530 }
531 #[doc = "Enable"]
532 #[inline(always)]
533 pub fn enabled(self) -> &'a mut W {
534 self.variant(PREGION0RA_A::ENABLED)
535 }
536}
537#[doc = "Field `PREGION1WA` reader - Enable or disable interrupt for PREGION\\[1\\].WA event"]
538pub type PREGION1WA_R = crate::BitReader<PREGION1WA_A>;
539#[doc = "Enable or disable interrupt for PREGION\\[1\\].WA event\n\nValue on reset: 0"]
540#[derive(Clone, Copy, Debug, PartialEq)]
541pub enum PREGION1WA_A {
542 #[doc = "0: Disable"]
543 DISABLED = 0,
544 #[doc = "1: Enable"]
545 ENABLED = 1,
546}
547impl From<PREGION1WA_A> for bool {
548 #[inline(always)]
549 fn from(variant: PREGION1WA_A) -> Self {
550 variant as u8 != 0
551 }
552}
553impl PREGION1WA_R {
554 #[doc = "Get enumerated values variant"]
555 #[inline(always)]
556 pub fn variant(&self) -> PREGION1WA_A {
557 match self.bits {
558 false => PREGION1WA_A::DISABLED,
559 true => PREGION1WA_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 == PREGION1WA_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 == PREGION1WA_A::ENABLED
571 }
572}
573#[doc = "Field `PREGION1WA` writer - Enable or disable interrupt for PREGION\\[1\\].WA event"]
574pub type PREGION1WA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, PREGION1WA_A, O>;
575impl<'a, const O: u8> PREGION1WA_W<'a, O> {
576 #[doc = "Disable"]
577 #[inline(always)]
578 pub fn disabled(self) -> &'a mut W {
579 self.variant(PREGION1WA_A::DISABLED)
580 }
581 #[doc = "Enable"]
582 #[inline(always)]
583 pub fn enabled(self) -> &'a mut W {
584 self.variant(PREGION1WA_A::ENABLED)
585 }
586}
587#[doc = "Field `PREGION1RA` reader - Enable or disable interrupt for PREGION\\[1\\].RA event"]
588pub type PREGION1RA_R = crate::BitReader<PREGION1RA_A>;
589#[doc = "Enable or disable interrupt for PREGION\\[1\\].RA event\n\nValue on reset: 0"]
590#[derive(Clone, Copy, Debug, PartialEq)]
591pub enum PREGION1RA_A {
592 #[doc = "0: Disable"]
593 DISABLED = 0,
594 #[doc = "1: Enable"]
595 ENABLED = 1,
596}
597impl From<PREGION1RA_A> for bool {
598 #[inline(always)]
599 fn from(variant: PREGION1RA_A) -> Self {
600 variant as u8 != 0
601 }
602}
603impl PREGION1RA_R {
604 #[doc = "Get enumerated values variant"]
605 #[inline(always)]
606 pub fn variant(&self) -> PREGION1RA_A {
607 match self.bits {
608 false => PREGION1RA_A::DISABLED,
609 true => PREGION1RA_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 == PREGION1RA_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 == PREGION1RA_A::ENABLED
621 }
622}
623#[doc = "Field `PREGION1RA` writer - Enable or disable interrupt for PREGION\\[1\\].RA event"]
624pub type PREGION1RA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTEN_SPEC, PREGION1RA_A, O>;
625impl<'a, const O: u8> PREGION1RA_W<'a, O> {
626 #[doc = "Disable"]
627 #[inline(always)]
628 pub fn disabled(self) -> &'a mut W {
629 self.variant(PREGION1RA_A::DISABLED)
630 }
631 #[doc = "Enable"]
632 #[inline(always)]
633 pub fn enabled(self) -> &'a mut W {
634 self.variant(PREGION1RA_A::ENABLED)
635 }
636}
637impl R {
638 #[doc = "Bit 0 - Enable or disable interrupt for REGION\\[0\\].WA event"]
639 #[inline(always)]
640 pub fn region0wa(&self) -> REGION0WA_R {
641 REGION0WA_R::new((self.bits & 1) != 0)
642 }
643 #[doc = "Bit 1 - Enable or disable interrupt for REGION\\[0\\].RA event"]
644 #[inline(always)]
645 pub fn region0ra(&self) -> REGION0RA_R {
646 REGION0RA_R::new(((self.bits >> 1) & 1) != 0)
647 }
648 #[doc = "Bit 2 - Enable or disable interrupt for REGION\\[1\\].WA event"]
649 #[inline(always)]
650 pub fn region1wa(&self) -> REGION1WA_R {
651 REGION1WA_R::new(((self.bits >> 2) & 1) != 0)
652 }
653 #[doc = "Bit 3 - Enable or disable interrupt for REGION\\[1\\].RA event"]
654 #[inline(always)]
655 pub fn region1ra(&self) -> REGION1RA_R {
656 REGION1RA_R::new(((self.bits >> 3) & 1) != 0)
657 }
658 #[doc = "Bit 4 - Enable or disable interrupt for REGION\\[2\\].WA event"]
659 #[inline(always)]
660 pub fn region2wa(&self) -> REGION2WA_R {
661 REGION2WA_R::new(((self.bits >> 4) & 1) != 0)
662 }
663 #[doc = "Bit 5 - Enable or disable interrupt for REGION\\[2\\].RA event"]
664 #[inline(always)]
665 pub fn region2ra(&self) -> REGION2RA_R {
666 REGION2RA_R::new(((self.bits >> 5) & 1) != 0)
667 }
668 #[doc = "Bit 6 - Enable or disable interrupt for REGION\\[3\\].WA event"]
669 #[inline(always)]
670 pub fn region3wa(&self) -> REGION3WA_R {
671 REGION3WA_R::new(((self.bits >> 6) & 1) != 0)
672 }
673 #[doc = "Bit 7 - Enable or disable interrupt for REGION\\[3\\].RA event"]
674 #[inline(always)]
675 pub fn region3ra(&self) -> REGION3RA_R {
676 REGION3RA_R::new(((self.bits >> 7) & 1) != 0)
677 }
678 #[doc = "Bit 24 - Enable or disable interrupt for PREGION\\[0\\].WA event"]
679 #[inline(always)]
680 pub fn pregion0wa(&self) -> PREGION0WA_R {
681 PREGION0WA_R::new(((self.bits >> 24) & 1) != 0)
682 }
683 #[doc = "Bit 25 - Enable or disable interrupt for PREGION\\[0\\].RA event"]
684 #[inline(always)]
685 pub fn pregion0ra(&self) -> PREGION0RA_R {
686 PREGION0RA_R::new(((self.bits >> 25) & 1) != 0)
687 }
688 #[doc = "Bit 26 - Enable or disable interrupt for PREGION\\[1\\].WA event"]
689 #[inline(always)]
690 pub fn pregion1wa(&self) -> PREGION1WA_R {
691 PREGION1WA_R::new(((self.bits >> 26) & 1) != 0)
692 }
693 #[doc = "Bit 27 - Enable or disable interrupt for PREGION\\[1\\].RA event"]
694 #[inline(always)]
695 pub fn pregion1ra(&self) -> PREGION1RA_R {
696 PREGION1RA_R::new(((self.bits >> 27) & 1) != 0)
697 }
698}
699impl W {
700 #[doc = "Bit 0 - Enable or disable interrupt for REGION\\[0\\].WA event"]
701 #[inline(always)]
702 pub fn region0wa(&mut self) -> REGION0WA_W<0> {
703 REGION0WA_W::new(self)
704 }
705 #[doc = "Bit 1 - Enable or disable interrupt for REGION\\[0\\].RA event"]
706 #[inline(always)]
707 pub fn region0ra(&mut self) -> REGION0RA_W<1> {
708 REGION0RA_W::new(self)
709 }
710 #[doc = "Bit 2 - Enable or disable interrupt for REGION\\[1\\].WA event"]
711 #[inline(always)]
712 pub fn region1wa(&mut self) -> REGION1WA_W<2> {
713 REGION1WA_W::new(self)
714 }
715 #[doc = "Bit 3 - Enable or disable interrupt for REGION\\[1\\].RA event"]
716 #[inline(always)]
717 pub fn region1ra(&mut self) -> REGION1RA_W<3> {
718 REGION1RA_W::new(self)
719 }
720 #[doc = "Bit 4 - Enable or disable interrupt for REGION\\[2\\].WA event"]
721 #[inline(always)]
722 pub fn region2wa(&mut self) -> REGION2WA_W<4> {
723 REGION2WA_W::new(self)
724 }
725 #[doc = "Bit 5 - Enable or disable interrupt for REGION\\[2\\].RA event"]
726 #[inline(always)]
727 pub fn region2ra(&mut self) -> REGION2RA_W<5> {
728 REGION2RA_W::new(self)
729 }
730 #[doc = "Bit 6 - Enable or disable interrupt for REGION\\[3\\].WA event"]
731 #[inline(always)]
732 pub fn region3wa(&mut self) -> REGION3WA_W<6> {
733 REGION3WA_W::new(self)
734 }
735 #[doc = "Bit 7 - Enable or disable interrupt for REGION\\[3\\].RA event"]
736 #[inline(always)]
737 pub fn region3ra(&mut self) -> REGION3RA_W<7> {
738 REGION3RA_W::new(self)
739 }
740 #[doc = "Bit 24 - Enable or disable interrupt for PREGION\\[0\\].WA event"]
741 #[inline(always)]
742 pub fn pregion0wa(&mut self) -> PREGION0WA_W<24> {
743 PREGION0WA_W::new(self)
744 }
745 #[doc = "Bit 25 - Enable or disable interrupt for PREGION\\[0\\].RA event"]
746 #[inline(always)]
747 pub fn pregion0ra(&mut self) -> PREGION0RA_W<25> {
748 PREGION0RA_W::new(self)
749 }
750 #[doc = "Bit 26 - Enable or disable interrupt for PREGION\\[1\\].WA event"]
751 #[inline(always)]
752 pub fn pregion1wa(&mut self) -> PREGION1WA_W<26> {
753 PREGION1WA_W::new(self)
754 }
755 #[doc = "Bit 27 - Enable or disable interrupt for PREGION\\[1\\].RA event"]
756 #[inline(always)]
757 pub fn pregion1ra(&mut self) -> PREGION1RA_W<27> {
758 PREGION1RA_W::new(self)
759 }
760 #[doc = "Writes raw bits to the register."]
761 #[inline(always)]
762 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
763 self.0.bits(bits);
764 self
765 }
766}
767#[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"]
768pub struct INTEN_SPEC;
769impl crate::RegisterSpec for INTEN_SPEC {
770 type Ux = u32;
771}
772#[doc = "`read()` method returns [inten::R](R) reader structure"]
773impl crate::Readable for INTEN_SPEC {
774 type Reader = R;
775}
776#[doc = "`write(|w| ..)` method takes [inten::W](W) writer structure"]
777impl crate::Writable for INTEN_SPEC {
778 type Writer = W;
779}
780#[doc = "`reset()` method sets INTEN to value 0"]
781impl crate::Resettable for INTEN_SPEC {
782 #[inline(always)]
783 fn reset_value() -> Self::Ux {
784 0
785 }
786}