nrf5340_app_pac/ipc_ns/
receive_cnf.rs

1#[doc = "Register `RECEIVE_CNF[%s]` reader"]
2pub struct R(crate::R<RECEIVE_CNF_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<RECEIVE_CNF_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<RECEIVE_CNF_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<RECEIVE_CNF_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `RECEIVE_CNF[%s]` writer"]
17pub struct W(crate::W<RECEIVE_CNF_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<RECEIVE_CNF_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<RECEIVE_CNF_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<RECEIVE_CNF_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `CHEN0` reader - Enable subscription to IPC channel 0"]
38pub type CHEN0_R = crate::BitReader<CHEN0_A>;
39#[doc = "Enable subscription to IPC channel 0\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq)]
41pub enum CHEN0_A {
42    #[doc = "0: Disable events"]
43    DISABLE = 0,
44    #[doc = "1: Enable events"]
45    ENABLE = 1,
46}
47impl From<CHEN0_A> for bool {
48    #[inline(always)]
49    fn from(variant: CHEN0_A) -> Self {
50        variant as u8 != 0
51    }
52}
53impl CHEN0_R {
54    #[doc = "Get enumerated values variant"]
55    #[inline(always)]
56    pub fn variant(&self) -> CHEN0_A {
57        match self.bits {
58            false => CHEN0_A::DISABLE,
59            true => CHEN0_A::ENABLE,
60        }
61    }
62    #[doc = "Checks if the value of the field is `DISABLE`"]
63    #[inline(always)]
64    pub fn is_disable(&self) -> bool {
65        *self == CHEN0_A::DISABLE
66    }
67    #[doc = "Checks if the value of the field is `ENABLE`"]
68    #[inline(always)]
69    pub fn is_enable(&self) -> bool {
70        *self == CHEN0_A::ENABLE
71    }
72}
73#[doc = "Field `CHEN0` writer - Enable subscription to IPC channel 0"]
74pub type CHEN0_W<'a, const O: u8> = crate::BitWriter<'a, u32, RECEIVE_CNF_SPEC, CHEN0_A, O>;
75impl<'a, const O: u8> CHEN0_W<'a, O> {
76    #[doc = "Disable events"]
77    #[inline(always)]
78    pub fn disable(self) -> &'a mut W {
79        self.variant(CHEN0_A::DISABLE)
80    }
81    #[doc = "Enable events"]
82    #[inline(always)]
83    pub fn enable(self) -> &'a mut W {
84        self.variant(CHEN0_A::ENABLE)
85    }
86}
87#[doc = "Field `CHEN1` reader - Enable subscription to IPC channel 1"]
88pub type CHEN1_R = crate::BitReader<CHEN1_A>;
89#[doc = "Enable subscription to IPC channel 1\n\nValue on reset: 0"]
90#[derive(Clone, Copy, Debug, PartialEq)]
91pub enum CHEN1_A {
92    #[doc = "0: Disable events"]
93    DISABLE = 0,
94    #[doc = "1: Enable events"]
95    ENABLE = 1,
96}
97impl From<CHEN1_A> for bool {
98    #[inline(always)]
99    fn from(variant: CHEN1_A) -> Self {
100        variant as u8 != 0
101    }
102}
103impl CHEN1_R {
104    #[doc = "Get enumerated values variant"]
105    #[inline(always)]
106    pub fn variant(&self) -> CHEN1_A {
107        match self.bits {
108            false => CHEN1_A::DISABLE,
109            true => CHEN1_A::ENABLE,
110        }
111    }
112    #[doc = "Checks if the value of the field is `DISABLE`"]
113    #[inline(always)]
114    pub fn is_disable(&self) -> bool {
115        *self == CHEN1_A::DISABLE
116    }
117    #[doc = "Checks if the value of the field is `ENABLE`"]
118    #[inline(always)]
119    pub fn is_enable(&self) -> bool {
120        *self == CHEN1_A::ENABLE
121    }
122}
123#[doc = "Field `CHEN1` writer - Enable subscription to IPC channel 1"]
124pub type CHEN1_W<'a, const O: u8> = crate::BitWriter<'a, u32, RECEIVE_CNF_SPEC, CHEN1_A, O>;
125impl<'a, const O: u8> CHEN1_W<'a, O> {
126    #[doc = "Disable events"]
127    #[inline(always)]
128    pub fn disable(self) -> &'a mut W {
129        self.variant(CHEN1_A::DISABLE)
130    }
131    #[doc = "Enable events"]
132    #[inline(always)]
133    pub fn enable(self) -> &'a mut W {
134        self.variant(CHEN1_A::ENABLE)
135    }
136}
137#[doc = "Field `CHEN2` reader - Enable subscription to IPC channel 2"]
138pub type CHEN2_R = crate::BitReader<CHEN2_A>;
139#[doc = "Enable subscription to IPC channel 2\n\nValue on reset: 0"]
140#[derive(Clone, Copy, Debug, PartialEq)]
141pub enum CHEN2_A {
142    #[doc = "0: Disable events"]
143    DISABLE = 0,
144    #[doc = "1: Enable events"]
145    ENABLE = 1,
146}
147impl From<CHEN2_A> for bool {
148    #[inline(always)]
149    fn from(variant: CHEN2_A) -> Self {
150        variant as u8 != 0
151    }
152}
153impl CHEN2_R {
154    #[doc = "Get enumerated values variant"]
155    #[inline(always)]
156    pub fn variant(&self) -> CHEN2_A {
157        match self.bits {
158            false => CHEN2_A::DISABLE,
159            true => CHEN2_A::ENABLE,
160        }
161    }
162    #[doc = "Checks if the value of the field is `DISABLE`"]
163    #[inline(always)]
164    pub fn is_disable(&self) -> bool {
165        *self == CHEN2_A::DISABLE
166    }
167    #[doc = "Checks if the value of the field is `ENABLE`"]
168    #[inline(always)]
169    pub fn is_enable(&self) -> bool {
170        *self == CHEN2_A::ENABLE
171    }
172}
173#[doc = "Field `CHEN2` writer - Enable subscription to IPC channel 2"]
174pub type CHEN2_W<'a, const O: u8> = crate::BitWriter<'a, u32, RECEIVE_CNF_SPEC, CHEN2_A, O>;
175impl<'a, const O: u8> CHEN2_W<'a, O> {
176    #[doc = "Disable events"]
177    #[inline(always)]
178    pub fn disable(self) -> &'a mut W {
179        self.variant(CHEN2_A::DISABLE)
180    }
181    #[doc = "Enable events"]
182    #[inline(always)]
183    pub fn enable(self) -> &'a mut W {
184        self.variant(CHEN2_A::ENABLE)
185    }
186}
187#[doc = "Field `CHEN3` reader - Enable subscription to IPC channel 3"]
188pub type CHEN3_R = crate::BitReader<CHEN3_A>;
189#[doc = "Enable subscription to IPC channel 3\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq)]
191pub enum CHEN3_A {
192    #[doc = "0: Disable events"]
193    DISABLE = 0,
194    #[doc = "1: Enable events"]
195    ENABLE = 1,
196}
197impl From<CHEN3_A> for bool {
198    #[inline(always)]
199    fn from(variant: CHEN3_A) -> Self {
200        variant as u8 != 0
201    }
202}
203impl CHEN3_R {
204    #[doc = "Get enumerated values variant"]
205    #[inline(always)]
206    pub fn variant(&self) -> CHEN3_A {
207        match self.bits {
208            false => CHEN3_A::DISABLE,
209            true => CHEN3_A::ENABLE,
210        }
211    }
212    #[doc = "Checks if the value of the field is `DISABLE`"]
213    #[inline(always)]
214    pub fn is_disable(&self) -> bool {
215        *self == CHEN3_A::DISABLE
216    }
217    #[doc = "Checks if the value of the field is `ENABLE`"]
218    #[inline(always)]
219    pub fn is_enable(&self) -> bool {
220        *self == CHEN3_A::ENABLE
221    }
222}
223#[doc = "Field `CHEN3` writer - Enable subscription to IPC channel 3"]
224pub type CHEN3_W<'a, const O: u8> = crate::BitWriter<'a, u32, RECEIVE_CNF_SPEC, CHEN3_A, O>;
225impl<'a, const O: u8> CHEN3_W<'a, O> {
226    #[doc = "Disable events"]
227    #[inline(always)]
228    pub fn disable(self) -> &'a mut W {
229        self.variant(CHEN3_A::DISABLE)
230    }
231    #[doc = "Enable events"]
232    #[inline(always)]
233    pub fn enable(self) -> &'a mut W {
234        self.variant(CHEN3_A::ENABLE)
235    }
236}
237#[doc = "Field `CHEN4` reader - Enable subscription to IPC channel 4"]
238pub type CHEN4_R = crate::BitReader<CHEN4_A>;
239#[doc = "Enable subscription to IPC channel 4\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq)]
241pub enum CHEN4_A {
242    #[doc = "0: Disable events"]
243    DISABLE = 0,
244    #[doc = "1: Enable events"]
245    ENABLE = 1,
246}
247impl From<CHEN4_A> for bool {
248    #[inline(always)]
249    fn from(variant: CHEN4_A) -> Self {
250        variant as u8 != 0
251    }
252}
253impl CHEN4_R {
254    #[doc = "Get enumerated values variant"]
255    #[inline(always)]
256    pub fn variant(&self) -> CHEN4_A {
257        match self.bits {
258            false => CHEN4_A::DISABLE,
259            true => CHEN4_A::ENABLE,
260        }
261    }
262    #[doc = "Checks if the value of the field is `DISABLE`"]
263    #[inline(always)]
264    pub fn is_disable(&self) -> bool {
265        *self == CHEN4_A::DISABLE
266    }
267    #[doc = "Checks if the value of the field is `ENABLE`"]
268    #[inline(always)]
269    pub fn is_enable(&self) -> bool {
270        *self == CHEN4_A::ENABLE
271    }
272}
273#[doc = "Field `CHEN4` writer - Enable subscription to IPC channel 4"]
274pub type CHEN4_W<'a, const O: u8> = crate::BitWriter<'a, u32, RECEIVE_CNF_SPEC, CHEN4_A, O>;
275impl<'a, const O: u8> CHEN4_W<'a, O> {
276    #[doc = "Disable events"]
277    #[inline(always)]
278    pub fn disable(self) -> &'a mut W {
279        self.variant(CHEN4_A::DISABLE)
280    }
281    #[doc = "Enable events"]
282    #[inline(always)]
283    pub fn enable(self) -> &'a mut W {
284        self.variant(CHEN4_A::ENABLE)
285    }
286}
287#[doc = "Field `CHEN5` reader - Enable subscription to IPC channel 5"]
288pub type CHEN5_R = crate::BitReader<CHEN5_A>;
289#[doc = "Enable subscription to IPC channel 5\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq)]
291pub enum CHEN5_A {
292    #[doc = "0: Disable events"]
293    DISABLE = 0,
294    #[doc = "1: Enable events"]
295    ENABLE = 1,
296}
297impl From<CHEN5_A> for bool {
298    #[inline(always)]
299    fn from(variant: CHEN5_A) -> Self {
300        variant as u8 != 0
301    }
302}
303impl CHEN5_R {
304    #[doc = "Get enumerated values variant"]
305    #[inline(always)]
306    pub fn variant(&self) -> CHEN5_A {
307        match self.bits {
308            false => CHEN5_A::DISABLE,
309            true => CHEN5_A::ENABLE,
310        }
311    }
312    #[doc = "Checks if the value of the field is `DISABLE`"]
313    #[inline(always)]
314    pub fn is_disable(&self) -> bool {
315        *self == CHEN5_A::DISABLE
316    }
317    #[doc = "Checks if the value of the field is `ENABLE`"]
318    #[inline(always)]
319    pub fn is_enable(&self) -> bool {
320        *self == CHEN5_A::ENABLE
321    }
322}
323#[doc = "Field `CHEN5` writer - Enable subscription to IPC channel 5"]
324pub type CHEN5_W<'a, const O: u8> = crate::BitWriter<'a, u32, RECEIVE_CNF_SPEC, CHEN5_A, O>;
325impl<'a, const O: u8> CHEN5_W<'a, O> {
326    #[doc = "Disable events"]
327    #[inline(always)]
328    pub fn disable(self) -> &'a mut W {
329        self.variant(CHEN5_A::DISABLE)
330    }
331    #[doc = "Enable events"]
332    #[inline(always)]
333    pub fn enable(self) -> &'a mut W {
334        self.variant(CHEN5_A::ENABLE)
335    }
336}
337#[doc = "Field `CHEN6` reader - Enable subscription to IPC channel 6"]
338pub type CHEN6_R = crate::BitReader<CHEN6_A>;
339#[doc = "Enable subscription to IPC channel 6\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq)]
341pub enum CHEN6_A {
342    #[doc = "0: Disable events"]
343    DISABLE = 0,
344    #[doc = "1: Enable events"]
345    ENABLE = 1,
346}
347impl From<CHEN6_A> for bool {
348    #[inline(always)]
349    fn from(variant: CHEN6_A) -> Self {
350        variant as u8 != 0
351    }
352}
353impl CHEN6_R {
354    #[doc = "Get enumerated values variant"]
355    #[inline(always)]
356    pub fn variant(&self) -> CHEN6_A {
357        match self.bits {
358            false => CHEN6_A::DISABLE,
359            true => CHEN6_A::ENABLE,
360        }
361    }
362    #[doc = "Checks if the value of the field is `DISABLE`"]
363    #[inline(always)]
364    pub fn is_disable(&self) -> bool {
365        *self == CHEN6_A::DISABLE
366    }
367    #[doc = "Checks if the value of the field is `ENABLE`"]
368    #[inline(always)]
369    pub fn is_enable(&self) -> bool {
370        *self == CHEN6_A::ENABLE
371    }
372}
373#[doc = "Field `CHEN6` writer - Enable subscription to IPC channel 6"]
374pub type CHEN6_W<'a, const O: u8> = crate::BitWriter<'a, u32, RECEIVE_CNF_SPEC, CHEN6_A, O>;
375impl<'a, const O: u8> CHEN6_W<'a, O> {
376    #[doc = "Disable events"]
377    #[inline(always)]
378    pub fn disable(self) -> &'a mut W {
379        self.variant(CHEN6_A::DISABLE)
380    }
381    #[doc = "Enable events"]
382    #[inline(always)]
383    pub fn enable(self) -> &'a mut W {
384        self.variant(CHEN6_A::ENABLE)
385    }
386}
387#[doc = "Field `CHEN7` reader - Enable subscription to IPC channel 7"]
388pub type CHEN7_R = crate::BitReader<CHEN7_A>;
389#[doc = "Enable subscription to IPC channel 7\n\nValue on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq)]
391pub enum CHEN7_A {
392    #[doc = "0: Disable events"]
393    DISABLE = 0,
394    #[doc = "1: Enable events"]
395    ENABLE = 1,
396}
397impl From<CHEN7_A> for bool {
398    #[inline(always)]
399    fn from(variant: CHEN7_A) -> Self {
400        variant as u8 != 0
401    }
402}
403impl CHEN7_R {
404    #[doc = "Get enumerated values variant"]
405    #[inline(always)]
406    pub fn variant(&self) -> CHEN7_A {
407        match self.bits {
408            false => CHEN7_A::DISABLE,
409            true => CHEN7_A::ENABLE,
410        }
411    }
412    #[doc = "Checks if the value of the field is `DISABLE`"]
413    #[inline(always)]
414    pub fn is_disable(&self) -> bool {
415        *self == CHEN7_A::DISABLE
416    }
417    #[doc = "Checks if the value of the field is `ENABLE`"]
418    #[inline(always)]
419    pub fn is_enable(&self) -> bool {
420        *self == CHEN7_A::ENABLE
421    }
422}
423#[doc = "Field `CHEN7` writer - Enable subscription to IPC channel 7"]
424pub type CHEN7_W<'a, const O: u8> = crate::BitWriter<'a, u32, RECEIVE_CNF_SPEC, CHEN7_A, O>;
425impl<'a, const O: u8> CHEN7_W<'a, O> {
426    #[doc = "Disable events"]
427    #[inline(always)]
428    pub fn disable(self) -> &'a mut W {
429        self.variant(CHEN7_A::DISABLE)
430    }
431    #[doc = "Enable events"]
432    #[inline(always)]
433    pub fn enable(self) -> &'a mut W {
434        self.variant(CHEN7_A::ENABLE)
435    }
436}
437#[doc = "Field `CHEN8` reader - Enable subscription to IPC channel 8"]
438pub type CHEN8_R = crate::BitReader<CHEN8_A>;
439#[doc = "Enable subscription to IPC channel 8\n\nValue on reset: 0"]
440#[derive(Clone, Copy, Debug, PartialEq)]
441pub enum CHEN8_A {
442    #[doc = "0: Disable events"]
443    DISABLE = 0,
444    #[doc = "1: Enable events"]
445    ENABLE = 1,
446}
447impl From<CHEN8_A> for bool {
448    #[inline(always)]
449    fn from(variant: CHEN8_A) -> Self {
450        variant as u8 != 0
451    }
452}
453impl CHEN8_R {
454    #[doc = "Get enumerated values variant"]
455    #[inline(always)]
456    pub fn variant(&self) -> CHEN8_A {
457        match self.bits {
458            false => CHEN8_A::DISABLE,
459            true => CHEN8_A::ENABLE,
460        }
461    }
462    #[doc = "Checks if the value of the field is `DISABLE`"]
463    #[inline(always)]
464    pub fn is_disable(&self) -> bool {
465        *self == CHEN8_A::DISABLE
466    }
467    #[doc = "Checks if the value of the field is `ENABLE`"]
468    #[inline(always)]
469    pub fn is_enable(&self) -> bool {
470        *self == CHEN8_A::ENABLE
471    }
472}
473#[doc = "Field `CHEN8` writer - Enable subscription to IPC channel 8"]
474pub type CHEN8_W<'a, const O: u8> = crate::BitWriter<'a, u32, RECEIVE_CNF_SPEC, CHEN8_A, O>;
475impl<'a, const O: u8> CHEN8_W<'a, O> {
476    #[doc = "Disable events"]
477    #[inline(always)]
478    pub fn disable(self) -> &'a mut W {
479        self.variant(CHEN8_A::DISABLE)
480    }
481    #[doc = "Enable events"]
482    #[inline(always)]
483    pub fn enable(self) -> &'a mut W {
484        self.variant(CHEN8_A::ENABLE)
485    }
486}
487#[doc = "Field `CHEN9` reader - Enable subscription to IPC channel 9"]
488pub type CHEN9_R = crate::BitReader<CHEN9_A>;
489#[doc = "Enable subscription to IPC channel 9\n\nValue on reset: 0"]
490#[derive(Clone, Copy, Debug, PartialEq)]
491pub enum CHEN9_A {
492    #[doc = "0: Disable events"]
493    DISABLE = 0,
494    #[doc = "1: Enable events"]
495    ENABLE = 1,
496}
497impl From<CHEN9_A> for bool {
498    #[inline(always)]
499    fn from(variant: CHEN9_A) -> Self {
500        variant as u8 != 0
501    }
502}
503impl CHEN9_R {
504    #[doc = "Get enumerated values variant"]
505    #[inline(always)]
506    pub fn variant(&self) -> CHEN9_A {
507        match self.bits {
508            false => CHEN9_A::DISABLE,
509            true => CHEN9_A::ENABLE,
510        }
511    }
512    #[doc = "Checks if the value of the field is `DISABLE`"]
513    #[inline(always)]
514    pub fn is_disable(&self) -> bool {
515        *self == CHEN9_A::DISABLE
516    }
517    #[doc = "Checks if the value of the field is `ENABLE`"]
518    #[inline(always)]
519    pub fn is_enable(&self) -> bool {
520        *self == CHEN9_A::ENABLE
521    }
522}
523#[doc = "Field `CHEN9` writer - Enable subscription to IPC channel 9"]
524pub type CHEN9_W<'a, const O: u8> = crate::BitWriter<'a, u32, RECEIVE_CNF_SPEC, CHEN9_A, O>;
525impl<'a, const O: u8> CHEN9_W<'a, O> {
526    #[doc = "Disable events"]
527    #[inline(always)]
528    pub fn disable(self) -> &'a mut W {
529        self.variant(CHEN9_A::DISABLE)
530    }
531    #[doc = "Enable events"]
532    #[inline(always)]
533    pub fn enable(self) -> &'a mut W {
534        self.variant(CHEN9_A::ENABLE)
535    }
536}
537#[doc = "Field `CHEN10` reader - Enable subscription to IPC channel 10"]
538pub type CHEN10_R = crate::BitReader<CHEN10_A>;
539#[doc = "Enable subscription to IPC channel 10\n\nValue on reset: 0"]
540#[derive(Clone, Copy, Debug, PartialEq)]
541pub enum CHEN10_A {
542    #[doc = "0: Disable events"]
543    DISABLE = 0,
544    #[doc = "1: Enable events"]
545    ENABLE = 1,
546}
547impl From<CHEN10_A> for bool {
548    #[inline(always)]
549    fn from(variant: CHEN10_A) -> Self {
550        variant as u8 != 0
551    }
552}
553impl CHEN10_R {
554    #[doc = "Get enumerated values variant"]
555    #[inline(always)]
556    pub fn variant(&self) -> CHEN10_A {
557        match self.bits {
558            false => CHEN10_A::DISABLE,
559            true => CHEN10_A::ENABLE,
560        }
561    }
562    #[doc = "Checks if the value of the field is `DISABLE`"]
563    #[inline(always)]
564    pub fn is_disable(&self) -> bool {
565        *self == CHEN10_A::DISABLE
566    }
567    #[doc = "Checks if the value of the field is `ENABLE`"]
568    #[inline(always)]
569    pub fn is_enable(&self) -> bool {
570        *self == CHEN10_A::ENABLE
571    }
572}
573#[doc = "Field `CHEN10` writer - Enable subscription to IPC channel 10"]
574pub type CHEN10_W<'a, const O: u8> = crate::BitWriter<'a, u32, RECEIVE_CNF_SPEC, CHEN10_A, O>;
575impl<'a, const O: u8> CHEN10_W<'a, O> {
576    #[doc = "Disable events"]
577    #[inline(always)]
578    pub fn disable(self) -> &'a mut W {
579        self.variant(CHEN10_A::DISABLE)
580    }
581    #[doc = "Enable events"]
582    #[inline(always)]
583    pub fn enable(self) -> &'a mut W {
584        self.variant(CHEN10_A::ENABLE)
585    }
586}
587#[doc = "Field `CHEN11` reader - Enable subscription to IPC channel 11"]
588pub type CHEN11_R = crate::BitReader<CHEN11_A>;
589#[doc = "Enable subscription to IPC channel 11\n\nValue on reset: 0"]
590#[derive(Clone, Copy, Debug, PartialEq)]
591pub enum CHEN11_A {
592    #[doc = "0: Disable events"]
593    DISABLE = 0,
594    #[doc = "1: Enable events"]
595    ENABLE = 1,
596}
597impl From<CHEN11_A> for bool {
598    #[inline(always)]
599    fn from(variant: CHEN11_A) -> Self {
600        variant as u8 != 0
601    }
602}
603impl CHEN11_R {
604    #[doc = "Get enumerated values variant"]
605    #[inline(always)]
606    pub fn variant(&self) -> CHEN11_A {
607        match self.bits {
608            false => CHEN11_A::DISABLE,
609            true => CHEN11_A::ENABLE,
610        }
611    }
612    #[doc = "Checks if the value of the field is `DISABLE`"]
613    #[inline(always)]
614    pub fn is_disable(&self) -> bool {
615        *self == CHEN11_A::DISABLE
616    }
617    #[doc = "Checks if the value of the field is `ENABLE`"]
618    #[inline(always)]
619    pub fn is_enable(&self) -> bool {
620        *self == CHEN11_A::ENABLE
621    }
622}
623#[doc = "Field `CHEN11` writer - Enable subscription to IPC channel 11"]
624pub type CHEN11_W<'a, const O: u8> = crate::BitWriter<'a, u32, RECEIVE_CNF_SPEC, CHEN11_A, O>;
625impl<'a, const O: u8> CHEN11_W<'a, O> {
626    #[doc = "Disable events"]
627    #[inline(always)]
628    pub fn disable(self) -> &'a mut W {
629        self.variant(CHEN11_A::DISABLE)
630    }
631    #[doc = "Enable events"]
632    #[inline(always)]
633    pub fn enable(self) -> &'a mut W {
634        self.variant(CHEN11_A::ENABLE)
635    }
636}
637#[doc = "Field `CHEN12` reader - Enable subscription to IPC channel 12"]
638pub type CHEN12_R = crate::BitReader<CHEN12_A>;
639#[doc = "Enable subscription to IPC channel 12\n\nValue on reset: 0"]
640#[derive(Clone, Copy, Debug, PartialEq)]
641pub enum CHEN12_A {
642    #[doc = "0: Disable events"]
643    DISABLE = 0,
644    #[doc = "1: Enable events"]
645    ENABLE = 1,
646}
647impl From<CHEN12_A> for bool {
648    #[inline(always)]
649    fn from(variant: CHEN12_A) -> Self {
650        variant as u8 != 0
651    }
652}
653impl CHEN12_R {
654    #[doc = "Get enumerated values variant"]
655    #[inline(always)]
656    pub fn variant(&self) -> CHEN12_A {
657        match self.bits {
658            false => CHEN12_A::DISABLE,
659            true => CHEN12_A::ENABLE,
660        }
661    }
662    #[doc = "Checks if the value of the field is `DISABLE`"]
663    #[inline(always)]
664    pub fn is_disable(&self) -> bool {
665        *self == CHEN12_A::DISABLE
666    }
667    #[doc = "Checks if the value of the field is `ENABLE`"]
668    #[inline(always)]
669    pub fn is_enable(&self) -> bool {
670        *self == CHEN12_A::ENABLE
671    }
672}
673#[doc = "Field `CHEN12` writer - Enable subscription to IPC channel 12"]
674pub type CHEN12_W<'a, const O: u8> = crate::BitWriter<'a, u32, RECEIVE_CNF_SPEC, CHEN12_A, O>;
675impl<'a, const O: u8> CHEN12_W<'a, O> {
676    #[doc = "Disable events"]
677    #[inline(always)]
678    pub fn disable(self) -> &'a mut W {
679        self.variant(CHEN12_A::DISABLE)
680    }
681    #[doc = "Enable events"]
682    #[inline(always)]
683    pub fn enable(self) -> &'a mut W {
684        self.variant(CHEN12_A::ENABLE)
685    }
686}
687#[doc = "Field `CHEN13` reader - Enable subscription to IPC channel 13"]
688pub type CHEN13_R = crate::BitReader<CHEN13_A>;
689#[doc = "Enable subscription to IPC channel 13\n\nValue on reset: 0"]
690#[derive(Clone, Copy, Debug, PartialEq)]
691pub enum CHEN13_A {
692    #[doc = "0: Disable events"]
693    DISABLE = 0,
694    #[doc = "1: Enable events"]
695    ENABLE = 1,
696}
697impl From<CHEN13_A> for bool {
698    #[inline(always)]
699    fn from(variant: CHEN13_A) -> Self {
700        variant as u8 != 0
701    }
702}
703impl CHEN13_R {
704    #[doc = "Get enumerated values variant"]
705    #[inline(always)]
706    pub fn variant(&self) -> CHEN13_A {
707        match self.bits {
708            false => CHEN13_A::DISABLE,
709            true => CHEN13_A::ENABLE,
710        }
711    }
712    #[doc = "Checks if the value of the field is `DISABLE`"]
713    #[inline(always)]
714    pub fn is_disable(&self) -> bool {
715        *self == CHEN13_A::DISABLE
716    }
717    #[doc = "Checks if the value of the field is `ENABLE`"]
718    #[inline(always)]
719    pub fn is_enable(&self) -> bool {
720        *self == CHEN13_A::ENABLE
721    }
722}
723#[doc = "Field `CHEN13` writer - Enable subscription to IPC channel 13"]
724pub type CHEN13_W<'a, const O: u8> = crate::BitWriter<'a, u32, RECEIVE_CNF_SPEC, CHEN13_A, O>;
725impl<'a, const O: u8> CHEN13_W<'a, O> {
726    #[doc = "Disable events"]
727    #[inline(always)]
728    pub fn disable(self) -> &'a mut W {
729        self.variant(CHEN13_A::DISABLE)
730    }
731    #[doc = "Enable events"]
732    #[inline(always)]
733    pub fn enable(self) -> &'a mut W {
734        self.variant(CHEN13_A::ENABLE)
735    }
736}
737#[doc = "Field `CHEN14` reader - Enable subscription to IPC channel 14"]
738pub type CHEN14_R = crate::BitReader<CHEN14_A>;
739#[doc = "Enable subscription to IPC channel 14\n\nValue on reset: 0"]
740#[derive(Clone, Copy, Debug, PartialEq)]
741pub enum CHEN14_A {
742    #[doc = "0: Disable events"]
743    DISABLE = 0,
744    #[doc = "1: Enable events"]
745    ENABLE = 1,
746}
747impl From<CHEN14_A> for bool {
748    #[inline(always)]
749    fn from(variant: CHEN14_A) -> Self {
750        variant as u8 != 0
751    }
752}
753impl CHEN14_R {
754    #[doc = "Get enumerated values variant"]
755    #[inline(always)]
756    pub fn variant(&self) -> CHEN14_A {
757        match self.bits {
758            false => CHEN14_A::DISABLE,
759            true => CHEN14_A::ENABLE,
760        }
761    }
762    #[doc = "Checks if the value of the field is `DISABLE`"]
763    #[inline(always)]
764    pub fn is_disable(&self) -> bool {
765        *self == CHEN14_A::DISABLE
766    }
767    #[doc = "Checks if the value of the field is `ENABLE`"]
768    #[inline(always)]
769    pub fn is_enable(&self) -> bool {
770        *self == CHEN14_A::ENABLE
771    }
772}
773#[doc = "Field `CHEN14` writer - Enable subscription to IPC channel 14"]
774pub type CHEN14_W<'a, const O: u8> = crate::BitWriter<'a, u32, RECEIVE_CNF_SPEC, CHEN14_A, O>;
775impl<'a, const O: u8> CHEN14_W<'a, O> {
776    #[doc = "Disable events"]
777    #[inline(always)]
778    pub fn disable(self) -> &'a mut W {
779        self.variant(CHEN14_A::DISABLE)
780    }
781    #[doc = "Enable events"]
782    #[inline(always)]
783    pub fn enable(self) -> &'a mut W {
784        self.variant(CHEN14_A::ENABLE)
785    }
786}
787#[doc = "Field `CHEN15` reader - Enable subscription to IPC channel 15"]
788pub type CHEN15_R = crate::BitReader<CHEN15_A>;
789#[doc = "Enable subscription to IPC channel 15\n\nValue on reset: 0"]
790#[derive(Clone, Copy, Debug, PartialEq)]
791pub enum CHEN15_A {
792    #[doc = "0: Disable events"]
793    DISABLE = 0,
794    #[doc = "1: Enable events"]
795    ENABLE = 1,
796}
797impl From<CHEN15_A> for bool {
798    #[inline(always)]
799    fn from(variant: CHEN15_A) -> Self {
800        variant as u8 != 0
801    }
802}
803impl CHEN15_R {
804    #[doc = "Get enumerated values variant"]
805    #[inline(always)]
806    pub fn variant(&self) -> CHEN15_A {
807        match self.bits {
808            false => CHEN15_A::DISABLE,
809            true => CHEN15_A::ENABLE,
810        }
811    }
812    #[doc = "Checks if the value of the field is `DISABLE`"]
813    #[inline(always)]
814    pub fn is_disable(&self) -> bool {
815        *self == CHEN15_A::DISABLE
816    }
817    #[doc = "Checks if the value of the field is `ENABLE`"]
818    #[inline(always)]
819    pub fn is_enable(&self) -> bool {
820        *self == CHEN15_A::ENABLE
821    }
822}
823#[doc = "Field `CHEN15` writer - Enable subscription to IPC channel 15"]
824pub type CHEN15_W<'a, const O: u8> = crate::BitWriter<'a, u32, RECEIVE_CNF_SPEC, CHEN15_A, O>;
825impl<'a, const O: u8> CHEN15_W<'a, O> {
826    #[doc = "Disable events"]
827    #[inline(always)]
828    pub fn disable(self) -> &'a mut W {
829        self.variant(CHEN15_A::DISABLE)
830    }
831    #[doc = "Enable events"]
832    #[inline(always)]
833    pub fn enable(self) -> &'a mut W {
834        self.variant(CHEN15_A::ENABLE)
835    }
836}
837impl R {
838    #[doc = "Bit 0 - Enable subscription to IPC channel 0"]
839    #[inline(always)]
840    pub fn chen0(&self) -> CHEN0_R {
841        CHEN0_R::new((self.bits & 1) != 0)
842    }
843    #[doc = "Bit 1 - Enable subscription to IPC channel 1"]
844    #[inline(always)]
845    pub fn chen1(&self) -> CHEN1_R {
846        CHEN1_R::new(((self.bits >> 1) & 1) != 0)
847    }
848    #[doc = "Bit 2 - Enable subscription to IPC channel 2"]
849    #[inline(always)]
850    pub fn chen2(&self) -> CHEN2_R {
851        CHEN2_R::new(((self.bits >> 2) & 1) != 0)
852    }
853    #[doc = "Bit 3 - Enable subscription to IPC channel 3"]
854    #[inline(always)]
855    pub fn chen3(&self) -> CHEN3_R {
856        CHEN3_R::new(((self.bits >> 3) & 1) != 0)
857    }
858    #[doc = "Bit 4 - Enable subscription to IPC channel 4"]
859    #[inline(always)]
860    pub fn chen4(&self) -> CHEN4_R {
861        CHEN4_R::new(((self.bits >> 4) & 1) != 0)
862    }
863    #[doc = "Bit 5 - Enable subscription to IPC channel 5"]
864    #[inline(always)]
865    pub fn chen5(&self) -> CHEN5_R {
866        CHEN5_R::new(((self.bits >> 5) & 1) != 0)
867    }
868    #[doc = "Bit 6 - Enable subscription to IPC channel 6"]
869    #[inline(always)]
870    pub fn chen6(&self) -> CHEN6_R {
871        CHEN6_R::new(((self.bits >> 6) & 1) != 0)
872    }
873    #[doc = "Bit 7 - Enable subscription to IPC channel 7"]
874    #[inline(always)]
875    pub fn chen7(&self) -> CHEN7_R {
876        CHEN7_R::new(((self.bits >> 7) & 1) != 0)
877    }
878    #[doc = "Bit 8 - Enable subscription to IPC channel 8"]
879    #[inline(always)]
880    pub fn chen8(&self) -> CHEN8_R {
881        CHEN8_R::new(((self.bits >> 8) & 1) != 0)
882    }
883    #[doc = "Bit 9 - Enable subscription to IPC channel 9"]
884    #[inline(always)]
885    pub fn chen9(&self) -> CHEN9_R {
886        CHEN9_R::new(((self.bits >> 9) & 1) != 0)
887    }
888    #[doc = "Bit 10 - Enable subscription to IPC channel 10"]
889    #[inline(always)]
890    pub fn chen10(&self) -> CHEN10_R {
891        CHEN10_R::new(((self.bits >> 10) & 1) != 0)
892    }
893    #[doc = "Bit 11 - Enable subscription to IPC channel 11"]
894    #[inline(always)]
895    pub fn chen11(&self) -> CHEN11_R {
896        CHEN11_R::new(((self.bits >> 11) & 1) != 0)
897    }
898    #[doc = "Bit 12 - Enable subscription to IPC channel 12"]
899    #[inline(always)]
900    pub fn chen12(&self) -> CHEN12_R {
901        CHEN12_R::new(((self.bits >> 12) & 1) != 0)
902    }
903    #[doc = "Bit 13 - Enable subscription to IPC channel 13"]
904    #[inline(always)]
905    pub fn chen13(&self) -> CHEN13_R {
906        CHEN13_R::new(((self.bits >> 13) & 1) != 0)
907    }
908    #[doc = "Bit 14 - Enable subscription to IPC channel 14"]
909    #[inline(always)]
910    pub fn chen14(&self) -> CHEN14_R {
911        CHEN14_R::new(((self.bits >> 14) & 1) != 0)
912    }
913    #[doc = "Bit 15 - Enable subscription to IPC channel 15"]
914    #[inline(always)]
915    pub fn chen15(&self) -> CHEN15_R {
916        CHEN15_R::new(((self.bits >> 15) & 1) != 0)
917    }
918}
919impl W {
920    #[doc = "Bit 0 - Enable subscription to IPC channel 0"]
921    #[inline(always)]
922    pub fn chen0(&mut self) -> CHEN0_W<0> {
923        CHEN0_W::new(self)
924    }
925    #[doc = "Bit 1 - Enable subscription to IPC channel 1"]
926    #[inline(always)]
927    pub fn chen1(&mut self) -> CHEN1_W<1> {
928        CHEN1_W::new(self)
929    }
930    #[doc = "Bit 2 - Enable subscription to IPC channel 2"]
931    #[inline(always)]
932    pub fn chen2(&mut self) -> CHEN2_W<2> {
933        CHEN2_W::new(self)
934    }
935    #[doc = "Bit 3 - Enable subscription to IPC channel 3"]
936    #[inline(always)]
937    pub fn chen3(&mut self) -> CHEN3_W<3> {
938        CHEN3_W::new(self)
939    }
940    #[doc = "Bit 4 - Enable subscription to IPC channel 4"]
941    #[inline(always)]
942    pub fn chen4(&mut self) -> CHEN4_W<4> {
943        CHEN4_W::new(self)
944    }
945    #[doc = "Bit 5 - Enable subscription to IPC channel 5"]
946    #[inline(always)]
947    pub fn chen5(&mut self) -> CHEN5_W<5> {
948        CHEN5_W::new(self)
949    }
950    #[doc = "Bit 6 - Enable subscription to IPC channel 6"]
951    #[inline(always)]
952    pub fn chen6(&mut self) -> CHEN6_W<6> {
953        CHEN6_W::new(self)
954    }
955    #[doc = "Bit 7 - Enable subscription to IPC channel 7"]
956    #[inline(always)]
957    pub fn chen7(&mut self) -> CHEN7_W<7> {
958        CHEN7_W::new(self)
959    }
960    #[doc = "Bit 8 - Enable subscription to IPC channel 8"]
961    #[inline(always)]
962    pub fn chen8(&mut self) -> CHEN8_W<8> {
963        CHEN8_W::new(self)
964    }
965    #[doc = "Bit 9 - Enable subscription to IPC channel 9"]
966    #[inline(always)]
967    pub fn chen9(&mut self) -> CHEN9_W<9> {
968        CHEN9_W::new(self)
969    }
970    #[doc = "Bit 10 - Enable subscription to IPC channel 10"]
971    #[inline(always)]
972    pub fn chen10(&mut self) -> CHEN10_W<10> {
973        CHEN10_W::new(self)
974    }
975    #[doc = "Bit 11 - Enable subscription to IPC channel 11"]
976    #[inline(always)]
977    pub fn chen11(&mut self) -> CHEN11_W<11> {
978        CHEN11_W::new(self)
979    }
980    #[doc = "Bit 12 - Enable subscription to IPC channel 12"]
981    #[inline(always)]
982    pub fn chen12(&mut self) -> CHEN12_W<12> {
983        CHEN12_W::new(self)
984    }
985    #[doc = "Bit 13 - Enable subscription to IPC channel 13"]
986    #[inline(always)]
987    pub fn chen13(&mut self) -> CHEN13_W<13> {
988        CHEN13_W::new(self)
989    }
990    #[doc = "Bit 14 - Enable subscription to IPC channel 14"]
991    #[inline(always)]
992    pub fn chen14(&mut self) -> CHEN14_W<14> {
993        CHEN14_W::new(self)
994    }
995    #[doc = "Bit 15 - Enable subscription to IPC channel 15"]
996    #[inline(always)]
997    pub fn chen15(&mut self) -> CHEN15_W<15> {
998        CHEN15_W::new(self)
999    }
1000    #[doc = "Writes raw bits to the register."]
1001    #[inline(always)]
1002    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1003        self.0.bits(bits);
1004        self
1005    }
1006}
1007#[doc = "Description collection: Receive event configuration for EVENTS_RECEIVE\\[n\\]\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 [receive_cnf](index.html) module"]
1008pub struct RECEIVE_CNF_SPEC;
1009impl crate::RegisterSpec for RECEIVE_CNF_SPEC {
1010    type Ux = u32;
1011}
1012#[doc = "`read()` method returns [receive_cnf::R](R) reader structure"]
1013impl crate::Readable for RECEIVE_CNF_SPEC {
1014    type Reader = R;
1015}
1016#[doc = "`write(|w| ..)` method takes [receive_cnf::W](W) writer structure"]
1017impl crate::Writable for RECEIVE_CNF_SPEC {
1018    type Writer = W;
1019}
1020#[doc = "`reset()` method sets RECEIVE_CNF[%s]
1021to value 0"]
1022impl crate::Resettable for RECEIVE_CNF_SPEC {
1023    #[inline(always)]
1024    fn reset_value() -> Self::Ux {
1025        0
1026    }
1027}