1#[doc = "Register `ELCSARB` reader"]
2pub struct R(crate::R<ELCSARB_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<ELCSARB_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<ELCSARB_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<ELCSARB_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `ELCSARB` writer"]
17pub struct W(crate::W<ELCSARB_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<ELCSARB_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<ELCSARB_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<ELCSARB_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `ELSR0` reader - Event Link Setting Register n Security Attribution"]
38pub type ELSR0_R = crate::BitReader<ELSR0_A>;
39#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
40#[derive(Clone, Copy, Debug, PartialEq, Eq)]
41pub enum ELSR0_A {
42 #[doc = "0: Secure"]
43 _0 = 0,
44 #[doc = "1: Non-secure"]
45 _1 = 1,
46}
47impl From<ELSR0_A> for bool {
48 #[inline(always)]
49 fn from(variant: ELSR0_A) -> Self {
50 variant as u8 != 0
51 }
52}
53impl ELSR0_R {
54 #[doc = "Get enumerated values variant"]
55 #[inline(always)]
56 pub fn variant(&self) -> ELSR0_A {
57 match self.bits {
58 false => ELSR0_A::_0,
59 true => ELSR0_A::_1,
60 }
61 }
62 #[doc = "Checks if the value of the field is `_0`"]
63 #[inline(always)]
64 pub fn is_0(&self) -> bool {
65 *self == ELSR0_A::_0
66 }
67 #[doc = "Checks if the value of the field is `_1`"]
68 #[inline(always)]
69 pub fn is_1(&self) -> bool {
70 *self == ELSR0_A::_1
71 }
72}
73#[doc = "Field `ELSR0` writer - Event Link Setting Register n Security Attribution"]
74pub type ELSR0_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR0_A, O>;
75impl<'a, const O: u8> ELSR0_W<'a, O> {
76 #[doc = "Secure"]
77 #[inline(always)]
78 pub fn _0(self) -> &'a mut W {
79 self.variant(ELSR0_A::_0)
80 }
81 #[doc = "Non-secure"]
82 #[inline(always)]
83 pub fn _1(self) -> &'a mut W {
84 self.variant(ELSR0_A::_1)
85 }
86}
87#[doc = "Field `ELSR1` reader - Event Link Setting Register n Security Attribution"]
88pub type ELSR1_R = crate::BitReader<ELSR1_A>;
89#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
90#[derive(Clone, Copy, Debug, PartialEq, Eq)]
91pub enum ELSR1_A {
92 #[doc = "0: Secure"]
93 _0 = 0,
94 #[doc = "1: Non-secure"]
95 _1 = 1,
96}
97impl From<ELSR1_A> for bool {
98 #[inline(always)]
99 fn from(variant: ELSR1_A) -> Self {
100 variant as u8 != 0
101 }
102}
103impl ELSR1_R {
104 #[doc = "Get enumerated values variant"]
105 #[inline(always)]
106 pub fn variant(&self) -> ELSR1_A {
107 match self.bits {
108 false => ELSR1_A::_0,
109 true => ELSR1_A::_1,
110 }
111 }
112 #[doc = "Checks if the value of the field is `_0`"]
113 #[inline(always)]
114 pub fn is_0(&self) -> bool {
115 *self == ELSR1_A::_0
116 }
117 #[doc = "Checks if the value of the field is `_1`"]
118 #[inline(always)]
119 pub fn is_1(&self) -> bool {
120 *self == ELSR1_A::_1
121 }
122}
123#[doc = "Field `ELSR1` writer - Event Link Setting Register n Security Attribution"]
124pub type ELSR1_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR1_A, O>;
125impl<'a, const O: u8> ELSR1_W<'a, O> {
126 #[doc = "Secure"]
127 #[inline(always)]
128 pub fn _0(self) -> &'a mut W {
129 self.variant(ELSR1_A::_0)
130 }
131 #[doc = "Non-secure"]
132 #[inline(always)]
133 pub fn _1(self) -> &'a mut W {
134 self.variant(ELSR1_A::_1)
135 }
136}
137#[doc = "Field `ELSR2` reader - Event Link Setting Register n Security Attribution"]
138pub type ELSR2_R = crate::BitReader<ELSR2_A>;
139#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
140#[derive(Clone, Copy, Debug, PartialEq, Eq)]
141pub enum ELSR2_A {
142 #[doc = "0: Secure"]
143 _0 = 0,
144 #[doc = "1: Non-secure"]
145 _1 = 1,
146}
147impl From<ELSR2_A> for bool {
148 #[inline(always)]
149 fn from(variant: ELSR2_A) -> Self {
150 variant as u8 != 0
151 }
152}
153impl ELSR2_R {
154 #[doc = "Get enumerated values variant"]
155 #[inline(always)]
156 pub fn variant(&self) -> ELSR2_A {
157 match self.bits {
158 false => ELSR2_A::_0,
159 true => ELSR2_A::_1,
160 }
161 }
162 #[doc = "Checks if the value of the field is `_0`"]
163 #[inline(always)]
164 pub fn is_0(&self) -> bool {
165 *self == ELSR2_A::_0
166 }
167 #[doc = "Checks if the value of the field is `_1`"]
168 #[inline(always)]
169 pub fn is_1(&self) -> bool {
170 *self == ELSR2_A::_1
171 }
172}
173#[doc = "Field `ELSR2` writer - Event Link Setting Register n Security Attribution"]
174pub type ELSR2_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR2_A, O>;
175impl<'a, const O: u8> ELSR2_W<'a, O> {
176 #[doc = "Secure"]
177 #[inline(always)]
178 pub fn _0(self) -> &'a mut W {
179 self.variant(ELSR2_A::_0)
180 }
181 #[doc = "Non-secure"]
182 #[inline(always)]
183 pub fn _1(self) -> &'a mut W {
184 self.variant(ELSR2_A::_1)
185 }
186}
187#[doc = "Field `ELSR3` reader - Event Link Setting Register n Security Attribution"]
188pub type ELSR3_R = crate::BitReader<ELSR3_A>;
189#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
190#[derive(Clone, Copy, Debug, PartialEq, Eq)]
191pub enum ELSR3_A {
192 #[doc = "0: Secure"]
193 _0 = 0,
194 #[doc = "1: Non-secure"]
195 _1 = 1,
196}
197impl From<ELSR3_A> for bool {
198 #[inline(always)]
199 fn from(variant: ELSR3_A) -> Self {
200 variant as u8 != 0
201 }
202}
203impl ELSR3_R {
204 #[doc = "Get enumerated values variant"]
205 #[inline(always)]
206 pub fn variant(&self) -> ELSR3_A {
207 match self.bits {
208 false => ELSR3_A::_0,
209 true => ELSR3_A::_1,
210 }
211 }
212 #[doc = "Checks if the value of the field is `_0`"]
213 #[inline(always)]
214 pub fn is_0(&self) -> bool {
215 *self == ELSR3_A::_0
216 }
217 #[doc = "Checks if the value of the field is `_1`"]
218 #[inline(always)]
219 pub fn is_1(&self) -> bool {
220 *self == ELSR3_A::_1
221 }
222}
223#[doc = "Field `ELSR3` writer - Event Link Setting Register n Security Attribution"]
224pub type ELSR3_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR3_A, O>;
225impl<'a, const O: u8> ELSR3_W<'a, O> {
226 #[doc = "Secure"]
227 #[inline(always)]
228 pub fn _0(self) -> &'a mut W {
229 self.variant(ELSR3_A::_0)
230 }
231 #[doc = "Non-secure"]
232 #[inline(always)]
233 pub fn _1(self) -> &'a mut W {
234 self.variant(ELSR3_A::_1)
235 }
236}
237#[doc = "Field `ELSR4` reader - Event Link Setting Register n Security Attribution"]
238pub type ELSR4_R = crate::BitReader<ELSR4_A>;
239#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
240#[derive(Clone, Copy, Debug, PartialEq, Eq)]
241pub enum ELSR4_A {
242 #[doc = "0: Secure"]
243 _0 = 0,
244 #[doc = "1: Non-secure"]
245 _1 = 1,
246}
247impl From<ELSR4_A> for bool {
248 #[inline(always)]
249 fn from(variant: ELSR4_A) -> Self {
250 variant as u8 != 0
251 }
252}
253impl ELSR4_R {
254 #[doc = "Get enumerated values variant"]
255 #[inline(always)]
256 pub fn variant(&self) -> ELSR4_A {
257 match self.bits {
258 false => ELSR4_A::_0,
259 true => ELSR4_A::_1,
260 }
261 }
262 #[doc = "Checks if the value of the field is `_0`"]
263 #[inline(always)]
264 pub fn is_0(&self) -> bool {
265 *self == ELSR4_A::_0
266 }
267 #[doc = "Checks if the value of the field is `_1`"]
268 #[inline(always)]
269 pub fn is_1(&self) -> bool {
270 *self == ELSR4_A::_1
271 }
272}
273#[doc = "Field `ELSR4` writer - Event Link Setting Register n Security Attribution"]
274pub type ELSR4_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR4_A, O>;
275impl<'a, const O: u8> ELSR4_W<'a, O> {
276 #[doc = "Secure"]
277 #[inline(always)]
278 pub fn _0(self) -> &'a mut W {
279 self.variant(ELSR4_A::_0)
280 }
281 #[doc = "Non-secure"]
282 #[inline(always)]
283 pub fn _1(self) -> &'a mut W {
284 self.variant(ELSR4_A::_1)
285 }
286}
287#[doc = "Field `ELSR5` reader - Event Link Setting Register n Security Attribution"]
288pub type ELSR5_R = crate::BitReader<ELSR5_A>;
289#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
290#[derive(Clone, Copy, Debug, PartialEq, Eq)]
291pub enum ELSR5_A {
292 #[doc = "0: Secure"]
293 _0 = 0,
294 #[doc = "1: Non-secure"]
295 _1 = 1,
296}
297impl From<ELSR5_A> for bool {
298 #[inline(always)]
299 fn from(variant: ELSR5_A) -> Self {
300 variant as u8 != 0
301 }
302}
303impl ELSR5_R {
304 #[doc = "Get enumerated values variant"]
305 #[inline(always)]
306 pub fn variant(&self) -> ELSR5_A {
307 match self.bits {
308 false => ELSR5_A::_0,
309 true => ELSR5_A::_1,
310 }
311 }
312 #[doc = "Checks if the value of the field is `_0`"]
313 #[inline(always)]
314 pub fn is_0(&self) -> bool {
315 *self == ELSR5_A::_0
316 }
317 #[doc = "Checks if the value of the field is `_1`"]
318 #[inline(always)]
319 pub fn is_1(&self) -> bool {
320 *self == ELSR5_A::_1
321 }
322}
323#[doc = "Field `ELSR5` writer - Event Link Setting Register n Security Attribution"]
324pub type ELSR5_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR5_A, O>;
325impl<'a, const O: u8> ELSR5_W<'a, O> {
326 #[doc = "Secure"]
327 #[inline(always)]
328 pub fn _0(self) -> &'a mut W {
329 self.variant(ELSR5_A::_0)
330 }
331 #[doc = "Non-secure"]
332 #[inline(always)]
333 pub fn _1(self) -> &'a mut W {
334 self.variant(ELSR5_A::_1)
335 }
336}
337#[doc = "Field `ELSR6` reader - Event Link Setting Register n Security Attribution"]
338pub type ELSR6_R = crate::BitReader<ELSR6_A>;
339#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
340#[derive(Clone, Copy, Debug, PartialEq, Eq)]
341pub enum ELSR6_A {
342 #[doc = "0: Secure"]
343 _0 = 0,
344 #[doc = "1: Non-secure"]
345 _1 = 1,
346}
347impl From<ELSR6_A> for bool {
348 #[inline(always)]
349 fn from(variant: ELSR6_A) -> Self {
350 variant as u8 != 0
351 }
352}
353impl ELSR6_R {
354 #[doc = "Get enumerated values variant"]
355 #[inline(always)]
356 pub fn variant(&self) -> ELSR6_A {
357 match self.bits {
358 false => ELSR6_A::_0,
359 true => ELSR6_A::_1,
360 }
361 }
362 #[doc = "Checks if the value of the field is `_0`"]
363 #[inline(always)]
364 pub fn is_0(&self) -> bool {
365 *self == ELSR6_A::_0
366 }
367 #[doc = "Checks if the value of the field is `_1`"]
368 #[inline(always)]
369 pub fn is_1(&self) -> bool {
370 *self == ELSR6_A::_1
371 }
372}
373#[doc = "Field `ELSR6` writer - Event Link Setting Register n Security Attribution"]
374pub type ELSR6_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR6_A, O>;
375impl<'a, const O: u8> ELSR6_W<'a, O> {
376 #[doc = "Secure"]
377 #[inline(always)]
378 pub fn _0(self) -> &'a mut W {
379 self.variant(ELSR6_A::_0)
380 }
381 #[doc = "Non-secure"]
382 #[inline(always)]
383 pub fn _1(self) -> &'a mut W {
384 self.variant(ELSR6_A::_1)
385 }
386}
387#[doc = "Field `ELSR7` reader - Event Link Setting Register n Security Attribution"]
388pub type ELSR7_R = crate::BitReader<ELSR7_A>;
389#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
390#[derive(Clone, Copy, Debug, PartialEq, Eq)]
391pub enum ELSR7_A {
392 #[doc = "0: Secure"]
393 _0 = 0,
394 #[doc = "1: Non-secure"]
395 _1 = 1,
396}
397impl From<ELSR7_A> for bool {
398 #[inline(always)]
399 fn from(variant: ELSR7_A) -> Self {
400 variant as u8 != 0
401 }
402}
403impl ELSR7_R {
404 #[doc = "Get enumerated values variant"]
405 #[inline(always)]
406 pub fn variant(&self) -> ELSR7_A {
407 match self.bits {
408 false => ELSR7_A::_0,
409 true => ELSR7_A::_1,
410 }
411 }
412 #[doc = "Checks if the value of the field is `_0`"]
413 #[inline(always)]
414 pub fn is_0(&self) -> bool {
415 *self == ELSR7_A::_0
416 }
417 #[doc = "Checks if the value of the field is `_1`"]
418 #[inline(always)]
419 pub fn is_1(&self) -> bool {
420 *self == ELSR7_A::_1
421 }
422}
423#[doc = "Field `ELSR7` writer - Event Link Setting Register n Security Attribution"]
424pub type ELSR7_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR7_A, O>;
425impl<'a, const O: u8> ELSR7_W<'a, O> {
426 #[doc = "Secure"]
427 #[inline(always)]
428 pub fn _0(self) -> &'a mut W {
429 self.variant(ELSR7_A::_0)
430 }
431 #[doc = "Non-secure"]
432 #[inline(always)]
433 pub fn _1(self) -> &'a mut W {
434 self.variant(ELSR7_A::_1)
435 }
436}
437#[doc = "Field `ELSR12` reader - Event Link Setting Register n Security Attribution"]
438pub type ELSR12_R = crate::BitReader<ELSR12_A>;
439#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
440#[derive(Clone, Copy, Debug, PartialEq, Eq)]
441pub enum ELSR12_A {
442 #[doc = "0: Secure"]
443 _0 = 0,
444 #[doc = "1: Non-secure"]
445 _1 = 1,
446}
447impl From<ELSR12_A> for bool {
448 #[inline(always)]
449 fn from(variant: ELSR12_A) -> Self {
450 variant as u8 != 0
451 }
452}
453impl ELSR12_R {
454 #[doc = "Get enumerated values variant"]
455 #[inline(always)]
456 pub fn variant(&self) -> ELSR12_A {
457 match self.bits {
458 false => ELSR12_A::_0,
459 true => ELSR12_A::_1,
460 }
461 }
462 #[doc = "Checks if the value of the field is `_0`"]
463 #[inline(always)]
464 pub fn is_0(&self) -> bool {
465 *self == ELSR12_A::_0
466 }
467 #[doc = "Checks if the value of the field is `_1`"]
468 #[inline(always)]
469 pub fn is_1(&self) -> bool {
470 *self == ELSR12_A::_1
471 }
472}
473#[doc = "Field `ELSR12` writer - Event Link Setting Register n Security Attribution"]
474pub type ELSR12_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR12_A, O>;
475impl<'a, const O: u8> ELSR12_W<'a, O> {
476 #[doc = "Secure"]
477 #[inline(always)]
478 pub fn _0(self) -> &'a mut W {
479 self.variant(ELSR12_A::_0)
480 }
481 #[doc = "Non-secure"]
482 #[inline(always)]
483 pub fn _1(self) -> &'a mut W {
484 self.variant(ELSR12_A::_1)
485 }
486}
487#[doc = "Field `ELSR13` reader - Event Link Setting Register n Security Attribution"]
488pub type ELSR13_R = crate::BitReader<ELSR13_A>;
489#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
490#[derive(Clone, Copy, Debug, PartialEq, Eq)]
491pub enum ELSR13_A {
492 #[doc = "0: Secure"]
493 _0 = 0,
494 #[doc = "1: Non-secure"]
495 _1 = 1,
496}
497impl From<ELSR13_A> for bool {
498 #[inline(always)]
499 fn from(variant: ELSR13_A) -> Self {
500 variant as u8 != 0
501 }
502}
503impl ELSR13_R {
504 #[doc = "Get enumerated values variant"]
505 #[inline(always)]
506 pub fn variant(&self) -> ELSR13_A {
507 match self.bits {
508 false => ELSR13_A::_0,
509 true => ELSR13_A::_1,
510 }
511 }
512 #[doc = "Checks if the value of the field is `_0`"]
513 #[inline(always)]
514 pub fn is_0(&self) -> bool {
515 *self == ELSR13_A::_0
516 }
517 #[doc = "Checks if the value of the field is `_1`"]
518 #[inline(always)]
519 pub fn is_1(&self) -> bool {
520 *self == ELSR13_A::_1
521 }
522}
523#[doc = "Field `ELSR13` writer - Event Link Setting Register n Security Attribution"]
524pub type ELSR13_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR13_A, O>;
525impl<'a, const O: u8> ELSR13_W<'a, O> {
526 #[doc = "Secure"]
527 #[inline(always)]
528 pub fn _0(self) -> &'a mut W {
529 self.variant(ELSR13_A::_0)
530 }
531 #[doc = "Non-secure"]
532 #[inline(always)]
533 pub fn _1(self) -> &'a mut W {
534 self.variant(ELSR13_A::_1)
535 }
536}
537#[doc = "Field `ELSR14` reader - Event Link Setting Register n Security Attribution"]
538pub type ELSR14_R = crate::BitReader<ELSR14_A>;
539#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
540#[derive(Clone, Copy, Debug, PartialEq, Eq)]
541pub enum ELSR14_A {
542 #[doc = "0: Secure"]
543 _0 = 0,
544 #[doc = "1: Non-secure"]
545 _1 = 1,
546}
547impl From<ELSR14_A> for bool {
548 #[inline(always)]
549 fn from(variant: ELSR14_A) -> Self {
550 variant as u8 != 0
551 }
552}
553impl ELSR14_R {
554 #[doc = "Get enumerated values variant"]
555 #[inline(always)]
556 pub fn variant(&self) -> ELSR14_A {
557 match self.bits {
558 false => ELSR14_A::_0,
559 true => ELSR14_A::_1,
560 }
561 }
562 #[doc = "Checks if the value of the field is `_0`"]
563 #[inline(always)]
564 pub fn is_0(&self) -> bool {
565 *self == ELSR14_A::_0
566 }
567 #[doc = "Checks if the value of the field is `_1`"]
568 #[inline(always)]
569 pub fn is_1(&self) -> bool {
570 *self == ELSR14_A::_1
571 }
572}
573#[doc = "Field `ELSR14` writer - Event Link Setting Register n Security Attribution"]
574pub type ELSR14_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR14_A, O>;
575impl<'a, const O: u8> ELSR14_W<'a, O> {
576 #[doc = "Secure"]
577 #[inline(always)]
578 pub fn _0(self) -> &'a mut W {
579 self.variant(ELSR14_A::_0)
580 }
581 #[doc = "Non-secure"]
582 #[inline(always)]
583 pub fn _1(self) -> &'a mut W {
584 self.variant(ELSR14_A::_1)
585 }
586}
587#[doc = "Field `ELSR15` reader - Event Link Setting Register n Security Attribution"]
588pub type ELSR15_R = crate::BitReader<ELSR15_A>;
589#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
590#[derive(Clone, Copy, Debug, PartialEq, Eq)]
591pub enum ELSR15_A {
592 #[doc = "0: Secure"]
593 _0 = 0,
594 #[doc = "1: Non-secure"]
595 _1 = 1,
596}
597impl From<ELSR15_A> for bool {
598 #[inline(always)]
599 fn from(variant: ELSR15_A) -> Self {
600 variant as u8 != 0
601 }
602}
603impl ELSR15_R {
604 #[doc = "Get enumerated values variant"]
605 #[inline(always)]
606 pub fn variant(&self) -> ELSR15_A {
607 match self.bits {
608 false => ELSR15_A::_0,
609 true => ELSR15_A::_1,
610 }
611 }
612 #[doc = "Checks if the value of the field is `_0`"]
613 #[inline(always)]
614 pub fn is_0(&self) -> bool {
615 *self == ELSR15_A::_0
616 }
617 #[doc = "Checks if the value of the field is `_1`"]
618 #[inline(always)]
619 pub fn is_1(&self) -> bool {
620 *self == ELSR15_A::_1
621 }
622}
623#[doc = "Field `ELSR15` writer - Event Link Setting Register n Security Attribution"]
624pub type ELSR15_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR15_A, O>;
625impl<'a, const O: u8> ELSR15_W<'a, O> {
626 #[doc = "Secure"]
627 #[inline(always)]
628 pub fn _0(self) -> &'a mut W {
629 self.variant(ELSR15_A::_0)
630 }
631 #[doc = "Non-secure"]
632 #[inline(always)]
633 pub fn _1(self) -> &'a mut W {
634 self.variant(ELSR15_A::_1)
635 }
636}
637#[doc = "Field `ELSR16` reader - Event Link Setting Register n Security Attribution"]
638pub type ELSR16_R = crate::BitReader<ELSR16_A>;
639#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
640#[derive(Clone, Copy, Debug, PartialEq, Eq)]
641pub enum ELSR16_A {
642 #[doc = "0: Secure"]
643 _0 = 0,
644 #[doc = "1: Non-secure"]
645 _1 = 1,
646}
647impl From<ELSR16_A> for bool {
648 #[inline(always)]
649 fn from(variant: ELSR16_A) -> Self {
650 variant as u8 != 0
651 }
652}
653impl ELSR16_R {
654 #[doc = "Get enumerated values variant"]
655 #[inline(always)]
656 pub fn variant(&self) -> ELSR16_A {
657 match self.bits {
658 false => ELSR16_A::_0,
659 true => ELSR16_A::_1,
660 }
661 }
662 #[doc = "Checks if the value of the field is `_0`"]
663 #[inline(always)]
664 pub fn is_0(&self) -> bool {
665 *self == ELSR16_A::_0
666 }
667 #[doc = "Checks if the value of the field is `_1`"]
668 #[inline(always)]
669 pub fn is_1(&self) -> bool {
670 *self == ELSR16_A::_1
671 }
672}
673#[doc = "Field `ELSR16` writer - Event Link Setting Register n Security Attribution"]
674pub type ELSR16_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR16_A, O>;
675impl<'a, const O: u8> ELSR16_W<'a, O> {
676 #[doc = "Secure"]
677 #[inline(always)]
678 pub fn _0(self) -> &'a mut W {
679 self.variant(ELSR16_A::_0)
680 }
681 #[doc = "Non-secure"]
682 #[inline(always)]
683 pub fn _1(self) -> &'a mut W {
684 self.variant(ELSR16_A::_1)
685 }
686}
687#[doc = "Field `ELSR17` reader - Event Link Setting Register n Security Attribution"]
688pub type ELSR17_R = crate::BitReader<ELSR17_A>;
689#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
690#[derive(Clone, Copy, Debug, PartialEq, Eq)]
691pub enum ELSR17_A {
692 #[doc = "0: Secure"]
693 _0 = 0,
694 #[doc = "1: Non-secure"]
695 _1 = 1,
696}
697impl From<ELSR17_A> for bool {
698 #[inline(always)]
699 fn from(variant: ELSR17_A) -> Self {
700 variant as u8 != 0
701 }
702}
703impl ELSR17_R {
704 #[doc = "Get enumerated values variant"]
705 #[inline(always)]
706 pub fn variant(&self) -> ELSR17_A {
707 match self.bits {
708 false => ELSR17_A::_0,
709 true => ELSR17_A::_1,
710 }
711 }
712 #[doc = "Checks if the value of the field is `_0`"]
713 #[inline(always)]
714 pub fn is_0(&self) -> bool {
715 *self == ELSR17_A::_0
716 }
717 #[doc = "Checks if the value of the field is `_1`"]
718 #[inline(always)]
719 pub fn is_1(&self) -> bool {
720 *self == ELSR17_A::_1
721 }
722}
723#[doc = "Field `ELSR17` writer - Event Link Setting Register n Security Attribution"]
724pub type ELSR17_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR17_A, O>;
725impl<'a, const O: u8> ELSR17_W<'a, O> {
726 #[doc = "Secure"]
727 #[inline(always)]
728 pub fn _0(self) -> &'a mut W {
729 self.variant(ELSR17_A::_0)
730 }
731 #[doc = "Non-secure"]
732 #[inline(always)]
733 pub fn _1(self) -> &'a mut W {
734 self.variant(ELSR17_A::_1)
735 }
736}
737#[doc = "Field `ELSR19` reader - Event Link Setting Register n Security Attribution"]
738pub type ELSR19_R = crate::BitReader<ELSR19_A>;
739#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
740#[derive(Clone, Copy, Debug, PartialEq, Eq)]
741pub enum ELSR19_A {
742 #[doc = "0: Secure"]
743 _0 = 0,
744 #[doc = "1: Non-secure"]
745 _1 = 1,
746}
747impl From<ELSR19_A> for bool {
748 #[inline(always)]
749 fn from(variant: ELSR19_A) -> Self {
750 variant as u8 != 0
751 }
752}
753impl ELSR19_R {
754 #[doc = "Get enumerated values variant"]
755 #[inline(always)]
756 pub fn variant(&self) -> ELSR19_A {
757 match self.bits {
758 false => ELSR19_A::_0,
759 true => ELSR19_A::_1,
760 }
761 }
762 #[doc = "Checks if the value of the field is `_0`"]
763 #[inline(always)]
764 pub fn is_0(&self) -> bool {
765 *self == ELSR19_A::_0
766 }
767 #[doc = "Checks if the value of the field is `_1`"]
768 #[inline(always)]
769 pub fn is_1(&self) -> bool {
770 *self == ELSR19_A::_1
771 }
772}
773#[doc = "Field `ELSR19` writer - Event Link Setting Register n Security Attribution"]
774pub type ELSR19_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR19_A, O>;
775impl<'a, const O: u8> ELSR19_W<'a, O> {
776 #[doc = "Secure"]
777 #[inline(always)]
778 pub fn _0(self) -> &'a mut W {
779 self.variant(ELSR19_A::_0)
780 }
781 #[doc = "Non-secure"]
782 #[inline(always)]
783 pub fn _1(self) -> &'a mut W {
784 self.variant(ELSR19_A::_1)
785 }
786}
787#[doc = "Field `ELSR20` reader - Event Link Setting Register n Security Attribution"]
788pub type ELSR20_R = crate::BitReader<ELSR20_A>;
789#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
790#[derive(Clone, Copy, Debug, PartialEq, Eq)]
791pub enum ELSR20_A {
792 #[doc = "0: Secure"]
793 _0 = 0,
794 #[doc = "1: Non-secure"]
795 _1 = 1,
796}
797impl From<ELSR20_A> for bool {
798 #[inline(always)]
799 fn from(variant: ELSR20_A) -> Self {
800 variant as u8 != 0
801 }
802}
803impl ELSR20_R {
804 #[doc = "Get enumerated values variant"]
805 #[inline(always)]
806 pub fn variant(&self) -> ELSR20_A {
807 match self.bits {
808 false => ELSR20_A::_0,
809 true => ELSR20_A::_1,
810 }
811 }
812 #[doc = "Checks if the value of the field is `_0`"]
813 #[inline(always)]
814 pub fn is_0(&self) -> bool {
815 *self == ELSR20_A::_0
816 }
817 #[doc = "Checks if the value of the field is `_1`"]
818 #[inline(always)]
819 pub fn is_1(&self) -> bool {
820 *self == ELSR20_A::_1
821 }
822}
823#[doc = "Field `ELSR20` writer - Event Link Setting Register n Security Attribution"]
824pub type ELSR20_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR20_A, O>;
825impl<'a, const O: u8> ELSR20_W<'a, O> {
826 #[doc = "Secure"]
827 #[inline(always)]
828 pub fn _0(self) -> &'a mut W {
829 self.variant(ELSR20_A::_0)
830 }
831 #[doc = "Non-secure"]
832 #[inline(always)]
833 pub fn _1(self) -> &'a mut W {
834 self.variant(ELSR20_A::_1)
835 }
836}
837#[doc = "Field `ELSR21` reader - Event Link Setting Register n Security Attribution"]
838pub type ELSR21_R = crate::BitReader<ELSR21_A>;
839#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
840#[derive(Clone, Copy, Debug, PartialEq, Eq)]
841pub enum ELSR21_A {
842 #[doc = "0: Secure"]
843 _0 = 0,
844 #[doc = "1: Non-secure"]
845 _1 = 1,
846}
847impl From<ELSR21_A> for bool {
848 #[inline(always)]
849 fn from(variant: ELSR21_A) -> Self {
850 variant as u8 != 0
851 }
852}
853impl ELSR21_R {
854 #[doc = "Get enumerated values variant"]
855 #[inline(always)]
856 pub fn variant(&self) -> ELSR21_A {
857 match self.bits {
858 false => ELSR21_A::_0,
859 true => ELSR21_A::_1,
860 }
861 }
862 #[doc = "Checks if the value of the field is `_0`"]
863 #[inline(always)]
864 pub fn is_0(&self) -> bool {
865 *self == ELSR21_A::_0
866 }
867 #[doc = "Checks if the value of the field is `_1`"]
868 #[inline(always)]
869 pub fn is_1(&self) -> bool {
870 *self == ELSR21_A::_1
871 }
872}
873#[doc = "Field `ELSR21` writer - Event Link Setting Register n Security Attribution"]
874pub type ELSR21_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR21_A, O>;
875impl<'a, const O: u8> ELSR21_W<'a, O> {
876 #[doc = "Secure"]
877 #[inline(always)]
878 pub fn _0(self) -> &'a mut W {
879 self.variant(ELSR21_A::_0)
880 }
881 #[doc = "Non-secure"]
882 #[inline(always)]
883 pub fn _1(self) -> &'a mut W {
884 self.variant(ELSR21_A::_1)
885 }
886}
887#[doc = "Field `ELSR22` reader - Event Link Setting Register n Security Attribution"]
888pub type ELSR22_R = crate::BitReader<ELSR22_A>;
889#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
890#[derive(Clone, Copy, Debug, PartialEq, Eq)]
891pub enum ELSR22_A {
892 #[doc = "0: Secure"]
893 _0 = 0,
894 #[doc = "1: Non-secure"]
895 _1 = 1,
896}
897impl From<ELSR22_A> for bool {
898 #[inline(always)]
899 fn from(variant: ELSR22_A) -> Self {
900 variant as u8 != 0
901 }
902}
903impl ELSR22_R {
904 #[doc = "Get enumerated values variant"]
905 #[inline(always)]
906 pub fn variant(&self) -> ELSR22_A {
907 match self.bits {
908 false => ELSR22_A::_0,
909 true => ELSR22_A::_1,
910 }
911 }
912 #[doc = "Checks if the value of the field is `_0`"]
913 #[inline(always)]
914 pub fn is_0(&self) -> bool {
915 *self == ELSR22_A::_0
916 }
917 #[doc = "Checks if the value of the field is `_1`"]
918 #[inline(always)]
919 pub fn is_1(&self) -> bool {
920 *self == ELSR22_A::_1
921 }
922}
923#[doc = "Field `ELSR22` writer - Event Link Setting Register n Security Attribution"]
924pub type ELSR22_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR22_A, O>;
925impl<'a, const O: u8> ELSR22_W<'a, O> {
926 #[doc = "Secure"]
927 #[inline(always)]
928 pub fn _0(self) -> &'a mut W {
929 self.variant(ELSR22_A::_0)
930 }
931 #[doc = "Non-secure"]
932 #[inline(always)]
933 pub fn _1(self) -> &'a mut W {
934 self.variant(ELSR22_A::_1)
935 }
936}
937#[doc = "Field `ELSR23` reader - Event Link Setting Register n Security Attribution"]
938pub type ELSR23_R = crate::BitReader<ELSR23_A>;
939#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
940#[derive(Clone, Copy, Debug, PartialEq, Eq)]
941pub enum ELSR23_A {
942 #[doc = "0: Secure"]
943 _0 = 0,
944 #[doc = "1: Non-secure"]
945 _1 = 1,
946}
947impl From<ELSR23_A> for bool {
948 #[inline(always)]
949 fn from(variant: ELSR23_A) -> Self {
950 variant as u8 != 0
951 }
952}
953impl ELSR23_R {
954 #[doc = "Get enumerated values variant"]
955 #[inline(always)]
956 pub fn variant(&self) -> ELSR23_A {
957 match self.bits {
958 false => ELSR23_A::_0,
959 true => ELSR23_A::_1,
960 }
961 }
962 #[doc = "Checks if the value of the field is `_0`"]
963 #[inline(always)]
964 pub fn is_0(&self) -> bool {
965 *self == ELSR23_A::_0
966 }
967 #[doc = "Checks if the value of the field is `_1`"]
968 #[inline(always)]
969 pub fn is_1(&self) -> bool {
970 *self == ELSR23_A::_1
971 }
972}
973#[doc = "Field `ELSR23` writer - Event Link Setting Register n Security Attribution"]
974pub type ELSR23_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR23_A, O>;
975impl<'a, const O: u8> ELSR23_W<'a, O> {
976 #[doc = "Secure"]
977 #[inline(always)]
978 pub fn _0(self) -> &'a mut W {
979 self.variant(ELSR23_A::_0)
980 }
981 #[doc = "Non-secure"]
982 #[inline(always)]
983 pub fn _1(self) -> &'a mut W {
984 self.variant(ELSR23_A::_1)
985 }
986}
987#[doc = "Field `ELSR24` reader - Event Link Setting Register n Security Attribution"]
988pub type ELSR24_R = crate::BitReader<ELSR24_A>;
989#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
990#[derive(Clone, Copy, Debug, PartialEq, Eq)]
991pub enum ELSR24_A {
992 #[doc = "0: Secure"]
993 _0 = 0,
994 #[doc = "1: Non-secure"]
995 _1 = 1,
996}
997impl From<ELSR24_A> for bool {
998 #[inline(always)]
999 fn from(variant: ELSR24_A) -> Self {
1000 variant as u8 != 0
1001 }
1002}
1003impl ELSR24_R {
1004 #[doc = "Get enumerated values variant"]
1005 #[inline(always)]
1006 pub fn variant(&self) -> ELSR24_A {
1007 match self.bits {
1008 false => ELSR24_A::_0,
1009 true => ELSR24_A::_1,
1010 }
1011 }
1012 #[doc = "Checks if the value of the field is `_0`"]
1013 #[inline(always)]
1014 pub fn is_0(&self) -> bool {
1015 *self == ELSR24_A::_0
1016 }
1017 #[doc = "Checks if the value of the field is `_1`"]
1018 #[inline(always)]
1019 pub fn is_1(&self) -> bool {
1020 *self == ELSR24_A::_1
1021 }
1022}
1023#[doc = "Field `ELSR24` writer - Event Link Setting Register n Security Attribution"]
1024pub type ELSR24_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR24_A, O>;
1025impl<'a, const O: u8> ELSR24_W<'a, O> {
1026 #[doc = "Secure"]
1027 #[inline(always)]
1028 pub fn _0(self) -> &'a mut W {
1029 self.variant(ELSR24_A::_0)
1030 }
1031 #[doc = "Non-secure"]
1032 #[inline(always)]
1033 pub fn _1(self) -> &'a mut W {
1034 self.variant(ELSR24_A::_1)
1035 }
1036}
1037#[doc = "Field `ELSR28` reader - Event Link Setting Register n Security Attribution"]
1038pub type ELSR28_R = crate::BitReader<ELSR28_A>;
1039#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
1040#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1041pub enum ELSR28_A {
1042 #[doc = "0: Secure"]
1043 _0 = 0,
1044 #[doc = "1: Non-secure"]
1045 _1 = 1,
1046}
1047impl From<ELSR28_A> for bool {
1048 #[inline(always)]
1049 fn from(variant: ELSR28_A) -> Self {
1050 variant as u8 != 0
1051 }
1052}
1053impl ELSR28_R {
1054 #[doc = "Get enumerated values variant"]
1055 #[inline(always)]
1056 pub fn variant(&self) -> ELSR28_A {
1057 match self.bits {
1058 false => ELSR28_A::_0,
1059 true => ELSR28_A::_1,
1060 }
1061 }
1062 #[doc = "Checks if the value of the field is `_0`"]
1063 #[inline(always)]
1064 pub fn is_0(&self) -> bool {
1065 *self == ELSR28_A::_0
1066 }
1067 #[doc = "Checks if the value of the field is `_1`"]
1068 #[inline(always)]
1069 pub fn is_1(&self) -> bool {
1070 *self == ELSR28_A::_1
1071 }
1072}
1073#[doc = "Field `ELSR28` writer - Event Link Setting Register n Security Attribution"]
1074pub type ELSR28_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR28_A, O>;
1075impl<'a, const O: u8> ELSR28_W<'a, O> {
1076 #[doc = "Secure"]
1077 #[inline(always)]
1078 pub fn _0(self) -> &'a mut W {
1079 self.variant(ELSR28_A::_0)
1080 }
1081 #[doc = "Non-secure"]
1082 #[inline(always)]
1083 pub fn _1(self) -> &'a mut W {
1084 self.variant(ELSR28_A::_1)
1085 }
1086}
1087#[doc = "Field `ELSR29` reader - Event Link Setting Register n Security Attribution"]
1088pub type ELSR29_R = crate::BitReader<ELSR29_A>;
1089#[doc = "Event Link Setting Register n Security Attribution\n\nValue on reset: 1"]
1090#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1091pub enum ELSR29_A {
1092 #[doc = "0: Secure"]
1093 _0 = 0,
1094 #[doc = "1: Non-secure"]
1095 _1 = 1,
1096}
1097impl From<ELSR29_A> for bool {
1098 #[inline(always)]
1099 fn from(variant: ELSR29_A) -> Self {
1100 variant as u8 != 0
1101 }
1102}
1103impl ELSR29_R {
1104 #[doc = "Get enumerated values variant"]
1105 #[inline(always)]
1106 pub fn variant(&self) -> ELSR29_A {
1107 match self.bits {
1108 false => ELSR29_A::_0,
1109 true => ELSR29_A::_1,
1110 }
1111 }
1112 #[doc = "Checks if the value of the field is `_0`"]
1113 #[inline(always)]
1114 pub fn is_0(&self) -> bool {
1115 *self == ELSR29_A::_0
1116 }
1117 #[doc = "Checks if the value of the field is `_1`"]
1118 #[inline(always)]
1119 pub fn is_1(&self) -> bool {
1120 *self == ELSR29_A::_1
1121 }
1122}
1123#[doc = "Field `ELSR29` writer - Event Link Setting Register n Security Attribution"]
1124pub type ELSR29_W<'a, const O: u8> = crate::BitWriter<'a, u32, ELCSARB_SPEC, ELSR29_A, O>;
1125impl<'a, const O: u8> ELSR29_W<'a, O> {
1126 #[doc = "Secure"]
1127 #[inline(always)]
1128 pub fn _0(self) -> &'a mut W {
1129 self.variant(ELSR29_A::_0)
1130 }
1131 #[doc = "Non-secure"]
1132 #[inline(always)]
1133 pub fn _1(self) -> &'a mut W {
1134 self.variant(ELSR29_A::_1)
1135 }
1136}
1137impl R {
1138 #[doc = "Bit 0 - Event Link Setting Register n Security Attribution"]
1139 #[inline(always)]
1140 pub fn elsr0(&self) -> ELSR0_R {
1141 ELSR0_R::new((self.bits & 1) != 0)
1142 }
1143 #[doc = "Bit 1 - Event Link Setting Register n Security Attribution"]
1144 #[inline(always)]
1145 pub fn elsr1(&self) -> ELSR1_R {
1146 ELSR1_R::new(((self.bits >> 1) & 1) != 0)
1147 }
1148 #[doc = "Bit 2 - Event Link Setting Register n Security Attribution"]
1149 #[inline(always)]
1150 pub fn elsr2(&self) -> ELSR2_R {
1151 ELSR2_R::new(((self.bits >> 2) & 1) != 0)
1152 }
1153 #[doc = "Bit 3 - Event Link Setting Register n Security Attribution"]
1154 #[inline(always)]
1155 pub fn elsr3(&self) -> ELSR3_R {
1156 ELSR3_R::new(((self.bits >> 3) & 1) != 0)
1157 }
1158 #[doc = "Bit 4 - Event Link Setting Register n Security Attribution"]
1159 #[inline(always)]
1160 pub fn elsr4(&self) -> ELSR4_R {
1161 ELSR4_R::new(((self.bits >> 4) & 1) != 0)
1162 }
1163 #[doc = "Bit 5 - Event Link Setting Register n Security Attribution"]
1164 #[inline(always)]
1165 pub fn elsr5(&self) -> ELSR5_R {
1166 ELSR5_R::new(((self.bits >> 5) & 1) != 0)
1167 }
1168 #[doc = "Bit 6 - Event Link Setting Register n Security Attribution"]
1169 #[inline(always)]
1170 pub fn elsr6(&self) -> ELSR6_R {
1171 ELSR6_R::new(((self.bits >> 6) & 1) != 0)
1172 }
1173 #[doc = "Bit 7 - Event Link Setting Register n Security Attribution"]
1174 #[inline(always)]
1175 pub fn elsr7(&self) -> ELSR7_R {
1176 ELSR7_R::new(((self.bits >> 7) & 1) != 0)
1177 }
1178 #[doc = "Bit 12 - Event Link Setting Register n Security Attribution"]
1179 #[inline(always)]
1180 pub fn elsr12(&self) -> ELSR12_R {
1181 ELSR12_R::new(((self.bits >> 12) & 1) != 0)
1182 }
1183 #[doc = "Bit 13 - Event Link Setting Register n Security Attribution"]
1184 #[inline(always)]
1185 pub fn elsr13(&self) -> ELSR13_R {
1186 ELSR13_R::new(((self.bits >> 13) & 1) != 0)
1187 }
1188 #[doc = "Bit 14 - Event Link Setting Register n Security Attribution"]
1189 #[inline(always)]
1190 pub fn elsr14(&self) -> ELSR14_R {
1191 ELSR14_R::new(((self.bits >> 14) & 1) != 0)
1192 }
1193 #[doc = "Bit 15 - Event Link Setting Register n Security Attribution"]
1194 #[inline(always)]
1195 pub fn elsr15(&self) -> ELSR15_R {
1196 ELSR15_R::new(((self.bits >> 15) & 1) != 0)
1197 }
1198 #[doc = "Bit 16 - Event Link Setting Register n Security Attribution"]
1199 #[inline(always)]
1200 pub fn elsr16(&self) -> ELSR16_R {
1201 ELSR16_R::new(((self.bits >> 16) & 1) != 0)
1202 }
1203 #[doc = "Bit 17 - Event Link Setting Register n Security Attribution"]
1204 #[inline(always)]
1205 pub fn elsr17(&self) -> ELSR17_R {
1206 ELSR17_R::new(((self.bits >> 17) & 1) != 0)
1207 }
1208 #[doc = "Bit 19 - Event Link Setting Register n Security Attribution"]
1209 #[inline(always)]
1210 pub fn elsr19(&self) -> ELSR19_R {
1211 ELSR19_R::new(((self.bits >> 19) & 1) != 0)
1212 }
1213 #[doc = "Bit 20 - Event Link Setting Register n Security Attribution"]
1214 #[inline(always)]
1215 pub fn elsr20(&self) -> ELSR20_R {
1216 ELSR20_R::new(((self.bits >> 20) & 1) != 0)
1217 }
1218 #[doc = "Bit 21 - Event Link Setting Register n Security Attribution"]
1219 #[inline(always)]
1220 pub fn elsr21(&self) -> ELSR21_R {
1221 ELSR21_R::new(((self.bits >> 21) & 1) != 0)
1222 }
1223 #[doc = "Bit 22 - Event Link Setting Register n Security Attribution"]
1224 #[inline(always)]
1225 pub fn elsr22(&self) -> ELSR22_R {
1226 ELSR22_R::new(((self.bits >> 22) & 1) != 0)
1227 }
1228 #[doc = "Bit 23 - Event Link Setting Register n Security Attribution"]
1229 #[inline(always)]
1230 pub fn elsr23(&self) -> ELSR23_R {
1231 ELSR23_R::new(((self.bits >> 23) & 1) != 0)
1232 }
1233 #[doc = "Bit 24 - Event Link Setting Register n Security Attribution"]
1234 #[inline(always)]
1235 pub fn elsr24(&self) -> ELSR24_R {
1236 ELSR24_R::new(((self.bits >> 24) & 1) != 0)
1237 }
1238 #[doc = "Bit 28 - Event Link Setting Register n Security Attribution"]
1239 #[inline(always)]
1240 pub fn elsr28(&self) -> ELSR28_R {
1241 ELSR28_R::new(((self.bits >> 28) & 1) != 0)
1242 }
1243 #[doc = "Bit 29 - Event Link Setting Register n Security Attribution"]
1244 #[inline(always)]
1245 pub fn elsr29(&self) -> ELSR29_R {
1246 ELSR29_R::new(((self.bits >> 29) & 1) != 0)
1247 }
1248}
1249impl W {
1250 #[doc = "Bit 0 - Event Link Setting Register n Security Attribution"]
1251 #[inline(always)]
1252 #[must_use]
1253 pub fn elsr0(&mut self) -> ELSR0_W<0> {
1254 ELSR0_W::new(self)
1255 }
1256 #[doc = "Bit 1 - Event Link Setting Register n Security Attribution"]
1257 #[inline(always)]
1258 #[must_use]
1259 pub fn elsr1(&mut self) -> ELSR1_W<1> {
1260 ELSR1_W::new(self)
1261 }
1262 #[doc = "Bit 2 - Event Link Setting Register n Security Attribution"]
1263 #[inline(always)]
1264 #[must_use]
1265 pub fn elsr2(&mut self) -> ELSR2_W<2> {
1266 ELSR2_W::new(self)
1267 }
1268 #[doc = "Bit 3 - Event Link Setting Register n Security Attribution"]
1269 #[inline(always)]
1270 #[must_use]
1271 pub fn elsr3(&mut self) -> ELSR3_W<3> {
1272 ELSR3_W::new(self)
1273 }
1274 #[doc = "Bit 4 - Event Link Setting Register n Security Attribution"]
1275 #[inline(always)]
1276 #[must_use]
1277 pub fn elsr4(&mut self) -> ELSR4_W<4> {
1278 ELSR4_W::new(self)
1279 }
1280 #[doc = "Bit 5 - Event Link Setting Register n Security Attribution"]
1281 #[inline(always)]
1282 #[must_use]
1283 pub fn elsr5(&mut self) -> ELSR5_W<5> {
1284 ELSR5_W::new(self)
1285 }
1286 #[doc = "Bit 6 - Event Link Setting Register n Security Attribution"]
1287 #[inline(always)]
1288 #[must_use]
1289 pub fn elsr6(&mut self) -> ELSR6_W<6> {
1290 ELSR6_W::new(self)
1291 }
1292 #[doc = "Bit 7 - Event Link Setting Register n Security Attribution"]
1293 #[inline(always)]
1294 #[must_use]
1295 pub fn elsr7(&mut self) -> ELSR7_W<7> {
1296 ELSR7_W::new(self)
1297 }
1298 #[doc = "Bit 12 - Event Link Setting Register n Security Attribution"]
1299 #[inline(always)]
1300 #[must_use]
1301 pub fn elsr12(&mut self) -> ELSR12_W<12> {
1302 ELSR12_W::new(self)
1303 }
1304 #[doc = "Bit 13 - Event Link Setting Register n Security Attribution"]
1305 #[inline(always)]
1306 #[must_use]
1307 pub fn elsr13(&mut self) -> ELSR13_W<13> {
1308 ELSR13_W::new(self)
1309 }
1310 #[doc = "Bit 14 - Event Link Setting Register n Security Attribution"]
1311 #[inline(always)]
1312 #[must_use]
1313 pub fn elsr14(&mut self) -> ELSR14_W<14> {
1314 ELSR14_W::new(self)
1315 }
1316 #[doc = "Bit 15 - Event Link Setting Register n Security Attribution"]
1317 #[inline(always)]
1318 #[must_use]
1319 pub fn elsr15(&mut self) -> ELSR15_W<15> {
1320 ELSR15_W::new(self)
1321 }
1322 #[doc = "Bit 16 - Event Link Setting Register n Security Attribution"]
1323 #[inline(always)]
1324 #[must_use]
1325 pub fn elsr16(&mut self) -> ELSR16_W<16> {
1326 ELSR16_W::new(self)
1327 }
1328 #[doc = "Bit 17 - Event Link Setting Register n Security Attribution"]
1329 #[inline(always)]
1330 #[must_use]
1331 pub fn elsr17(&mut self) -> ELSR17_W<17> {
1332 ELSR17_W::new(self)
1333 }
1334 #[doc = "Bit 19 - Event Link Setting Register n Security Attribution"]
1335 #[inline(always)]
1336 #[must_use]
1337 pub fn elsr19(&mut self) -> ELSR19_W<19> {
1338 ELSR19_W::new(self)
1339 }
1340 #[doc = "Bit 20 - Event Link Setting Register n Security Attribution"]
1341 #[inline(always)]
1342 #[must_use]
1343 pub fn elsr20(&mut self) -> ELSR20_W<20> {
1344 ELSR20_W::new(self)
1345 }
1346 #[doc = "Bit 21 - Event Link Setting Register n Security Attribution"]
1347 #[inline(always)]
1348 #[must_use]
1349 pub fn elsr21(&mut self) -> ELSR21_W<21> {
1350 ELSR21_W::new(self)
1351 }
1352 #[doc = "Bit 22 - Event Link Setting Register n Security Attribution"]
1353 #[inline(always)]
1354 #[must_use]
1355 pub fn elsr22(&mut self) -> ELSR22_W<22> {
1356 ELSR22_W::new(self)
1357 }
1358 #[doc = "Bit 23 - Event Link Setting Register n Security Attribution"]
1359 #[inline(always)]
1360 #[must_use]
1361 pub fn elsr23(&mut self) -> ELSR23_W<23> {
1362 ELSR23_W::new(self)
1363 }
1364 #[doc = "Bit 24 - Event Link Setting Register n Security Attribution"]
1365 #[inline(always)]
1366 #[must_use]
1367 pub fn elsr24(&mut self) -> ELSR24_W<24> {
1368 ELSR24_W::new(self)
1369 }
1370 #[doc = "Bit 28 - Event Link Setting Register n Security Attribution"]
1371 #[inline(always)]
1372 #[must_use]
1373 pub fn elsr28(&mut self) -> ELSR28_W<28> {
1374 ELSR28_W::new(self)
1375 }
1376 #[doc = "Bit 29 - Event Link Setting Register n Security Attribution"]
1377 #[inline(always)]
1378 #[must_use]
1379 pub fn elsr29(&mut self) -> ELSR29_W<29> {
1380 ELSR29_W::new(self)
1381 }
1382 #[doc = "Writes raw bits to the register."]
1383 #[inline(always)]
1384 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1385 self.0.bits(bits);
1386 self
1387 }
1388}
1389#[doc = "Event Link Controller Security Attribution Register B\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 [elcsarb](index.html) module"]
1390pub struct ELCSARB_SPEC;
1391impl crate::RegisterSpec for ELCSARB_SPEC {
1392 type Ux = u32;
1393}
1394#[doc = "`read()` method returns [elcsarb::R](R) reader structure"]
1395impl crate::Readable for ELCSARB_SPEC {
1396 type Reader = R;
1397}
1398#[doc = "`write(|w| ..)` method takes [elcsarb::W](W) writer structure"]
1399impl crate::Writable for ELCSARB_SPEC {
1400 type Writer = W;
1401 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
1402 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
1403}
1404#[doc = "`reset()` method sets ELCSARB to value 0xffff_ffff"]
1405impl crate::Resettable for ELCSARB_SPEC {
1406 const RESET_VALUE: Self::Ux = 0xffff_ffff;
1407}