1#[doc = "Register `PERM` reader"]
2pub struct R(crate::R<PERM_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<PERM_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<PERM_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<PERM_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `PERM` writer"]
17pub struct W(crate::W<PERM_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<PERM_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<PERM_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<PERM_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `CHANNEL0` reader - Select secure attribute"]
38pub type CHANNEL0_R = crate::BitReader<CHANNEL0_A>;
39#[doc = "Select secure attribute\n\nValue on reset: 1"]
40#[derive(Clone, Copy, Debug, PartialEq)]
41pub enum CHANNEL0_A {
42 #[doc = "1: Channel 0 has its secure attribute set"]
43 SECURE = 1,
44 #[doc = "0: Channel 0 has its non-secure attribute set"]
45 NON_SECURE = 0,
46}
47impl From<CHANNEL0_A> for bool {
48 #[inline(always)]
49 fn from(variant: CHANNEL0_A) -> Self {
50 variant as u8 != 0
51 }
52}
53impl CHANNEL0_R {
54 #[doc = "Get enumerated values variant"]
55 #[inline(always)]
56 pub fn variant(&self) -> CHANNEL0_A {
57 match self.bits {
58 true => CHANNEL0_A::SECURE,
59 false => CHANNEL0_A::NON_SECURE,
60 }
61 }
62 #[doc = "Checks if the value of the field is `SECURE`"]
63 #[inline(always)]
64 pub fn is_secure(&self) -> bool {
65 *self == CHANNEL0_A::SECURE
66 }
67 #[doc = "Checks if the value of the field is `NON_SECURE`"]
68 #[inline(always)]
69 pub fn is_non_secure(&self) -> bool {
70 *self == CHANNEL0_A::NON_SECURE
71 }
72}
73#[doc = "Field `CHANNEL0` writer - Select secure attribute"]
74pub type CHANNEL0_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL0_A, O>;
75impl<'a, const O: u8> CHANNEL0_W<'a, O> {
76 #[doc = "Channel 0 has its secure attribute set"]
77 #[inline(always)]
78 pub fn secure(self) -> &'a mut W {
79 self.variant(CHANNEL0_A::SECURE)
80 }
81 #[doc = "Channel 0 has its non-secure attribute set"]
82 #[inline(always)]
83 pub fn non_secure(self) -> &'a mut W {
84 self.variant(CHANNEL0_A::NON_SECURE)
85 }
86}
87#[doc = "Field `CHANNEL1` reader - Select secure attribute"]
88pub type CHANNEL1_R = crate::BitReader<CHANNEL1_A>;
89#[doc = "Select secure attribute\n\nValue on reset: 1"]
90#[derive(Clone, Copy, Debug, PartialEq)]
91pub enum CHANNEL1_A {
92 #[doc = "1: Channel 1 has its secure attribute set"]
93 SECURE = 1,
94 #[doc = "0: Channel 1 has its non-secure attribute set"]
95 NON_SECURE = 0,
96}
97impl From<CHANNEL1_A> for bool {
98 #[inline(always)]
99 fn from(variant: CHANNEL1_A) -> Self {
100 variant as u8 != 0
101 }
102}
103impl CHANNEL1_R {
104 #[doc = "Get enumerated values variant"]
105 #[inline(always)]
106 pub fn variant(&self) -> CHANNEL1_A {
107 match self.bits {
108 true => CHANNEL1_A::SECURE,
109 false => CHANNEL1_A::NON_SECURE,
110 }
111 }
112 #[doc = "Checks if the value of the field is `SECURE`"]
113 #[inline(always)]
114 pub fn is_secure(&self) -> bool {
115 *self == CHANNEL1_A::SECURE
116 }
117 #[doc = "Checks if the value of the field is `NON_SECURE`"]
118 #[inline(always)]
119 pub fn is_non_secure(&self) -> bool {
120 *self == CHANNEL1_A::NON_SECURE
121 }
122}
123#[doc = "Field `CHANNEL1` writer - Select secure attribute"]
124pub type CHANNEL1_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL1_A, O>;
125impl<'a, const O: u8> CHANNEL1_W<'a, O> {
126 #[doc = "Channel 1 has its secure attribute set"]
127 #[inline(always)]
128 pub fn secure(self) -> &'a mut W {
129 self.variant(CHANNEL1_A::SECURE)
130 }
131 #[doc = "Channel 1 has its non-secure attribute set"]
132 #[inline(always)]
133 pub fn non_secure(self) -> &'a mut W {
134 self.variant(CHANNEL1_A::NON_SECURE)
135 }
136}
137#[doc = "Field `CHANNEL2` reader - Select secure attribute"]
138pub type CHANNEL2_R = crate::BitReader<CHANNEL2_A>;
139#[doc = "Select secure attribute\n\nValue on reset: 1"]
140#[derive(Clone, Copy, Debug, PartialEq)]
141pub enum CHANNEL2_A {
142 #[doc = "1: Channel 2 has its secure attribute set"]
143 SECURE = 1,
144 #[doc = "0: Channel 2 has its non-secure attribute set"]
145 NON_SECURE = 0,
146}
147impl From<CHANNEL2_A> for bool {
148 #[inline(always)]
149 fn from(variant: CHANNEL2_A) -> Self {
150 variant as u8 != 0
151 }
152}
153impl CHANNEL2_R {
154 #[doc = "Get enumerated values variant"]
155 #[inline(always)]
156 pub fn variant(&self) -> CHANNEL2_A {
157 match self.bits {
158 true => CHANNEL2_A::SECURE,
159 false => CHANNEL2_A::NON_SECURE,
160 }
161 }
162 #[doc = "Checks if the value of the field is `SECURE`"]
163 #[inline(always)]
164 pub fn is_secure(&self) -> bool {
165 *self == CHANNEL2_A::SECURE
166 }
167 #[doc = "Checks if the value of the field is `NON_SECURE`"]
168 #[inline(always)]
169 pub fn is_non_secure(&self) -> bool {
170 *self == CHANNEL2_A::NON_SECURE
171 }
172}
173#[doc = "Field `CHANNEL2` writer - Select secure attribute"]
174pub type CHANNEL2_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL2_A, O>;
175impl<'a, const O: u8> CHANNEL2_W<'a, O> {
176 #[doc = "Channel 2 has its secure attribute set"]
177 #[inline(always)]
178 pub fn secure(self) -> &'a mut W {
179 self.variant(CHANNEL2_A::SECURE)
180 }
181 #[doc = "Channel 2 has its non-secure attribute set"]
182 #[inline(always)]
183 pub fn non_secure(self) -> &'a mut W {
184 self.variant(CHANNEL2_A::NON_SECURE)
185 }
186}
187#[doc = "Field `CHANNEL3` reader - Select secure attribute"]
188pub type CHANNEL3_R = crate::BitReader<CHANNEL3_A>;
189#[doc = "Select secure attribute\n\nValue on reset: 1"]
190#[derive(Clone, Copy, Debug, PartialEq)]
191pub enum CHANNEL3_A {
192 #[doc = "1: Channel 3 has its secure attribute set"]
193 SECURE = 1,
194 #[doc = "0: Channel 3 has its non-secure attribute set"]
195 NON_SECURE = 0,
196}
197impl From<CHANNEL3_A> for bool {
198 #[inline(always)]
199 fn from(variant: CHANNEL3_A) -> Self {
200 variant as u8 != 0
201 }
202}
203impl CHANNEL3_R {
204 #[doc = "Get enumerated values variant"]
205 #[inline(always)]
206 pub fn variant(&self) -> CHANNEL3_A {
207 match self.bits {
208 true => CHANNEL3_A::SECURE,
209 false => CHANNEL3_A::NON_SECURE,
210 }
211 }
212 #[doc = "Checks if the value of the field is `SECURE`"]
213 #[inline(always)]
214 pub fn is_secure(&self) -> bool {
215 *self == CHANNEL3_A::SECURE
216 }
217 #[doc = "Checks if the value of the field is `NON_SECURE`"]
218 #[inline(always)]
219 pub fn is_non_secure(&self) -> bool {
220 *self == CHANNEL3_A::NON_SECURE
221 }
222}
223#[doc = "Field `CHANNEL3` writer - Select secure attribute"]
224pub type CHANNEL3_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL3_A, O>;
225impl<'a, const O: u8> CHANNEL3_W<'a, O> {
226 #[doc = "Channel 3 has its secure attribute set"]
227 #[inline(always)]
228 pub fn secure(self) -> &'a mut W {
229 self.variant(CHANNEL3_A::SECURE)
230 }
231 #[doc = "Channel 3 has its non-secure attribute set"]
232 #[inline(always)]
233 pub fn non_secure(self) -> &'a mut W {
234 self.variant(CHANNEL3_A::NON_SECURE)
235 }
236}
237#[doc = "Field `CHANNEL4` reader - Select secure attribute"]
238pub type CHANNEL4_R = crate::BitReader<CHANNEL4_A>;
239#[doc = "Select secure attribute\n\nValue on reset: 1"]
240#[derive(Clone, Copy, Debug, PartialEq)]
241pub enum CHANNEL4_A {
242 #[doc = "1: Channel 4 has its secure attribute set"]
243 SECURE = 1,
244 #[doc = "0: Channel 4 has its non-secure attribute set"]
245 NON_SECURE = 0,
246}
247impl From<CHANNEL4_A> for bool {
248 #[inline(always)]
249 fn from(variant: CHANNEL4_A) -> Self {
250 variant as u8 != 0
251 }
252}
253impl CHANNEL4_R {
254 #[doc = "Get enumerated values variant"]
255 #[inline(always)]
256 pub fn variant(&self) -> CHANNEL4_A {
257 match self.bits {
258 true => CHANNEL4_A::SECURE,
259 false => CHANNEL4_A::NON_SECURE,
260 }
261 }
262 #[doc = "Checks if the value of the field is `SECURE`"]
263 #[inline(always)]
264 pub fn is_secure(&self) -> bool {
265 *self == CHANNEL4_A::SECURE
266 }
267 #[doc = "Checks if the value of the field is `NON_SECURE`"]
268 #[inline(always)]
269 pub fn is_non_secure(&self) -> bool {
270 *self == CHANNEL4_A::NON_SECURE
271 }
272}
273#[doc = "Field `CHANNEL4` writer - Select secure attribute"]
274pub type CHANNEL4_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL4_A, O>;
275impl<'a, const O: u8> CHANNEL4_W<'a, O> {
276 #[doc = "Channel 4 has its secure attribute set"]
277 #[inline(always)]
278 pub fn secure(self) -> &'a mut W {
279 self.variant(CHANNEL4_A::SECURE)
280 }
281 #[doc = "Channel 4 has its non-secure attribute set"]
282 #[inline(always)]
283 pub fn non_secure(self) -> &'a mut W {
284 self.variant(CHANNEL4_A::NON_SECURE)
285 }
286}
287#[doc = "Field `CHANNEL5` reader - Select secure attribute"]
288pub type CHANNEL5_R = crate::BitReader<CHANNEL5_A>;
289#[doc = "Select secure attribute\n\nValue on reset: 1"]
290#[derive(Clone, Copy, Debug, PartialEq)]
291pub enum CHANNEL5_A {
292 #[doc = "1: Channel 5 has its secure attribute set"]
293 SECURE = 1,
294 #[doc = "0: Channel 5 has its non-secure attribute set"]
295 NON_SECURE = 0,
296}
297impl From<CHANNEL5_A> for bool {
298 #[inline(always)]
299 fn from(variant: CHANNEL5_A) -> Self {
300 variant as u8 != 0
301 }
302}
303impl CHANNEL5_R {
304 #[doc = "Get enumerated values variant"]
305 #[inline(always)]
306 pub fn variant(&self) -> CHANNEL5_A {
307 match self.bits {
308 true => CHANNEL5_A::SECURE,
309 false => CHANNEL5_A::NON_SECURE,
310 }
311 }
312 #[doc = "Checks if the value of the field is `SECURE`"]
313 #[inline(always)]
314 pub fn is_secure(&self) -> bool {
315 *self == CHANNEL5_A::SECURE
316 }
317 #[doc = "Checks if the value of the field is `NON_SECURE`"]
318 #[inline(always)]
319 pub fn is_non_secure(&self) -> bool {
320 *self == CHANNEL5_A::NON_SECURE
321 }
322}
323#[doc = "Field `CHANNEL5` writer - Select secure attribute"]
324pub type CHANNEL5_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL5_A, O>;
325impl<'a, const O: u8> CHANNEL5_W<'a, O> {
326 #[doc = "Channel 5 has its secure attribute set"]
327 #[inline(always)]
328 pub fn secure(self) -> &'a mut W {
329 self.variant(CHANNEL5_A::SECURE)
330 }
331 #[doc = "Channel 5 has its non-secure attribute set"]
332 #[inline(always)]
333 pub fn non_secure(self) -> &'a mut W {
334 self.variant(CHANNEL5_A::NON_SECURE)
335 }
336}
337#[doc = "Field `CHANNEL6` reader - Select secure attribute"]
338pub type CHANNEL6_R = crate::BitReader<CHANNEL6_A>;
339#[doc = "Select secure attribute\n\nValue on reset: 1"]
340#[derive(Clone, Copy, Debug, PartialEq)]
341pub enum CHANNEL6_A {
342 #[doc = "1: Channel 6 has its secure attribute set"]
343 SECURE = 1,
344 #[doc = "0: Channel 6 has its non-secure attribute set"]
345 NON_SECURE = 0,
346}
347impl From<CHANNEL6_A> for bool {
348 #[inline(always)]
349 fn from(variant: CHANNEL6_A) -> Self {
350 variant as u8 != 0
351 }
352}
353impl CHANNEL6_R {
354 #[doc = "Get enumerated values variant"]
355 #[inline(always)]
356 pub fn variant(&self) -> CHANNEL6_A {
357 match self.bits {
358 true => CHANNEL6_A::SECURE,
359 false => CHANNEL6_A::NON_SECURE,
360 }
361 }
362 #[doc = "Checks if the value of the field is `SECURE`"]
363 #[inline(always)]
364 pub fn is_secure(&self) -> bool {
365 *self == CHANNEL6_A::SECURE
366 }
367 #[doc = "Checks if the value of the field is `NON_SECURE`"]
368 #[inline(always)]
369 pub fn is_non_secure(&self) -> bool {
370 *self == CHANNEL6_A::NON_SECURE
371 }
372}
373#[doc = "Field `CHANNEL6` writer - Select secure attribute"]
374pub type CHANNEL6_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL6_A, O>;
375impl<'a, const O: u8> CHANNEL6_W<'a, O> {
376 #[doc = "Channel 6 has its secure attribute set"]
377 #[inline(always)]
378 pub fn secure(self) -> &'a mut W {
379 self.variant(CHANNEL6_A::SECURE)
380 }
381 #[doc = "Channel 6 has its non-secure attribute set"]
382 #[inline(always)]
383 pub fn non_secure(self) -> &'a mut W {
384 self.variant(CHANNEL6_A::NON_SECURE)
385 }
386}
387#[doc = "Field `CHANNEL7` reader - Select secure attribute"]
388pub type CHANNEL7_R = crate::BitReader<CHANNEL7_A>;
389#[doc = "Select secure attribute\n\nValue on reset: 1"]
390#[derive(Clone, Copy, Debug, PartialEq)]
391pub enum CHANNEL7_A {
392 #[doc = "1: Channel 7 has its secure attribute set"]
393 SECURE = 1,
394 #[doc = "0: Channel 7 has its non-secure attribute set"]
395 NON_SECURE = 0,
396}
397impl From<CHANNEL7_A> for bool {
398 #[inline(always)]
399 fn from(variant: CHANNEL7_A) -> Self {
400 variant as u8 != 0
401 }
402}
403impl CHANNEL7_R {
404 #[doc = "Get enumerated values variant"]
405 #[inline(always)]
406 pub fn variant(&self) -> CHANNEL7_A {
407 match self.bits {
408 true => CHANNEL7_A::SECURE,
409 false => CHANNEL7_A::NON_SECURE,
410 }
411 }
412 #[doc = "Checks if the value of the field is `SECURE`"]
413 #[inline(always)]
414 pub fn is_secure(&self) -> bool {
415 *self == CHANNEL7_A::SECURE
416 }
417 #[doc = "Checks if the value of the field is `NON_SECURE`"]
418 #[inline(always)]
419 pub fn is_non_secure(&self) -> bool {
420 *self == CHANNEL7_A::NON_SECURE
421 }
422}
423#[doc = "Field `CHANNEL7` writer - Select secure attribute"]
424pub type CHANNEL7_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL7_A, O>;
425impl<'a, const O: u8> CHANNEL7_W<'a, O> {
426 #[doc = "Channel 7 has its secure attribute set"]
427 #[inline(always)]
428 pub fn secure(self) -> &'a mut W {
429 self.variant(CHANNEL7_A::SECURE)
430 }
431 #[doc = "Channel 7 has its non-secure attribute set"]
432 #[inline(always)]
433 pub fn non_secure(self) -> &'a mut W {
434 self.variant(CHANNEL7_A::NON_SECURE)
435 }
436}
437#[doc = "Field `CHANNEL8` reader - Select secure attribute"]
438pub type CHANNEL8_R = crate::BitReader<CHANNEL8_A>;
439#[doc = "Select secure attribute\n\nValue on reset: 1"]
440#[derive(Clone, Copy, Debug, PartialEq)]
441pub enum CHANNEL8_A {
442 #[doc = "1: Channel 8 has its secure attribute set"]
443 SECURE = 1,
444 #[doc = "0: Channel 8 has its non-secure attribute set"]
445 NON_SECURE = 0,
446}
447impl From<CHANNEL8_A> for bool {
448 #[inline(always)]
449 fn from(variant: CHANNEL8_A) -> Self {
450 variant as u8 != 0
451 }
452}
453impl CHANNEL8_R {
454 #[doc = "Get enumerated values variant"]
455 #[inline(always)]
456 pub fn variant(&self) -> CHANNEL8_A {
457 match self.bits {
458 true => CHANNEL8_A::SECURE,
459 false => CHANNEL8_A::NON_SECURE,
460 }
461 }
462 #[doc = "Checks if the value of the field is `SECURE`"]
463 #[inline(always)]
464 pub fn is_secure(&self) -> bool {
465 *self == CHANNEL8_A::SECURE
466 }
467 #[doc = "Checks if the value of the field is `NON_SECURE`"]
468 #[inline(always)]
469 pub fn is_non_secure(&self) -> bool {
470 *self == CHANNEL8_A::NON_SECURE
471 }
472}
473#[doc = "Field `CHANNEL8` writer - Select secure attribute"]
474pub type CHANNEL8_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL8_A, O>;
475impl<'a, const O: u8> CHANNEL8_W<'a, O> {
476 #[doc = "Channel 8 has its secure attribute set"]
477 #[inline(always)]
478 pub fn secure(self) -> &'a mut W {
479 self.variant(CHANNEL8_A::SECURE)
480 }
481 #[doc = "Channel 8 has its non-secure attribute set"]
482 #[inline(always)]
483 pub fn non_secure(self) -> &'a mut W {
484 self.variant(CHANNEL8_A::NON_SECURE)
485 }
486}
487#[doc = "Field `CHANNEL9` reader - Select secure attribute"]
488pub type CHANNEL9_R = crate::BitReader<CHANNEL9_A>;
489#[doc = "Select secure attribute\n\nValue on reset: 1"]
490#[derive(Clone, Copy, Debug, PartialEq)]
491pub enum CHANNEL9_A {
492 #[doc = "1: Channel 9 has its secure attribute set"]
493 SECURE = 1,
494 #[doc = "0: Channel 9 has its non-secure attribute set"]
495 NON_SECURE = 0,
496}
497impl From<CHANNEL9_A> for bool {
498 #[inline(always)]
499 fn from(variant: CHANNEL9_A) -> Self {
500 variant as u8 != 0
501 }
502}
503impl CHANNEL9_R {
504 #[doc = "Get enumerated values variant"]
505 #[inline(always)]
506 pub fn variant(&self) -> CHANNEL9_A {
507 match self.bits {
508 true => CHANNEL9_A::SECURE,
509 false => CHANNEL9_A::NON_SECURE,
510 }
511 }
512 #[doc = "Checks if the value of the field is `SECURE`"]
513 #[inline(always)]
514 pub fn is_secure(&self) -> bool {
515 *self == CHANNEL9_A::SECURE
516 }
517 #[doc = "Checks if the value of the field is `NON_SECURE`"]
518 #[inline(always)]
519 pub fn is_non_secure(&self) -> bool {
520 *self == CHANNEL9_A::NON_SECURE
521 }
522}
523#[doc = "Field `CHANNEL9` writer - Select secure attribute"]
524pub type CHANNEL9_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL9_A, O>;
525impl<'a, const O: u8> CHANNEL9_W<'a, O> {
526 #[doc = "Channel 9 has its secure attribute set"]
527 #[inline(always)]
528 pub fn secure(self) -> &'a mut W {
529 self.variant(CHANNEL9_A::SECURE)
530 }
531 #[doc = "Channel 9 has its non-secure attribute set"]
532 #[inline(always)]
533 pub fn non_secure(self) -> &'a mut W {
534 self.variant(CHANNEL9_A::NON_SECURE)
535 }
536}
537#[doc = "Field `CHANNEL10` reader - Select secure attribute"]
538pub type CHANNEL10_R = crate::BitReader<CHANNEL10_A>;
539#[doc = "Select secure attribute\n\nValue on reset: 1"]
540#[derive(Clone, Copy, Debug, PartialEq)]
541pub enum CHANNEL10_A {
542 #[doc = "1: Channel 10 has its secure attribute set"]
543 SECURE = 1,
544 #[doc = "0: Channel 10 has its non-secure attribute set"]
545 NON_SECURE = 0,
546}
547impl From<CHANNEL10_A> for bool {
548 #[inline(always)]
549 fn from(variant: CHANNEL10_A) -> Self {
550 variant as u8 != 0
551 }
552}
553impl CHANNEL10_R {
554 #[doc = "Get enumerated values variant"]
555 #[inline(always)]
556 pub fn variant(&self) -> CHANNEL10_A {
557 match self.bits {
558 true => CHANNEL10_A::SECURE,
559 false => CHANNEL10_A::NON_SECURE,
560 }
561 }
562 #[doc = "Checks if the value of the field is `SECURE`"]
563 #[inline(always)]
564 pub fn is_secure(&self) -> bool {
565 *self == CHANNEL10_A::SECURE
566 }
567 #[doc = "Checks if the value of the field is `NON_SECURE`"]
568 #[inline(always)]
569 pub fn is_non_secure(&self) -> bool {
570 *self == CHANNEL10_A::NON_SECURE
571 }
572}
573#[doc = "Field `CHANNEL10` writer - Select secure attribute"]
574pub type CHANNEL10_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL10_A, O>;
575impl<'a, const O: u8> CHANNEL10_W<'a, O> {
576 #[doc = "Channel 10 has its secure attribute set"]
577 #[inline(always)]
578 pub fn secure(self) -> &'a mut W {
579 self.variant(CHANNEL10_A::SECURE)
580 }
581 #[doc = "Channel 10 has its non-secure attribute set"]
582 #[inline(always)]
583 pub fn non_secure(self) -> &'a mut W {
584 self.variant(CHANNEL10_A::NON_SECURE)
585 }
586}
587#[doc = "Field `CHANNEL11` reader - Select secure attribute"]
588pub type CHANNEL11_R = crate::BitReader<CHANNEL11_A>;
589#[doc = "Select secure attribute\n\nValue on reset: 1"]
590#[derive(Clone, Copy, Debug, PartialEq)]
591pub enum CHANNEL11_A {
592 #[doc = "1: Channel 11 has its secure attribute set"]
593 SECURE = 1,
594 #[doc = "0: Channel 11 has its non-secure attribute set"]
595 NON_SECURE = 0,
596}
597impl From<CHANNEL11_A> for bool {
598 #[inline(always)]
599 fn from(variant: CHANNEL11_A) -> Self {
600 variant as u8 != 0
601 }
602}
603impl CHANNEL11_R {
604 #[doc = "Get enumerated values variant"]
605 #[inline(always)]
606 pub fn variant(&self) -> CHANNEL11_A {
607 match self.bits {
608 true => CHANNEL11_A::SECURE,
609 false => CHANNEL11_A::NON_SECURE,
610 }
611 }
612 #[doc = "Checks if the value of the field is `SECURE`"]
613 #[inline(always)]
614 pub fn is_secure(&self) -> bool {
615 *self == CHANNEL11_A::SECURE
616 }
617 #[doc = "Checks if the value of the field is `NON_SECURE`"]
618 #[inline(always)]
619 pub fn is_non_secure(&self) -> bool {
620 *self == CHANNEL11_A::NON_SECURE
621 }
622}
623#[doc = "Field `CHANNEL11` writer - Select secure attribute"]
624pub type CHANNEL11_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL11_A, O>;
625impl<'a, const O: u8> CHANNEL11_W<'a, O> {
626 #[doc = "Channel 11 has its secure attribute set"]
627 #[inline(always)]
628 pub fn secure(self) -> &'a mut W {
629 self.variant(CHANNEL11_A::SECURE)
630 }
631 #[doc = "Channel 11 has its non-secure attribute set"]
632 #[inline(always)]
633 pub fn non_secure(self) -> &'a mut W {
634 self.variant(CHANNEL11_A::NON_SECURE)
635 }
636}
637#[doc = "Field `CHANNEL12` reader - Select secure attribute"]
638pub type CHANNEL12_R = crate::BitReader<CHANNEL12_A>;
639#[doc = "Select secure attribute\n\nValue on reset: 1"]
640#[derive(Clone, Copy, Debug, PartialEq)]
641pub enum CHANNEL12_A {
642 #[doc = "1: Channel 12 has its secure attribute set"]
643 SECURE = 1,
644 #[doc = "0: Channel 12 has its non-secure attribute set"]
645 NON_SECURE = 0,
646}
647impl From<CHANNEL12_A> for bool {
648 #[inline(always)]
649 fn from(variant: CHANNEL12_A) -> Self {
650 variant as u8 != 0
651 }
652}
653impl CHANNEL12_R {
654 #[doc = "Get enumerated values variant"]
655 #[inline(always)]
656 pub fn variant(&self) -> CHANNEL12_A {
657 match self.bits {
658 true => CHANNEL12_A::SECURE,
659 false => CHANNEL12_A::NON_SECURE,
660 }
661 }
662 #[doc = "Checks if the value of the field is `SECURE`"]
663 #[inline(always)]
664 pub fn is_secure(&self) -> bool {
665 *self == CHANNEL12_A::SECURE
666 }
667 #[doc = "Checks if the value of the field is `NON_SECURE`"]
668 #[inline(always)]
669 pub fn is_non_secure(&self) -> bool {
670 *self == CHANNEL12_A::NON_SECURE
671 }
672}
673#[doc = "Field `CHANNEL12` writer - Select secure attribute"]
674pub type CHANNEL12_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL12_A, O>;
675impl<'a, const O: u8> CHANNEL12_W<'a, O> {
676 #[doc = "Channel 12 has its secure attribute set"]
677 #[inline(always)]
678 pub fn secure(self) -> &'a mut W {
679 self.variant(CHANNEL12_A::SECURE)
680 }
681 #[doc = "Channel 12 has its non-secure attribute set"]
682 #[inline(always)]
683 pub fn non_secure(self) -> &'a mut W {
684 self.variant(CHANNEL12_A::NON_SECURE)
685 }
686}
687#[doc = "Field `CHANNEL13` reader - Select secure attribute"]
688pub type CHANNEL13_R = crate::BitReader<CHANNEL13_A>;
689#[doc = "Select secure attribute\n\nValue on reset: 1"]
690#[derive(Clone, Copy, Debug, PartialEq)]
691pub enum CHANNEL13_A {
692 #[doc = "1: Channel 13 has its secure attribute set"]
693 SECURE = 1,
694 #[doc = "0: Channel 13 has its non-secure attribute set"]
695 NON_SECURE = 0,
696}
697impl From<CHANNEL13_A> for bool {
698 #[inline(always)]
699 fn from(variant: CHANNEL13_A) -> Self {
700 variant as u8 != 0
701 }
702}
703impl CHANNEL13_R {
704 #[doc = "Get enumerated values variant"]
705 #[inline(always)]
706 pub fn variant(&self) -> CHANNEL13_A {
707 match self.bits {
708 true => CHANNEL13_A::SECURE,
709 false => CHANNEL13_A::NON_SECURE,
710 }
711 }
712 #[doc = "Checks if the value of the field is `SECURE`"]
713 #[inline(always)]
714 pub fn is_secure(&self) -> bool {
715 *self == CHANNEL13_A::SECURE
716 }
717 #[doc = "Checks if the value of the field is `NON_SECURE`"]
718 #[inline(always)]
719 pub fn is_non_secure(&self) -> bool {
720 *self == CHANNEL13_A::NON_SECURE
721 }
722}
723#[doc = "Field `CHANNEL13` writer - Select secure attribute"]
724pub type CHANNEL13_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL13_A, O>;
725impl<'a, const O: u8> CHANNEL13_W<'a, O> {
726 #[doc = "Channel 13 has its secure attribute set"]
727 #[inline(always)]
728 pub fn secure(self) -> &'a mut W {
729 self.variant(CHANNEL13_A::SECURE)
730 }
731 #[doc = "Channel 13 has its non-secure attribute set"]
732 #[inline(always)]
733 pub fn non_secure(self) -> &'a mut W {
734 self.variant(CHANNEL13_A::NON_SECURE)
735 }
736}
737#[doc = "Field `CHANNEL14` reader - Select secure attribute"]
738pub type CHANNEL14_R = crate::BitReader<CHANNEL14_A>;
739#[doc = "Select secure attribute\n\nValue on reset: 1"]
740#[derive(Clone, Copy, Debug, PartialEq)]
741pub enum CHANNEL14_A {
742 #[doc = "1: Channel 14 has its secure attribute set"]
743 SECURE = 1,
744 #[doc = "0: Channel 14 has its non-secure attribute set"]
745 NON_SECURE = 0,
746}
747impl From<CHANNEL14_A> for bool {
748 #[inline(always)]
749 fn from(variant: CHANNEL14_A) -> Self {
750 variant as u8 != 0
751 }
752}
753impl CHANNEL14_R {
754 #[doc = "Get enumerated values variant"]
755 #[inline(always)]
756 pub fn variant(&self) -> CHANNEL14_A {
757 match self.bits {
758 true => CHANNEL14_A::SECURE,
759 false => CHANNEL14_A::NON_SECURE,
760 }
761 }
762 #[doc = "Checks if the value of the field is `SECURE`"]
763 #[inline(always)]
764 pub fn is_secure(&self) -> bool {
765 *self == CHANNEL14_A::SECURE
766 }
767 #[doc = "Checks if the value of the field is `NON_SECURE`"]
768 #[inline(always)]
769 pub fn is_non_secure(&self) -> bool {
770 *self == CHANNEL14_A::NON_SECURE
771 }
772}
773#[doc = "Field `CHANNEL14` writer - Select secure attribute"]
774pub type CHANNEL14_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL14_A, O>;
775impl<'a, const O: u8> CHANNEL14_W<'a, O> {
776 #[doc = "Channel 14 has its secure attribute set"]
777 #[inline(always)]
778 pub fn secure(self) -> &'a mut W {
779 self.variant(CHANNEL14_A::SECURE)
780 }
781 #[doc = "Channel 14 has its non-secure attribute set"]
782 #[inline(always)]
783 pub fn non_secure(self) -> &'a mut W {
784 self.variant(CHANNEL14_A::NON_SECURE)
785 }
786}
787#[doc = "Field `CHANNEL15` reader - Select secure attribute"]
788pub type CHANNEL15_R = crate::BitReader<CHANNEL15_A>;
789#[doc = "Select secure attribute\n\nValue on reset: 1"]
790#[derive(Clone, Copy, Debug, PartialEq)]
791pub enum CHANNEL15_A {
792 #[doc = "1: Channel 15 has its secure attribute set"]
793 SECURE = 1,
794 #[doc = "0: Channel 15 has its non-secure attribute set"]
795 NON_SECURE = 0,
796}
797impl From<CHANNEL15_A> for bool {
798 #[inline(always)]
799 fn from(variant: CHANNEL15_A) -> Self {
800 variant as u8 != 0
801 }
802}
803impl CHANNEL15_R {
804 #[doc = "Get enumerated values variant"]
805 #[inline(always)]
806 pub fn variant(&self) -> CHANNEL15_A {
807 match self.bits {
808 true => CHANNEL15_A::SECURE,
809 false => CHANNEL15_A::NON_SECURE,
810 }
811 }
812 #[doc = "Checks if the value of the field is `SECURE`"]
813 #[inline(always)]
814 pub fn is_secure(&self) -> bool {
815 *self == CHANNEL15_A::SECURE
816 }
817 #[doc = "Checks if the value of the field is `NON_SECURE`"]
818 #[inline(always)]
819 pub fn is_non_secure(&self) -> bool {
820 *self == CHANNEL15_A::NON_SECURE
821 }
822}
823#[doc = "Field `CHANNEL15` writer - Select secure attribute"]
824pub type CHANNEL15_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL15_A, O>;
825impl<'a, const O: u8> CHANNEL15_W<'a, O> {
826 #[doc = "Channel 15 has its secure attribute set"]
827 #[inline(always)]
828 pub fn secure(self) -> &'a mut W {
829 self.variant(CHANNEL15_A::SECURE)
830 }
831 #[doc = "Channel 15 has its non-secure attribute set"]
832 #[inline(always)]
833 pub fn non_secure(self) -> &'a mut W {
834 self.variant(CHANNEL15_A::NON_SECURE)
835 }
836}
837#[doc = "Field `CHANNEL16` reader - Select secure attribute"]
838pub type CHANNEL16_R = crate::BitReader<CHANNEL16_A>;
839#[doc = "Select secure attribute\n\nValue on reset: 1"]
840#[derive(Clone, Copy, Debug, PartialEq)]
841pub enum CHANNEL16_A {
842 #[doc = "1: Channel 16 has its secure attribute set"]
843 SECURE = 1,
844 #[doc = "0: Channel 16 has its non-secure attribute set"]
845 NON_SECURE = 0,
846}
847impl From<CHANNEL16_A> for bool {
848 #[inline(always)]
849 fn from(variant: CHANNEL16_A) -> Self {
850 variant as u8 != 0
851 }
852}
853impl CHANNEL16_R {
854 #[doc = "Get enumerated values variant"]
855 #[inline(always)]
856 pub fn variant(&self) -> CHANNEL16_A {
857 match self.bits {
858 true => CHANNEL16_A::SECURE,
859 false => CHANNEL16_A::NON_SECURE,
860 }
861 }
862 #[doc = "Checks if the value of the field is `SECURE`"]
863 #[inline(always)]
864 pub fn is_secure(&self) -> bool {
865 *self == CHANNEL16_A::SECURE
866 }
867 #[doc = "Checks if the value of the field is `NON_SECURE`"]
868 #[inline(always)]
869 pub fn is_non_secure(&self) -> bool {
870 *self == CHANNEL16_A::NON_SECURE
871 }
872}
873#[doc = "Field `CHANNEL16` writer - Select secure attribute"]
874pub type CHANNEL16_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL16_A, O>;
875impl<'a, const O: u8> CHANNEL16_W<'a, O> {
876 #[doc = "Channel 16 has its secure attribute set"]
877 #[inline(always)]
878 pub fn secure(self) -> &'a mut W {
879 self.variant(CHANNEL16_A::SECURE)
880 }
881 #[doc = "Channel 16 has its non-secure attribute set"]
882 #[inline(always)]
883 pub fn non_secure(self) -> &'a mut W {
884 self.variant(CHANNEL16_A::NON_SECURE)
885 }
886}
887#[doc = "Field `CHANNEL17` reader - Select secure attribute"]
888pub type CHANNEL17_R = crate::BitReader<CHANNEL17_A>;
889#[doc = "Select secure attribute\n\nValue on reset: 1"]
890#[derive(Clone, Copy, Debug, PartialEq)]
891pub enum CHANNEL17_A {
892 #[doc = "1: Channel 17 has its secure attribute set"]
893 SECURE = 1,
894 #[doc = "0: Channel 17 has its non-secure attribute set"]
895 NON_SECURE = 0,
896}
897impl From<CHANNEL17_A> for bool {
898 #[inline(always)]
899 fn from(variant: CHANNEL17_A) -> Self {
900 variant as u8 != 0
901 }
902}
903impl CHANNEL17_R {
904 #[doc = "Get enumerated values variant"]
905 #[inline(always)]
906 pub fn variant(&self) -> CHANNEL17_A {
907 match self.bits {
908 true => CHANNEL17_A::SECURE,
909 false => CHANNEL17_A::NON_SECURE,
910 }
911 }
912 #[doc = "Checks if the value of the field is `SECURE`"]
913 #[inline(always)]
914 pub fn is_secure(&self) -> bool {
915 *self == CHANNEL17_A::SECURE
916 }
917 #[doc = "Checks if the value of the field is `NON_SECURE`"]
918 #[inline(always)]
919 pub fn is_non_secure(&self) -> bool {
920 *self == CHANNEL17_A::NON_SECURE
921 }
922}
923#[doc = "Field `CHANNEL17` writer - Select secure attribute"]
924pub type CHANNEL17_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL17_A, O>;
925impl<'a, const O: u8> CHANNEL17_W<'a, O> {
926 #[doc = "Channel 17 has its secure attribute set"]
927 #[inline(always)]
928 pub fn secure(self) -> &'a mut W {
929 self.variant(CHANNEL17_A::SECURE)
930 }
931 #[doc = "Channel 17 has its non-secure attribute set"]
932 #[inline(always)]
933 pub fn non_secure(self) -> &'a mut W {
934 self.variant(CHANNEL17_A::NON_SECURE)
935 }
936}
937#[doc = "Field `CHANNEL18` reader - Select secure attribute"]
938pub type CHANNEL18_R = crate::BitReader<CHANNEL18_A>;
939#[doc = "Select secure attribute\n\nValue on reset: 1"]
940#[derive(Clone, Copy, Debug, PartialEq)]
941pub enum CHANNEL18_A {
942 #[doc = "1: Channel 18 has its secure attribute set"]
943 SECURE = 1,
944 #[doc = "0: Channel 18 has its non-secure attribute set"]
945 NON_SECURE = 0,
946}
947impl From<CHANNEL18_A> for bool {
948 #[inline(always)]
949 fn from(variant: CHANNEL18_A) -> Self {
950 variant as u8 != 0
951 }
952}
953impl CHANNEL18_R {
954 #[doc = "Get enumerated values variant"]
955 #[inline(always)]
956 pub fn variant(&self) -> CHANNEL18_A {
957 match self.bits {
958 true => CHANNEL18_A::SECURE,
959 false => CHANNEL18_A::NON_SECURE,
960 }
961 }
962 #[doc = "Checks if the value of the field is `SECURE`"]
963 #[inline(always)]
964 pub fn is_secure(&self) -> bool {
965 *self == CHANNEL18_A::SECURE
966 }
967 #[doc = "Checks if the value of the field is `NON_SECURE`"]
968 #[inline(always)]
969 pub fn is_non_secure(&self) -> bool {
970 *self == CHANNEL18_A::NON_SECURE
971 }
972}
973#[doc = "Field `CHANNEL18` writer - Select secure attribute"]
974pub type CHANNEL18_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL18_A, O>;
975impl<'a, const O: u8> CHANNEL18_W<'a, O> {
976 #[doc = "Channel 18 has its secure attribute set"]
977 #[inline(always)]
978 pub fn secure(self) -> &'a mut W {
979 self.variant(CHANNEL18_A::SECURE)
980 }
981 #[doc = "Channel 18 has its non-secure attribute set"]
982 #[inline(always)]
983 pub fn non_secure(self) -> &'a mut W {
984 self.variant(CHANNEL18_A::NON_SECURE)
985 }
986}
987#[doc = "Field `CHANNEL19` reader - Select secure attribute"]
988pub type CHANNEL19_R = crate::BitReader<CHANNEL19_A>;
989#[doc = "Select secure attribute\n\nValue on reset: 1"]
990#[derive(Clone, Copy, Debug, PartialEq)]
991pub enum CHANNEL19_A {
992 #[doc = "1: Channel 19 has its secure attribute set"]
993 SECURE = 1,
994 #[doc = "0: Channel 19 has its non-secure attribute set"]
995 NON_SECURE = 0,
996}
997impl From<CHANNEL19_A> for bool {
998 #[inline(always)]
999 fn from(variant: CHANNEL19_A) -> Self {
1000 variant as u8 != 0
1001 }
1002}
1003impl CHANNEL19_R {
1004 #[doc = "Get enumerated values variant"]
1005 #[inline(always)]
1006 pub fn variant(&self) -> CHANNEL19_A {
1007 match self.bits {
1008 true => CHANNEL19_A::SECURE,
1009 false => CHANNEL19_A::NON_SECURE,
1010 }
1011 }
1012 #[doc = "Checks if the value of the field is `SECURE`"]
1013 #[inline(always)]
1014 pub fn is_secure(&self) -> bool {
1015 *self == CHANNEL19_A::SECURE
1016 }
1017 #[doc = "Checks if the value of the field is `NON_SECURE`"]
1018 #[inline(always)]
1019 pub fn is_non_secure(&self) -> bool {
1020 *self == CHANNEL19_A::NON_SECURE
1021 }
1022}
1023#[doc = "Field `CHANNEL19` writer - Select secure attribute"]
1024pub type CHANNEL19_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL19_A, O>;
1025impl<'a, const O: u8> CHANNEL19_W<'a, O> {
1026 #[doc = "Channel 19 has its secure attribute set"]
1027 #[inline(always)]
1028 pub fn secure(self) -> &'a mut W {
1029 self.variant(CHANNEL19_A::SECURE)
1030 }
1031 #[doc = "Channel 19 has its non-secure attribute set"]
1032 #[inline(always)]
1033 pub fn non_secure(self) -> &'a mut W {
1034 self.variant(CHANNEL19_A::NON_SECURE)
1035 }
1036}
1037#[doc = "Field `CHANNEL20` reader - Select secure attribute"]
1038pub type CHANNEL20_R = crate::BitReader<CHANNEL20_A>;
1039#[doc = "Select secure attribute\n\nValue on reset: 1"]
1040#[derive(Clone, Copy, Debug, PartialEq)]
1041pub enum CHANNEL20_A {
1042 #[doc = "1: Channel 20 has its secure attribute set"]
1043 SECURE = 1,
1044 #[doc = "0: Channel 20 has its non-secure attribute set"]
1045 NON_SECURE = 0,
1046}
1047impl From<CHANNEL20_A> for bool {
1048 #[inline(always)]
1049 fn from(variant: CHANNEL20_A) -> Self {
1050 variant as u8 != 0
1051 }
1052}
1053impl CHANNEL20_R {
1054 #[doc = "Get enumerated values variant"]
1055 #[inline(always)]
1056 pub fn variant(&self) -> CHANNEL20_A {
1057 match self.bits {
1058 true => CHANNEL20_A::SECURE,
1059 false => CHANNEL20_A::NON_SECURE,
1060 }
1061 }
1062 #[doc = "Checks if the value of the field is `SECURE`"]
1063 #[inline(always)]
1064 pub fn is_secure(&self) -> bool {
1065 *self == CHANNEL20_A::SECURE
1066 }
1067 #[doc = "Checks if the value of the field is `NON_SECURE`"]
1068 #[inline(always)]
1069 pub fn is_non_secure(&self) -> bool {
1070 *self == CHANNEL20_A::NON_SECURE
1071 }
1072}
1073#[doc = "Field `CHANNEL20` writer - Select secure attribute"]
1074pub type CHANNEL20_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL20_A, O>;
1075impl<'a, const O: u8> CHANNEL20_W<'a, O> {
1076 #[doc = "Channel 20 has its secure attribute set"]
1077 #[inline(always)]
1078 pub fn secure(self) -> &'a mut W {
1079 self.variant(CHANNEL20_A::SECURE)
1080 }
1081 #[doc = "Channel 20 has its non-secure attribute set"]
1082 #[inline(always)]
1083 pub fn non_secure(self) -> &'a mut W {
1084 self.variant(CHANNEL20_A::NON_SECURE)
1085 }
1086}
1087#[doc = "Field `CHANNEL21` reader - Select secure attribute"]
1088pub type CHANNEL21_R = crate::BitReader<CHANNEL21_A>;
1089#[doc = "Select secure attribute\n\nValue on reset: 1"]
1090#[derive(Clone, Copy, Debug, PartialEq)]
1091pub enum CHANNEL21_A {
1092 #[doc = "1: Channel 21 has its secure attribute set"]
1093 SECURE = 1,
1094 #[doc = "0: Channel 21 has its non-secure attribute set"]
1095 NON_SECURE = 0,
1096}
1097impl From<CHANNEL21_A> for bool {
1098 #[inline(always)]
1099 fn from(variant: CHANNEL21_A) -> Self {
1100 variant as u8 != 0
1101 }
1102}
1103impl CHANNEL21_R {
1104 #[doc = "Get enumerated values variant"]
1105 #[inline(always)]
1106 pub fn variant(&self) -> CHANNEL21_A {
1107 match self.bits {
1108 true => CHANNEL21_A::SECURE,
1109 false => CHANNEL21_A::NON_SECURE,
1110 }
1111 }
1112 #[doc = "Checks if the value of the field is `SECURE`"]
1113 #[inline(always)]
1114 pub fn is_secure(&self) -> bool {
1115 *self == CHANNEL21_A::SECURE
1116 }
1117 #[doc = "Checks if the value of the field is `NON_SECURE`"]
1118 #[inline(always)]
1119 pub fn is_non_secure(&self) -> bool {
1120 *self == CHANNEL21_A::NON_SECURE
1121 }
1122}
1123#[doc = "Field `CHANNEL21` writer - Select secure attribute"]
1124pub type CHANNEL21_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL21_A, O>;
1125impl<'a, const O: u8> CHANNEL21_W<'a, O> {
1126 #[doc = "Channel 21 has its secure attribute set"]
1127 #[inline(always)]
1128 pub fn secure(self) -> &'a mut W {
1129 self.variant(CHANNEL21_A::SECURE)
1130 }
1131 #[doc = "Channel 21 has its non-secure attribute set"]
1132 #[inline(always)]
1133 pub fn non_secure(self) -> &'a mut W {
1134 self.variant(CHANNEL21_A::NON_SECURE)
1135 }
1136}
1137#[doc = "Field `CHANNEL22` reader - Select secure attribute"]
1138pub type CHANNEL22_R = crate::BitReader<CHANNEL22_A>;
1139#[doc = "Select secure attribute\n\nValue on reset: 1"]
1140#[derive(Clone, Copy, Debug, PartialEq)]
1141pub enum CHANNEL22_A {
1142 #[doc = "1: Channel 22 has its secure attribute set"]
1143 SECURE = 1,
1144 #[doc = "0: Channel 22 has its non-secure attribute set"]
1145 NON_SECURE = 0,
1146}
1147impl From<CHANNEL22_A> for bool {
1148 #[inline(always)]
1149 fn from(variant: CHANNEL22_A) -> Self {
1150 variant as u8 != 0
1151 }
1152}
1153impl CHANNEL22_R {
1154 #[doc = "Get enumerated values variant"]
1155 #[inline(always)]
1156 pub fn variant(&self) -> CHANNEL22_A {
1157 match self.bits {
1158 true => CHANNEL22_A::SECURE,
1159 false => CHANNEL22_A::NON_SECURE,
1160 }
1161 }
1162 #[doc = "Checks if the value of the field is `SECURE`"]
1163 #[inline(always)]
1164 pub fn is_secure(&self) -> bool {
1165 *self == CHANNEL22_A::SECURE
1166 }
1167 #[doc = "Checks if the value of the field is `NON_SECURE`"]
1168 #[inline(always)]
1169 pub fn is_non_secure(&self) -> bool {
1170 *self == CHANNEL22_A::NON_SECURE
1171 }
1172}
1173#[doc = "Field `CHANNEL22` writer - Select secure attribute"]
1174pub type CHANNEL22_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL22_A, O>;
1175impl<'a, const O: u8> CHANNEL22_W<'a, O> {
1176 #[doc = "Channel 22 has its secure attribute set"]
1177 #[inline(always)]
1178 pub fn secure(self) -> &'a mut W {
1179 self.variant(CHANNEL22_A::SECURE)
1180 }
1181 #[doc = "Channel 22 has its non-secure attribute set"]
1182 #[inline(always)]
1183 pub fn non_secure(self) -> &'a mut W {
1184 self.variant(CHANNEL22_A::NON_SECURE)
1185 }
1186}
1187#[doc = "Field `CHANNEL23` reader - Select secure attribute"]
1188pub type CHANNEL23_R = crate::BitReader<CHANNEL23_A>;
1189#[doc = "Select secure attribute\n\nValue on reset: 1"]
1190#[derive(Clone, Copy, Debug, PartialEq)]
1191pub enum CHANNEL23_A {
1192 #[doc = "1: Channel 23 has its secure attribute set"]
1193 SECURE = 1,
1194 #[doc = "0: Channel 23 has its non-secure attribute set"]
1195 NON_SECURE = 0,
1196}
1197impl From<CHANNEL23_A> for bool {
1198 #[inline(always)]
1199 fn from(variant: CHANNEL23_A) -> Self {
1200 variant as u8 != 0
1201 }
1202}
1203impl CHANNEL23_R {
1204 #[doc = "Get enumerated values variant"]
1205 #[inline(always)]
1206 pub fn variant(&self) -> CHANNEL23_A {
1207 match self.bits {
1208 true => CHANNEL23_A::SECURE,
1209 false => CHANNEL23_A::NON_SECURE,
1210 }
1211 }
1212 #[doc = "Checks if the value of the field is `SECURE`"]
1213 #[inline(always)]
1214 pub fn is_secure(&self) -> bool {
1215 *self == CHANNEL23_A::SECURE
1216 }
1217 #[doc = "Checks if the value of the field is `NON_SECURE`"]
1218 #[inline(always)]
1219 pub fn is_non_secure(&self) -> bool {
1220 *self == CHANNEL23_A::NON_SECURE
1221 }
1222}
1223#[doc = "Field `CHANNEL23` writer - Select secure attribute"]
1224pub type CHANNEL23_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL23_A, O>;
1225impl<'a, const O: u8> CHANNEL23_W<'a, O> {
1226 #[doc = "Channel 23 has its secure attribute set"]
1227 #[inline(always)]
1228 pub fn secure(self) -> &'a mut W {
1229 self.variant(CHANNEL23_A::SECURE)
1230 }
1231 #[doc = "Channel 23 has its non-secure attribute set"]
1232 #[inline(always)]
1233 pub fn non_secure(self) -> &'a mut W {
1234 self.variant(CHANNEL23_A::NON_SECURE)
1235 }
1236}
1237#[doc = "Field `CHANNEL24` reader - Select secure attribute"]
1238pub type CHANNEL24_R = crate::BitReader<CHANNEL24_A>;
1239#[doc = "Select secure attribute\n\nValue on reset: 1"]
1240#[derive(Clone, Copy, Debug, PartialEq)]
1241pub enum CHANNEL24_A {
1242 #[doc = "1: Channel 24 has its secure attribute set"]
1243 SECURE = 1,
1244 #[doc = "0: Channel 24 has its non-secure attribute set"]
1245 NON_SECURE = 0,
1246}
1247impl From<CHANNEL24_A> for bool {
1248 #[inline(always)]
1249 fn from(variant: CHANNEL24_A) -> Self {
1250 variant as u8 != 0
1251 }
1252}
1253impl CHANNEL24_R {
1254 #[doc = "Get enumerated values variant"]
1255 #[inline(always)]
1256 pub fn variant(&self) -> CHANNEL24_A {
1257 match self.bits {
1258 true => CHANNEL24_A::SECURE,
1259 false => CHANNEL24_A::NON_SECURE,
1260 }
1261 }
1262 #[doc = "Checks if the value of the field is `SECURE`"]
1263 #[inline(always)]
1264 pub fn is_secure(&self) -> bool {
1265 *self == CHANNEL24_A::SECURE
1266 }
1267 #[doc = "Checks if the value of the field is `NON_SECURE`"]
1268 #[inline(always)]
1269 pub fn is_non_secure(&self) -> bool {
1270 *self == CHANNEL24_A::NON_SECURE
1271 }
1272}
1273#[doc = "Field `CHANNEL24` writer - Select secure attribute"]
1274pub type CHANNEL24_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL24_A, O>;
1275impl<'a, const O: u8> CHANNEL24_W<'a, O> {
1276 #[doc = "Channel 24 has its secure attribute set"]
1277 #[inline(always)]
1278 pub fn secure(self) -> &'a mut W {
1279 self.variant(CHANNEL24_A::SECURE)
1280 }
1281 #[doc = "Channel 24 has its non-secure attribute set"]
1282 #[inline(always)]
1283 pub fn non_secure(self) -> &'a mut W {
1284 self.variant(CHANNEL24_A::NON_SECURE)
1285 }
1286}
1287#[doc = "Field `CHANNEL25` reader - Select secure attribute"]
1288pub type CHANNEL25_R = crate::BitReader<CHANNEL25_A>;
1289#[doc = "Select secure attribute\n\nValue on reset: 1"]
1290#[derive(Clone, Copy, Debug, PartialEq)]
1291pub enum CHANNEL25_A {
1292 #[doc = "1: Channel 25 has its secure attribute set"]
1293 SECURE = 1,
1294 #[doc = "0: Channel 25 has its non-secure attribute set"]
1295 NON_SECURE = 0,
1296}
1297impl From<CHANNEL25_A> for bool {
1298 #[inline(always)]
1299 fn from(variant: CHANNEL25_A) -> Self {
1300 variant as u8 != 0
1301 }
1302}
1303impl CHANNEL25_R {
1304 #[doc = "Get enumerated values variant"]
1305 #[inline(always)]
1306 pub fn variant(&self) -> CHANNEL25_A {
1307 match self.bits {
1308 true => CHANNEL25_A::SECURE,
1309 false => CHANNEL25_A::NON_SECURE,
1310 }
1311 }
1312 #[doc = "Checks if the value of the field is `SECURE`"]
1313 #[inline(always)]
1314 pub fn is_secure(&self) -> bool {
1315 *self == CHANNEL25_A::SECURE
1316 }
1317 #[doc = "Checks if the value of the field is `NON_SECURE`"]
1318 #[inline(always)]
1319 pub fn is_non_secure(&self) -> bool {
1320 *self == CHANNEL25_A::NON_SECURE
1321 }
1322}
1323#[doc = "Field `CHANNEL25` writer - Select secure attribute"]
1324pub type CHANNEL25_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL25_A, O>;
1325impl<'a, const O: u8> CHANNEL25_W<'a, O> {
1326 #[doc = "Channel 25 has its secure attribute set"]
1327 #[inline(always)]
1328 pub fn secure(self) -> &'a mut W {
1329 self.variant(CHANNEL25_A::SECURE)
1330 }
1331 #[doc = "Channel 25 has its non-secure attribute set"]
1332 #[inline(always)]
1333 pub fn non_secure(self) -> &'a mut W {
1334 self.variant(CHANNEL25_A::NON_SECURE)
1335 }
1336}
1337#[doc = "Field `CHANNEL26` reader - Select secure attribute"]
1338pub type CHANNEL26_R = crate::BitReader<CHANNEL26_A>;
1339#[doc = "Select secure attribute\n\nValue on reset: 1"]
1340#[derive(Clone, Copy, Debug, PartialEq)]
1341pub enum CHANNEL26_A {
1342 #[doc = "1: Channel 26 has its secure attribute set"]
1343 SECURE = 1,
1344 #[doc = "0: Channel 26 has its non-secure attribute set"]
1345 NON_SECURE = 0,
1346}
1347impl From<CHANNEL26_A> for bool {
1348 #[inline(always)]
1349 fn from(variant: CHANNEL26_A) -> Self {
1350 variant as u8 != 0
1351 }
1352}
1353impl CHANNEL26_R {
1354 #[doc = "Get enumerated values variant"]
1355 #[inline(always)]
1356 pub fn variant(&self) -> CHANNEL26_A {
1357 match self.bits {
1358 true => CHANNEL26_A::SECURE,
1359 false => CHANNEL26_A::NON_SECURE,
1360 }
1361 }
1362 #[doc = "Checks if the value of the field is `SECURE`"]
1363 #[inline(always)]
1364 pub fn is_secure(&self) -> bool {
1365 *self == CHANNEL26_A::SECURE
1366 }
1367 #[doc = "Checks if the value of the field is `NON_SECURE`"]
1368 #[inline(always)]
1369 pub fn is_non_secure(&self) -> bool {
1370 *self == CHANNEL26_A::NON_SECURE
1371 }
1372}
1373#[doc = "Field `CHANNEL26` writer - Select secure attribute"]
1374pub type CHANNEL26_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL26_A, O>;
1375impl<'a, const O: u8> CHANNEL26_W<'a, O> {
1376 #[doc = "Channel 26 has its secure attribute set"]
1377 #[inline(always)]
1378 pub fn secure(self) -> &'a mut W {
1379 self.variant(CHANNEL26_A::SECURE)
1380 }
1381 #[doc = "Channel 26 has its non-secure attribute set"]
1382 #[inline(always)]
1383 pub fn non_secure(self) -> &'a mut W {
1384 self.variant(CHANNEL26_A::NON_SECURE)
1385 }
1386}
1387#[doc = "Field `CHANNEL27` reader - Select secure attribute"]
1388pub type CHANNEL27_R = crate::BitReader<CHANNEL27_A>;
1389#[doc = "Select secure attribute\n\nValue on reset: 1"]
1390#[derive(Clone, Copy, Debug, PartialEq)]
1391pub enum CHANNEL27_A {
1392 #[doc = "1: Channel 27 has its secure attribute set"]
1393 SECURE = 1,
1394 #[doc = "0: Channel 27 has its non-secure attribute set"]
1395 NON_SECURE = 0,
1396}
1397impl From<CHANNEL27_A> for bool {
1398 #[inline(always)]
1399 fn from(variant: CHANNEL27_A) -> Self {
1400 variant as u8 != 0
1401 }
1402}
1403impl CHANNEL27_R {
1404 #[doc = "Get enumerated values variant"]
1405 #[inline(always)]
1406 pub fn variant(&self) -> CHANNEL27_A {
1407 match self.bits {
1408 true => CHANNEL27_A::SECURE,
1409 false => CHANNEL27_A::NON_SECURE,
1410 }
1411 }
1412 #[doc = "Checks if the value of the field is `SECURE`"]
1413 #[inline(always)]
1414 pub fn is_secure(&self) -> bool {
1415 *self == CHANNEL27_A::SECURE
1416 }
1417 #[doc = "Checks if the value of the field is `NON_SECURE`"]
1418 #[inline(always)]
1419 pub fn is_non_secure(&self) -> bool {
1420 *self == CHANNEL27_A::NON_SECURE
1421 }
1422}
1423#[doc = "Field `CHANNEL27` writer - Select secure attribute"]
1424pub type CHANNEL27_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL27_A, O>;
1425impl<'a, const O: u8> CHANNEL27_W<'a, O> {
1426 #[doc = "Channel 27 has its secure attribute set"]
1427 #[inline(always)]
1428 pub fn secure(self) -> &'a mut W {
1429 self.variant(CHANNEL27_A::SECURE)
1430 }
1431 #[doc = "Channel 27 has its non-secure attribute set"]
1432 #[inline(always)]
1433 pub fn non_secure(self) -> &'a mut W {
1434 self.variant(CHANNEL27_A::NON_SECURE)
1435 }
1436}
1437#[doc = "Field `CHANNEL28` reader - Select secure attribute"]
1438pub type CHANNEL28_R = crate::BitReader<CHANNEL28_A>;
1439#[doc = "Select secure attribute\n\nValue on reset: 1"]
1440#[derive(Clone, Copy, Debug, PartialEq)]
1441pub enum CHANNEL28_A {
1442 #[doc = "1: Channel 28 has its secure attribute set"]
1443 SECURE = 1,
1444 #[doc = "0: Channel 28 has its non-secure attribute set"]
1445 NON_SECURE = 0,
1446}
1447impl From<CHANNEL28_A> for bool {
1448 #[inline(always)]
1449 fn from(variant: CHANNEL28_A) -> Self {
1450 variant as u8 != 0
1451 }
1452}
1453impl CHANNEL28_R {
1454 #[doc = "Get enumerated values variant"]
1455 #[inline(always)]
1456 pub fn variant(&self) -> CHANNEL28_A {
1457 match self.bits {
1458 true => CHANNEL28_A::SECURE,
1459 false => CHANNEL28_A::NON_SECURE,
1460 }
1461 }
1462 #[doc = "Checks if the value of the field is `SECURE`"]
1463 #[inline(always)]
1464 pub fn is_secure(&self) -> bool {
1465 *self == CHANNEL28_A::SECURE
1466 }
1467 #[doc = "Checks if the value of the field is `NON_SECURE`"]
1468 #[inline(always)]
1469 pub fn is_non_secure(&self) -> bool {
1470 *self == CHANNEL28_A::NON_SECURE
1471 }
1472}
1473#[doc = "Field `CHANNEL28` writer - Select secure attribute"]
1474pub type CHANNEL28_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL28_A, O>;
1475impl<'a, const O: u8> CHANNEL28_W<'a, O> {
1476 #[doc = "Channel 28 has its secure attribute set"]
1477 #[inline(always)]
1478 pub fn secure(self) -> &'a mut W {
1479 self.variant(CHANNEL28_A::SECURE)
1480 }
1481 #[doc = "Channel 28 has its non-secure attribute set"]
1482 #[inline(always)]
1483 pub fn non_secure(self) -> &'a mut W {
1484 self.variant(CHANNEL28_A::NON_SECURE)
1485 }
1486}
1487#[doc = "Field `CHANNEL29` reader - Select secure attribute"]
1488pub type CHANNEL29_R = crate::BitReader<CHANNEL29_A>;
1489#[doc = "Select secure attribute\n\nValue on reset: 1"]
1490#[derive(Clone, Copy, Debug, PartialEq)]
1491pub enum CHANNEL29_A {
1492 #[doc = "1: Channel 29 has its secure attribute set"]
1493 SECURE = 1,
1494 #[doc = "0: Channel 29 has its non-secure attribute set"]
1495 NON_SECURE = 0,
1496}
1497impl From<CHANNEL29_A> for bool {
1498 #[inline(always)]
1499 fn from(variant: CHANNEL29_A) -> Self {
1500 variant as u8 != 0
1501 }
1502}
1503impl CHANNEL29_R {
1504 #[doc = "Get enumerated values variant"]
1505 #[inline(always)]
1506 pub fn variant(&self) -> CHANNEL29_A {
1507 match self.bits {
1508 true => CHANNEL29_A::SECURE,
1509 false => CHANNEL29_A::NON_SECURE,
1510 }
1511 }
1512 #[doc = "Checks if the value of the field is `SECURE`"]
1513 #[inline(always)]
1514 pub fn is_secure(&self) -> bool {
1515 *self == CHANNEL29_A::SECURE
1516 }
1517 #[doc = "Checks if the value of the field is `NON_SECURE`"]
1518 #[inline(always)]
1519 pub fn is_non_secure(&self) -> bool {
1520 *self == CHANNEL29_A::NON_SECURE
1521 }
1522}
1523#[doc = "Field `CHANNEL29` writer - Select secure attribute"]
1524pub type CHANNEL29_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL29_A, O>;
1525impl<'a, const O: u8> CHANNEL29_W<'a, O> {
1526 #[doc = "Channel 29 has its secure attribute set"]
1527 #[inline(always)]
1528 pub fn secure(self) -> &'a mut W {
1529 self.variant(CHANNEL29_A::SECURE)
1530 }
1531 #[doc = "Channel 29 has its non-secure attribute set"]
1532 #[inline(always)]
1533 pub fn non_secure(self) -> &'a mut W {
1534 self.variant(CHANNEL29_A::NON_SECURE)
1535 }
1536}
1537#[doc = "Field `CHANNEL30` reader - Select secure attribute"]
1538pub type CHANNEL30_R = crate::BitReader<CHANNEL30_A>;
1539#[doc = "Select secure attribute\n\nValue on reset: 1"]
1540#[derive(Clone, Copy, Debug, PartialEq)]
1541pub enum CHANNEL30_A {
1542 #[doc = "1: Channel 30 has its secure attribute set"]
1543 SECURE = 1,
1544 #[doc = "0: Channel 30 has its non-secure attribute set"]
1545 NON_SECURE = 0,
1546}
1547impl From<CHANNEL30_A> for bool {
1548 #[inline(always)]
1549 fn from(variant: CHANNEL30_A) -> Self {
1550 variant as u8 != 0
1551 }
1552}
1553impl CHANNEL30_R {
1554 #[doc = "Get enumerated values variant"]
1555 #[inline(always)]
1556 pub fn variant(&self) -> CHANNEL30_A {
1557 match self.bits {
1558 true => CHANNEL30_A::SECURE,
1559 false => CHANNEL30_A::NON_SECURE,
1560 }
1561 }
1562 #[doc = "Checks if the value of the field is `SECURE`"]
1563 #[inline(always)]
1564 pub fn is_secure(&self) -> bool {
1565 *self == CHANNEL30_A::SECURE
1566 }
1567 #[doc = "Checks if the value of the field is `NON_SECURE`"]
1568 #[inline(always)]
1569 pub fn is_non_secure(&self) -> bool {
1570 *self == CHANNEL30_A::NON_SECURE
1571 }
1572}
1573#[doc = "Field `CHANNEL30` writer - Select secure attribute"]
1574pub type CHANNEL30_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL30_A, O>;
1575impl<'a, const O: u8> CHANNEL30_W<'a, O> {
1576 #[doc = "Channel 30 has its secure attribute set"]
1577 #[inline(always)]
1578 pub fn secure(self) -> &'a mut W {
1579 self.variant(CHANNEL30_A::SECURE)
1580 }
1581 #[doc = "Channel 30 has its non-secure attribute set"]
1582 #[inline(always)]
1583 pub fn non_secure(self) -> &'a mut W {
1584 self.variant(CHANNEL30_A::NON_SECURE)
1585 }
1586}
1587#[doc = "Field `CHANNEL31` reader - Select secure attribute"]
1588pub type CHANNEL31_R = crate::BitReader<CHANNEL31_A>;
1589#[doc = "Select secure attribute\n\nValue on reset: 1"]
1590#[derive(Clone, Copy, Debug, PartialEq)]
1591pub enum CHANNEL31_A {
1592 #[doc = "1: Channel 31 has its secure attribute set"]
1593 SECURE = 1,
1594 #[doc = "0: Channel 31 has its non-secure attribute set"]
1595 NON_SECURE = 0,
1596}
1597impl From<CHANNEL31_A> for bool {
1598 #[inline(always)]
1599 fn from(variant: CHANNEL31_A) -> Self {
1600 variant as u8 != 0
1601 }
1602}
1603impl CHANNEL31_R {
1604 #[doc = "Get enumerated values variant"]
1605 #[inline(always)]
1606 pub fn variant(&self) -> CHANNEL31_A {
1607 match self.bits {
1608 true => CHANNEL31_A::SECURE,
1609 false => CHANNEL31_A::NON_SECURE,
1610 }
1611 }
1612 #[doc = "Checks if the value of the field is `SECURE`"]
1613 #[inline(always)]
1614 pub fn is_secure(&self) -> bool {
1615 *self == CHANNEL31_A::SECURE
1616 }
1617 #[doc = "Checks if the value of the field is `NON_SECURE`"]
1618 #[inline(always)]
1619 pub fn is_non_secure(&self) -> bool {
1620 *self == CHANNEL31_A::NON_SECURE
1621 }
1622}
1623#[doc = "Field `CHANNEL31` writer - Select secure attribute"]
1624pub type CHANNEL31_W<'a, const O: u8> = crate::BitWriter<'a, u32, PERM_SPEC, CHANNEL31_A, O>;
1625impl<'a, const O: u8> CHANNEL31_W<'a, O> {
1626 #[doc = "Channel 31 has its secure attribute set"]
1627 #[inline(always)]
1628 pub fn secure(self) -> &'a mut W {
1629 self.variant(CHANNEL31_A::SECURE)
1630 }
1631 #[doc = "Channel 31 has its non-secure attribute set"]
1632 #[inline(always)]
1633 pub fn non_secure(self) -> &'a mut W {
1634 self.variant(CHANNEL31_A::NON_SECURE)
1635 }
1636}
1637impl R {
1638 #[doc = "Bit 0 - Select secure attribute"]
1639 #[inline(always)]
1640 pub fn channel0(&self) -> CHANNEL0_R {
1641 CHANNEL0_R::new((self.bits & 1) != 0)
1642 }
1643 #[doc = "Bit 1 - Select secure attribute"]
1644 #[inline(always)]
1645 pub fn channel1(&self) -> CHANNEL1_R {
1646 CHANNEL1_R::new(((self.bits >> 1) & 1) != 0)
1647 }
1648 #[doc = "Bit 2 - Select secure attribute"]
1649 #[inline(always)]
1650 pub fn channel2(&self) -> CHANNEL2_R {
1651 CHANNEL2_R::new(((self.bits >> 2) & 1) != 0)
1652 }
1653 #[doc = "Bit 3 - Select secure attribute"]
1654 #[inline(always)]
1655 pub fn channel3(&self) -> CHANNEL3_R {
1656 CHANNEL3_R::new(((self.bits >> 3) & 1) != 0)
1657 }
1658 #[doc = "Bit 4 - Select secure attribute"]
1659 #[inline(always)]
1660 pub fn channel4(&self) -> CHANNEL4_R {
1661 CHANNEL4_R::new(((self.bits >> 4) & 1) != 0)
1662 }
1663 #[doc = "Bit 5 - Select secure attribute"]
1664 #[inline(always)]
1665 pub fn channel5(&self) -> CHANNEL5_R {
1666 CHANNEL5_R::new(((self.bits >> 5) & 1) != 0)
1667 }
1668 #[doc = "Bit 6 - Select secure attribute"]
1669 #[inline(always)]
1670 pub fn channel6(&self) -> CHANNEL6_R {
1671 CHANNEL6_R::new(((self.bits >> 6) & 1) != 0)
1672 }
1673 #[doc = "Bit 7 - Select secure attribute"]
1674 #[inline(always)]
1675 pub fn channel7(&self) -> CHANNEL7_R {
1676 CHANNEL7_R::new(((self.bits >> 7) & 1) != 0)
1677 }
1678 #[doc = "Bit 8 - Select secure attribute"]
1679 #[inline(always)]
1680 pub fn channel8(&self) -> CHANNEL8_R {
1681 CHANNEL8_R::new(((self.bits >> 8) & 1) != 0)
1682 }
1683 #[doc = "Bit 9 - Select secure attribute"]
1684 #[inline(always)]
1685 pub fn channel9(&self) -> CHANNEL9_R {
1686 CHANNEL9_R::new(((self.bits >> 9) & 1) != 0)
1687 }
1688 #[doc = "Bit 10 - Select secure attribute"]
1689 #[inline(always)]
1690 pub fn channel10(&self) -> CHANNEL10_R {
1691 CHANNEL10_R::new(((self.bits >> 10) & 1) != 0)
1692 }
1693 #[doc = "Bit 11 - Select secure attribute"]
1694 #[inline(always)]
1695 pub fn channel11(&self) -> CHANNEL11_R {
1696 CHANNEL11_R::new(((self.bits >> 11) & 1) != 0)
1697 }
1698 #[doc = "Bit 12 - Select secure attribute"]
1699 #[inline(always)]
1700 pub fn channel12(&self) -> CHANNEL12_R {
1701 CHANNEL12_R::new(((self.bits >> 12) & 1) != 0)
1702 }
1703 #[doc = "Bit 13 - Select secure attribute"]
1704 #[inline(always)]
1705 pub fn channel13(&self) -> CHANNEL13_R {
1706 CHANNEL13_R::new(((self.bits >> 13) & 1) != 0)
1707 }
1708 #[doc = "Bit 14 - Select secure attribute"]
1709 #[inline(always)]
1710 pub fn channel14(&self) -> CHANNEL14_R {
1711 CHANNEL14_R::new(((self.bits >> 14) & 1) != 0)
1712 }
1713 #[doc = "Bit 15 - Select secure attribute"]
1714 #[inline(always)]
1715 pub fn channel15(&self) -> CHANNEL15_R {
1716 CHANNEL15_R::new(((self.bits >> 15) & 1) != 0)
1717 }
1718 #[doc = "Bit 16 - Select secure attribute"]
1719 #[inline(always)]
1720 pub fn channel16(&self) -> CHANNEL16_R {
1721 CHANNEL16_R::new(((self.bits >> 16) & 1) != 0)
1722 }
1723 #[doc = "Bit 17 - Select secure attribute"]
1724 #[inline(always)]
1725 pub fn channel17(&self) -> CHANNEL17_R {
1726 CHANNEL17_R::new(((self.bits >> 17) & 1) != 0)
1727 }
1728 #[doc = "Bit 18 - Select secure attribute"]
1729 #[inline(always)]
1730 pub fn channel18(&self) -> CHANNEL18_R {
1731 CHANNEL18_R::new(((self.bits >> 18) & 1) != 0)
1732 }
1733 #[doc = "Bit 19 - Select secure attribute"]
1734 #[inline(always)]
1735 pub fn channel19(&self) -> CHANNEL19_R {
1736 CHANNEL19_R::new(((self.bits >> 19) & 1) != 0)
1737 }
1738 #[doc = "Bit 20 - Select secure attribute"]
1739 #[inline(always)]
1740 pub fn channel20(&self) -> CHANNEL20_R {
1741 CHANNEL20_R::new(((self.bits >> 20) & 1) != 0)
1742 }
1743 #[doc = "Bit 21 - Select secure attribute"]
1744 #[inline(always)]
1745 pub fn channel21(&self) -> CHANNEL21_R {
1746 CHANNEL21_R::new(((self.bits >> 21) & 1) != 0)
1747 }
1748 #[doc = "Bit 22 - Select secure attribute"]
1749 #[inline(always)]
1750 pub fn channel22(&self) -> CHANNEL22_R {
1751 CHANNEL22_R::new(((self.bits >> 22) & 1) != 0)
1752 }
1753 #[doc = "Bit 23 - Select secure attribute"]
1754 #[inline(always)]
1755 pub fn channel23(&self) -> CHANNEL23_R {
1756 CHANNEL23_R::new(((self.bits >> 23) & 1) != 0)
1757 }
1758 #[doc = "Bit 24 - Select secure attribute"]
1759 #[inline(always)]
1760 pub fn channel24(&self) -> CHANNEL24_R {
1761 CHANNEL24_R::new(((self.bits >> 24) & 1) != 0)
1762 }
1763 #[doc = "Bit 25 - Select secure attribute"]
1764 #[inline(always)]
1765 pub fn channel25(&self) -> CHANNEL25_R {
1766 CHANNEL25_R::new(((self.bits >> 25) & 1) != 0)
1767 }
1768 #[doc = "Bit 26 - Select secure attribute"]
1769 #[inline(always)]
1770 pub fn channel26(&self) -> CHANNEL26_R {
1771 CHANNEL26_R::new(((self.bits >> 26) & 1) != 0)
1772 }
1773 #[doc = "Bit 27 - Select secure attribute"]
1774 #[inline(always)]
1775 pub fn channel27(&self) -> CHANNEL27_R {
1776 CHANNEL27_R::new(((self.bits >> 27) & 1) != 0)
1777 }
1778 #[doc = "Bit 28 - Select secure attribute"]
1779 #[inline(always)]
1780 pub fn channel28(&self) -> CHANNEL28_R {
1781 CHANNEL28_R::new(((self.bits >> 28) & 1) != 0)
1782 }
1783 #[doc = "Bit 29 - Select secure attribute"]
1784 #[inline(always)]
1785 pub fn channel29(&self) -> CHANNEL29_R {
1786 CHANNEL29_R::new(((self.bits >> 29) & 1) != 0)
1787 }
1788 #[doc = "Bit 30 - Select secure attribute"]
1789 #[inline(always)]
1790 pub fn channel30(&self) -> CHANNEL30_R {
1791 CHANNEL30_R::new(((self.bits >> 30) & 1) != 0)
1792 }
1793 #[doc = "Bit 31 - Select secure attribute"]
1794 #[inline(always)]
1795 pub fn channel31(&self) -> CHANNEL31_R {
1796 CHANNEL31_R::new(((self.bits >> 31) & 1) != 0)
1797 }
1798}
1799impl W {
1800 #[doc = "Bit 0 - Select secure attribute"]
1801 #[inline(always)]
1802 pub fn channel0(&mut self) -> CHANNEL0_W<0> {
1803 CHANNEL0_W::new(self)
1804 }
1805 #[doc = "Bit 1 - Select secure attribute"]
1806 #[inline(always)]
1807 pub fn channel1(&mut self) -> CHANNEL1_W<1> {
1808 CHANNEL1_W::new(self)
1809 }
1810 #[doc = "Bit 2 - Select secure attribute"]
1811 #[inline(always)]
1812 pub fn channel2(&mut self) -> CHANNEL2_W<2> {
1813 CHANNEL2_W::new(self)
1814 }
1815 #[doc = "Bit 3 - Select secure attribute"]
1816 #[inline(always)]
1817 pub fn channel3(&mut self) -> CHANNEL3_W<3> {
1818 CHANNEL3_W::new(self)
1819 }
1820 #[doc = "Bit 4 - Select secure attribute"]
1821 #[inline(always)]
1822 pub fn channel4(&mut self) -> CHANNEL4_W<4> {
1823 CHANNEL4_W::new(self)
1824 }
1825 #[doc = "Bit 5 - Select secure attribute"]
1826 #[inline(always)]
1827 pub fn channel5(&mut self) -> CHANNEL5_W<5> {
1828 CHANNEL5_W::new(self)
1829 }
1830 #[doc = "Bit 6 - Select secure attribute"]
1831 #[inline(always)]
1832 pub fn channel6(&mut self) -> CHANNEL6_W<6> {
1833 CHANNEL6_W::new(self)
1834 }
1835 #[doc = "Bit 7 - Select secure attribute"]
1836 #[inline(always)]
1837 pub fn channel7(&mut self) -> CHANNEL7_W<7> {
1838 CHANNEL7_W::new(self)
1839 }
1840 #[doc = "Bit 8 - Select secure attribute"]
1841 #[inline(always)]
1842 pub fn channel8(&mut self) -> CHANNEL8_W<8> {
1843 CHANNEL8_W::new(self)
1844 }
1845 #[doc = "Bit 9 - Select secure attribute"]
1846 #[inline(always)]
1847 pub fn channel9(&mut self) -> CHANNEL9_W<9> {
1848 CHANNEL9_W::new(self)
1849 }
1850 #[doc = "Bit 10 - Select secure attribute"]
1851 #[inline(always)]
1852 pub fn channel10(&mut self) -> CHANNEL10_W<10> {
1853 CHANNEL10_W::new(self)
1854 }
1855 #[doc = "Bit 11 - Select secure attribute"]
1856 #[inline(always)]
1857 pub fn channel11(&mut self) -> CHANNEL11_W<11> {
1858 CHANNEL11_W::new(self)
1859 }
1860 #[doc = "Bit 12 - Select secure attribute"]
1861 #[inline(always)]
1862 pub fn channel12(&mut self) -> CHANNEL12_W<12> {
1863 CHANNEL12_W::new(self)
1864 }
1865 #[doc = "Bit 13 - Select secure attribute"]
1866 #[inline(always)]
1867 pub fn channel13(&mut self) -> CHANNEL13_W<13> {
1868 CHANNEL13_W::new(self)
1869 }
1870 #[doc = "Bit 14 - Select secure attribute"]
1871 #[inline(always)]
1872 pub fn channel14(&mut self) -> CHANNEL14_W<14> {
1873 CHANNEL14_W::new(self)
1874 }
1875 #[doc = "Bit 15 - Select secure attribute"]
1876 #[inline(always)]
1877 pub fn channel15(&mut self) -> CHANNEL15_W<15> {
1878 CHANNEL15_W::new(self)
1879 }
1880 #[doc = "Bit 16 - Select secure attribute"]
1881 #[inline(always)]
1882 pub fn channel16(&mut self) -> CHANNEL16_W<16> {
1883 CHANNEL16_W::new(self)
1884 }
1885 #[doc = "Bit 17 - Select secure attribute"]
1886 #[inline(always)]
1887 pub fn channel17(&mut self) -> CHANNEL17_W<17> {
1888 CHANNEL17_W::new(self)
1889 }
1890 #[doc = "Bit 18 - Select secure attribute"]
1891 #[inline(always)]
1892 pub fn channel18(&mut self) -> CHANNEL18_W<18> {
1893 CHANNEL18_W::new(self)
1894 }
1895 #[doc = "Bit 19 - Select secure attribute"]
1896 #[inline(always)]
1897 pub fn channel19(&mut self) -> CHANNEL19_W<19> {
1898 CHANNEL19_W::new(self)
1899 }
1900 #[doc = "Bit 20 - Select secure attribute"]
1901 #[inline(always)]
1902 pub fn channel20(&mut self) -> CHANNEL20_W<20> {
1903 CHANNEL20_W::new(self)
1904 }
1905 #[doc = "Bit 21 - Select secure attribute"]
1906 #[inline(always)]
1907 pub fn channel21(&mut self) -> CHANNEL21_W<21> {
1908 CHANNEL21_W::new(self)
1909 }
1910 #[doc = "Bit 22 - Select secure attribute"]
1911 #[inline(always)]
1912 pub fn channel22(&mut self) -> CHANNEL22_W<22> {
1913 CHANNEL22_W::new(self)
1914 }
1915 #[doc = "Bit 23 - Select secure attribute"]
1916 #[inline(always)]
1917 pub fn channel23(&mut self) -> CHANNEL23_W<23> {
1918 CHANNEL23_W::new(self)
1919 }
1920 #[doc = "Bit 24 - Select secure attribute"]
1921 #[inline(always)]
1922 pub fn channel24(&mut self) -> CHANNEL24_W<24> {
1923 CHANNEL24_W::new(self)
1924 }
1925 #[doc = "Bit 25 - Select secure attribute"]
1926 #[inline(always)]
1927 pub fn channel25(&mut self) -> CHANNEL25_W<25> {
1928 CHANNEL25_W::new(self)
1929 }
1930 #[doc = "Bit 26 - Select secure attribute"]
1931 #[inline(always)]
1932 pub fn channel26(&mut self) -> CHANNEL26_W<26> {
1933 CHANNEL26_W::new(self)
1934 }
1935 #[doc = "Bit 27 - Select secure attribute"]
1936 #[inline(always)]
1937 pub fn channel27(&mut self) -> CHANNEL27_W<27> {
1938 CHANNEL27_W::new(self)
1939 }
1940 #[doc = "Bit 28 - Select secure attribute"]
1941 #[inline(always)]
1942 pub fn channel28(&mut self) -> CHANNEL28_W<28> {
1943 CHANNEL28_W::new(self)
1944 }
1945 #[doc = "Bit 29 - Select secure attribute"]
1946 #[inline(always)]
1947 pub fn channel29(&mut self) -> CHANNEL29_W<29> {
1948 CHANNEL29_W::new(self)
1949 }
1950 #[doc = "Bit 30 - Select secure attribute"]
1951 #[inline(always)]
1952 pub fn channel30(&mut self) -> CHANNEL30_W<30> {
1953 CHANNEL30_W::new(self)
1954 }
1955 #[doc = "Bit 31 - Select secure attribute"]
1956 #[inline(always)]
1957 pub fn channel31(&mut self) -> CHANNEL31_W<31> {
1958 CHANNEL31_W::new(self)
1959 }
1960 #[doc = "Writes raw bits to the register."]
1961 #[inline(always)]
1962 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1963 self.0.bits(bits);
1964 self
1965 }
1966}
1967#[doc = "Description cluster: Select between secure and non-secure attribute for the DPPI channels\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 [perm](index.html) module"]
1968pub struct PERM_SPEC;
1969impl crate::RegisterSpec for PERM_SPEC {
1970 type Ux = u32;
1971}
1972#[doc = "`read()` method returns [perm::R](R) reader structure"]
1973impl crate::Readable for PERM_SPEC {
1974 type Reader = R;
1975}
1976#[doc = "`write(|w| ..)` method takes [perm::W](W) writer structure"]
1977impl crate::Writable for PERM_SPEC {
1978 type Writer = W;
1979}
1980#[doc = "`reset()` method sets PERM to value 0xffff_ffff"]
1981impl crate::Resettable for PERM_SPEC {
1982 #[inline(always)]
1983 fn reset_value() -> Self::Ux {
1984 0xffff_ffff
1985 }
1986}