nrf52840_pac/gpiote/
intenset.rs

1#[doc = "Register `INTENSET` reader"]
2pub struct R(crate::R<INTENSET_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<INTENSET_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<INTENSET_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<INTENSET_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `INTENSET` writer"]
17pub struct W(crate::W<INTENSET_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<INTENSET_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<INTENSET_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<INTENSET_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `IN0` reader - Write '1' to enable interrupt for IN\\[0\\]
38event"]
39pub type IN0_R = crate::BitReader<IN0_A>;
40#[doc = "Write '1' to enable interrupt for IN\\[0\\]
41event\n\nValue on reset: 0"]
42#[derive(Clone, Copy, Debug, PartialEq)]
43pub enum IN0_A {
44    #[doc = "0: Read: Disabled"]
45    DISABLED = 0,
46    #[doc = "1: Read: Enabled"]
47    ENABLED = 1,
48}
49impl From<IN0_A> for bool {
50    #[inline(always)]
51    fn from(variant: IN0_A) -> Self {
52        variant as u8 != 0
53    }
54}
55impl IN0_R {
56    #[doc = "Get enumerated values variant"]
57    #[inline(always)]
58    pub fn variant(&self) -> IN0_A {
59        match self.bits {
60            false => IN0_A::DISABLED,
61            true => IN0_A::ENABLED,
62        }
63    }
64    #[doc = "Checks if the value of the field is `DISABLED`"]
65    #[inline(always)]
66    pub fn is_disabled(&self) -> bool {
67        *self == IN0_A::DISABLED
68    }
69    #[doc = "Checks if the value of the field is `ENABLED`"]
70    #[inline(always)]
71    pub fn is_enabled(&self) -> bool {
72        *self == IN0_A::ENABLED
73    }
74}
75#[doc = "Write '1' to enable interrupt for IN\\[0\\]
76event\n\nValue on reset: 0"]
77#[derive(Clone, Copy, Debug, PartialEq)]
78pub enum IN0_AW {
79    #[doc = "1: Enable"]
80    SET = 1,
81}
82impl From<IN0_AW> for bool {
83    #[inline(always)]
84    fn from(variant: IN0_AW) -> Self {
85        variant as u8 != 0
86    }
87}
88#[doc = "Field `IN0` writer - Write '1' to enable interrupt for IN\\[0\\]
89event"]
90pub type IN0_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, IN0_AW, O>;
91impl<'a, const O: u8> IN0_W<'a, O> {
92    #[doc = "Enable"]
93    #[inline(always)]
94    pub fn set(self) -> &'a mut W {
95        self.variant(IN0_AW::SET)
96    }
97}
98#[doc = "Field `IN1` reader - Write '1' to enable interrupt for IN\\[1\\]
99event"]
100pub type IN1_R = crate::BitReader<IN1_A>;
101#[doc = "Write '1' to enable interrupt for IN\\[1\\]
102event\n\nValue on reset: 0"]
103#[derive(Clone, Copy, Debug, PartialEq)]
104pub enum IN1_A {
105    #[doc = "0: Read: Disabled"]
106    DISABLED = 0,
107    #[doc = "1: Read: Enabled"]
108    ENABLED = 1,
109}
110impl From<IN1_A> for bool {
111    #[inline(always)]
112    fn from(variant: IN1_A) -> Self {
113        variant as u8 != 0
114    }
115}
116impl IN1_R {
117    #[doc = "Get enumerated values variant"]
118    #[inline(always)]
119    pub fn variant(&self) -> IN1_A {
120        match self.bits {
121            false => IN1_A::DISABLED,
122            true => IN1_A::ENABLED,
123        }
124    }
125    #[doc = "Checks if the value of the field is `DISABLED`"]
126    #[inline(always)]
127    pub fn is_disabled(&self) -> bool {
128        *self == IN1_A::DISABLED
129    }
130    #[doc = "Checks if the value of the field is `ENABLED`"]
131    #[inline(always)]
132    pub fn is_enabled(&self) -> bool {
133        *self == IN1_A::ENABLED
134    }
135}
136#[doc = "Write '1' to enable interrupt for IN\\[1\\]
137event\n\nValue on reset: 0"]
138#[derive(Clone, Copy, Debug, PartialEq)]
139pub enum IN1_AW {
140    #[doc = "1: Enable"]
141    SET = 1,
142}
143impl From<IN1_AW> for bool {
144    #[inline(always)]
145    fn from(variant: IN1_AW) -> Self {
146        variant as u8 != 0
147    }
148}
149#[doc = "Field `IN1` writer - Write '1' to enable interrupt for IN\\[1\\]
150event"]
151pub type IN1_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, IN1_AW, O>;
152impl<'a, const O: u8> IN1_W<'a, O> {
153    #[doc = "Enable"]
154    #[inline(always)]
155    pub fn set(self) -> &'a mut W {
156        self.variant(IN1_AW::SET)
157    }
158}
159#[doc = "Field `IN2` reader - Write '1' to enable interrupt for IN\\[2\\]
160event"]
161pub type IN2_R = crate::BitReader<IN2_A>;
162#[doc = "Write '1' to enable interrupt for IN\\[2\\]
163event\n\nValue on reset: 0"]
164#[derive(Clone, Copy, Debug, PartialEq)]
165pub enum IN2_A {
166    #[doc = "0: Read: Disabled"]
167    DISABLED = 0,
168    #[doc = "1: Read: Enabled"]
169    ENABLED = 1,
170}
171impl From<IN2_A> for bool {
172    #[inline(always)]
173    fn from(variant: IN2_A) -> Self {
174        variant as u8 != 0
175    }
176}
177impl IN2_R {
178    #[doc = "Get enumerated values variant"]
179    #[inline(always)]
180    pub fn variant(&self) -> IN2_A {
181        match self.bits {
182            false => IN2_A::DISABLED,
183            true => IN2_A::ENABLED,
184        }
185    }
186    #[doc = "Checks if the value of the field is `DISABLED`"]
187    #[inline(always)]
188    pub fn is_disabled(&self) -> bool {
189        *self == IN2_A::DISABLED
190    }
191    #[doc = "Checks if the value of the field is `ENABLED`"]
192    #[inline(always)]
193    pub fn is_enabled(&self) -> bool {
194        *self == IN2_A::ENABLED
195    }
196}
197#[doc = "Write '1' to enable interrupt for IN\\[2\\]
198event\n\nValue on reset: 0"]
199#[derive(Clone, Copy, Debug, PartialEq)]
200pub enum IN2_AW {
201    #[doc = "1: Enable"]
202    SET = 1,
203}
204impl From<IN2_AW> for bool {
205    #[inline(always)]
206    fn from(variant: IN2_AW) -> Self {
207        variant as u8 != 0
208    }
209}
210#[doc = "Field `IN2` writer - Write '1' to enable interrupt for IN\\[2\\]
211event"]
212pub type IN2_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, IN2_AW, O>;
213impl<'a, const O: u8> IN2_W<'a, O> {
214    #[doc = "Enable"]
215    #[inline(always)]
216    pub fn set(self) -> &'a mut W {
217        self.variant(IN2_AW::SET)
218    }
219}
220#[doc = "Field `IN3` reader - Write '1' to enable interrupt for IN\\[3\\]
221event"]
222pub type IN3_R = crate::BitReader<IN3_A>;
223#[doc = "Write '1' to enable interrupt for IN\\[3\\]
224event\n\nValue on reset: 0"]
225#[derive(Clone, Copy, Debug, PartialEq)]
226pub enum IN3_A {
227    #[doc = "0: Read: Disabled"]
228    DISABLED = 0,
229    #[doc = "1: Read: Enabled"]
230    ENABLED = 1,
231}
232impl From<IN3_A> for bool {
233    #[inline(always)]
234    fn from(variant: IN3_A) -> Self {
235        variant as u8 != 0
236    }
237}
238impl IN3_R {
239    #[doc = "Get enumerated values variant"]
240    #[inline(always)]
241    pub fn variant(&self) -> IN3_A {
242        match self.bits {
243            false => IN3_A::DISABLED,
244            true => IN3_A::ENABLED,
245        }
246    }
247    #[doc = "Checks if the value of the field is `DISABLED`"]
248    #[inline(always)]
249    pub fn is_disabled(&self) -> bool {
250        *self == IN3_A::DISABLED
251    }
252    #[doc = "Checks if the value of the field is `ENABLED`"]
253    #[inline(always)]
254    pub fn is_enabled(&self) -> bool {
255        *self == IN3_A::ENABLED
256    }
257}
258#[doc = "Write '1' to enable interrupt for IN\\[3\\]
259event\n\nValue on reset: 0"]
260#[derive(Clone, Copy, Debug, PartialEq)]
261pub enum IN3_AW {
262    #[doc = "1: Enable"]
263    SET = 1,
264}
265impl From<IN3_AW> for bool {
266    #[inline(always)]
267    fn from(variant: IN3_AW) -> Self {
268        variant as u8 != 0
269    }
270}
271#[doc = "Field `IN3` writer - Write '1' to enable interrupt for IN\\[3\\]
272event"]
273pub type IN3_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, IN3_AW, O>;
274impl<'a, const O: u8> IN3_W<'a, O> {
275    #[doc = "Enable"]
276    #[inline(always)]
277    pub fn set(self) -> &'a mut W {
278        self.variant(IN3_AW::SET)
279    }
280}
281#[doc = "Field `IN4` reader - Write '1' to enable interrupt for IN\\[4\\]
282event"]
283pub type IN4_R = crate::BitReader<IN4_A>;
284#[doc = "Write '1' to enable interrupt for IN\\[4\\]
285event\n\nValue on reset: 0"]
286#[derive(Clone, Copy, Debug, PartialEq)]
287pub enum IN4_A {
288    #[doc = "0: Read: Disabled"]
289    DISABLED = 0,
290    #[doc = "1: Read: Enabled"]
291    ENABLED = 1,
292}
293impl From<IN4_A> for bool {
294    #[inline(always)]
295    fn from(variant: IN4_A) -> Self {
296        variant as u8 != 0
297    }
298}
299impl IN4_R {
300    #[doc = "Get enumerated values variant"]
301    #[inline(always)]
302    pub fn variant(&self) -> IN4_A {
303        match self.bits {
304            false => IN4_A::DISABLED,
305            true => IN4_A::ENABLED,
306        }
307    }
308    #[doc = "Checks if the value of the field is `DISABLED`"]
309    #[inline(always)]
310    pub fn is_disabled(&self) -> bool {
311        *self == IN4_A::DISABLED
312    }
313    #[doc = "Checks if the value of the field is `ENABLED`"]
314    #[inline(always)]
315    pub fn is_enabled(&self) -> bool {
316        *self == IN4_A::ENABLED
317    }
318}
319#[doc = "Write '1' to enable interrupt for IN\\[4\\]
320event\n\nValue on reset: 0"]
321#[derive(Clone, Copy, Debug, PartialEq)]
322pub enum IN4_AW {
323    #[doc = "1: Enable"]
324    SET = 1,
325}
326impl From<IN4_AW> for bool {
327    #[inline(always)]
328    fn from(variant: IN4_AW) -> Self {
329        variant as u8 != 0
330    }
331}
332#[doc = "Field `IN4` writer - Write '1' to enable interrupt for IN\\[4\\]
333event"]
334pub type IN4_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, IN4_AW, O>;
335impl<'a, const O: u8> IN4_W<'a, O> {
336    #[doc = "Enable"]
337    #[inline(always)]
338    pub fn set(self) -> &'a mut W {
339        self.variant(IN4_AW::SET)
340    }
341}
342#[doc = "Field `IN5` reader - Write '1' to enable interrupt for IN\\[5\\]
343event"]
344pub type IN5_R = crate::BitReader<IN5_A>;
345#[doc = "Write '1' to enable interrupt for IN\\[5\\]
346event\n\nValue on reset: 0"]
347#[derive(Clone, Copy, Debug, PartialEq)]
348pub enum IN5_A {
349    #[doc = "0: Read: Disabled"]
350    DISABLED = 0,
351    #[doc = "1: Read: Enabled"]
352    ENABLED = 1,
353}
354impl From<IN5_A> for bool {
355    #[inline(always)]
356    fn from(variant: IN5_A) -> Self {
357        variant as u8 != 0
358    }
359}
360impl IN5_R {
361    #[doc = "Get enumerated values variant"]
362    #[inline(always)]
363    pub fn variant(&self) -> IN5_A {
364        match self.bits {
365            false => IN5_A::DISABLED,
366            true => IN5_A::ENABLED,
367        }
368    }
369    #[doc = "Checks if the value of the field is `DISABLED`"]
370    #[inline(always)]
371    pub fn is_disabled(&self) -> bool {
372        *self == IN5_A::DISABLED
373    }
374    #[doc = "Checks if the value of the field is `ENABLED`"]
375    #[inline(always)]
376    pub fn is_enabled(&self) -> bool {
377        *self == IN5_A::ENABLED
378    }
379}
380#[doc = "Write '1' to enable interrupt for IN\\[5\\]
381event\n\nValue on reset: 0"]
382#[derive(Clone, Copy, Debug, PartialEq)]
383pub enum IN5_AW {
384    #[doc = "1: Enable"]
385    SET = 1,
386}
387impl From<IN5_AW> for bool {
388    #[inline(always)]
389    fn from(variant: IN5_AW) -> Self {
390        variant as u8 != 0
391    }
392}
393#[doc = "Field `IN5` writer - Write '1' to enable interrupt for IN\\[5\\]
394event"]
395pub type IN5_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, IN5_AW, O>;
396impl<'a, const O: u8> IN5_W<'a, O> {
397    #[doc = "Enable"]
398    #[inline(always)]
399    pub fn set(self) -> &'a mut W {
400        self.variant(IN5_AW::SET)
401    }
402}
403#[doc = "Field `IN6` reader - Write '1' to enable interrupt for IN\\[6\\]
404event"]
405pub type IN6_R = crate::BitReader<IN6_A>;
406#[doc = "Write '1' to enable interrupt for IN\\[6\\]
407event\n\nValue on reset: 0"]
408#[derive(Clone, Copy, Debug, PartialEq)]
409pub enum IN6_A {
410    #[doc = "0: Read: Disabled"]
411    DISABLED = 0,
412    #[doc = "1: Read: Enabled"]
413    ENABLED = 1,
414}
415impl From<IN6_A> for bool {
416    #[inline(always)]
417    fn from(variant: IN6_A) -> Self {
418        variant as u8 != 0
419    }
420}
421impl IN6_R {
422    #[doc = "Get enumerated values variant"]
423    #[inline(always)]
424    pub fn variant(&self) -> IN6_A {
425        match self.bits {
426            false => IN6_A::DISABLED,
427            true => IN6_A::ENABLED,
428        }
429    }
430    #[doc = "Checks if the value of the field is `DISABLED`"]
431    #[inline(always)]
432    pub fn is_disabled(&self) -> bool {
433        *self == IN6_A::DISABLED
434    }
435    #[doc = "Checks if the value of the field is `ENABLED`"]
436    #[inline(always)]
437    pub fn is_enabled(&self) -> bool {
438        *self == IN6_A::ENABLED
439    }
440}
441#[doc = "Write '1' to enable interrupt for IN\\[6\\]
442event\n\nValue on reset: 0"]
443#[derive(Clone, Copy, Debug, PartialEq)]
444pub enum IN6_AW {
445    #[doc = "1: Enable"]
446    SET = 1,
447}
448impl From<IN6_AW> for bool {
449    #[inline(always)]
450    fn from(variant: IN6_AW) -> Self {
451        variant as u8 != 0
452    }
453}
454#[doc = "Field `IN6` writer - Write '1' to enable interrupt for IN\\[6\\]
455event"]
456pub type IN6_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, IN6_AW, O>;
457impl<'a, const O: u8> IN6_W<'a, O> {
458    #[doc = "Enable"]
459    #[inline(always)]
460    pub fn set(self) -> &'a mut W {
461        self.variant(IN6_AW::SET)
462    }
463}
464#[doc = "Field `IN7` reader - Write '1' to enable interrupt for IN\\[7\\]
465event"]
466pub type IN7_R = crate::BitReader<IN7_A>;
467#[doc = "Write '1' to enable interrupt for IN\\[7\\]
468event\n\nValue on reset: 0"]
469#[derive(Clone, Copy, Debug, PartialEq)]
470pub enum IN7_A {
471    #[doc = "0: Read: Disabled"]
472    DISABLED = 0,
473    #[doc = "1: Read: Enabled"]
474    ENABLED = 1,
475}
476impl From<IN7_A> for bool {
477    #[inline(always)]
478    fn from(variant: IN7_A) -> Self {
479        variant as u8 != 0
480    }
481}
482impl IN7_R {
483    #[doc = "Get enumerated values variant"]
484    #[inline(always)]
485    pub fn variant(&self) -> IN7_A {
486        match self.bits {
487            false => IN7_A::DISABLED,
488            true => IN7_A::ENABLED,
489        }
490    }
491    #[doc = "Checks if the value of the field is `DISABLED`"]
492    #[inline(always)]
493    pub fn is_disabled(&self) -> bool {
494        *self == IN7_A::DISABLED
495    }
496    #[doc = "Checks if the value of the field is `ENABLED`"]
497    #[inline(always)]
498    pub fn is_enabled(&self) -> bool {
499        *self == IN7_A::ENABLED
500    }
501}
502#[doc = "Write '1' to enable interrupt for IN\\[7\\]
503event\n\nValue on reset: 0"]
504#[derive(Clone, Copy, Debug, PartialEq)]
505pub enum IN7_AW {
506    #[doc = "1: Enable"]
507    SET = 1,
508}
509impl From<IN7_AW> for bool {
510    #[inline(always)]
511    fn from(variant: IN7_AW) -> Self {
512        variant as u8 != 0
513    }
514}
515#[doc = "Field `IN7` writer - Write '1' to enable interrupt for IN\\[7\\]
516event"]
517pub type IN7_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, IN7_AW, O>;
518impl<'a, const O: u8> IN7_W<'a, O> {
519    #[doc = "Enable"]
520    #[inline(always)]
521    pub fn set(self) -> &'a mut W {
522        self.variant(IN7_AW::SET)
523    }
524}
525#[doc = "Field `PORT` reader - Write '1' to enable interrupt for PORT event"]
526pub type PORT_R = crate::BitReader<PORT_A>;
527#[doc = "Write '1' to enable interrupt for PORT event\n\nValue on reset: 0"]
528#[derive(Clone, Copy, Debug, PartialEq)]
529pub enum PORT_A {
530    #[doc = "0: Read: Disabled"]
531    DISABLED = 0,
532    #[doc = "1: Read: Enabled"]
533    ENABLED = 1,
534}
535impl From<PORT_A> for bool {
536    #[inline(always)]
537    fn from(variant: PORT_A) -> Self {
538        variant as u8 != 0
539    }
540}
541impl PORT_R {
542    #[doc = "Get enumerated values variant"]
543    #[inline(always)]
544    pub fn variant(&self) -> PORT_A {
545        match self.bits {
546            false => PORT_A::DISABLED,
547            true => PORT_A::ENABLED,
548        }
549    }
550    #[doc = "Checks if the value of the field is `DISABLED`"]
551    #[inline(always)]
552    pub fn is_disabled(&self) -> bool {
553        *self == PORT_A::DISABLED
554    }
555    #[doc = "Checks if the value of the field is `ENABLED`"]
556    #[inline(always)]
557    pub fn is_enabled(&self) -> bool {
558        *self == PORT_A::ENABLED
559    }
560}
561#[doc = "Write '1' to enable interrupt for PORT event\n\nValue on reset: 0"]
562#[derive(Clone, Copy, Debug, PartialEq)]
563pub enum PORT_AW {
564    #[doc = "1: Enable"]
565    SET = 1,
566}
567impl From<PORT_AW> for bool {
568    #[inline(always)]
569    fn from(variant: PORT_AW) -> Self {
570        variant as u8 != 0
571    }
572}
573#[doc = "Field `PORT` writer - Write '1' to enable interrupt for PORT event"]
574pub type PORT_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, PORT_AW, O>;
575impl<'a, const O: u8> PORT_W<'a, O> {
576    #[doc = "Enable"]
577    #[inline(always)]
578    pub fn set(self) -> &'a mut W {
579        self.variant(PORT_AW::SET)
580    }
581}
582impl R {
583    #[doc = "Bit 0 - Write '1' to enable interrupt for IN\\[0\\]
584event"]
585    #[inline(always)]
586    pub fn in0(&self) -> IN0_R {
587        IN0_R::new((self.bits & 1) != 0)
588    }
589    #[doc = "Bit 1 - Write '1' to enable interrupt for IN\\[1\\]
590event"]
591    #[inline(always)]
592    pub fn in1(&self) -> IN1_R {
593        IN1_R::new(((self.bits >> 1) & 1) != 0)
594    }
595    #[doc = "Bit 2 - Write '1' to enable interrupt for IN\\[2\\]
596event"]
597    #[inline(always)]
598    pub fn in2(&self) -> IN2_R {
599        IN2_R::new(((self.bits >> 2) & 1) != 0)
600    }
601    #[doc = "Bit 3 - Write '1' to enable interrupt for IN\\[3\\]
602event"]
603    #[inline(always)]
604    pub fn in3(&self) -> IN3_R {
605        IN3_R::new(((self.bits >> 3) & 1) != 0)
606    }
607    #[doc = "Bit 4 - Write '1' to enable interrupt for IN\\[4\\]
608event"]
609    #[inline(always)]
610    pub fn in4(&self) -> IN4_R {
611        IN4_R::new(((self.bits >> 4) & 1) != 0)
612    }
613    #[doc = "Bit 5 - Write '1' to enable interrupt for IN\\[5\\]
614event"]
615    #[inline(always)]
616    pub fn in5(&self) -> IN5_R {
617        IN5_R::new(((self.bits >> 5) & 1) != 0)
618    }
619    #[doc = "Bit 6 - Write '1' to enable interrupt for IN\\[6\\]
620event"]
621    #[inline(always)]
622    pub fn in6(&self) -> IN6_R {
623        IN6_R::new(((self.bits >> 6) & 1) != 0)
624    }
625    #[doc = "Bit 7 - Write '1' to enable interrupt for IN\\[7\\]
626event"]
627    #[inline(always)]
628    pub fn in7(&self) -> IN7_R {
629        IN7_R::new(((self.bits >> 7) & 1) != 0)
630    }
631    #[doc = "Bit 31 - Write '1' to enable interrupt for PORT event"]
632    #[inline(always)]
633    pub fn port(&self) -> PORT_R {
634        PORT_R::new(((self.bits >> 31) & 1) != 0)
635    }
636}
637impl W {
638    #[doc = "Bit 0 - Write '1' to enable interrupt for IN\\[0\\]
639event"]
640    #[inline(always)]
641    pub fn in0(&mut self) -> IN0_W<0> {
642        IN0_W::new(self)
643    }
644    #[doc = "Bit 1 - Write '1' to enable interrupt for IN\\[1\\]
645event"]
646    #[inline(always)]
647    pub fn in1(&mut self) -> IN1_W<1> {
648        IN1_W::new(self)
649    }
650    #[doc = "Bit 2 - Write '1' to enable interrupt for IN\\[2\\]
651event"]
652    #[inline(always)]
653    pub fn in2(&mut self) -> IN2_W<2> {
654        IN2_W::new(self)
655    }
656    #[doc = "Bit 3 - Write '1' to enable interrupt for IN\\[3\\]
657event"]
658    #[inline(always)]
659    pub fn in3(&mut self) -> IN3_W<3> {
660        IN3_W::new(self)
661    }
662    #[doc = "Bit 4 - Write '1' to enable interrupt for IN\\[4\\]
663event"]
664    #[inline(always)]
665    pub fn in4(&mut self) -> IN4_W<4> {
666        IN4_W::new(self)
667    }
668    #[doc = "Bit 5 - Write '1' to enable interrupt for IN\\[5\\]
669event"]
670    #[inline(always)]
671    pub fn in5(&mut self) -> IN5_W<5> {
672        IN5_W::new(self)
673    }
674    #[doc = "Bit 6 - Write '1' to enable interrupt for IN\\[6\\]
675event"]
676    #[inline(always)]
677    pub fn in6(&mut self) -> IN6_W<6> {
678        IN6_W::new(self)
679    }
680    #[doc = "Bit 7 - Write '1' to enable interrupt for IN\\[7\\]
681event"]
682    #[inline(always)]
683    pub fn in7(&mut self) -> IN7_W<7> {
684        IN7_W::new(self)
685    }
686    #[doc = "Bit 31 - Write '1' to enable interrupt for PORT event"]
687    #[inline(always)]
688    pub fn port(&mut self) -> PORT_W<31> {
689        PORT_W::new(self)
690    }
691    #[doc = "Writes raw bits to the register."]
692    #[inline(always)]
693    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
694        self.0.bits(bits);
695        self
696    }
697}
698#[doc = "Enable 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 [intenset](index.html) module"]
699pub struct INTENSET_SPEC;
700impl crate::RegisterSpec for INTENSET_SPEC {
701    type Ux = u32;
702}
703#[doc = "`read()` method returns [intenset::R](R) reader structure"]
704impl crate::Readable for INTENSET_SPEC {
705    type Reader = R;
706}
707#[doc = "`write(|w| ..)` method takes [intenset::W](W) writer structure"]
708impl crate::Writable for INTENSET_SPEC {
709    type Writer = W;
710}
711#[doc = "`reset()` method sets INTENSET to value 0"]
712impl crate::Resettable for INTENSET_SPEC {
713    #[inline(always)]
714    fn reset_value() -> Self::Ux {
715        0
716    }
717}