nrf52811_pac/bprot/
config0.rs

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