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