nrf52840_pac/mwu/
intenclr.rs

1#[doc = "Register `INTENCLR` reader"]
2pub struct R(crate::R<INTENCLR_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<INTENCLR_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<INTENCLR_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<INTENCLR_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `INTENCLR` writer"]
17pub struct W(crate::W<INTENCLR_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<INTENCLR_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<INTENCLR_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<INTENCLR_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `REGION0WA` reader - Write '1' to disable interrupt for REGION\\[0\\].WA event"]
38pub type REGION0WA_R = crate::BitReader<REGION0WA_A>;
39#[doc = "Write '1' to 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: Read: Disabled"]
43    DISABLED = 0,
44    #[doc = "1: Read: Enabled"]
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 = "Write '1' to disable interrupt for REGION\\[0\\].WA event\n\nValue on reset: 0"]
74#[derive(Clone, Copy, Debug, PartialEq)]
75pub enum REGION0WA_AW {
76    #[doc = "1: Disable"]
77    CLEAR = 1,
78}
79impl From<REGION0WA_AW> for bool {
80    #[inline(always)]
81    fn from(variant: REGION0WA_AW) -> Self {
82        variant as u8 != 0
83    }
84}
85#[doc = "Field `REGION0WA` writer - Write '1' to disable interrupt for REGION\\[0\\].WA event"]
86pub type REGION0WA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENCLR_SPEC, REGION0WA_AW, O>;
87impl<'a, const O: u8> REGION0WA_W<'a, O> {
88    #[doc = "Disable"]
89    #[inline(always)]
90    pub fn clear(self) -> &'a mut W {
91        self.variant(REGION0WA_AW::CLEAR)
92    }
93}
94#[doc = "Field `REGION0RA` reader - Write '1' to disable interrupt for REGION\\[0\\].RA event"]
95pub type REGION0RA_R = crate::BitReader<REGION0RA_A>;
96#[doc = "Write '1' to disable interrupt for REGION\\[0\\].RA event\n\nValue on reset: 0"]
97#[derive(Clone, Copy, Debug, PartialEq)]
98pub enum REGION0RA_A {
99    #[doc = "0: Read: Disabled"]
100    DISABLED = 0,
101    #[doc = "1: Read: Enabled"]
102    ENABLED = 1,
103}
104impl From<REGION0RA_A> for bool {
105    #[inline(always)]
106    fn from(variant: REGION0RA_A) -> Self {
107        variant as u8 != 0
108    }
109}
110impl REGION0RA_R {
111    #[doc = "Get enumerated values variant"]
112    #[inline(always)]
113    pub fn variant(&self) -> REGION0RA_A {
114        match self.bits {
115            false => REGION0RA_A::DISABLED,
116            true => REGION0RA_A::ENABLED,
117        }
118    }
119    #[doc = "Checks if the value of the field is `DISABLED`"]
120    #[inline(always)]
121    pub fn is_disabled(&self) -> bool {
122        *self == REGION0RA_A::DISABLED
123    }
124    #[doc = "Checks if the value of the field is `ENABLED`"]
125    #[inline(always)]
126    pub fn is_enabled(&self) -> bool {
127        *self == REGION0RA_A::ENABLED
128    }
129}
130#[doc = "Write '1' to disable interrupt for REGION\\[0\\].RA event\n\nValue on reset: 0"]
131#[derive(Clone, Copy, Debug, PartialEq)]
132pub enum REGION0RA_AW {
133    #[doc = "1: Disable"]
134    CLEAR = 1,
135}
136impl From<REGION0RA_AW> for bool {
137    #[inline(always)]
138    fn from(variant: REGION0RA_AW) -> Self {
139        variant as u8 != 0
140    }
141}
142#[doc = "Field `REGION0RA` writer - Write '1' to disable interrupt for REGION\\[0\\].RA event"]
143pub type REGION0RA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENCLR_SPEC, REGION0RA_AW, O>;
144impl<'a, const O: u8> REGION0RA_W<'a, O> {
145    #[doc = "Disable"]
146    #[inline(always)]
147    pub fn clear(self) -> &'a mut W {
148        self.variant(REGION0RA_AW::CLEAR)
149    }
150}
151#[doc = "Field `REGION1WA` reader - Write '1' to disable interrupt for REGION\\[1\\].WA event"]
152pub type REGION1WA_R = crate::BitReader<REGION1WA_A>;
153#[doc = "Write '1' to disable interrupt for REGION\\[1\\].WA event\n\nValue on reset: 0"]
154#[derive(Clone, Copy, Debug, PartialEq)]
155pub enum REGION1WA_A {
156    #[doc = "0: Read: Disabled"]
157    DISABLED = 0,
158    #[doc = "1: Read: Enabled"]
159    ENABLED = 1,
160}
161impl From<REGION1WA_A> for bool {
162    #[inline(always)]
163    fn from(variant: REGION1WA_A) -> Self {
164        variant as u8 != 0
165    }
166}
167impl REGION1WA_R {
168    #[doc = "Get enumerated values variant"]
169    #[inline(always)]
170    pub fn variant(&self) -> REGION1WA_A {
171        match self.bits {
172            false => REGION1WA_A::DISABLED,
173            true => REGION1WA_A::ENABLED,
174        }
175    }
176    #[doc = "Checks if the value of the field is `DISABLED`"]
177    #[inline(always)]
178    pub fn is_disabled(&self) -> bool {
179        *self == REGION1WA_A::DISABLED
180    }
181    #[doc = "Checks if the value of the field is `ENABLED`"]
182    #[inline(always)]
183    pub fn is_enabled(&self) -> bool {
184        *self == REGION1WA_A::ENABLED
185    }
186}
187#[doc = "Write '1' to disable interrupt for REGION\\[1\\].WA event\n\nValue on reset: 0"]
188#[derive(Clone, Copy, Debug, PartialEq)]
189pub enum REGION1WA_AW {
190    #[doc = "1: Disable"]
191    CLEAR = 1,
192}
193impl From<REGION1WA_AW> for bool {
194    #[inline(always)]
195    fn from(variant: REGION1WA_AW) -> Self {
196        variant as u8 != 0
197    }
198}
199#[doc = "Field `REGION1WA` writer - Write '1' to disable interrupt for REGION\\[1\\].WA event"]
200pub type REGION1WA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENCLR_SPEC, REGION1WA_AW, O>;
201impl<'a, const O: u8> REGION1WA_W<'a, O> {
202    #[doc = "Disable"]
203    #[inline(always)]
204    pub fn clear(self) -> &'a mut W {
205        self.variant(REGION1WA_AW::CLEAR)
206    }
207}
208#[doc = "Field `REGION1RA` reader - Write '1' to disable interrupt for REGION\\[1\\].RA event"]
209pub type REGION1RA_R = crate::BitReader<REGION1RA_A>;
210#[doc = "Write '1' to disable interrupt for REGION\\[1\\].RA event\n\nValue on reset: 0"]
211#[derive(Clone, Copy, Debug, PartialEq)]
212pub enum REGION1RA_A {
213    #[doc = "0: Read: Disabled"]
214    DISABLED = 0,
215    #[doc = "1: Read: Enabled"]
216    ENABLED = 1,
217}
218impl From<REGION1RA_A> for bool {
219    #[inline(always)]
220    fn from(variant: REGION1RA_A) -> Self {
221        variant as u8 != 0
222    }
223}
224impl REGION1RA_R {
225    #[doc = "Get enumerated values variant"]
226    #[inline(always)]
227    pub fn variant(&self) -> REGION1RA_A {
228        match self.bits {
229            false => REGION1RA_A::DISABLED,
230            true => REGION1RA_A::ENABLED,
231        }
232    }
233    #[doc = "Checks if the value of the field is `DISABLED`"]
234    #[inline(always)]
235    pub fn is_disabled(&self) -> bool {
236        *self == REGION1RA_A::DISABLED
237    }
238    #[doc = "Checks if the value of the field is `ENABLED`"]
239    #[inline(always)]
240    pub fn is_enabled(&self) -> bool {
241        *self == REGION1RA_A::ENABLED
242    }
243}
244#[doc = "Write '1' to disable interrupt for REGION\\[1\\].RA event\n\nValue on reset: 0"]
245#[derive(Clone, Copy, Debug, PartialEq)]
246pub enum REGION1RA_AW {
247    #[doc = "1: Disable"]
248    CLEAR = 1,
249}
250impl From<REGION1RA_AW> for bool {
251    #[inline(always)]
252    fn from(variant: REGION1RA_AW) -> Self {
253        variant as u8 != 0
254    }
255}
256#[doc = "Field `REGION1RA` writer - Write '1' to disable interrupt for REGION\\[1\\].RA event"]
257pub type REGION1RA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENCLR_SPEC, REGION1RA_AW, O>;
258impl<'a, const O: u8> REGION1RA_W<'a, O> {
259    #[doc = "Disable"]
260    #[inline(always)]
261    pub fn clear(self) -> &'a mut W {
262        self.variant(REGION1RA_AW::CLEAR)
263    }
264}
265#[doc = "Field `REGION2WA` reader - Write '1' to disable interrupt for REGION\\[2\\].WA event"]
266pub type REGION2WA_R = crate::BitReader<REGION2WA_A>;
267#[doc = "Write '1' to disable interrupt for REGION\\[2\\].WA event\n\nValue on reset: 0"]
268#[derive(Clone, Copy, Debug, PartialEq)]
269pub enum REGION2WA_A {
270    #[doc = "0: Read: Disabled"]
271    DISABLED = 0,
272    #[doc = "1: Read: Enabled"]
273    ENABLED = 1,
274}
275impl From<REGION2WA_A> for bool {
276    #[inline(always)]
277    fn from(variant: REGION2WA_A) -> Self {
278        variant as u8 != 0
279    }
280}
281impl REGION2WA_R {
282    #[doc = "Get enumerated values variant"]
283    #[inline(always)]
284    pub fn variant(&self) -> REGION2WA_A {
285        match self.bits {
286            false => REGION2WA_A::DISABLED,
287            true => REGION2WA_A::ENABLED,
288        }
289    }
290    #[doc = "Checks if the value of the field is `DISABLED`"]
291    #[inline(always)]
292    pub fn is_disabled(&self) -> bool {
293        *self == REGION2WA_A::DISABLED
294    }
295    #[doc = "Checks if the value of the field is `ENABLED`"]
296    #[inline(always)]
297    pub fn is_enabled(&self) -> bool {
298        *self == REGION2WA_A::ENABLED
299    }
300}
301#[doc = "Write '1' to disable interrupt for REGION\\[2\\].WA event\n\nValue on reset: 0"]
302#[derive(Clone, Copy, Debug, PartialEq)]
303pub enum REGION2WA_AW {
304    #[doc = "1: Disable"]
305    CLEAR = 1,
306}
307impl From<REGION2WA_AW> for bool {
308    #[inline(always)]
309    fn from(variant: REGION2WA_AW) -> Self {
310        variant as u8 != 0
311    }
312}
313#[doc = "Field `REGION2WA` writer - Write '1' to disable interrupt for REGION\\[2\\].WA event"]
314pub type REGION2WA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENCLR_SPEC, REGION2WA_AW, O>;
315impl<'a, const O: u8> REGION2WA_W<'a, O> {
316    #[doc = "Disable"]
317    #[inline(always)]
318    pub fn clear(self) -> &'a mut W {
319        self.variant(REGION2WA_AW::CLEAR)
320    }
321}
322#[doc = "Field `REGION2RA` reader - Write '1' to disable interrupt for REGION\\[2\\].RA event"]
323pub type REGION2RA_R = crate::BitReader<REGION2RA_A>;
324#[doc = "Write '1' to disable interrupt for REGION\\[2\\].RA event\n\nValue on reset: 0"]
325#[derive(Clone, Copy, Debug, PartialEq)]
326pub enum REGION2RA_A {
327    #[doc = "0: Read: Disabled"]
328    DISABLED = 0,
329    #[doc = "1: Read: Enabled"]
330    ENABLED = 1,
331}
332impl From<REGION2RA_A> for bool {
333    #[inline(always)]
334    fn from(variant: REGION2RA_A) -> Self {
335        variant as u8 != 0
336    }
337}
338impl REGION2RA_R {
339    #[doc = "Get enumerated values variant"]
340    #[inline(always)]
341    pub fn variant(&self) -> REGION2RA_A {
342        match self.bits {
343            false => REGION2RA_A::DISABLED,
344            true => REGION2RA_A::ENABLED,
345        }
346    }
347    #[doc = "Checks if the value of the field is `DISABLED`"]
348    #[inline(always)]
349    pub fn is_disabled(&self) -> bool {
350        *self == REGION2RA_A::DISABLED
351    }
352    #[doc = "Checks if the value of the field is `ENABLED`"]
353    #[inline(always)]
354    pub fn is_enabled(&self) -> bool {
355        *self == REGION2RA_A::ENABLED
356    }
357}
358#[doc = "Write '1' to disable interrupt for REGION\\[2\\].RA event\n\nValue on reset: 0"]
359#[derive(Clone, Copy, Debug, PartialEq)]
360pub enum REGION2RA_AW {
361    #[doc = "1: Disable"]
362    CLEAR = 1,
363}
364impl From<REGION2RA_AW> for bool {
365    #[inline(always)]
366    fn from(variant: REGION2RA_AW) -> Self {
367        variant as u8 != 0
368    }
369}
370#[doc = "Field `REGION2RA` writer - Write '1' to disable interrupt for REGION\\[2\\].RA event"]
371pub type REGION2RA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENCLR_SPEC, REGION2RA_AW, O>;
372impl<'a, const O: u8> REGION2RA_W<'a, O> {
373    #[doc = "Disable"]
374    #[inline(always)]
375    pub fn clear(self) -> &'a mut W {
376        self.variant(REGION2RA_AW::CLEAR)
377    }
378}
379#[doc = "Field `REGION3WA` reader - Write '1' to disable interrupt for REGION\\[3\\].WA event"]
380pub type REGION3WA_R = crate::BitReader<REGION3WA_A>;
381#[doc = "Write '1' to disable interrupt for REGION\\[3\\].WA event\n\nValue on reset: 0"]
382#[derive(Clone, Copy, Debug, PartialEq)]
383pub enum REGION3WA_A {
384    #[doc = "0: Read: Disabled"]
385    DISABLED = 0,
386    #[doc = "1: Read: Enabled"]
387    ENABLED = 1,
388}
389impl From<REGION3WA_A> for bool {
390    #[inline(always)]
391    fn from(variant: REGION3WA_A) -> Self {
392        variant as u8 != 0
393    }
394}
395impl REGION3WA_R {
396    #[doc = "Get enumerated values variant"]
397    #[inline(always)]
398    pub fn variant(&self) -> REGION3WA_A {
399        match self.bits {
400            false => REGION3WA_A::DISABLED,
401            true => REGION3WA_A::ENABLED,
402        }
403    }
404    #[doc = "Checks if the value of the field is `DISABLED`"]
405    #[inline(always)]
406    pub fn is_disabled(&self) -> bool {
407        *self == REGION3WA_A::DISABLED
408    }
409    #[doc = "Checks if the value of the field is `ENABLED`"]
410    #[inline(always)]
411    pub fn is_enabled(&self) -> bool {
412        *self == REGION3WA_A::ENABLED
413    }
414}
415#[doc = "Write '1' to disable interrupt for REGION\\[3\\].WA event\n\nValue on reset: 0"]
416#[derive(Clone, Copy, Debug, PartialEq)]
417pub enum REGION3WA_AW {
418    #[doc = "1: Disable"]
419    CLEAR = 1,
420}
421impl From<REGION3WA_AW> for bool {
422    #[inline(always)]
423    fn from(variant: REGION3WA_AW) -> Self {
424        variant as u8 != 0
425    }
426}
427#[doc = "Field `REGION3WA` writer - Write '1' to disable interrupt for REGION\\[3\\].WA event"]
428pub type REGION3WA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENCLR_SPEC, REGION3WA_AW, O>;
429impl<'a, const O: u8> REGION3WA_W<'a, O> {
430    #[doc = "Disable"]
431    #[inline(always)]
432    pub fn clear(self) -> &'a mut W {
433        self.variant(REGION3WA_AW::CLEAR)
434    }
435}
436#[doc = "Field `REGION3RA` reader - Write '1' to disable interrupt for REGION\\[3\\].RA event"]
437pub type REGION3RA_R = crate::BitReader<REGION3RA_A>;
438#[doc = "Write '1' to disable interrupt for REGION\\[3\\].RA event\n\nValue on reset: 0"]
439#[derive(Clone, Copy, Debug, PartialEq)]
440pub enum REGION3RA_A {
441    #[doc = "0: Read: Disabled"]
442    DISABLED = 0,
443    #[doc = "1: Read: Enabled"]
444    ENABLED = 1,
445}
446impl From<REGION3RA_A> for bool {
447    #[inline(always)]
448    fn from(variant: REGION3RA_A) -> Self {
449        variant as u8 != 0
450    }
451}
452impl REGION3RA_R {
453    #[doc = "Get enumerated values variant"]
454    #[inline(always)]
455    pub fn variant(&self) -> REGION3RA_A {
456        match self.bits {
457            false => REGION3RA_A::DISABLED,
458            true => REGION3RA_A::ENABLED,
459        }
460    }
461    #[doc = "Checks if the value of the field is `DISABLED`"]
462    #[inline(always)]
463    pub fn is_disabled(&self) -> bool {
464        *self == REGION3RA_A::DISABLED
465    }
466    #[doc = "Checks if the value of the field is `ENABLED`"]
467    #[inline(always)]
468    pub fn is_enabled(&self) -> bool {
469        *self == REGION3RA_A::ENABLED
470    }
471}
472#[doc = "Write '1' to disable interrupt for REGION\\[3\\].RA event\n\nValue on reset: 0"]
473#[derive(Clone, Copy, Debug, PartialEq)]
474pub enum REGION3RA_AW {
475    #[doc = "1: Disable"]
476    CLEAR = 1,
477}
478impl From<REGION3RA_AW> for bool {
479    #[inline(always)]
480    fn from(variant: REGION3RA_AW) -> Self {
481        variant as u8 != 0
482    }
483}
484#[doc = "Field `REGION3RA` writer - Write '1' to disable interrupt for REGION\\[3\\].RA event"]
485pub type REGION3RA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENCLR_SPEC, REGION3RA_AW, O>;
486impl<'a, const O: u8> REGION3RA_W<'a, O> {
487    #[doc = "Disable"]
488    #[inline(always)]
489    pub fn clear(self) -> &'a mut W {
490        self.variant(REGION3RA_AW::CLEAR)
491    }
492}
493#[doc = "Field `PREGION0WA` reader - Write '1' to disable interrupt for PREGION\\[0\\].WA event"]
494pub type PREGION0WA_R = crate::BitReader<PREGION0WA_A>;
495#[doc = "Write '1' to disable interrupt for PREGION\\[0\\].WA event\n\nValue on reset: 0"]
496#[derive(Clone, Copy, Debug, PartialEq)]
497pub enum PREGION0WA_A {
498    #[doc = "0: Read: Disabled"]
499    DISABLED = 0,
500    #[doc = "1: Read: Enabled"]
501    ENABLED = 1,
502}
503impl From<PREGION0WA_A> for bool {
504    #[inline(always)]
505    fn from(variant: PREGION0WA_A) -> Self {
506        variant as u8 != 0
507    }
508}
509impl PREGION0WA_R {
510    #[doc = "Get enumerated values variant"]
511    #[inline(always)]
512    pub fn variant(&self) -> PREGION0WA_A {
513        match self.bits {
514            false => PREGION0WA_A::DISABLED,
515            true => PREGION0WA_A::ENABLED,
516        }
517    }
518    #[doc = "Checks if the value of the field is `DISABLED`"]
519    #[inline(always)]
520    pub fn is_disabled(&self) -> bool {
521        *self == PREGION0WA_A::DISABLED
522    }
523    #[doc = "Checks if the value of the field is `ENABLED`"]
524    #[inline(always)]
525    pub fn is_enabled(&self) -> bool {
526        *self == PREGION0WA_A::ENABLED
527    }
528}
529#[doc = "Write '1' to disable interrupt for PREGION\\[0\\].WA event\n\nValue on reset: 0"]
530#[derive(Clone, Copy, Debug, PartialEq)]
531pub enum PREGION0WA_AW {
532    #[doc = "1: Disable"]
533    CLEAR = 1,
534}
535impl From<PREGION0WA_AW> for bool {
536    #[inline(always)]
537    fn from(variant: PREGION0WA_AW) -> Self {
538        variant as u8 != 0
539    }
540}
541#[doc = "Field `PREGION0WA` writer - Write '1' to disable interrupt for PREGION\\[0\\].WA event"]
542pub type PREGION0WA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENCLR_SPEC, PREGION0WA_AW, O>;
543impl<'a, const O: u8> PREGION0WA_W<'a, O> {
544    #[doc = "Disable"]
545    #[inline(always)]
546    pub fn clear(self) -> &'a mut W {
547        self.variant(PREGION0WA_AW::CLEAR)
548    }
549}
550#[doc = "Field `PREGION0RA` reader - Write '1' to disable interrupt for PREGION\\[0\\].RA event"]
551pub type PREGION0RA_R = crate::BitReader<PREGION0RA_A>;
552#[doc = "Write '1' to disable interrupt for PREGION\\[0\\].RA event\n\nValue on reset: 0"]
553#[derive(Clone, Copy, Debug, PartialEq)]
554pub enum PREGION0RA_A {
555    #[doc = "0: Read: Disabled"]
556    DISABLED = 0,
557    #[doc = "1: Read: Enabled"]
558    ENABLED = 1,
559}
560impl From<PREGION0RA_A> for bool {
561    #[inline(always)]
562    fn from(variant: PREGION0RA_A) -> Self {
563        variant as u8 != 0
564    }
565}
566impl PREGION0RA_R {
567    #[doc = "Get enumerated values variant"]
568    #[inline(always)]
569    pub fn variant(&self) -> PREGION0RA_A {
570        match self.bits {
571            false => PREGION0RA_A::DISABLED,
572            true => PREGION0RA_A::ENABLED,
573        }
574    }
575    #[doc = "Checks if the value of the field is `DISABLED`"]
576    #[inline(always)]
577    pub fn is_disabled(&self) -> bool {
578        *self == PREGION0RA_A::DISABLED
579    }
580    #[doc = "Checks if the value of the field is `ENABLED`"]
581    #[inline(always)]
582    pub fn is_enabled(&self) -> bool {
583        *self == PREGION0RA_A::ENABLED
584    }
585}
586#[doc = "Write '1' to disable interrupt for PREGION\\[0\\].RA event\n\nValue on reset: 0"]
587#[derive(Clone, Copy, Debug, PartialEq)]
588pub enum PREGION0RA_AW {
589    #[doc = "1: Disable"]
590    CLEAR = 1,
591}
592impl From<PREGION0RA_AW> for bool {
593    #[inline(always)]
594    fn from(variant: PREGION0RA_AW) -> Self {
595        variant as u8 != 0
596    }
597}
598#[doc = "Field `PREGION0RA` writer - Write '1' to disable interrupt for PREGION\\[0\\].RA event"]
599pub type PREGION0RA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENCLR_SPEC, PREGION0RA_AW, O>;
600impl<'a, const O: u8> PREGION0RA_W<'a, O> {
601    #[doc = "Disable"]
602    #[inline(always)]
603    pub fn clear(self) -> &'a mut W {
604        self.variant(PREGION0RA_AW::CLEAR)
605    }
606}
607#[doc = "Field `PREGION1WA` reader - Write '1' to disable interrupt for PREGION\\[1\\].WA event"]
608pub type PREGION1WA_R = crate::BitReader<PREGION1WA_A>;
609#[doc = "Write '1' to disable interrupt for PREGION\\[1\\].WA event\n\nValue on reset: 0"]
610#[derive(Clone, Copy, Debug, PartialEq)]
611pub enum PREGION1WA_A {
612    #[doc = "0: Read: Disabled"]
613    DISABLED = 0,
614    #[doc = "1: Read: Enabled"]
615    ENABLED = 1,
616}
617impl From<PREGION1WA_A> for bool {
618    #[inline(always)]
619    fn from(variant: PREGION1WA_A) -> Self {
620        variant as u8 != 0
621    }
622}
623impl PREGION1WA_R {
624    #[doc = "Get enumerated values variant"]
625    #[inline(always)]
626    pub fn variant(&self) -> PREGION1WA_A {
627        match self.bits {
628            false => PREGION1WA_A::DISABLED,
629            true => PREGION1WA_A::ENABLED,
630        }
631    }
632    #[doc = "Checks if the value of the field is `DISABLED`"]
633    #[inline(always)]
634    pub fn is_disabled(&self) -> bool {
635        *self == PREGION1WA_A::DISABLED
636    }
637    #[doc = "Checks if the value of the field is `ENABLED`"]
638    #[inline(always)]
639    pub fn is_enabled(&self) -> bool {
640        *self == PREGION1WA_A::ENABLED
641    }
642}
643#[doc = "Write '1' to disable interrupt for PREGION\\[1\\].WA event\n\nValue on reset: 0"]
644#[derive(Clone, Copy, Debug, PartialEq)]
645pub enum PREGION1WA_AW {
646    #[doc = "1: Disable"]
647    CLEAR = 1,
648}
649impl From<PREGION1WA_AW> for bool {
650    #[inline(always)]
651    fn from(variant: PREGION1WA_AW) -> Self {
652        variant as u8 != 0
653    }
654}
655#[doc = "Field `PREGION1WA` writer - Write '1' to disable interrupt for PREGION\\[1\\].WA event"]
656pub type PREGION1WA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENCLR_SPEC, PREGION1WA_AW, O>;
657impl<'a, const O: u8> PREGION1WA_W<'a, O> {
658    #[doc = "Disable"]
659    #[inline(always)]
660    pub fn clear(self) -> &'a mut W {
661        self.variant(PREGION1WA_AW::CLEAR)
662    }
663}
664#[doc = "Field `PREGION1RA` reader - Write '1' to disable interrupt for PREGION\\[1\\].RA event"]
665pub type PREGION1RA_R = crate::BitReader<PREGION1RA_A>;
666#[doc = "Write '1' to disable interrupt for PREGION\\[1\\].RA event\n\nValue on reset: 0"]
667#[derive(Clone, Copy, Debug, PartialEq)]
668pub enum PREGION1RA_A {
669    #[doc = "0: Read: Disabled"]
670    DISABLED = 0,
671    #[doc = "1: Read: Enabled"]
672    ENABLED = 1,
673}
674impl From<PREGION1RA_A> for bool {
675    #[inline(always)]
676    fn from(variant: PREGION1RA_A) -> Self {
677        variant as u8 != 0
678    }
679}
680impl PREGION1RA_R {
681    #[doc = "Get enumerated values variant"]
682    #[inline(always)]
683    pub fn variant(&self) -> PREGION1RA_A {
684        match self.bits {
685            false => PREGION1RA_A::DISABLED,
686            true => PREGION1RA_A::ENABLED,
687        }
688    }
689    #[doc = "Checks if the value of the field is `DISABLED`"]
690    #[inline(always)]
691    pub fn is_disabled(&self) -> bool {
692        *self == PREGION1RA_A::DISABLED
693    }
694    #[doc = "Checks if the value of the field is `ENABLED`"]
695    #[inline(always)]
696    pub fn is_enabled(&self) -> bool {
697        *self == PREGION1RA_A::ENABLED
698    }
699}
700#[doc = "Write '1' to disable interrupt for PREGION\\[1\\].RA event\n\nValue on reset: 0"]
701#[derive(Clone, Copy, Debug, PartialEq)]
702pub enum PREGION1RA_AW {
703    #[doc = "1: Disable"]
704    CLEAR = 1,
705}
706impl From<PREGION1RA_AW> for bool {
707    #[inline(always)]
708    fn from(variant: PREGION1RA_AW) -> Self {
709        variant as u8 != 0
710    }
711}
712#[doc = "Field `PREGION1RA` writer - Write '1' to disable interrupt for PREGION\\[1\\].RA event"]
713pub type PREGION1RA_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENCLR_SPEC, PREGION1RA_AW, O>;
714impl<'a, const O: u8> PREGION1RA_W<'a, O> {
715    #[doc = "Disable"]
716    #[inline(always)]
717    pub fn clear(self) -> &'a mut W {
718        self.variant(PREGION1RA_AW::CLEAR)
719    }
720}
721impl R {
722    #[doc = "Bit 0 - Write '1' to disable interrupt for REGION\\[0\\].WA event"]
723    #[inline(always)]
724    pub fn region0wa(&self) -> REGION0WA_R {
725        REGION0WA_R::new((self.bits & 1) != 0)
726    }
727    #[doc = "Bit 1 - Write '1' to disable interrupt for REGION\\[0\\].RA event"]
728    #[inline(always)]
729    pub fn region0ra(&self) -> REGION0RA_R {
730        REGION0RA_R::new(((self.bits >> 1) & 1) != 0)
731    }
732    #[doc = "Bit 2 - Write '1' to disable interrupt for REGION\\[1\\].WA event"]
733    #[inline(always)]
734    pub fn region1wa(&self) -> REGION1WA_R {
735        REGION1WA_R::new(((self.bits >> 2) & 1) != 0)
736    }
737    #[doc = "Bit 3 - Write '1' to disable interrupt for REGION\\[1\\].RA event"]
738    #[inline(always)]
739    pub fn region1ra(&self) -> REGION1RA_R {
740        REGION1RA_R::new(((self.bits >> 3) & 1) != 0)
741    }
742    #[doc = "Bit 4 - Write '1' to disable interrupt for REGION\\[2\\].WA event"]
743    #[inline(always)]
744    pub fn region2wa(&self) -> REGION2WA_R {
745        REGION2WA_R::new(((self.bits >> 4) & 1) != 0)
746    }
747    #[doc = "Bit 5 - Write '1' to disable interrupt for REGION\\[2\\].RA event"]
748    #[inline(always)]
749    pub fn region2ra(&self) -> REGION2RA_R {
750        REGION2RA_R::new(((self.bits >> 5) & 1) != 0)
751    }
752    #[doc = "Bit 6 - Write '1' to disable interrupt for REGION\\[3\\].WA event"]
753    #[inline(always)]
754    pub fn region3wa(&self) -> REGION3WA_R {
755        REGION3WA_R::new(((self.bits >> 6) & 1) != 0)
756    }
757    #[doc = "Bit 7 - Write '1' to disable interrupt for REGION\\[3\\].RA event"]
758    #[inline(always)]
759    pub fn region3ra(&self) -> REGION3RA_R {
760        REGION3RA_R::new(((self.bits >> 7) & 1) != 0)
761    }
762    #[doc = "Bit 24 - Write '1' to disable interrupt for PREGION\\[0\\].WA event"]
763    #[inline(always)]
764    pub fn pregion0wa(&self) -> PREGION0WA_R {
765        PREGION0WA_R::new(((self.bits >> 24) & 1) != 0)
766    }
767    #[doc = "Bit 25 - Write '1' to disable interrupt for PREGION\\[0\\].RA event"]
768    #[inline(always)]
769    pub fn pregion0ra(&self) -> PREGION0RA_R {
770        PREGION0RA_R::new(((self.bits >> 25) & 1) != 0)
771    }
772    #[doc = "Bit 26 - Write '1' to disable interrupt for PREGION\\[1\\].WA event"]
773    #[inline(always)]
774    pub fn pregion1wa(&self) -> PREGION1WA_R {
775        PREGION1WA_R::new(((self.bits >> 26) & 1) != 0)
776    }
777    #[doc = "Bit 27 - Write '1' to disable interrupt for PREGION\\[1\\].RA event"]
778    #[inline(always)]
779    pub fn pregion1ra(&self) -> PREGION1RA_R {
780        PREGION1RA_R::new(((self.bits >> 27) & 1) != 0)
781    }
782}
783impl W {
784    #[doc = "Bit 0 - Write '1' to disable interrupt for REGION\\[0\\].WA event"]
785    #[inline(always)]
786    pub fn region0wa(&mut self) -> REGION0WA_W<0> {
787        REGION0WA_W::new(self)
788    }
789    #[doc = "Bit 1 - Write '1' to disable interrupt for REGION\\[0\\].RA event"]
790    #[inline(always)]
791    pub fn region0ra(&mut self) -> REGION0RA_W<1> {
792        REGION0RA_W::new(self)
793    }
794    #[doc = "Bit 2 - Write '1' to disable interrupt for REGION\\[1\\].WA event"]
795    #[inline(always)]
796    pub fn region1wa(&mut self) -> REGION1WA_W<2> {
797        REGION1WA_W::new(self)
798    }
799    #[doc = "Bit 3 - Write '1' to disable interrupt for REGION\\[1\\].RA event"]
800    #[inline(always)]
801    pub fn region1ra(&mut self) -> REGION1RA_W<3> {
802        REGION1RA_W::new(self)
803    }
804    #[doc = "Bit 4 - Write '1' to disable interrupt for REGION\\[2\\].WA event"]
805    #[inline(always)]
806    pub fn region2wa(&mut self) -> REGION2WA_W<4> {
807        REGION2WA_W::new(self)
808    }
809    #[doc = "Bit 5 - Write '1' to disable interrupt for REGION\\[2\\].RA event"]
810    #[inline(always)]
811    pub fn region2ra(&mut self) -> REGION2RA_W<5> {
812        REGION2RA_W::new(self)
813    }
814    #[doc = "Bit 6 - Write '1' to disable interrupt for REGION\\[3\\].WA event"]
815    #[inline(always)]
816    pub fn region3wa(&mut self) -> REGION3WA_W<6> {
817        REGION3WA_W::new(self)
818    }
819    #[doc = "Bit 7 - Write '1' to disable interrupt for REGION\\[3\\].RA event"]
820    #[inline(always)]
821    pub fn region3ra(&mut self) -> REGION3RA_W<7> {
822        REGION3RA_W::new(self)
823    }
824    #[doc = "Bit 24 - Write '1' to disable interrupt for PREGION\\[0\\].WA event"]
825    #[inline(always)]
826    pub fn pregion0wa(&mut self) -> PREGION0WA_W<24> {
827        PREGION0WA_W::new(self)
828    }
829    #[doc = "Bit 25 - Write '1' to disable interrupt for PREGION\\[0\\].RA event"]
830    #[inline(always)]
831    pub fn pregion0ra(&mut self) -> PREGION0RA_W<25> {
832        PREGION0RA_W::new(self)
833    }
834    #[doc = "Bit 26 - Write '1' to disable interrupt for PREGION\\[1\\].WA event"]
835    #[inline(always)]
836    pub fn pregion1wa(&mut self) -> PREGION1WA_W<26> {
837        PREGION1WA_W::new(self)
838    }
839    #[doc = "Bit 27 - Write '1' to disable interrupt for PREGION\\[1\\].RA event"]
840    #[inline(always)]
841    pub fn pregion1ra(&mut self) -> PREGION1RA_W<27> {
842        PREGION1RA_W::new(self)
843    }
844    #[doc = "Writes raw bits to the register."]
845    #[inline(always)]
846    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
847        self.0.bits(bits);
848        self
849    }
850}
851#[doc = "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 [intenclr](index.html) module"]
852pub struct INTENCLR_SPEC;
853impl crate::RegisterSpec for INTENCLR_SPEC {
854    type Ux = u32;
855}
856#[doc = "`read()` method returns [intenclr::R](R) reader structure"]
857impl crate::Readable for INTENCLR_SPEC {
858    type Reader = R;
859}
860#[doc = "`write(|w| ..)` method takes [intenclr::W](W) writer structure"]
861impl crate::Writable for INTENCLR_SPEC {
862    type Writer = W;
863}
864#[doc = "`reset()` method sets INTENCLR to value 0"]
865impl crate::Resettable for INTENCLR_SPEC {
866    #[inline(always)]
867    fn reset_value() -> Self::Ux {
868        0
869    }
870}