nrf52840_pac/mwu/pregion/
subs.rs

1#[doc = "Register `SUBS` reader"]
2pub struct R(crate::R<SUBS_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<SUBS_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<SUBS_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<SUBS_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `SUBS` writer"]
17pub struct W(crate::W<SUBS_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<SUBS_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<SUBS_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<SUBS_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `SR0` reader - Include or exclude subregion 0 in region"]
38pub type SR0_R = crate::BitReader<SR0_A>;
39#[doc = "Include or exclude subregion 0 in region\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq)]
41pub enum SR0_A {
42    #[doc = "0: Exclude"]
43    EXCLUDE = 0,
44    #[doc = "1: Include"]
45    INCLUDE = 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::EXCLUDE,
59            true => SR0_A::INCLUDE,
60        }
61    }
62    #[doc = "Checks if the value of the field is `EXCLUDE`"]
63    #[inline(always)]
64    pub fn is_exclude(&self) -> bool {
65        *self == SR0_A::EXCLUDE
66    }
67    #[doc = "Checks if the value of the field is `INCLUDE`"]
68    #[inline(always)]
69    pub fn is_include(&self) -> bool {
70        *self == SR0_A::INCLUDE
71    }
72}
73#[doc = "Field `SR0` writer - Include or exclude subregion 0 in region"]
74pub type SR0_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR0_A, O>;
75impl<'a, const O: u8> SR0_W<'a, O> {
76    #[doc = "Exclude"]
77    #[inline(always)]
78    pub fn exclude(self) -> &'a mut W {
79        self.variant(SR0_A::EXCLUDE)
80    }
81    #[doc = "Include"]
82    #[inline(always)]
83    pub fn include(self) -> &'a mut W {
84        self.variant(SR0_A::INCLUDE)
85    }
86}
87#[doc = "Field `SR1` reader - Include or exclude subregion 1 in region"]
88pub type SR1_R = crate::BitReader<SR1_A>;
89#[doc = "Include or exclude subregion 1 in region\n\nValue on reset: 0"]
90#[derive(Clone, Copy, Debug, PartialEq)]
91pub enum SR1_A {
92    #[doc = "0: Exclude"]
93    EXCLUDE = 0,
94    #[doc = "1: Include"]
95    INCLUDE = 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::EXCLUDE,
109            true => SR1_A::INCLUDE,
110        }
111    }
112    #[doc = "Checks if the value of the field is `EXCLUDE`"]
113    #[inline(always)]
114    pub fn is_exclude(&self) -> bool {
115        *self == SR1_A::EXCLUDE
116    }
117    #[doc = "Checks if the value of the field is `INCLUDE`"]
118    #[inline(always)]
119    pub fn is_include(&self) -> bool {
120        *self == SR1_A::INCLUDE
121    }
122}
123#[doc = "Field `SR1` writer - Include or exclude subregion 1 in region"]
124pub type SR1_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR1_A, O>;
125impl<'a, const O: u8> SR1_W<'a, O> {
126    #[doc = "Exclude"]
127    #[inline(always)]
128    pub fn exclude(self) -> &'a mut W {
129        self.variant(SR1_A::EXCLUDE)
130    }
131    #[doc = "Include"]
132    #[inline(always)]
133    pub fn include(self) -> &'a mut W {
134        self.variant(SR1_A::INCLUDE)
135    }
136}
137#[doc = "Field `SR2` reader - Include or exclude subregion 2 in region"]
138pub type SR2_R = crate::BitReader<SR2_A>;
139#[doc = "Include or exclude subregion 2 in region\n\nValue on reset: 0"]
140#[derive(Clone, Copy, Debug, PartialEq)]
141pub enum SR2_A {
142    #[doc = "0: Exclude"]
143    EXCLUDE = 0,
144    #[doc = "1: Include"]
145    INCLUDE = 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::EXCLUDE,
159            true => SR2_A::INCLUDE,
160        }
161    }
162    #[doc = "Checks if the value of the field is `EXCLUDE`"]
163    #[inline(always)]
164    pub fn is_exclude(&self) -> bool {
165        *self == SR2_A::EXCLUDE
166    }
167    #[doc = "Checks if the value of the field is `INCLUDE`"]
168    #[inline(always)]
169    pub fn is_include(&self) -> bool {
170        *self == SR2_A::INCLUDE
171    }
172}
173#[doc = "Field `SR2` writer - Include or exclude subregion 2 in region"]
174pub type SR2_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR2_A, O>;
175impl<'a, const O: u8> SR2_W<'a, O> {
176    #[doc = "Exclude"]
177    #[inline(always)]
178    pub fn exclude(self) -> &'a mut W {
179        self.variant(SR2_A::EXCLUDE)
180    }
181    #[doc = "Include"]
182    #[inline(always)]
183    pub fn include(self) -> &'a mut W {
184        self.variant(SR2_A::INCLUDE)
185    }
186}
187#[doc = "Field `SR3` reader - Include or exclude subregion 3 in region"]
188pub type SR3_R = crate::BitReader<SR3_A>;
189#[doc = "Include or exclude subregion 3 in region\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq)]
191pub enum SR3_A {
192    #[doc = "0: Exclude"]
193    EXCLUDE = 0,
194    #[doc = "1: Include"]
195    INCLUDE = 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::EXCLUDE,
209            true => SR3_A::INCLUDE,
210        }
211    }
212    #[doc = "Checks if the value of the field is `EXCLUDE`"]
213    #[inline(always)]
214    pub fn is_exclude(&self) -> bool {
215        *self == SR3_A::EXCLUDE
216    }
217    #[doc = "Checks if the value of the field is `INCLUDE`"]
218    #[inline(always)]
219    pub fn is_include(&self) -> bool {
220        *self == SR3_A::INCLUDE
221    }
222}
223#[doc = "Field `SR3` writer - Include or exclude subregion 3 in region"]
224pub type SR3_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR3_A, O>;
225impl<'a, const O: u8> SR3_W<'a, O> {
226    #[doc = "Exclude"]
227    #[inline(always)]
228    pub fn exclude(self) -> &'a mut W {
229        self.variant(SR3_A::EXCLUDE)
230    }
231    #[doc = "Include"]
232    #[inline(always)]
233    pub fn include(self) -> &'a mut W {
234        self.variant(SR3_A::INCLUDE)
235    }
236}
237#[doc = "Field `SR4` reader - Include or exclude subregion 4 in region"]
238pub type SR4_R = crate::BitReader<SR4_A>;
239#[doc = "Include or exclude subregion 4 in region\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq)]
241pub enum SR4_A {
242    #[doc = "0: Exclude"]
243    EXCLUDE = 0,
244    #[doc = "1: Include"]
245    INCLUDE = 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::EXCLUDE,
259            true => SR4_A::INCLUDE,
260        }
261    }
262    #[doc = "Checks if the value of the field is `EXCLUDE`"]
263    #[inline(always)]
264    pub fn is_exclude(&self) -> bool {
265        *self == SR4_A::EXCLUDE
266    }
267    #[doc = "Checks if the value of the field is `INCLUDE`"]
268    #[inline(always)]
269    pub fn is_include(&self) -> bool {
270        *self == SR4_A::INCLUDE
271    }
272}
273#[doc = "Field `SR4` writer - Include or exclude subregion 4 in region"]
274pub type SR4_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR4_A, O>;
275impl<'a, const O: u8> SR4_W<'a, O> {
276    #[doc = "Exclude"]
277    #[inline(always)]
278    pub fn exclude(self) -> &'a mut W {
279        self.variant(SR4_A::EXCLUDE)
280    }
281    #[doc = "Include"]
282    #[inline(always)]
283    pub fn include(self) -> &'a mut W {
284        self.variant(SR4_A::INCLUDE)
285    }
286}
287#[doc = "Field `SR5` reader - Include or exclude subregion 5 in region"]
288pub type SR5_R = crate::BitReader<SR5_A>;
289#[doc = "Include or exclude subregion 5 in region\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq)]
291pub enum SR5_A {
292    #[doc = "0: Exclude"]
293    EXCLUDE = 0,
294    #[doc = "1: Include"]
295    INCLUDE = 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::EXCLUDE,
309            true => SR5_A::INCLUDE,
310        }
311    }
312    #[doc = "Checks if the value of the field is `EXCLUDE`"]
313    #[inline(always)]
314    pub fn is_exclude(&self) -> bool {
315        *self == SR5_A::EXCLUDE
316    }
317    #[doc = "Checks if the value of the field is `INCLUDE`"]
318    #[inline(always)]
319    pub fn is_include(&self) -> bool {
320        *self == SR5_A::INCLUDE
321    }
322}
323#[doc = "Field `SR5` writer - Include or exclude subregion 5 in region"]
324pub type SR5_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR5_A, O>;
325impl<'a, const O: u8> SR5_W<'a, O> {
326    #[doc = "Exclude"]
327    #[inline(always)]
328    pub fn exclude(self) -> &'a mut W {
329        self.variant(SR5_A::EXCLUDE)
330    }
331    #[doc = "Include"]
332    #[inline(always)]
333    pub fn include(self) -> &'a mut W {
334        self.variant(SR5_A::INCLUDE)
335    }
336}
337#[doc = "Field `SR6` reader - Include or exclude subregion 6 in region"]
338pub type SR6_R = crate::BitReader<SR6_A>;
339#[doc = "Include or exclude subregion 6 in region\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq)]
341pub enum SR6_A {
342    #[doc = "0: Exclude"]
343    EXCLUDE = 0,
344    #[doc = "1: Include"]
345    INCLUDE = 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::EXCLUDE,
359            true => SR6_A::INCLUDE,
360        }
361    }
362    #[doc = "Checks if the value of the field is `EXCLUDE`"]
363    #[inline(always)]
364    pub fn is_exclude(&self) -> bool {
365        *self == SR6_A::EXCLUDE
366    }
367    #[doc = "Checks if the value of the field is `INCLUDE`"]
368    #[inline(always)]
369    pub fn is_include(&self) -> bool {
370        *self == SR6_A::INCLUDE
371    }
372}
373#[doc = "Field `SR6` writer - Include or exclude subregion 6 in region"]
374pub type SR6_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR6_A, O>;
375impl<'a, const O: u8> SR6_W<'a, O> {
376    #[doc = "Exclude"]
377    #[inline(always)]
378    pub fn exclude(self) -> &'a mut W {
379        self.variant(SR6_A::EXCLUDE)
380    }
381    #[doc = "Include"]
382    #[inline(always)]
383    pub fn include(self) -> &'a mut W {
384        self.variant(SR6_A::INCLUDE)
385    }
386}
387#[doc = "Field `SR7` reader - Include or exclude subregion 7 in region"]
388pub type SR7_R = crate::BitReader<SR7_A>;
389#[doc = "Include or exclude subregion 7 in region\n\nValue on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq)]
391pub enum SR7_A {
392    #[doc = "0: Exclude"]
393    EXCLUDE = 0,
394    #[doc = "1: Include"]
395    INCLUDE = 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::EXCLUDE,
409            true => SR7_A::INCLUDE,
410        }
411    }
412    #[doc = "Checks if the value of the field is `EXCLUDE`"]
413    #[inline(always)]
414    pub fn is_exclude(&self) -> bool {
415        *self == SR7_A::EXCLUDE
416    }
417    #[doc = "Checks if the value of the field is `INCLUDE`"]
418    #[inline(always)]
419    pub fn is_include(&self) -> bool {
420        *self == SR7_A::INCLUDE
421    }
422}
423#[doc = "Field `SR7` writer - Include or exclude subregion 7 in region"]
424pub type SR7_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR7_A, O>;
425impl<'a, const O: u8> SR7_W<'a, O> {
426    #[doc = "Exclude"]
427    #[inline(always)]
428    pub fn exclude(self) -> &'a mut W {
429        self.variant(SR7_A::EXCLUDE)
430    }
431    #[doc = "Include"]
432    #[inline(always)]
433    pub fn include(self) -> &'a mut W {
434        self.variant(SR7_A::INCLUDE)
435    }
436}
437#[doc = "Field `SR8` reader - Include or exclude subregion 8 in region"]
438pub type SR8_R = crate::BitReader<SR8_A>;
439#[doc = "Include or exclude subregion 8 in region\n\nValue on reset: 0"]
440#[derive(Clone, Copy, Debug, PartialEq)]
441pub enum SR8_A {
442    #[doc = "0: Exclude"]
443    EXCLUDE = 0,
444    #[doc = "1: Include"]
445    INCLUDE = 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::EXCLUDE,
459            true => SR8_A::INCLUDE,
460        }
461    }
462    #[doc = "Checks if the value of the field is `EXCLUDE`"]
463    #[inline(always)]
464    pub fn is_exclude(&self) -> bool {
465        *self == SR8_A::EXCLUDE
466    }
467    #[doc = "Checks if the value of the field is `INCLUDE`"]
468    #[inline(always)]
469    pub fn is_include(&self) -> bool {
470        *self == SR8_A::INCLUDE
471    }
472}
473#[doc = "Field `SR8` writer - Include or exclude subregion 8 in region"]
474pub type SR8_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR8_A, O>;
475impl<'a, const O: u8> SR8_W<'a, O> {
476    #[doc = "Exclude"]
477    #[inline(always)]
478    pub fn exclude(self) -> &'a mut W {
479        self.variant(SR8_A::EXCLUDE)
480    }
481    #[doc = "Include"]
482    #[inline(always)]
483    pub fn include(self) -> &'a mut W {
484        self.variant(SR8_A::INCLUDE)
485    }
486}
487#[doc = "Field `SR9` reader - Include or exclude subregion 9 in region"]
488pub type SR9_R = crate::BitReader<SR9_A>;
489#[doc = "Include or exclude subregion 9 in region\n\nValue on reset: 0"]
490#[derive(Clone, Copy, Debug, PartialEq)]
491pub enum SR9_A {
492    #[doc = "0: Exclude"]
493    EXCLUDE = 0,
494    #[doc = "1: Include"]
495    INCLUDE = 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::EXCLUDE,
509            true => SR9_A::INCLUDE,
510        }
511    }
512    #[doc = "Checks if the value of the field is `EXCLUDE`"]
513    #[inline(always)]
514    pub fn is_exclude(&self) -> bool {
515        *self == SR9_A::EXCLUDE
516    }
517    #[doc = "Checks if the value of the field is `INCLUDE`"]
518    #[inline(always)]
519    pub fn is_include(&self) -> bool {
520        *self == SR9_A::INCLUDE
521    }
522}
523#[doc = "Field `SR9` writer - Include or exclude subregion 9 in region"]
524pub type SR9_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR9_A, O>;
525impl<'a, const O: u8> SR9_W<'a, O> {
526    #[doc = "Exclude"]
527    #[inline(always)]
528    pub fn exclude(self) -> &'a mut W {
529        self.variant(SR9_A::EXCLUDE)
530    }
531    #[doc = "Include"]
532    #[inline(always)]
533    pub fn include(self) -> &'a mut W {
534        self.variant(SR9_A::INCLUDE)
535    }
536}
537#[doc = "Field `SR10` reader - Include or exclude subregion 10 in region"]
538pub type SR10_R = crate::BitReader<SR10_A>;
539#[doc = "Include or exclude subregion 10 in region\n\nValue on reset: 0"]
540#[derive(Clone, Copy, Debug, PartialEq)]
541pub enum SR10_A {
542    #[doc = "0: Exclude"]
543    EXCLUDE = 0,
544    #[doc = "1: Include"]
545    INCLUDE = 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::EXCLUDE,
559            true => SR10_A::INCLUDE,
560        }
561    }
562    #[doc = "Checks if the value of the field is `EXCLUDE`"]
563    #[inline(always)]
564    pub fn is_exclude(&self) -> bool {
565        *self == SR10_A::EXCLUDE
566    }
567    #[doc = "Checks if the value of the field is `INCLUDE`"]
568    #[inline(always)]
569    pub fn is_include(&self) -> bool {
570        *self == SR10_A::INCLUDE
571    }
572}
573#[doc = "Field `SR10` writer - Include or exclude subregion 10 in region"]
574pub type SR10_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR10_A, O>;
575impl<'a, const O: u8> SR10_W<'a, O> {
576    #[doc = "Exclude"]
577    #[inline(always)]
578    pub fn exclude(self) -> &'a mut W {
579        self.variant(SR10_A::EXCLUDE)
580    }
581    #[doc = "Include"]
582    #[inline(always)]
583    pub fn include(self) -> &'a mut W {
584        self.variant(SR10_A::INCLUDE)
585    }
586}
587#[doc = "Field `SR11` reader - Include or exclude subregion 11 in region"]
588pub type SR11_R = crate::BitReader<SR11_A>;
589#[doc = "Include or exclude subregion 11 in region\n\nValue on reset: 0"]
590#[derive(Clone, Copy, Debug, PartialEq)]
591pub enum SR11_A {
592    #[doc = "0: Exclude"]
593    EXCLUDE = 0,
594    #[doc = "1: Include"]
595    INCLUDE = 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::EXCLUDE,
609            true => SR11_A::INCLUDE,
610        }
611    }
612    #[doc = "Checks if the value of the field is `EXCLUDE`"]
613    #[inline(always)]
614    pub fn is_exclude(&self) -> bool {
615        *self == SR11_A::EXCLUDE
616    }
617    #[doc = "Checks if the value of the field is `INCLUDE`"]
618    #[inline(always)]
619    pub fn is_include(&self) -> bool {
620        *self == SR11_A::INCLUDE
621    }
622}
623#[doc = "Field `SR11` writer - Include or exclude subregion 11 in region"]
624pub type SR11_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR11_A, O>;
625impl<'a, const O: u8> SR11_W<'a, O> {
626    #[doc = "Exclude"]
627    #[inline(always)]
628    pub fn exclude(self) -> &'a mut W {
629        self.variant(SR11_A::EXCLUDE)
630    }
631    #[doc = "Include"]
632    #[inline(always)]
633    pub fn include(self) -> &'a mut W {
634        self.variant(SR11_A::INCLUDE)
635    }
636}
637#[doc = "Field `SR12` reader - Include or exclude subregion 12 in region"]
638pub type SR12_R = crate::BitReader<SR12_A>;
639#[doc = "Include or exclude subregion 12 in region\n\nValue on reset: 0"]
640#[derive(Clone, Copy, Debug, PartialEq)]
641pub enum SR12_A {
642    #[doc = "0: Exclude"]
643    EXCLUDE = 0,
644    #[doc = "1: Include"]
645    INCLUDE = 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::EXCLUDE,
659            true => SR12_A::INCLUDE,
660        }
661    }
662    #[doc = "Checks if the value of the field is `EXCLUDE`"]
663    #[inline(always)]
664    pub fn is_exclude(&self) -> bool {
665        *self == SR12_A::EXCLUDE
666    }
667    #[doc = "Checks if the value of the field is `INCLUDE`"]
668    #[inline(always)]
669    pub fn is_include(&self) -> bool {
670        *self == SR12_A::INCLUDE
671    }
672}
673#[doc = "Field `SR12` writer - Include or exclude subregion 12 in region"]
674pub type SR12_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR12_A, O>;
675impl<'a, const O: u8> SR12_W<'a, O> {
676    #[doc = "Exclude"]
677    #[inline(always)]
678    pub fn exclude(self) -> &'a mut W {
679        self.variant(SR12_A::EXCLUDE)
680    }
681    #[doc = "Include"]
682    #[inline(always)]
683    pub fn include(self) -> &'a mut W {
684        self.variant(SR12_A::INCLUDE)
685    }
686}
687#[doc = "Field `SR13` reader - Include or exclude subregion 13 in region"]
688pub type SR13_R = crate::BitReader<SR13_A>;
689#[doc = "Include or exclude subregion 13 in region\n\nValue on reset: 0"]
690#[derive(Clone, Copy, Debug, PartialEq)]
691pub enum SR13_A {
692    #[doc = "0: Exclude"]
693    EXCLUDE = 0,
694    #[doc = "1: Include"]
695    INCLUDE = 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::EXCLUDE,
709            true => SR13_A::INCLUDE,
710        }
711    }
712    #[doc = "Checks if the value of the field is `EXCLUDE`"]
713    #[inline(always)]
714    pub fn is_exclude(&self) -> bool {
715        *self == SR13_A::EXCLUDE
716    }
717    #[doc = "Checks if the value of the field is `INCLUDE`"]
718    #[inline(always)]
719    pub fn is_include(&self) -> bool {
720        *self == SR13_A::INCLUDE
721    }
722}
723#[doc = "Field `SR13` writer - Include or exclude subregion 13 in region"]
724pub type SR13_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR13_A, O>;
725impl<'a, const O: u8> SR13_W<'a, O> {
726    #[doc = "Exclude"]
727    #[inline(always)]
728    pub fn exclude(self) -> &'a mut W {
729        self.variant(SR13_A::EXCLUDE)
730    }
731    #[doc = "Include"]
732    #[inline(always)]
733    pub fn include(self) -> &'a mut W {
734        self.variant(SR13_A::INCLUDE)
735    }
736}
737#[doc = "Field `SR14` reader - Include or exclude subregion 14 in region"]
738pub type SR14_R = crate::BitReader<SR14_A>;
739#[doc = "Include or exclude subregion 14 in region\n\nValue on reset: 0"]
740#[derive(Clone, Copy, Debug, PartialEq)]
741pub enum SR14_A {
742    #[doc = "0: Exclude"]
743    EXCLUDE = 0,
744    #[doc = "1: Include"]
745    INCLUDE = 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::EXCLUDE,
759            true => SR14_A::INCLUDE,
760        }
761    }
762    #[doc = "Checks if the value of the field is `EXCLUDE`"]
763    #[inline(always)]
764    pub fn is_exclude(&self) -> bool {
765        *self == SR14_A::EXCLUDE
766    }
767    #[doc = "Checks if the value of the field is `INCLUDE`"]
768    #[inline(always)]
769    pub fn is_include(&self) -> bool {
770        *self == SR14_A::INCLUDE
771    }
772}
773#[doc = "Field `SR14` writer - Include or exclude subregion 14 in region"]
774pub type SR14_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR14_A, O>;
775impl<'a, const O: u8> SR14_W<'a, O> {
776    #[doc = "Exclude"]
777    #[inline(always)]
778    pub fn exclude(self) -> &'a mut W {
779        self.variant(SR14_A::EXCLUDE)
780    }
781    #[doc = "Include"]
782    #[inline(always)]
783    pub fn include(self) -> &'a mut W {
784        self.variant(SR14_A::INCLUDE)
785    }
786}
787#[doc = "Field `SR15` reader - Include or exclude subregion 15 in region"]
788pub type SR15_R = crate::BitReader<SR15_A>;
789#[doc = "Include or exclude subregion 15 in region\n\nValue on reset: 0"]
790#[derive(Clone, Copy, Debug, PartialEq)]
791pub enum SR15_A {
792    #[doc = "0: Exclude"]
793    EXCLUDE = 0,
794    #[doc = "1: Include"]
795    INCLUDE = 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::EXCLUDE,
809            true => SR15_A::INCLUDE,
810        }
811    }
812    #[doc = "Checks if the value of the field is `EXCLUDE`"]
813    #[inline(always)]
814    pub fn is_exclude(&self) -> bool {
815        *self == SR15_A::EXCLUDE
816    }
817    #[doc = "Checks if the value of the field is `INCLUDE`"]
818    #[inline(always)]
819    pub fn is_include(&self) -> bool {
820        *self == SR15_A::INCLUDE
821    }
822}
823#[doc = "Field `SR15` writer - Include or exclude subregion 15 in region"]
824pub type SR15_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR15_A, O>;
825impl<'a, const O: u8> SR15_W<'a, O> {
826    #[doc = "Exclude"]
827    #[inline(always)]
828    pub fn exclude(self) -> &'a mut W {
829        self.variant(SR15_A::EXCLUDE)
830    }
831    #[doc = "Include"]
832    #[inline(always)]
833    pub fn include(self) -> &'a mut W {
834        self.variant(SR15_A::INCLUDE)
835    }
836}
837#[doc = "Field `SR16` reader - Include or exclude subregion 16 in region"]
838pub type SR16_R = crate::BitReader<SR16_A>;
839#[doc = "Include or exclude subregion 16 in region\n\nValue on reset: 0"]
840#[derive(Clone, Copy, Debug, PartialEq)]
841pub enum SR16_A {
842    #[doc = "0: Exclude"]
843    EXCLUDE = 0,
844    #[doc = "1: Include"]
845    INCLUDE = 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::EXCLUDE,
859            true => SR16_A::INCLUDE,
860        }
861    }
862    #[doc = "Checks if the value of the field is `EXCLUDE`"]
863    #[inline(always)]
864    pub fn is_exclude(&self) -> bool {
865        *self == SR16_A::EXCLUDE
866    }
867    #[doc = "Checks if the value of the field is `INCLUDE`"]
868    #[inline(always)]
869    pub fn is_include(&self) -> bool {
870        *self == SR16_A::INCLUDE
871    }
872}
873#[doc = "Field `SR16` writer - Include or exclude subregion 16 in region"]
874pub type SR16_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR16_A, O>;
875impl<'a, const O: u8> SR16_W<'a, O> {
876    #[doc = "Exclude"]
877    #[inline(always)]
878    pub fn exclude(self) -> &'a mut W {
879        self.variant(SR16_A::EXCLUDE)
880    }
881    #[doc = "Include"]
882    #[inline(always)]
883    pub fn include(self) -> &'a mut W {
884        self.variant(SR16_A::INCLUDE)
885    }
886}
887#[doc = "Field `SR17` reader - Include or exclude subregion 17 in region"]
888pub type SR17_R = crate::BitReader<SR17_A>;
889#[doc = "Include or exclude subregion 17 in region\n\nValue on reset: 0"]
890#[derive(Clone, Copy, Debug, PartialEq)]
891pub enum SR17_A {
892    #[doc = "0: Exclude"]
893    EXCLUDE = 0,
894    #[doc = "1: Include"]
895    INCLUDE = 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::EXCLUDE,
909            true => SR17_A::INCLUDE,
910        }
911    }
912    #[doc = "Checks if the value of the field is `EXCLUDE`"]
913    #[inline(always)]
914    pub fn is_exclude(&self) -> bool {
915        *self == SR17_A::EXCLUDE
916    }
917    #[doc = "Checks if the value of the field is `INCLUDE`"]
918    #[inline(always)]
919    pub fn is_include(&self) -> bool {
920        *self == SR17_A::INCLUDE
921    }
922}
923#[doc = "Field `SR17` writer - Include or exclude subregion 17 in region"]
924pub type SR17_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR17_A, O>;
925impl<'a, const O: u8> SR17_W<'a, O> {
926    #[doc = "Exclude"]
927    #[inline(always)]
928    pub fn exclude(self) -> &'a mut W {
929        self.variant(SR17_A::EXCLUDE)
930    }
931    #[doc = "Include"]
932    #[inline(always)]
933    pub fn include(self) -> &'a mut W {
934        self.variant(SR17_A::INCLUDE)
935    }
936}
937#[doc = "Field `SR18` reader - Include or exclude subregion 18 in region"]
938pub type SR18_R = crate::BitReader<SR18_A>;
939#[doc = "Include or exclude subregion 18 in region\n\nValue on reset: 0"]
940#[derive(Clone, Copy, Debug, PartialEq)]
941pub enum SR18_A {
942    #[doc = "0: Exclude"]
943    EXCLUDE = 0,
944    #[doc = "1: Include"]
945    INCLUDE = 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::EXCLUDE,
959            true => SR18_A::INCLUDE,
960        }
961    }
962    #[doc = "Checks if the value of the field is `EXCLUDE`"]
963    #[inline(always)]
964    pub fn is_exclude(&self) -> bool {
965        *self == SR18_A::EXCLUDE
966    }
967    #[doc = "Checks if the value of the field is `INCLUDE`"]
968    #[inline(always)]
969    pub fn is_include(&self) -> bool {
970        *self == SR18_A::INCLUDE
971    }
972}
973#[doc = "Field `SR18` writer - Include or exclude subregion 18 in region"]
974pub type SR18_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR18_A, O>;
975impl<'a, const O: u8> SR18_W<'a, O> {
976    #[doc = "Exclude"]
977    #[inline(always)]
978    pub fn exclude(self) -> &'a mut W {
979        self.variant(SR18_A::EXCLUDE)
980    }
981    #[doc = "Include"]
982    #[inline(always)]
983    pub fn include(self) -> &'a mut W {
984        self.variant(SR18_A::INCLUDE)
985    }
986}
987#[doc = "Field `SR19` reader - Include or exclude subregion 19 in region"]
988pub type SR19_R = crate::BitReader<SR19_A>;
989#[doc = "Include or exclude subregion 19 in region\n\nValue on reset: 0"]
990#[derive(Clone, Copy, Debug, PartialEq)]
991pub enum SR19_A {
992    #[doc = "0: Exclude"]
993    EXCLUDE = 0,
994    #[doc = "1: Include"]
995    INCLUDE = 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::EXCLUDE,
1009            true => SR19_A::INCLUDE,
1010        }
1011    }
1012    #[doc = "Checks if the value of the field is `EXCLUDE`"]
1013    #[inline(always)]
1014    pub fn is_exclude(&self) -> bool {
1015        *self == SR19_A::EXCLUDE
1016    }
1017    #[doc = "Checks if the value of the field is `INCLUDE`"]
1018    #[inline(always)]
1019    pub fn is_include(&self) -> bool {
1020        *self == SR19_A::INCLUDE
1021    }
1022}
1023#[doc = "Field `SR19` writer - Include or exclude subregion 19 in region"]
1024pub type SR19_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR19_A, O>;
1025impl<'a, const O: u8> SR19_W<'a, O> {
1026    #[doc = "Exclude"]
1027    #[inline(always)]
1028    pub fn exclude(self) -> &'a mut W {
1029        self.variant(SR19_A::EXCLUDE)
1030    }
1031    #[doc = "Include"]
1032    #[inline(always)]
1033    pub fn include(self) -> &'a mut W {
1034        self.variant(SR19_A::INCLUDE)
1035    }
1036}
1037#[doc = "Field `SR20` reader - Include or exclude subregion 20 in region"]
1038pub type SR20_R = crate::BitReader<SR20_A>;
1039#[doc = "Include or exclude subregion 20 in region\n\nValue on reset: 0"]
1040#[derive(Clone, Copy, Debug, PartialEq)]
1041pub enum SR20_A {
1042    #[doc = "0: Exclude"]
1043    EXCLUDE = 0,
1044    #[doc = "1: Include"]
1045    INCLUDE = 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::EXCLUDE,
1059            true => SR20_A::INCLUDE,
1060        }
1061    }
1062    #[doc = "Checks if the value of the field is `EXCLUDE`"]
1063    #[inline(always)]
1064    pub fn is_exclude(&self) -> bool {
1065        *self == SR20_A::EXCLUDE
1066    }
1067    #[doc = "Checks if the value of the field is `INCLUDE`"]
1068    #[inline(always)]
1069    pub fn is_include(&self) -> bool {
1070        *self == SR20_A::INCLUDE
1071    }
1072}
1073#[doc = "Field `SR20` writer - Include or exclude subregion 20 in region"]
1074pub type SR20_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR20_A, O>;
1075impl<'a, const O: u8> SR20_W<'a, O> {
1076    #[doc = "Exclude"]
1077    #[inline(always)]
1078    pub fn exclude(self) -> &'a mut W {
1079        self.variant(SR20_A::EXCLUDE)
1080    }
1081    #[doc = "Include"]
1082    #[inline(always)]
1083    pub fn include(self) -> &'a mut W {
1084        self.variant(SR20_A::INCLUDE)
1085    }
1086}
1087#[doc = "Field `SR21` reader - Include or exclude subregion 21 in region"]
1088pub type SR21_R = crate::BitReader<SR21_A>;
1089#[doc = "Include or exclude subregion 21 in region\n\nValue on reset: 0"]
1090#[derive(Clone, Copy, Debug, PartialEq)]
1091pub enum SR21_A {
1092    #[doc = "0: Exclude"]
1093    EXCLUDE = 0,
1094    #[doc = "1: Include"]
1095    INCLUDE = 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::EXCLUDE,
1109            true => SR21_A::INCLUDE,
1110        }
1111    }
1112    #[doc = "Checks if the value of the field is `EXCLUDE`"]
1113    #[inline(always)]
1114    pub fn is_exclude(&self) -> bool {
1115        *self == SR21_A::EXCLUDE
1116    }
1117    #[doc = "Checks if the value of the field is `INCLUDE`"]
1118    #[inline(always)]
1119    pub fn is_include(&self) -> bool {
1120        *self == SR21_A::INCLUDE
1121    }
1122}
1123#[doc = "Field `SR21` writer - Include or exclude subregion 21 in region"]
1124pub type SR21_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR21_A, O>;
1125impl<'a, const O: u8> SR21_W<'a, O> {
1126    #[doc = "Exclude"]
1127    #[inline(always)]
1128    pub fn exclude(self) -> &'a mut W {
1129        self.variant(SR21_A::EXCLUDE)
1130    }
1131    #[doc = "Include"]
1132    #[inline(always)]
1133    pub fn include(self) -> &'a mut W {
1134        self.variant(SR21_A::INCLUDE)
1135    }
1136}
1137#[doc = "Field `SR22` reader - Include or exclude subregion 22 in region"]
1138pub type SR22_R = crate::BitReader<SR22_A>;
1139#[doc = "Include or exclude subregion 22 in region\n\nValue on reset: 0"]
1140#[derive(Clone, Copy, Debug, PartialEq)]
1141pub enum SR22_A {
1142    #[doc = "0: Exclude"]
1143    EXCLUDE = 0,
1144    #[doc = "1: Include"]
1145    INCLUDE = 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::EXCLUDE,
1159            true => SR22_A::INCLUDE,
1160        }
1161    }
1162    #[doc = "Checks if the value of the field is `EXCLUDE`"]
1163    #[inline(always)]
1164    pub fn is_exclude(&self) -> bool {
1165        *self == SR22_A::EXCLUDE
1166    }
1167    #[doc = "Checks if the value of the field is `INCLUDE`"]
1168    #[inline(always)]
1169    pub fn is_include(&self) -> bool {
1170        *self == SR22_A::INCLUDE
1171    }
1172}
1173#[doc = "Field `SR22` writer - Include or exclude subregion 22 in region"]
1174pub type SR22_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR22_A, O>;
1175impl<'a, const O: u8> SR22_W<'a, O> {
1176    #[doc = "Exclude"]
1177    #[inline(always)]
1178    pub fn exclude(self) -> &'a mut W {
1179        self.variant(SR22_A::EXCLUDE)
1180    }
1181    #[doc = "Include"]
1182    #[inline(always)]
1183    pub fn include(self) -> &'a mut W {
1184        self.variant(SR22_A::INCLUDE)
1185    }
1186}
1187#[doc = "Field `SR23` reader - Include or exclude subregion 23 in region"]
1188pub type SR23_R = crate::BitReader<SR23_A>;
1189#[doc = "Include or exclude subregion 23 in region\n\nValue on reset: 0"]
1190#[derive(Clone, Copy, Debug, PartialEq)]
1191pub enum SR23_A {
1192    #[doc = "0: Exclude"]
1193    EXCLUDE = 0,
1194    #[doc = "1: Include"]
1195    INCLUDE = 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::EXCLUDE,
1209            true => SR23_A::INCLUDE,
1210        }
1211    }
1212    #[doc = "Checks if the value of the field is `EXCLUDE`"]
1213    #[inline(always)]
1214    pub fn is_exclude(&self) -> bool {
1215        *self == SR23_A::EXCLUDE
1216    }
1217    #[doc = "Checks if the value of the field is `INCLUDE`"]
1218    #[inline(always)]
1219    pub fn is_include(&self) -> bool {
1220        *self == SR23_A::INCLUDE
1221    }
1222}
1223#[doc = "Field `SR23` writer - Include or exclude subregion 23 in region"]
1224pub type SR23_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR23_A, O>;
1225impl<'a, const O: u8> SR23_W<'a, O> {
1226    #[doc = "Exclude"]
1227    #[inline(always)]
1228    pub fn exclude(self) -> &'a mut W {
1229        self.variant(SR23_A::EXCLUDE)
1230    }
1231    #[doc = "Include"]
1232    #[inline(always)]
1233    pub fn include(self) -> &'a mut W {
1234        self.variant(SR23_A::INCLUDE)
1235    }
1236}
1237#[doc = "Field `SR24` reader - Include or exclude subregion 24 in region"]
1238pub type SR24_R = crate::BitReader<SR24_A>;
1239#[doc = "Include or exclude subregion 24 in region\n\nValue on reset: 0"]
1240#[derive(Clone, Copy, Debug, PartialEq)]
1241pub enum SR24_A {
1242    #[doc = "0: Exclude"]
1243    EXCLUDE = 0,
1244    #[doc = "1: Include"]
1245    INCLUDE = 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::EXCLUDE,
1259            true => SR24_A::INCLUDE,
1260        }
1261    }
1262    #[doc = "Checks if the value of the field is `EXCLUDE`"]
1263    #[inline(always)]
1264    pub fn is_exclude(&self) -> bool {
1265        *self == SR24_A::EXCLUDE
1266    }
1267    #[doc = "Checks if the value of the field is `INCLUDE`"]
1268    #[inline(always)]
1269    pub fn is_include(&self) -> bool {
1270        *self == SR24_A::INCLUDE
1271    }
1272}
1273#[doc = "Field `SR24` writer - Include or exclude subregion 24 in region"]
1274pub type SR24_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR24_A, O>;
1275impl<'a, const O: u8> SR24_W<'a, O> {
1276    #[doc = "Exclude"]
1277    #[inline(always)]
1278    pub fn exclude(self) -> &'a mut W {
1279        self.variant(SR24_A::EXCLUDE)
1280    }
1281    #[doc = "Include"]
1282    #[inline(always)]
1283    pub fn include(self) -> &'a mut W {
1284        self.variant(SR24_A::INCLUDE)
1285    }
1286}
1287#[doc = "Field `SR25` reader - Include or exclude subregion 25 in region"]
1288pub type SR25_R = crate::BitReader<SR25_A>;
1289#[doc = "Include or exclude subregion 25 in region\n\nValue on reset: 0"]
1290#[derive(Clone, Copy, Debug, PartialEq)]
1291pub enum SR25_A {
1292    #[doc = "0: Exclude"]
1293    EXCLUDE = 0,
1294    #[doc = "1: Include"]
1295    INCLUDE = 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::EXCLUDE,
1309            true => SR25_A::INCLUDE,
1310        }
1311    }
1312    #[doc = "Checks if the value of the field is `EXCLUDE`"]
1313    #[inline(always)]
1314    pub fn is_exclude(&self) -> bool {
1315        *self == SR25_A::EXCLUDE
1316    }
1317    #[doc = "Checks if the value of the field is `INCLUDE`"]
1318    #[inline(always)]
1319    pub fn is_include(&self) -> bool {
1320        *self == SR25_A::INCLUDE
1321    }
1322}
1323#[doc = "Field `SR25` writer - Include or exclude subregion 25 in region"]
1324pub type SR25_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR25_A, O>;
1325impl<'a, const O: u8> SR25_W<'a, O> {
1326    #[doc = "Exclude"]
1327    #[inline(always)]
1328    pub fn exclude(self) -> &'a mut W {
1329        self.variant(SR25_A::EXCLUDE)
1330    }
1331    #[doc = "Include"]
1332    #[inline(always)]
1333    pub fn include(self) -> &'a mut W {
1334        self.variant(SR25_A::INCLUDE)
1335    }
1336}
1337#[doc = "Field `SR26` reader - Include or exclude subregion 26 in region"]
1338pub type SR26_R = crate::BitReader<SR26_A>;
1339#[doc = "Include or exclude subregion 26 in region\n\nValue on reset: 0"]
1340#[derive(Clone, Copy, Debug, PartialEq)]
1341pub enum SR26_A {
1342    #[doc = "0: Exclude"]
1343    EXCLUDE = 0,
1344    #[doc = "1: Include"]
1345    INCLUDE = 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::EXCLUDE,
1359            true => SR26_A::INCLUDE,
1360        }
1361    }
1362    #[doc = "Checks if the value of the field is `EXCLUDE`"]
1363    #[inline(always)]
1364    pub fn is_exclude(&self) -> bool {
1365        *self == SR26_A::EXCLUDE
1366    }
1367    #[doc = "Checks if the value of the field is `INCLUDE`"]
1368    #[inline(always)]
1369    pub fn is_include(&self) -> bool {
1370        *self == SR26_A::INCLUDE
1371    }
1372}
1373#[doc = "Field `SR26` writer - Include or exclude subregion 26 in region"]
1374pub type SR26_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR26_A, O>;
1375impl<'a, const O: u8> SR26_W<'a, O> {
1376    #[doc = "Exclude"]
1377    #[inline(always)]
1378    pub fn exclude(self) -> &'a mut W {
1379        self.variant(SR26_A::EXCLUDE)
1380    }
1381    #[doc = "Include"]
1382    #[inline(always)]
1383    pub fn include(self) -> &'a mut W {
1384        self.variant(SR26_A::INCLUDE)
1385    }
1386}
1387#[doc = "Field `SR27` reader - Include or exclude subregion 27 in region"]
1388pub type SR27_R = crate::BitReader<SR27_A>;
1389#[doc = "Include or exclude subregion 27 in region\n\nValue on reset: 0"]
1390#[derive(Clone, Copy, Debug, PartialEq)]
1391pub enum SR27_A {
1392    #[doc = "0: Exclude"]
1393    EXCLUDE = 0,
1394    #[doc = "1: Include"]
1395    INCLUDE = 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::EXCLUDE,
1409            true => SR27_A::INCLUDE,
1410        }
1411    }
1412    #[doc = "Checks if the value of the field is `EXCLUDE`"]
1413    #[inline(always)]
1414    pub fn is_exclude(&self) -> bool {
1415        *self == SR27_A::EXCLUDE
1416    }
1417    #[doc = "Checks if the value of the field is `INCLUDE`"]
1418    #[inline(always)]
1419    pub fn is_include(&self) -> bool {
1420        *self == SR27_A::INCLUDE
1421    }
1422}
1423#[doc = "Field `SR27` writer - Include or exclude subregion 27 in region"]
1424pub type SR27_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR27_A, O>;
1425impl<'a, const O: u8> SR27_W<'a, O> {
1426    #[doc = "Exclude"]
1427    #[inline(always)]
1428    pub fn exclude(self) -> &'a mut W {
1429        self.variant(SR27_A::EXCLUDE)
1430    }
1431    #[doc = "Include"]
1432    #[inline(always)]
1433    pub fn include(self) -> &'a mut W {
1434        self.variant(SR27_A::INCLUDE)
1435    }
1436}
1437#[doc = "Field `SR28` reader - Include or exclude subregion 28 in region"]
1438pub type SR28_R = crate::BitReader<SR28_A>;
1439#[doc = "Include or exclude subregion 28 in region\n\nValue on reset: 0"]
1440#[derive(Clone, Copy, Debug, PartialEq)]
1441pub enum SR28_A {
1442    #[doc = "0: Exclude"]
1443    EXCLUDE = 0,
1444    #[doc = "1: Include"]
1445    INCLUDE = 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::EXCLUDE,
1459            true => SR28_A::INCLUDE,
1460        }
1461    }
1462    #[doc = "Checks if the value of the field is `EXCLUDE`"]
1463    #[inline(always)]
1464    pub fn is_exclude(&self) -> bool {
1465        *self == SR28_A::EXCLUDE
1466    }
1467    #[doc = "Checks if the value of the field is `INCLUDE`"]
1468    #[inline(always)]
1469    pub fn is_include(&self) -> bool {
1470        *self == SR28_A::INCLUDE
1471    }
1472}
1473#[doc = "Field `SR28` writer - Include or exclude subregion 28 in region"]
1474pub type SR28_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR28_A, O>;
1475impl<'a, const O: u8> SR28_W<'a, O> {
1476    #[doc = "Exclude"]
1477    #[inline(always)]
1478    pub fn exclude(self) -> &'a mut W {
1479        self.variant(SR28_A::EXCLUDE)
1480    }
1481    #[doc = "Include"]
1482    #[inline(always)]
1483    pub fn include(self) -> &'a mut W {
1484        self.variant(SR28_A::INCLUDE)
1485    }
1486}
1487#[doc = "Field `SR29` reader - Include or exclude subregion 29 in region"]
1488pub type SR29_R = crate::BitReader<SR29_A>;
1489#[doc = "Include or exclude subregion 29 in region\n\nValue on reset: 0"]
1490#[derive(Clone, Copy, Debug, PartialEq)]
1491pub enum SR29_A {
1492    #[doc = "0: Exclude"]
1493    EXCLUDE = 0,
1494    #[doc = "1: Include"]
1495    INCLUDE = 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::EXCLUDE,
1509            true => SR29_A::INCLUDE,
1510        }
1511    }
1512    #[doc = "Checks if the value of the field is `EXCLUDE`"]
1513    #[inline(always)]
1514    pub fn is_exclude(&self) -> bool {
1515        *self == SR29_A::EXCLUDE
1516    }
1517    #[doc = "Checks if the value of the field is `INCLUDE`"]
1518    #[inline(always)]
1519    pub fn is_include(&self) -> bool {
1520        *self == SR29_A::INCLUDE
1521    }
1522}
1523#[doc = "Field `SR29` writer - Include or exclude subregion 29 in region"]
1524pub type SR29_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR29_A, O>;
1525impl<'a, const O: u8> SR29_W<'a, O> {
1526    #[doc = "Exclude"]
1527    #[inline(always)]
1528    pub fn exclude(self) -> &'a mut W {
1529        self.variant(SR29_A::EXCLUDE)
1530    }
1531    #[doc = "Include"]
1532    #[inline(always)]
1533    pub fn include(self) -> &'a mut W {
1534        self.variant(SR29_A::INCLUDE)
1535    }
1536}
1537#[doc = "Field `SR30` reader - Include or exclude subregion 30 in region"]
1538pub type SR30_R = crate::BitReader<SR30_A>;
1539#[doc = "Include or exclude subregion 30 in region\n\nValue on reset: 0"]
1540#[derive(Clone, Copy, Debug, PartialEq)]
1541pub enum SR30_A {
1542    #[doc = "0: Exclude"]
1543    EXCLUDE = 0,
1544    #[doc = "1: Include"]
1545    INCLUDE = 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::EXCLUDE,
1559            true => SR30_A::INCLUDE,
1560        }
1561    }
1562    #[doc = "Checks if the value of the field is `EXCLUDE`"]
1563    #[inline(always)]
1564    pub fn is_exclude(&self) -> bool {
1565        *self == SR30_A::EXCLUDE
1566    }
1567    #[doc = "Checks if the value of the field is `INCLUDE`"]
1568    #[inline(always)]
1569    pub fn is_include(&self) -> bool {
1570        *self == SR30_A::INCLUDE
1571    }
1572}
1573#[doc = "Field `SR30` writer - Include or exclude subregion 30 in region"]
1574pub type SR30_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR30_A, O>;
1575impl<'a, const O: u8> SR30_W<'a, O> {
1576    #[doc = "Exclude"]
1577    #[inline(always)]
1578    pub fn exclude(self) -> &'a mut W {
1579        self.variant(SR30_A::EXCLUDE)
1580    }
1581    #[doc = "Include"]
1582    #[inline(always)]
1583    pub fn include(self) -> &'a mut W {
1584        self.variant(SR30_A::INCLUDE)
1585    }
1586}
1587#[doc = "Field `SR31` reader - Include or exclude subregion 31 in region"]
1588pub type SR31_R = crate::BitReader<SR31_A>;
1589#[doc = "Include or exclude subregion 31 in region\n\nValue on reset: 0"]
1590#[derive(Clone, Copy, Debug, PartialEq)]
1591pub enum SR31_A {
1592    #[doc = "0: Exclude"]
1593    EXCLUDE = 0,
1594    #[doc = "1: Include"]
1595    INCLUDE = 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::EXCLUDE,
1609            true => SR31_A::INCLUDE,
1610        }
1611    }
1612    #[doc = "Checks if the value of the field is `EXCLUDE`"]
1613    #[inline(always)]
1614    pub fn is_exclude(&self) -> bool {
1615        *self == SR31_A::EXCLUDE
1616    }
1617    #[doc = "Checks if the value of the field is `INCLUDE`"]
1618    #[inline(always)]
1619    pub fn is_include(&self) -> bool {
1620        *self == SR31_A::INCLUDE
1621    }
1622}
1623#[doc = "Field `SR31` writer - Include or exclude subregion 31 in region"]
1624pub type SR31_W<'a, const O: u8> = crate::BitWriter<'a, u32, SUBS_SPEC, SR31_A, O>;
1625impl<'a, const O: u8> SR31_W<'a, O> {
1626    #[doc = "Exclude"]
1627    #[inline(always)]
1628    pub fn exclude(self) -> &'a mut W {
1629        self.variant(SR31_A::EXCLUDE)
1630    }
1631    #[doc = "Include"]
1632    #[inline(always)]
1633    pub fn include(self) -> &'a mut W {
1634        self.variant(SR31_A::INCLUDE)
1635    }
1636}
1637impl R {
1638    #[doc = "Bit 0 - Include or exclude subregion 0 in region"]
1639    #[inline(always)]
1640    pub fn sr0(&self) -> SR0_R {
1641        SR0_R::new((self.bits & 1) != 0)
1642    }
1643    #[doc = "Bit 1 - Include or exclude subregion 1 in region"]
1644    #[inline(always)]
1645    pub fn sr1(&self) -> SR1_R {
1646        SR1_R::new(((self.bits >> 1) & 1) != 0)
1647    }
1648    #[doc = "Bit 2 - Include or exclude subregion 2 in region"]
1649    #[inline(always)]
1650    pub fn sr2(&self) -> SR2_R {
1651        SR2_R::new(((self.bits >> 2) & 1) != 0)
1652    }
1653    #[doc = "Bit 3 - Include or exclude subregion 3 in region"]
1654    #[inline(always)]
1655    pub fn sr3(&self) -> SR3_R {
1656        SR3_R::new(((self.bits >> 3) & 1) != 0)
1657    }
1658    #[doc = "Bit 4 - Include or exclude subregion 4 in region"]
1659    #[inline(always)]
1660    pub fn sr4(&self) -> SR4_R {
1661        SR4_R::new(((self.bits >> 4) & 1) != 0)
1662    }
1663    #[doc = "Bit 5 - Include or exclude subregion 5 in region"]
1664    #[inline(always)]
1665    pub fn sr5(&self) -> SR5_R {
1666        SR5_R::new(((self.bits >> 5) & 1) != 0)
1667    }
1668    #[doc = "Bit 6 - Include or exclude subregion 6 in region"]
1669    #[inline(always)]
1670    pub fn sr6(&self) -> SR6_R {
1671        SR6_R::new(((self.bits >> 6) & 1) != 0)
1672    }
1673    #[doc = "Bit 7 - Include or exclude subregion 7 in region"]
1674    #[inline(always)]
1675    pub fn sr7(&self) -> SR7_R {
1676        SR7_R::new(((self.bits >> 7) & 1) != 0)
1677    }
1678    #[doc = "Bit 8 - Include or exclude subregion 8 in region"]
1679    #[inline(always)]
1680    pub fn sr8(&self) -> SR8_R {
1681        SR8_R::new(((self.bits >> 8) & 1) != 0)
1682    }
1683    #[doc = "Bit 9 - Include or exclude subregion 9 in region"]
1684    #[inline(always)]
1685    pub fn sr9(&self) -> SR9_R {
1686        SR9_R::new(((self.bits >> 9) & 1) != 0)
1687    }
1688    #[doc = "Bit 10 - Include or exclude subregion 10 in region"]
1689    #[inline(always)]
1690    pub fn sr10(&self) -> SR10_R {
1691        SR10_R::new(((self.bits >> 10) & 1) != 0)
1692    }
1693    #[doc = "Bit 11 - Include or exclude subregion 11 in region"]
1694    #[inline(always)]
1695    pub fn sr11(&self) -> SR11_R {
1696        SR11_R::new(((self.bits >> 11) & 1) != 0)
1697    }
1698    #[doc = "Bit 12 - Include or exclude subregion 12 in region"]
1699    #[inline(always)]
1700    pub fn sr12(&self) -> SR12_R {
1701        SR12_R::new(((self.bits >> 12) & 1) != 0)
1702    }
1703    #[doc = "Bit 13 - Include or exclude subregion 13 in region"]
1704    #[inline(always)]
1705    pub fn sr13(&self) -> SR13_R {
1706        SR13_R::new(((self.bits >> 13) & 1) != 0)
1707    }
1708    #[doc = "Bit 14 - Include or exclude subregion 14 in region"]
1709    #[inline(always)]
1710    pub fn sr14(&self) -> SR14_R {
1711        SR14_R::new(((self.bits >> 14) & 1) != 0)
1712    }
1713    #[doc = "Bit 15 - Include or exclude subregion 15 in region"]
1714    #[inline(always)]
1715    pub fn sr15(&self) -> SR15_R {
1716        SR15_R::new(((self.bits >> 15) & 1) != 0)
1717    }
1718    #[doc = "Bit 16 - Include or exclude subregion 16 in region"]
1719    #[inline(always)]
1720    pub fn sr16(&self) -> SR16_R {
1721        SR16_R::new(((self.bits >> 16) & 1) != 0)
1722    }
1723    #[doc = "Bit 17 - Include or exclude subregion 17 in region"]
1724    #[inline(always)]
1725    pub fn sr17(&self) -> SR17_R {
1726        SR17_R::new(((self.bits >> 17) & 1) != 0)
1727    }
1728    #[doc = "Bit 18 - Include or exclude subregion 18 in region"]
1729    #[inline(always)]
1730    pub fn sr18(&self) -> SR18_R {
1731        SR18_R::new(((self.bits >> 18) & 1) != 0)
1732    }
1733    #[doc = "Bit 19 - Include or exclude subregion 19 in region"]
1734    #[inline(always)]
1735    pub fn sr19(&self) -> SR19_R {
1736        SR19_R::new(((self.bits >> 19) & 1) != 0)
1737    }
1738    #[doc = "Bit 20 - Include or exclude subregion 20 in region"]
1739    #[inline(always)]
1740    pub fn sr20(&self) -> SR20_R {
1741        SR20_R::new(((self.bits >> 20) & 1) != 0)
1742    }
1743    #[doc = "Bit 21 - Include or exclude subregion 21 in region"]
1744    #[inline(always)]
1745    pub fn sr21(&self) -> SR21_R {
1746        SR21_R::new(((self.bits >> 21) & 1) != 0)
1747    }
1748    #[doc = "Bit 22 - Include or exclude subregion 22 in region"]
1749    #[inline(always)]
1750    pub fn sr22(&self) -> SR22_R {
1751        SR22_R::new(((self.bits >> 22) & 1) != 0)
1752    }
1753    #[doc = "Bit 23 - Include or exclude subregion 23 in region"]
1754    #[inline(always)]
1755    pub fn sr23(&self) -> SR23_R {
1756        SR23_R::new(((self.bits >> 23) & 1) != 0)
1757    }
1758    #[doc = "Bit 24 - Include or exclude subregion 24 in region"]
1759    #[inline(always)]
1760    pub fn sr24(&self) -> SR24_R {
1761        SR24_R::new(((self.bits >> 24) & 1) != 0)
1762    }
1763    #[doc = "Bit 25 - Include or exclude subregion 25 in region"]
1764    #[inline(always)]
1765    pub fn sr25(&self) -> SR25_R {
1766        SR25_R::new(((self.bits >> 25) & 1) != 0)
1767    }
1768    #[doc = "Bit 26 - Include or exclude subregion 26 in region"]
1769    #[inline(always)]
1770    pub fn sr26(&self) -> SR26_R {
1771        SR26_R::new(((self.bits >> 26) & 1) != 0)
1772    }
1773    #[doc = "Bit 27 - Include or exclude subregion 27 in region"]
1774    #[inline(always)]
1775    pub fn sr27(&self) -> SR27_R {
1776        SR27_R::new(((self.bits >> 27) & 1) != 0)
1777    }
1778    #[doc = "Bit 28 - Include or exclude subregion 28 in region"]
1779    #[inline(always)]
1780    pub fn sr28(&self) -> SR28_R {
1781        SR28_R::new(((self.bits >> 28) & 1) != 0)
1782    }
1783    #[doc = "Bit 29 - Include or exclude subregion 29 in region"]
1784    #[inline(always)]
1785    pub fn sr29(&self) -> SR29_R {
1786        SR29_R::new(((self.bits >> 29) & 1) != 0)
1787    }
1788    #[doc = "Bit 30 - Include or exclude subregion 30 in region"]
1789    #[inline(always)]
1790    pub fn sr30(&self) -> SR30_R {
1791        SR30_R::new(((self.bits >> 30) & 1) != 0)
1792    }
1793    #[doc = "Bit 31 - Include or exclude subregion 31 in region"]
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 - Include or exclude subregion 0 in region"]
1801    #[inline(always)]
1802    pub fn sr0(&mut self) -> SR0_W<0> {
1803        SR0_W::new(self)
1804    }
1805    #[doc = "Bit 1 - Include or exclude subregion 1 in region"]
1806    #[inline(always)]
1807    pub fn sr1(&mut self) -> SR1_W<1> {
1808        SR1_W::new(self)
1809    }
1810    #[doc = "Bit 2 - Include or exclude subregion 2 in region"]
1811    #[inline(always)]
1812    pub fn sr2(&mut self) -> SR2_W<2> {
1813        SR2_W::new(self)
1814    }
1815    #[doc = "Bit 3 - Include or exclude subregion 3 in region"]
1816    #[inline(always)]
1817    pub fn sr3(&mut self) -> SR3_W<3> {
1818        SR3_W::new(self)
1819    }
1820    #[doc = "Bit 4 - Include or exclude subregion 4 in region"]
1821    #[inline(always)]
1822    pub fn sr4(&mut self) -> SR4_W<4> {
1823        SR4_W::new(self)
1824    }
1825    #[doc = "Bit 5 - Include or exclude subregion 5 in region"]
1826    #[inline(always)]
1827    pub fn sr5(&mut self) -> SR5_W<5> {
1828        SR5_W::new(self)
1829    }
1830    #[doc = "Bit 6 - Include or exclude subregion 6 in region"]
1831    #[inline(always)]
1832    pub fn sr6(&mut self) -> SR6_W<6> {
1833        SR6_W::new(self)
1834    }
1835    #[doc = "Bit 7 - Include or exclude subregion 7 in region"]
1836    #[inline(always)]
1837    pub fn sr7(&mut self) -> SR7_W<7> {
1838        SR7_W::new(self)
1839    }
1840    #[doc = "Bit 8 - Include or exclude subregion 8 in region"]
1841    #[inline(always)]
1842    pub fn sr8(&mut self) -> SR8_W<8> {
1843        SR8_W::new(self)
1844    }
1845    #[doc = "Bit 9 - Include or exclude subregion 9 in region"]
1846    #[inline(always)]
1847    pub fn sr9(&mut self) -> SR9_W<9> {
1848        SR9_W::new(self)
1849    }
1850    #[doc = "Bit 10 - Include or exclude subregion 10 in region"]
1851    #[inline(always)]
1852    pub fn sr10(&mut self) -> SR10_W<10> {
1853        SR10_W::new(self)
1854    }
1855    #[doc = "Bit 11 - Include or exclude subregion 11 in region"]
1856    #[inline(always)]
1857    pub fn sr11(&mut self) -> SR11_W<11> {
1858        SR11_W::new(self)
1859    }
1860    #[doc = "Bit 12 - Include or exclude subregion 12 in region"]
1861    #[inline(always)]
1862    pub fn sr12(&mut self) -> SR12_W<12> {
1863        SR12_W::new(self)
1864    }
1865    #[doc = "Bit 13 - Include or exclude subregion 13 in region"]
1866    #[inline(always)]
1867    pub fn sr13(&mut self) -> SR13_W<13> {
1868        SR13_W::new(self)
1869    }
1870    #[doc = "Bit 14 - Include or exclude subregion 14 in region"]
1871    #[inline(always)]
1872    pub fn sr14(&mut self) -> SR14_W<14> {
1873        SR14_W::new(self)
1874    }
1875    #[doc = "Bit 15 - Include or exclude subregion 15 in region"]
1876    #[inline(always)]
1877    pub fn sr15(&mut self) -> SR15_W<15> {
1878        SR15_W::new(self)
1879    }
1880    #[doc = "Bit 16 - Include or exclude subregion 16 in region"]
1881    #[inline(always)]
1882    pub fn sr16(&mut self) -> SR16_W<16> {
1883        SR16_W::new(self)
1884    }
1885    #[doc = "Bit 17 - Include or exclude subregion 17 in region"]
1886    #[inline(always)]
1887    pub fn sr17(&mut self) -> SR17_W<17> {
1888        SR17_W::new(self)
1889    }
1890    #[doc = "Bit 18 - Include or exclude subregion 18 in region"]
1891    #[inline(always)]
1892    pub fn sr18(&mut self) -> SR18_W<18> {
1893        SR18_W::new(self)
1894    }
1895    #[doc = "Bit 19 - Include or exclude subregion 19 in region"]
1896    #[inline(always)]
1897    pub fn sr19(&mut self) -> SR19_W<19> {
1898        SR19_W::new(self)
1899    }
1900    #[doc = "Bit 20 - Include or exclude subregion 20 in region"]
1901    #[inline(always)]
1902    pub fn sr20(&mut self) -> SR20_W<20> {
1903        SR20_W::new(self)
1904    }
1905    #[doc = "Bit 21 - Include or exclude subregion 21 in region"]
1906    #[inline(always)]
1907    pub fn sr21(&mut self) -> SR21_W<21> {
1908        SR21_W::new(self)
1909    }
1910    #[doc = "Bit 22 - Include or exclude subregion 22 in region"]
1911    #[inline(always)]
1912    pub fn sr22(&mut self) -> SR22_W<22> {
1913        SR22_W::new(self)
1914    }
1915    #[doc = "Bit 23 - Include or exclude subregion 23 in region"]
1916    #[inline(always)]
1917    pub fn sr23(&mut self) -> SR23_W<23> {
1918        SR23_W::new(self)
1919    }
1920    #[doc = "Bit 24 - Include or exclude subregion 24 in region"]
1921    #[inline(always)]
1922    pub fn sr24(&mut self) -> SR24_W<24> {
1923        SR24_W::new(self)
1924    }
1925    #[doc = "Bit 25 - Include or exclude subregion 25 in region"]
1926    #[inline(always)]
1927    pub fn sr25(&mut self) -> SR25_W<25> {
1928        SR25_W::new(self)
1929    }
1930    #[doc = "Bit 26 - Include or exclude subregion 26 in region"]
1931    #[inline(always)]
1932    pub fn sr26(&mut self) -> SR26_W<26> {
1933        SR26_W::new(self)
1934    }
1935    #[doc = "Bit 27 - Include or exclude subregion 27 in region"]
1936    #[inline(always)]
1937    pub fn sr27(&mut self) -> SR27_W<27> {
1938        SR27_W::new(self)
1939    }
1940    #[doc = "Bit 28 - Include or exclude subregion 28 in region"]
1941    #[inline(always)]
1942    pub fn sr28(&mut self) -> SR28_W<28> {
1943        SR28_W::new(self)
1944    }
1945    #[doc = "Bit 29 - Include or exclude subregion 29 in region"]
1946    #[inline(always)]
1947    pub fn sr29(&mut self) -> SR29_W<29> {
1948        SR29_W::new(self)
1949    }
1950    #[doc = "Bit 30 - Include or exclude subregion 30 in region"]
1951    #[inline(always)]
1952    pub fn sr30(&mut self) -> SR30_W<30> {
1953        SR30_W::new(self)
1954    }
1955    #[doc = "Bit 31 - Include or exclude subregion 31 in region"]
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\\]: Subregions of region n\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [subs](index.html) module"]
1968pub struct SUBS_SPEC;
1969impl crate::RegisterSpec for SUBS_SPEC {
1970    type Ux = u32;
1971}
1972#[doc = "`read()` method returns [subs::R](R) reader structure"]
1973impl crate::Readable for SUBS_SPEC {
1974    type Reader = R;
1975}
1976#[doc = "`write(|w| ..)` method takes [subs::W](W) writer structure"]
1977impl crate::Writable for SUBS_SPEC {
1978    type Writer = W;
1979}
1980#[doc = "`reset()` method sets SUBS to value 0"]
1981impl crate::Resettable for SUBS_SPEC {
1982    #[inline(always)]
1983    fn reset_value() -> Self::Ux {
1984        0
1985    }
1986}