nrf52810_pac/radio/
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 `READY` reader - Write '1' to enable interrupt for event READY"]
38pub type READY_R = crate::BitReader<READY_A>;
39#[doc = "Write '1' to enable interrupt for event READY\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq)]
41pub enum READY_A {
42    #[doc = "0: Read: Disabled"]
43    DISABLED = 0,
44    #[doc = "1: Read: Enabled"]
45    ENABLED = 1,
46}
47impl From<READY_A> for bool {
48    #[inline(always)]
49    fn from(variant: READY_A) -> Self {
50        variant as u8 != 0
51    }
52}
53impl READY_R {
54    #[doc = "Get enumerated values variant"]
55    #[inline(always)]
56    pub fn variant(&self) -> READY_A {
57        match self.bits {
58            false => READY_A::DISABLED,
59            true => READY_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 == READY_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 == READY_A::ENABLED
71    }
72}
73#[doc = "Write '1' to enable interrupt for event READY\n\nValue on reset: 0"]
74#[derive(Clone, Copy, Debug, PartialEq)]
75pub enum READY_AW {
76    #[doc = "1: Enable"]
77    SET = 1,
78}
79impl From<READY_AW> for bool {
80    #[inline(always)]
81    fn from(variant: READY_AW) -> Self {
82        variant as u8 != 0
83    }
84}
85#[doc = "Field `READY` writer - Write '1' to enable interrupt for event READY"]
86pub type READY_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, READY_AW, O>;
87impl<'a, const O: u8> READY_W<'a, O> {
88    #[doc = "Enable"]
89    #[inline(always)]
90    pub fn set(self) -> &'a mut W {
91        self.variant(READY_AW::SET)
92    }
93}
94#[doc = "Field `ADDRESS` reader - Write '1' to enable interrupt for event ADDRESS"]
95pub type ADDRESS_R = crate::BitReader<ADDRESS_A>;
96#[doc = "Write '1' to enable interrupt for event ADDRESS\n\nValue on reset: 0"]
97#[derive(Clone, Copy, Debug, PartialEq)]
98pub enum ADDRESS_A {
99    #[doc = "0: Read: Disabled"]
100    DISABLED = 0,
101    #[doc = "1: Read: Enabled"]
102    ENABLED = 1,
103}
104impl From<ADDRESS_A> for bool {
105    #[inline(always)]
106    fn from(variant: ADDRESS_A) -> Self {
107        variant as u8 != 0
108    }
109}
110impl ADDRESS_R {
111    #[doc = "Get enumerated values variant"]
112    #[inline(always)]
113    pub fn variant(&self) -> ADDRESS_A {
114        match self.bits {
115            false => ADDRESS_A::DISABLED,
116            true => ADDRESS_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 == ADDRESS_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 == ADDRESS_A::ENABLED
128    }
129}
130#[doc = "Write '1' to enable interrupt for event ADDRESS\n\nValue on reset: 0"]
131#[derive(Clone, Copy, Debug, PartialEq)]
132pub enum ADDRESS_AW {
133    #[doc = "1: Enable"]
134    SET = 1,
135}
136impl From<ADDRESS_AW> for bool {
137    #[inline(always)]
138    fn from(variant: ADDRESS_AW) -> Self {
139        variant as u8 != 0
140    }
141}
142#[doc = "Field `ADDRESS` writer - Write '1' to enable interrupt for event ADDRESS"]
143pub type ADDRESS_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, ADDRESS_AW, O>;
144impl<'a, const O: u8> ADDRESS_W<'a, O> {
145    #[doc = "Enable"]
146    #[inline(always)]
147    pub fn set(self) -> &'a mut W {
148        self.variant(ADDRESS_AW::SET)
149    }
150}
151#[doc = "Field `PAYLOAD` reader - Write '1' to enable interrupt for event PAYLOAD"]
152pub type PAYLOAD_R = crate::BitReader<PAYLOAD_A>;
153#[doc = "Write '1' to enable interrupt for event PAYLOAD\n\nValue on reset: 0"]
154#[derive(Clone, Copy, Debug, PartialEq)]
155pub enum PAYLOAD_A {
156    #[doc = "0: Read: Disabled"]
157    DISABLED = 0,
158    #[doc = "1: Read: Enabled"]
159    ENABLED = 1,
160}
161impl From<PAYLOAD_A> for bool {
162    #[inline(always)]
163    fn from(variant: PAYLOAD_A) -> Self {
164        variant as u8 != 0
165    }
166}
167impl PAYLOAD_R {
168    #[doc = "Get enumerated values variant"]
169    #[inline(always)]
170    pub fn variant(&self) -> PAYLOAD_A {
171        match self.bits {
172            false => PAYLOAD_A::DISABLED,
173            true => PAYLOAD_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 == PAYLOAD_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 == PAYLOAD_A::ENABLED
185    }
186}
187#[doc = "Write '1' to enable interrupt for event PAYLOAD\n\nValue on reset: 0"]
188#[derive(Clone, Copy, Debug, PartialEq)]
189pub enum PAYLOAD_AW {
190    #[doc = "1: Enable"]
191    SET = 1,
192}
193impl From<PAYLOAD_AW> for bool {
194    #[inline(always)]
195    fn from(variant: PAYLOAD_AW) -> Self {
196        variant as u8 != 0
197    }
198}
199#[doc = "Field `PAYLOAD` writer - Write '1' to enable interrupt for event PAYLOAD"]
200pub type PAYLOAD_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, PAYLOAD_AW, O>;
201impl<'a, const O: u8> PAYLOAD_W<'a, O> {
202    #[doc = "Enable"]
203    #[inline(always)]
204    pub fn set(self) -> &'a mut W {
205        self.variant(PAYLOAD_AW::SET)
206    }
207}
208#[doc = "Field `END` reader - Write '1' to enable interrupt for event END"]
209pub type END_R = crate::BitReader<END_A>;
210#[doc = "Write '1' to enable interrupt for event END\n\nValue on reset: 0"]
211#[derive(Clone, Copy, Debug, PartialEq)]
212pub enum END_A {
213    #[doc = "0: Read: Disabled"]
214    DISABLED = 0,
215    #[doc = "1: Read: Enabled"]
216    ENABLED = 1,
217}
218impl From<END_A> for bool {
219    #[inline(always)]
220    fn from(variant: END_A) -> Self {
221        variant as u8 != 0
222    }
223}
224impl END_R {
225    #[doc = "Get enumerated values variant"]
226    #[inline(always)]
227    pub fn variant(&self) -> END_A {
228        match self.bits {
229            false => END_A::DISABLED,
230            true => END_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 == END_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 == END_A::ENABLED
242    }
243}
244#[doc = "Write '1' to enable interrupt for event END\n\nValue on reset: 0"]
245#[derive(Clone, Copy, Debug, PartialEq)]
246pub enum END_AW {
247    #[doc = "1: Enable"]
248    SET = 1,
249}
250impl From<END_AW> for bool {
251    #[inline(always)]
252    fn from(variant: END_AW) -> Self {
253        variant as u8 != 0
254    }
255}
256#[doc = "Field `END` writer - Write '1' to enable interrupt for event END"]
257pub type END_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, END_AW, O>;
258impl<'a, const O: u8> END_W<'a, O> {
259    #[doc = "Enable"]
260    #[inline(always)]
261    pub fn set(self) -> &'a mut W {
262        self.variant(END_AW::SET)
263    }
264}
265#[doc = "Field `DISABLED` reader - Write '1' to enable interrupt for event DISABLED"]
266pub type DISABLED_R = crate::BitReader<DISABLED_A>;
267#[doc = "Write '1' to enable interrupt for event DISABLED\n\nValue on reset: 0"]
268#[derive(Clone, Copy, Debug, PartialEq)]
269pub enum DISABLED_A {
270    #[doc = "0: Read: Disabled"]
271    DISABLED = 0,
272    #[doc = "1: Read: Enabled"]
273    ENABLED = 1,
274}
275impl From<DISABLED_A> for bool {
276    #[inline(always)]
277    fn from(variant: DISABLED_A) -> Self {
278        variant as u8 != 0
279    }
280}
281impl DISABLED_R {
282    #[doc = "Get enumerated values variant"]
283    #[inline(always)]
284    pub fn variant(&self) -> DISABLED_A {
285        match self.bits {
286            false => DISABLED_A::DISABLED,
287            true => DISABLED_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 == DISABLED_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 == DISABLED_A::ENABLED
299    }
300}
301#[doc = "Write '1' to enable interrupt for event DISABLED\n\nValue on reset: 0"]
302#[derive(Clone, Copy, Debug, PartialEq)]
303pub enum DISABLED_AW {
304    #[doc = "1: Enable"]
305    SET = 1,
306}
307impl From<DISABLED_AW> for bool {
308    #[inline(always)]
309    fn from(variant: DISABLED_AW) -> Self {
310        variant as u8 != 0
311    }
312}
313#[doc = "Field `DISABLED` writer - Write '1' to enable interrupt for event DISABLED"]
314pub type DISABLED_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, DISABLED_AW, O>;
315impl<'a, const O: u8> DISABLED_W<'a, O> {
316    #[doc = "Enable"]
317    #[inline(always)]
318    pub fn set(self) -> &'a mut W {
319        self.variant(DISABLED_AW::SET)
320    }
321}
322#[doc = "Field `DEVMATCH` reader - Write '1' to enable interrupt for event DEVMATCH"]
323pub type DEVMATCH_R = crate::BitReader<DEVMATCH_A>;
324#[doc = "Write '1' to enable interrupt for event DEVMATCH\n\nValue on reset: 0"]
325#[derive(Clone, Copy, Debug, PartialEq)]
326pub enum DEVMATCH_A {
327    #[doc = "0: Read: Disabled"]
328    DISABLED = 0,
329    #[doc = "1: Read: Enabled"]
330    ENABLED = 1,
331}
332impl From<DEVMATCH_A> for bool {
333    #[inline(always)]
334    fn from(variant: DEVMATCH_A) -> Self {
335        variant as u8 != 0
336    }
337}
338impl DEVMATCH_R {
339    #[doc = "Get enumerated values variant"]
340    #[inline(always)]
341    pub fn variant(&self) -> DEVMATCH_A {
342        match self.bits {
343            false => DEVMATCH_A::DISABLED,
344            true => DEVMATCH_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 == DEVMATCH_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 == DEVMATCH_A::ENABLED
356    }
357}
358#[doc = "Write '1' to enable interrupt for event DEVMATCH\n\nValue on reset: 0"]
359#[derive(Clone, Copy, Debug, PartialEq)]
360pub enum DEVMATCH_AW {
361    #[doc = "1: Enable"]
362    SET = 1,
363}
364impl From<DEVMATCH_AW> for bool {
365    #[inline(always)]
366    fn from(variant: DEVMATCH_AW) -> Self {
367        variant as u8 != 0
368    }
369}
370#[doc = "Field `DEVMATCH` writer - Write '1' to enable interrupt for event DEVMATCH"]
371pub type DEVMATCH_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, DEVMATCH_AW, O>;
372impl<'a, const O: u8> DEVMATCH_W<'a, O> {
373    #[doc = "Enable"]
374    #[inline(always)]
375    pub fn set(self) -> &'a mut W {
376        self.variant(DEVMATCH_AW::SET)
377    }
378}
379#[doc = "Field `DEVMISS` reader - Write '1' to enable interrupt for event DEVMISS"]
380pub type DEVMISS_R = crate::BitReader<DEVMISS_A>;
381#[doc = "Write '1' to enable interrupt for event DEVMISS\n\nValue on reset: 0"]
382#[derive(Clone, Copy, Debug, PartialEq)]
383pub enum DEVMISS_A {
384    #[doc = "0: Read: Disabled"]
385    DISABLED = 0,
386    #[doc = "1: Read: Enabled"]
387    ENABLED = 1,
388}
389impl From<DEVMISS_A> for bool {
390    #[inline(always)]
391    fn from(variant: DEVMISS_A) -> Self {
392        variant as u8 != 0
393    }
394}
395impl DEVMISS_R {
396    #[doc = "Get enumerated values variant"]
397    #[inline(always)]
398    pub fn variant(&self) -> DEVMISS_A {
399        match self.bits {
400            false => DEVMISS_A::DISABLED,
401            true => DEVMISS_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 == DEVMISS_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 == DEVMISS_A::ENABLED
413    }
414}
415#[doc = "Write '1' to enable interrupt for event DEVMISS\n\nValue on reset: 0"]
416#[derive(Clone, Copy, Debug, PartialEq)]
417pub enum DEVMISS_AW {
418    #[doc = "1: Enable"]
419    SET = 1,
420}
421impl From<DEVMISS_AW> for bool {
422    #[inline(always)]
423    fn from(variant: DEVMISS_AW) -> Self {
424        variant as u8 != 0
425    }
426}
427#[doc = "Field `DEVMISS` writer - Write '1' to enable interrupt for event DEVMISS"]
428pub type DEVMISS_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, DEVMISS_AW, O>;
429impl<'a, const O: u8> DEVMISS_W<'a, O> {
430    #[doc = "Enable"]
431    #[inline(always)]
432    pub fn set(self) -> &'a mut W {
433        self.variant(DEVMISS_AW::SET)
434    }
435}
436#[doc = "Field `RSSIEND` reader - Write '1' to enable interrupt for event RSSIEND"]
437pub type RSSIEND_R = crate::BitReader<RSSIEND_A>;
438#[doc = "Write '1' to enable interrupt for event RSSIEND\n\nValue on reset: 0"]
439#[derive(Clone, Copy, Debug, PartialEq)]
440pub enum RSSIEND_A {
441    #[doc = "0: Read: Disabled"]
442    DISABLED = 0,
443    #[doc = "1: Read: Enabled"]
444    ENABLED = 1,
445}
446impl From<RSSIEND_A> for bool {
447    #[inline(always)]
448    fn from(variant: RSSIEND_A) -> Self {
449        variant as u8 != 0
450    }
451}
452impl RSSIEND_R {
453    #[doc = "Get enumerated values variant"]
454    #[inline(always)]
455    pub fn variant(&self) -> RSSIEND_A {
456        match self.bits {
457            false => RSSIEND_A::DISABLED,
458            true => RSSIEND_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 == RSSIEND_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 == RSSIEND_A::ENABLED
470    }
471}
472#[doc = "Write '1' to enable interrupt for event RSSIEND\n\nValue on reset: 0"]
473#[derive(Clone, Copy, Debug, PartialEq)]
474pub enum RSSIEND_AW {
475    #[doc = "1: Enable"]
476    SET = 1,
477}
478impl From<RSSIEND_AW> for bool {
479    #[inline(always)]
480    fn from(variant: RSSIEND_AW) -> Self {
481        variant as u8 != 0
482    }
483}
484#[doc = "Field `RSSIEND` writer - Write '1' to enable interrupt for event RSSIEND"]
485pub type RSSIEND_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, RSSIEND_AW, O>;
486impl<'a, const O: u8> RSSIEND_W<'a, O> {
487    #[doc = "Enable"]
488    #[inline(always)]
489    pub fn set(self) -> &'a mut W {
490        self.variant(RSSIEND_AW::SET)
491    }
492}
493#[doc = "Field `BCMATCH` reader - Write '1' to enable interrupt for event BCMATCH"]
494pub type BCMATCH_R = crate::BitReader<BCMATCH_A>;
495#[doc = "Write '1' to enable interrupt for event BCMATCH\n\nValue on reset: 0"]
496#[derive(Clone, Copy, Debug, PartialEq)]
497pub enum BCMATCH_A {
498    #[doc = "0: Read: Disabled"]
499    DISABLED = 0,
500    #[doc = "1: Read: Enabled"]
501    ENABLED = 1,
502}
503impl From<BCMATCH_A> for bool {
504    #[inline(always)]
505    fn from(variant: BCMATCH_A) -> Self {
506        variant as u8 != 0
507    }
508}
509impl BCMATCH_R {
510    #[doc = "Get enumerated values variant"]
511    #[inline(always)]
512    pub fn variant(&self) -> BCMATCH_A {
513        match self.bits {
514            false => BCMATCH_A::DISABLED,
515            true => BCMATCH_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 == BCMATCH_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 == BCMATCH_A::ENABLED
527    }
528}
529#[doc = "Write '1' to enable interrupt for event BCMATCH\n\nValue on reset: 0"]
530#[derive(Clone, Copy, Debug, PartialEq)]
531pub enum BCMATCH_AW {
532    #[doc = "1: Enable"]
533    SET = 1,
534}
535impl From<BCMATCH_AW> for bool {
536    #[inline(always)]
537    fn from(variant: BCMATCH_AW) -> Self {
538        variant as u8 != 0
539    }
540}
541#[doc = "Field `BCMATCH` writer - Write '1' to enable interrupt for event BCMATCH"]
542pub type BCMATCH_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, BCMATCH_AW, O>;
543impl<'a, const O: u8> BCMATCH_W<'a, O> {
544    #[doc = "Enable"]
545    #[inline(always)]
546    pub fn set(self) -> &'a mut W {
547        self.variant(BCMATCH_AW::SET)
548    }
549}
550#[doc = "Field `CRCOK` reader - Write '1' to enable interrupt for event CRCOK"]
551pub type CRCOK_R = crate::BitReader<CRCOK_A>;
552#[doc = "Write '1' to enable interrupt for event CRCOK\n\nValue on reset: 0"]
553#[derive(Clone, Copy, Debug, PartialEq)]
554pub enum CRCOK_A {
555    #[doc = "0: Read: Disabled"]
556    DISABLED = 0,
557    #[doc = "1: Read: Enabled"]
558    ENABLED = 1,
559}
560impl From<CRCOK_A> for bool {
561    #[inline(always)]
562    fn from(variant: CRCOK_A) -> Self {
563        variant as u8 != 0
564    }
565}
566impl CRCOK_R {
567    #[doc = "Get enumerated values variant"]
568    #[inline(always)]
569    pub fn variant(&self) -> CRCOK_A {
570        match self.bits {
571            false => CRCOK_A::DISABLED,
572            true => CRCOK_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 == CRCOK_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 == CRCOK_A::ENABLED
584    }
585}
586#[doc = "Write '1' to enable interrupt for event CRCOK\n\nValue on reset: 0"]
587#[derive(Clone, Copy, Debug, PartialEq)]
588pub enum CRCOK_AW {
589    #[doc = "1: Enable"]
590    SET = 1,
591}
592impl From<CRCOK_AW> for bool {
593    #[inline(always)]
594    fn from(variant: CRCOK_AW) -> Self {
595        variant as u8 != 0
596    }
597}
598#[doc = "Field `CRCOK` writer - Write '1' to enable interrupt for event CRCOK"]
599pub type CRCOK_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, CRCOK_AW, O>;
600impl<'a, const O: u8> CRCOK_W<'a, O> {
601    #[doc = "Enable"]
602    #[inline(always)]
603    pub fn set(self) -> &'a mut W {
604        self.variant(CRCOK_AW::SET)
605    }
606}
607#[doc = "Field `CRCERROR` reader - Write '1' to enable interrupt for event CRCERROR"]
608pub type CRCERROR_R = crate::BitReader<CRCERROR_A>;
609#[doc = "Write '1' to enable interrupt for event CRCERROR\n\nValue on reset: 0"]
610#[derive(Clone, Copy, Debug, PartialEq)]
611pub enum CRCERROR_A {
612    #[doc = "0: Read: Disabled"]
613    DISABLED = 0,
614    #[doc = "1: Read: Enabled"]
615    ENABLED = 1,
616}
617impl From<CRCERROR_A> for bool {
618    #[inline(always)]
619    fn from(variant: CRCERROR_A) -> Self {
620        variant as u8 != 0
621    }
622}
623impl CRCERROR_R {
624    #[doc = "Get enumerated values variant"]
625    #[inline(always)]
626    pub fn variant(&self) -> CRCERROR_A {
627        match self.bits {
628            false => CRCERROR_A::DISABLED,
629            true => CRCERROR_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 == CRCERROR_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 == CRCERROR_A::ENABLED
641    }
642}
643#[doc = "Write '1' to enable interrupt for event CRCERROR\n\nValue on reset: 0"]
644#[derive(Clone, Copy, Debug, PartialEq)]
645pub enum CRCERROR_AW {
646    #[doc = "1: Enable"]
647    SET = 1,
648}
649impl From<CRCERROR_AW> for bool {
650    #[inline(always)]
651    fn from(variant: CRCERROR_AW) -> Self {
652        variant as u8 != 0
653    }
654}
655#[doc = "Field `CRCERROR` writer - Write '1' to enable interrupt for event CRCERROR"]
656pub type CRCERROR_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, CRCERROR_AW, O>;
657impl<'a, const O: u8> CRCERROR_W<'a, O> {
658    #[doc = "Enable"]
659    #[inline(always)]
660    pub fn set(self) -> &'a mut W {
661        self.variant(CRCERROR_AW::SET)
662    }
663}
664impl R {
665    #[doc = "Bit 0 - Write '1' to enable interrupt for event READY"]
666    #[inline(always)]
667    pub fn ready(&self) -> READY_R {
668        READY_R::new((self.bits & 1) != 0)
669    }
670    #[doc = "Bit 1 - Write '1' to enable interrupt for event ADDRESS"]
671    #[inline(always)]
672    pub fn address(&self) -> ADDRESS_R {
673        ADDRESS_R::new(((self.bits >> 1) & 1) != 0)
674    }
675    #[doc = "Bit 2 - Write '1' to enable interrupt for event PAYLOAD"]
676    #[inline(always)]
677    pub fn payload(&self) -> PAYLOAD_R {
678        PAYLOAD_R::new(((self.bits >> 2) & 1) != 0)
679    }
680    #[doc = "Bit 3 - Write '1' to enable interrupt for event END"]
681    #[inline(always)]
682    pub fn end(&self) -> END_R {
683        END_R::new(((self.bits >> 3) & 1) != 0)
684    }
685    #[doc = "Bit 4 - Write '1' to enable interrupt for event DISABLED"]
686    #[inline(always)]
687    pub fn disabled(&self) -> DISABLED_R {
688        DISABLED_R::new(((self.bits >> 4) & 1) != 0)
689    }
690    #[doc = "Bit 5 - Write '1' to enable interrupt for event DEVMATCH"]
691    #[inline(always)]
692    pub fn devmatch(&self) -> DEVMATCH_R {
693        DEVMATCH_R::new(((self.bits >> 5) & 1) != 0)
694    }
695    #[doc = "Bit 6 - Write '1' to enable interrupt for event DEVMISS"]
696    #[inline(always)]
697    pub fn devmiss(&self) -> DEVMISS_R {
698        DEVMISS_R::new(((self.bits >> 6) & 1) != 0)
699    }
700    #[doc = "Bit 7 - Write '1' to enable interrupt for event RSSIEND"]
701    #[inline(always)]
702    pub fn rssiend(&self) -> RSSIEND_R {
703        RSSIEND_R::new(((self.bits >> 7) & 1) != 0)
704    }
705    #[doc = "Bit 10 - Write '1' to enable interrupt for event BCMATCH"]
706    #[inline(always)]
707    pub fn bcmatch(&self) -> BCMATCH_R {
708        BCMATCH_R::new(((self.bits >> 10) & 1) != 0)
709    }
710    #[doc = "Bit 12 - Write '1' to enable interrupt for event CRCOK"]
711    #[inline(always)]
712    pub fn crcok(&self) -> CRCOK_R {
713        CRCOK_R::new(((self.bits >> 12) & 1) != 0)
714    }
715    #[doc = "Bit 13 - Write '1' to enable interrupt for event CRCERROR"]
716    #[inline(always)]
717    pub fn crcerror(&self) -> CRCERROR_R {
718        CRCERROR_R::new(((self.bits >> 13) & 1) != 0)
719    }
720}
721impl W {
722    #[doc = "Bit 0 - Write '1' to enable interrupt for event READY"]
723    #[inline(always)]
724    pub fn ready(&mut self) -> READY_W<0> {
725        READY_W::new(self)
726    }
727    #[doc = "Bit 1 - Write '1' to enable interrupt for event ADDRESS"]
728    #[inline(always)]
729    pub fn address(&mut self) -> ADDRESS_W<1> {
730        ADDRESS_W::new(self)
731    }
732    #[doc = "Bit 2 - Write '1' to enable interrupt for event PAYLOAD"]
733    #[inline(always)]
734    pub fn payload(&mut self) -> PAYLOAD_W<2> {
735        PAYLOAD_W::new(self)
736    }
737    #[doc = "Bit 3 - Write '1' to enable interrupt for event END"]
738    #[inline(always)]
739    pub fn end(&mut self) -> END_W<3> {
740        END_W::new(self)
741    }
742    #[doc = "Bit 4 - Write '1' to enable interrupt for event DISABLED"]
743    #[inline(always)]
744    pub fn disabled(&mut self) -> DISABLED_W<4> {
745        DISABLED_W::new(self)
746    }
747    #[doc = "Bit 5 - Write '1' to enable interrupt for event DEVMATCH"]
748    #[inline(always)]
749    pub fn devmatch(&mut self) -> DEVMATCH_W<5> {
750        DEVMATCH_W::new(self)
751    }
752    #[doc = "Bit 6 - Write '1' to enable interrupt for event DEVMISS"]
753    #[inline(always)]
754    pub fn devmiss(&mut self) -> DEVMISS_W<6> {
755        DEVMISS_W::new(self)
756    }
757    #[doc = "Bit 7 - Write '1' to enable interrupt for event RSSIEND"]
758    #[inline(always)]
759    pub fn rssiend(&mut self) -> RSSIEND_W<7> {
760        RSSIEND_W::new(self)
761    }
762    #[doc = "Bit 10 - Write '1' to enable interrupt for event BCMATCH"]
763    #[inline(always)]
764    pub fn bcmatch(&mut self) -> BCMATCH_W<10> {
765        BCMATCH_W::new(self)
766    }
767    #[doc = "Bit 12 - Write '1' to enable interrupt for event CRCOK"]
768    #[inline(always)]
769    pub fn crcok(&mut self) -> CRCOK_W<12> {
770        CRCOK_W::new(self)
771    }
772    #[doc = "Bit 13 - Write '1' to enable interrupt for event CRCERROR"]
773    #[inline(always)]
774    pub fn crcerror(&mut self) -> CRCERROR_W<13> {
775        CRCERROR_W::new(self)
776    }
777    #[doc = "Writes raw bits to the register."]
778    #[inline(always)]
779    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
780        self.0.bits(bits);
781        self
782    }
783}
784#[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"]
785pub struct INTENSET_SPEC;
786impl crate::RegisterSpec for INTENSET_SPEC {
787    type Ux = u32;
788}
789#[doc = "`read()` method returns [intenset::R](R) reader structure"]
790impl crate::Readable for INTENSET_SPEC {
791    type Reader = R;
792}
793#[doc = "`write(|w| ..)` method takes [intenset::W](W) writer structure"]
794impl crate::Writable for INTENSET_SPEC {
795    type Writer = W;
796}
797#[doc = "`reset()` method sets INTENSET to value 0"]
798impl crate::Resettable for INTENSET_SPEC {
799    #[inline(always)]
800    fn reset_value() -> Self::Ux {
801        0
802    }
803}