nrf52832_pac/bprot/
config2.rs

1#[doc = "Register `CONFIG2` reader"]
2pub struct R(crate::R<CONFIG2_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<CONFIG2_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<CONFIG2_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<CONFIG2_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `CONFIG2` writer"]
17pub struct W(crate::W<CONFIG2_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<CONFIG2_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<CONFIG2_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<CONFIG2_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `REGION64` reader - Enable protection for region 64. Write '0' has no effect."]
38pub type REGION64_R = crate::BitReader<REGION64_A>;
39#[doc = "Enable protection for region 64. Write '0' has no effect.\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq)]
41pub enum REGION64_A {
42    #[doc = "0: Protection disabled"]
43    DISABLED = 0,
44    #[doc = "1: Protection enabled"]
45    ENABLED = 1,
46}
47impl From<REGION64_A> for bool {
48    #[inline(always)]
49    fn from(variant: REGION64_A) -> Self {
50        variant as u8 != 0
51    }
52}
53impl REGION64_R {
54    #[doc = "Get enumerated values variant"]
55    #[inline(always)]
56    pub fn variant(&self) -> REGION64_A {
57        match self.bits {
58            false => REGION64_A::DISABLED,
59            true => REGION64_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 == REGION64_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 == REGION64_A::ENABLED
71    }
72}
73#[doc = "Field `REGION64` writer - Enable protection for region 64. Write '0' has no effect."]
74pub type REGION64_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION64_A, O>;
75impl<'a, const O: u8> REGION64_W<'a, O> {
76    #[doc = "Protection disabled"]
77    #[inline(always)]
78    pub fn disabled(self) -> &'a mut W {
79        self.variant(REGION64_A::DISABLED)
80    }
81    #[doc = "Protection enabled"]
82    #[inline(always)]
83    pub fn enabled(self) -> &'a mut W {
84        self.variant(REGION64_A::ENABLED)
85    }
86}
87#[doc = "Field `REGION65` reader - Enable protection for region 65. Write '0' has no effect."]
88pub type REGION65_R = crate::BitReader<REGION65_A>;
89#[doc = "Enable protection for region 65. Write '0' has no effect.\n\nValue on reset: 0"]
90#[derive(Clone, Copy, Debug, PartialEq)]
91pub enum REGION65_A {
92    #[doc = "0: Protection disabled"]
93    DISABLED = 0,
94    #[doc = "1: Protection enabled"]
95    ENABLED = 1,
96}
97impl From<REGION65_A> for bool {
98    #[inline(always)]
99    fn from(variant: REGION65_A) -> Self {
100        variant as u8 != 0
101    }
102}
103impl REGION65_R {
104    #[doc = "Get enumerated values variant"]
105    #[inline(always)]
106    pub fn variant(&self) -> REGION65_A {
107        match self.bits {
108            false => REGION65_A::DISABLED,
109            true => REGION65_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 == REGION65_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 == REGION65_A::ENABLED
121    }
122}
123#[doc = "Field `REGION65` writer - Enable protection for region 65. Write '0' has no effect."]
124pub type REGION65_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION65_A, O>;
125impl<'a, const O: u8> REGION65_W<'a, O> {
126    #[doc = "Protection disabled"]
127    #[inline(always)]
128    pub fn disabled(self) -> &'a mut W {
129        self.variant(REGION65_A::DISABLED)
130    }
131    #[doc = "Protection enabled"]
132    #[inline(always)]
133    pub fn enabled(self) -> &'a mut W {
134        self.variant(REGION65_A::ENABLED)
135    }
136}
137#[doc = "Field `REGION66` reader - Enable protection for region 66. Write '0' has no effect."]
138pub type REGION66_R = crate::BitReader<REGION66_A>;
139#[doc = "Enable protection for region 66. Write '0' has no effect.\n\nValue on reset: 0"]
140#[derive(Clone, Copy, Debug, PartialEq)]
141pub enum REGION66_A {
142    #[doc = "0: Protection disabled"]
143    DISABLED = 0,
144    #[doc = "1: Protection enabled"]
145    ENABLED = 1,
146}
147impl From<REGION66_A> for bool {
148    #[inline(always)]
149    fn from(variant: REGION66_A) -> Self {
150        variant as u8 != 0
151    }
152}
153impl REGION66_R {
154    #[doc = "Get enumerated values variant"]
155    #[inline(always)]
156    pub fn variant(&self) -> REGION66_A {
157        match self.bits {
158            false => REGION66_A::DISABLED,
159            true => REGION66_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 == REGION66_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 == REGION66_A::ENABLED
171    }
172}
173#[doc = "Field `REGION66` writer - Enable protection for region 66. Write '0' has no effect."]
174pub type REGION66_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION66_A, O>;
175impl<'a, const O: u8> REGION66_W<'a, O> {
176    #[doc = "Protection disabled"]
177    #[inline(always)]
178    pub fn disabled(self) -> &'a mut W {
179        self.variant(REGION66_A::DISABLED)
180    }
181    #[doc = "Protection enabled"]
182    #[inline(always)]
183    pub fn enabled(self) -> &'a mut W {
184        self.variant(REGION66_A::ENABLED)
185    }
186}
187#[doc = "Field `REGION67` reader - Enable protection for region 67. Write '0' has no effect."]
188pub type REGION67_R = crate::BitReader<REGION67_A>;
189#[doc = "Enable protection for region 67. Write '0' has no effect.\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq)]
191pub enum REGION67_A {
192    #[doc = "0: Protection disabled"]
193    DISABLED = 0,
194    #[doc = "1: Protection enabled"]
195    ENABLED = 1,
196}
197impl From<REGION67_A> for bool {
198    #[inline(always)]
199    fn from(variant: REGION67_A) -> Self {
200        variant as u8 != 0
201    }
202}
203impl REGION67_R {
204    #[doc = "Get enumerated values variant"]
205    #[inline(always)]
206    pub fn variant(&self) -> REGION67_A {
207        match self.bits {
208            false => REGION67_A::DISABLED,
209            true => REGION67_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 == REGION67_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 == REGION67_A::ENABLED
221    }
222}
223#[doc = "Field `REGION67` writer - Enable protection for region 67. Write '0' has no effect."]
224pub type REGION67_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION67_A, O>;
225impl<'a, const O: u8> REGION67_W<'a, O> {
226    #[doc = "Protection disabled"]
227    #[inline(always)]
228    pub fn disabled(self) -> &'a mut W {
229        self.variant(REGION67_A::DISABLED)
230    }
231    #[doc = "Protection enabled"]
232    #[inline(always)]
233    pub fn enabled(self) -> &'a mut W {
234        self.variant(REGION67_A::ENABLED)
235    }
236}
237#[doc = "Field `REGION68` reader - Enable protection for region 68. Write '0' has no effect."]
238pub type REGION68_R = crate::BitReader<REGION68_A>;
239#[doc = "Enable protection for region 68. Write '0' has no effect.\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq)]
241pub enum REGION68_A {
242    #[doc = "0: Protection disabled"]
243    DISABLED = 0,
244    #[doc = "1: Protection enabled"]
245    ENABLED = 1,
246}
247impl From<REGION68_A> for bool {
248    #[inline(always)]
249    fn from(variant: REGION68_A) -> Self {
250        variant as u8 != 0
251    }
252}
253impl REGION68_R {
254    #[doc = "Get enumerated values variant"]
255    #[inline(always)]
256    pub fn variant(&self) -> REGION68_A {
257        match self.bits {
258            false => REGION68_A::DISABLED,
259            true => REGION68_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 == REGION68_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 == REGION68_A::ENABLED
271    }
272}
273#[doc = "Field `REGION68` writer - Enable protection for region 68. Write '0' has no effect."]
274pub type REGION68_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION68_A, O>;
275impl<'a, const O: u8> REGION68_W<'a, O> {
276    #[doc = "Protection disabled"]
277    #[inline(always)]
278    pub fn disabled(self) -> &'a mut W {
279        self.variant(REGION68_A::DISABLED)
280    }
281    #[doc = "Protection enabled"]
282    #[inline(always)]
283    pub fn enabled(self) -> &'a mut W {
284        self.variant(REGION68_A::ENABLED)
285    }
286}
287#[doc = "Field `REGION69` reader - Enable protection for region 69. Write '0' has no effect."]
288pub type REGION69_R = crate::BitReader<REGION69_A>;
289#[doc = "Enable protection for region 69. Write '0' has no effect.\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq)]
291pub enum REGION69_A {
292    #[doc = "0: Protection disabled"]
293    DISABLED = 0,
294    #[doc = "1: Protection enabled"]
295    ENABLED = 1,
296}
297impl From<REGION69_A> for bool {
298    #[inline(always)]
299    fn from(variant: REGION69_A) -> Self {
300        variant as u8 != 0
301    }
302}
303impl REGION69_R {
304    #[doc = "Get enumerated values variant"]
305    #[inline(always)]
306    pub fn variant(&self) -> REGION69_A {
307        match self.bits {
308            false => REGION69_A::DISABLED,
309            true => REGION69_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 == REGION69_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 == REGION69_A::ENABLED
321    }
322}
323#[doc = "Field `REGION69` writer - Enable protection for region 69. Write '0' has no effect."]
324pub type REGION69_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION69_A, O>;
325impl<'a, const O: u8> REGION69_W<'a, O> {
326    #[doc = "Protection disabled"]
327    #[inline(always)]
328    pub fn disabled(self) -> &'a mut W {
329        self.variant(REGION69_A::DISABLED)
330    }
331    #[doc = "Protection enabled"]
332    #[inline(always)]
333    pub fn enabled(self) -> &'a mut W {
334        self.variant(REGION69_A::ENABLED)
335    }
336}
337#[doc = "Field `REGION70` reader - Enable protection for region 70. Write '0' has no effect."]
338pub type REGION70_R = crate::BitReader<REGION70_A>;
339#[doc = "Enable protection for region 70. Write '0' has no effect.\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq)]
341pub enum REGION70_A {
342    #[doc = "0: Protection disabled"]
343    DISABLED = 0,
344    #[doc = "1: Protection enabled"]
345    ENABLED = 1,
346}
347impl From<REGION70_A> for bool {
348    #[inline(always)]
349    fn from(variant: REGION70_A) -> Self {
350        variant as u8 != 0
351    }
352}
353impl REGION70_R {
354    #[doc = "Get enumerated values variant"]
355    #[inline(always)]
356    pub fn variant(&self) -> REGION70_A {
357        match self.bits {
358            false => REGION70_A::DISABLED,
359            true => REGION70_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 == REGION70_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 == REGION70_A::ENABLED
371    }
372}
373#[doc = "Field `REGION70` writer - Enable protection for region 70. Write '0' has no effect."]
374pub type REGION70_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION70_A, O>;
375impl<'a, const O: u8> REGION70_W<'a, O> {
376    #[doc = "Protection disabled"]
377    #[inline(always)]
378    pub fn disabled(self) -> &'a mut W {
379        self.variant(REGION70_A::DISABLED)
380    }
381    #[doc = "Protection enabled"]
382    #[inline(always)]
383    pub fn enabled(self) -> &'a mut W {
384        self.variant(REGION70_A::ENABLED)
385    }
386}
387#[doc = "Field `REGION71` reader - Enable protection for region 71. Write '0' has no effect."]
388pub type REGION71_R = crate::BitReader<REGION71_A>;
389#[doc = "Enable protection for region 71. Write '0' has no effect.\n\nValue on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq)]
391pub enum REGION71_A {
392    #[doc = "0: Protection disabled"]
393    DISABLED = 0,
394    #[doc = "1: Protection enabled"]
395    ENABLED = 1,
396}
397impl From<REGION71_A> for bool {
398    #[inline(always)]
399    fn from(variant: REGION71_A) -> Self {
400        variant as u8 != 0
401    }
402}
403impl REGION71_R {
404    #[doc = "Get enumerated values variant"]
405    #[inline(always)]
406    pub fn variant(&self) -> REGION71_A {
407        match self.bits {
408            false => REGION71_A::DISABLED,
409            true => REGION71_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 == REGION71_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 == REGION71_A::ENABLED
421    }
422}
423#[doc = "Field `REGION71` writer - Enable protection for region 71. Write '0' has no effect."]
424pub type REGION71_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION71_A, O>;
425impl<'a, const O: u8> REGION71_W<'a, O> {
426    #[doc = "Protection disabled"]
427    #[inline(always)]
428    pub fn disabled(self) -> &'a mut W {
429        self.variant(REGION71_A::DISABLED)
430    }
431    #[doc = "Protection enabled"]
432    #[inline(always)]
433    pub fn enabled(self) -> &'a mut W {
434        self.variant(REGION71_A::ENABLED)
435    }
436}
437#[doc = "Field `REGION72` reader - Enable protection for region 72. Write '0' has no effect."]
438pub type REGION72_R = crate::BitReader<REGION72_A>;
439#[doc = "Enable protection for region 72. Write '0' has no effect.\n\nValue on reset: 0"]
440#[derive(Clone, Copy, Debug, PartialEq)]
441pub enum REGION72_A {
442    #[doc = "0: Protection disabled"]
443    DISABLED = 0,
444    #[doc = "1: Protection enabled"]
445    ENABLED = 1,
446}
447impl From<REGION72_A> for bool {
448    #[inline(always)]
449    fn from(variant: REGION72_A) -> Self {
450        variant as u8 != 0
451    }
452}
453impl REGION72_R {
454    #[doc = "Get enumerated values variant"]
455    #[inline(always)]
456    pub fn variant(&self) -> REGION72_A {
457        match self.bits {
458            false => REGION72_A::DISABLED,
459            true => REGION72_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 == REGION72_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 == REGION72_A::ENABLED
471    }
472}
473#[doc = "Field `REGION72` writer - Enable protection for region 72. Write '0' has no effect."]
474pub type REGION72_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION72_A, O>;
475impl<'a, const O: u8> REGION72_W<'a, O> {
476    #[doc = "Protection disabled"]
477    #[inline(always)]
478    pub fn disabled(self) -> &'a mut W {
479        self.variant(REGION72_A::DISABLED)
480    }
481    #[doc = "Protection enabled"]
482    #[inline(always)]
483    pub fn enabled(self) -> &'a mut W {
484        self.variant(REGION72_A::ENABLED)
485    }
486}
487#[doc = "Field `REGION73` reader - Enable protection for region 73. Write '0' has no effect."]
488pub type REGION73_R = crate::BitReader<REGION73_A>;
489#[doc = "Enable protection for region 73. Write '0' has no effect.\n\nValue on reset: 0"]
490#[derive(Clone, Copy, Debug, PartialEq)]
491pub enum REGION73_A {
492    #[doc = "0: Protection disabled"]
493    DISABLED = 0,
494    #[doc = "1: Protection enabled"]
495    ENABLED = 1,
496}
497impl From<REGION73_A> for bool {
498    #[inline(always)]
499    fn from(variant: REGION73_A) -> Self {
500        variant as u8 != 0
501    }
502}
503impl REGION73_R {
504    #[doc = "Get enumerated values variant"]
505    #[inline(always)]
506    pub fn variant(&self) -> REGION73_A {
507        match self.bits {
508            false => REGION73_A::DISABLED,
509            true => REGION73_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 == REGION73_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 == REGION73_A::ENABLED
521    }
522}
523#[doc = "Field `REGION73` writer - Enable protection for region 73. Write '0' has no effect."]
524pub type REGION73_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION73_A, O>;
525impl<'a, const O: u8> REGION73_W<'a, O> {
526    #[doc = "Protection disabled"]
527    #[inline(always)]
528    pub fn disabled(self) -> &'a mut W {
529        self.variant(REGION73_A::DISABLED)
530    }
531    #[doc = "Protection enabled"]
532    #[inline(always)]
533    pub fn enabled(self) -> &'a mut W {
534        self.variant(REGION73_A::ENABLED)
535    }
536}
537#[doc = "Field `REGION74` reader - Enable protection for region 74. Write '0' has no effect."]
538pub type REGION74_R = crate::BitReader<REGION74_A>;
539#[doc = "Enable protection for region 74. Write '0' has no effect.\n\nValue on reset: 0"]
540#[derive(Clone, Copy, Debug, PartialEq)]
541pub enum REGION74_A {
542    #[doc = "0: Protection disabled"]
543    DISABLED = 0,
544    #[doc = "1: Protection enabled"]
545    ENABLED = 1,
546}
547impl From<REGION74_A> for bool {
548    #[inline(always)]
549    fn from(variant: REGION74_A) -> Self {
550        variant as u8 != 0
551    }
552}
553impl REGION74_R {
554    #[doc = "Get enumerated values variant"]
555    #[inline(always)]
556    pub fn variant(&self) -> REGION74_A {
557        match self.bits {
558            false => REGION74_A::DISABLED,
559            true => REGION74_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 == REGION74_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 == REGION74_A::ENABLED
571    }
572}
573#[doc = "Field `REGION74` writer - Enable protection for region 74. Write '0' has no effect."]
574pub type REGION74_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION74_A, O>;
575impl<'a, const O: u8> REGION74_W<'a, O> {
576    #[doc = "Protection disabled"]
577    #[inline(always)]
578    pub fn disabled(self) -> &'a mut W {
579        self.variant(REGION74_A::DISABLED)
580    }
581    #[doc = "Protection enabled"]
582    #[inline(always)]
583    pub fn enabled(self) -> &'a mut W {
584        self.variant(REGION74_A::ENABLED)
585    }
586}
587#[doc = "Field `REGION75` reader - Enable protection for region 75. Write '0' has no effect."]
588pub type REGION75_R = crate::BitReader<REGION75_A>;
589#[doc = "Enable protection for region 75. Write '0' has no effect.\n\nValue on reset: 0"]
590#[derive(Clone, Copy, Debug, PartialEq)]
591pub enum REGION75_A {
592    #[doc = "0: Protection disabled"]
593    DISABLED = 0,
594    #[doc = "1: Protection enabled"]
595    ENABLED = 1,
596}
597impl From<REGION75_A> for bool {
598    #[inline(always)]
599    fn from(variant: REGION75_A) -> Self {
600        variant as u8 != 0
601    }
602}
603impl REGION75_R {
604    #[doc = "Get enumerated values variant"]
605    #[inline(always)]
606    pub fn variant(&self) -> REGION75_A {
607        match self.bits {
608            false => REGION75_A::DISABLED,
609            true => REGION75_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 == REGION75_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 == REGION75_A::ENABLED
621    }
622}
623#[doc = "Field `REGION75` writer - Enable protection for region 75. Write '0' has no effect."]
624pub type REGION75_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION75_A, O>;
625impl<'a, const O: u8> REGION75_W<'a, O> {
626    #[doc = "Protection disabled"]
627    #[inline(always)]
628    pub fn disabled(self) -> &'a mut W {
629        self.variant(REGION75_A::DISABLED)
630    }
631    #[doc = "Protection enabled"]
632    #[inline(always)]
633    pub fn enabled(self) -> &'a mut W {
634        self.variant(REGION75_A::ENABLED)
635    }
636}
637#[doc = "Field `REGION76` reader - Enable protection for region 76. Write '0' has no effect."]
638pub type REGION76_R = crate::BitReader<REGION76_A>;
639#[doc = "Enable protection for region 76. Write '0' has no effect.\n\nValue on reset: 0"]
640#[derive(Clone, Copy, Debug, PartialEq)]
641pub enum REGION76_A {
642    #[doc = "0: Protection disabled"]
643    DISABLED = 0,
644    #[doc = "1: Protection enabled"]
645    ENABLED = 1,
646}
647impl From<REGION76_A> for bool {
648    #[inline(always)]
649    fn from(variant: REGION76_A) -> Self {
650        variant as u8 != 0
651    }
652}
653impl REGION76_R {
654    #[doc = "Get enumerated values variant"]
655    #[inline(always)]
656    pub fn variant(&self) -> REGION76_A {
657        match self.bits {
658            false => REGION76_A::DISABLED,
659            true => REGION76_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 == REGION76_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 == REGION76_A::ENABLED
671    }
672}
673#[doc = "Field `REGION76` writer - Enable protection for region 76. Write '0' has no effect."]
674pub type REGION76_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION76_A, O>;
675impl<'a, const O: u8> REGION76_W<'a, O> {
676    #[doc = "Protection disabled"]
677    #[inline(always)]
678    pub fn disabled(self) -> &'a mut W {
679        self.variant(REGION76_A::DISABLED)
680    }
681    #[doc = "Protection enabled"]
682    #[inline(always)]
683    pub fn enabled(self) -> &'a mut W {
684        self.variant(REGION76_A::ENABLED)
685    }
686}
687#[doc = "Field `REGION77` reader - Enable protection for region 77. Write '0' has no effect."]
688pub type REGION77_R = crate::BitReader<REGION77_A>;
689#[doc = "Enable protection for region 77. Write '0' has no effect.\n\nValue on reset: 0"]
690#[derive(Clone, Copy, Debug, PartialEq)]
691pub enum REGION77_A {
692    #[doc = "0: Protection disabled"]
693    DISABLED = 0,
694    #[doc = "1: Protection enabled"]
695    ENABLED = 1,
696}
697impl From<REGION77_A> for bool {
698    #[inline(always)]
699    fn from(variant: REGION77_A) -> Self {
700        variant as u8 != 0
701    }
702}
703impl REGION77_R {
704    #[doc = "Get enumerated values variant"]
705    #[inline(always)]
706    pub fn variant(&self) -> REGION77_A {
707        match self.bits {
708            false => REGION77_A::DISABLED,
709            true => REGION77_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 == REGION77_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 == REGION77_A::ENABLED
721    }
722}
723#[doc = "Field `REGION77` writer - Enable protection for region 77. Write '0' has no effect."]
724pub type REGION77_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION77_A, O>;
725impl<'a, const O: u8> REGION77_W<'a, O> {
726    #[doc = "Protection disabled"]
727    #[inline(always)]
728    pub fn disabled(self) -> &'a mut W {
729        self.variant(REGION77_A::DISABLED)
730    }
731    #[doc = "Protection enabled"]
732    #[inline(always)]
733    pub fn enabled(self) -> &'a mut W {
734        self.variant(REGION77_A::ENABLED)
735    }
736}
737#[doc = "Field `REGION78` reader - Enable protection for region 78. Write '0' has no effect."]
738pub type REGION78_R = crate::BitReader<REGION78_A>;
739#[doc = "Enable protection for region 78. Write '0' has no effect.\n\nValue on reset: 0"]
740#[derive(Clone, Copy, Debug, PartialEq)]
741pub enum REGION78_A {
742    #[doc = "0: Protection disabled"]
743    DISABLED = 0,
744    #[doc = "1: Protection enabled"]
745    ENABLED = 1,
746}
747impl From<REGION78_A> for bool {
748    #[inline(always)]
749    fn from(variant: REGION78_A) -> Self {
750        variant as u8 != 0
751    }
752}
753impl REGION78_R {
754    #[doc = "Get enumerated values variant"]
755    #[inline(always)]
756    pub fn variant(&self) -> REGION78_A {
757        match self.bits {
758            false => REGION78_A::DISABLED,
759            true => REGION78_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 == REGION78_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 == REGION78_A::ENABLED
771    }
772}
773#[doc = "Field `REGION78` writer - Enable protection for region 78. Write '0' has no effect."]
774pub type REGION78_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION78_A, O>;
775impl<'a, const O: u8> REGION78_W<'a, O> {
776    #[doc = "Protection disabled"]
777    #[inline(always)]
778    pub fn disabled(self) -> &'a mut W {
779        self.variant(REGION78_A::DISABLED)
780    }
781    #[doc = "Protection enabled"]
782    #[inline(always)]
783    pub fn enabled(self) -> &'a mut W {
784        self.variant(REGION78_A::ENABLED)
785    }
786}
787#[doc = "Field `REGION79` reader - Enable protection for region 79. Write '0' has no effect."]
788pub type REGION79_R = crate::BitReader<REGION79_A>;
789#[doc = "Enable protection for region 79. Write '0' has no effect.\n\nValue on reset: 0"]
790#[derive(Clone, Copy, Debug, PartialEq)]
791pub enum REGION79_A {
792    #[doc = "0: Protection disabled"]
793    DISABLED = 0,
794    #[doc = "1: Protection enabled"]
795    ENABLED = 1,
796}
797impl From<REGION79_A> for bool {
798    #[inline(always)]
799    fn from(variant: REGION79_A) -> Self {
800        variant as u8 != 0
801    }
802}
803impl REGION79_R {
804    #[doc = "Get enumerated values variant"]
805    #[inline(always)]
806    pub fn variant(&self) -> REGION79_A {
807        match self.bits {
808            false => REGION79_A::DISABLED,
809            true => REGION79_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 == REGION79_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 == REGION79_A::ENABLED
821    }
822}
823#[doc = "Field `REGION79` writer - Enable protection for region 79. Write '0' has no effect."]
824pub type REGION79_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION79_A, O>;
825impl<'a, const O: u8> REGION79_W<'a, O> {
826    #[doc = "Protection disabled"]
827    #[inline(always)]
828    pub fn disabled(self) -> &'a mut W {
829        self.variant(REGION79_A::DISABLED)
830    }
831    #[doc = "Protection enabled"]
832    #[inline(always)]
833    pub fn enabled(self) -> &'a mut W {
834        self.variant(REGION79_A::ENABLED)
835    }
836}
837#[doc = "Field `REGION80` reader - Enable protection for region 80. Write '0' has no effect."]
838pub type REGION80_R = crate::BitReader<REGION80_A>;
839#[doc = "Enable protection for region 80. Write '0' has no effect.\n\nValue on reset: 0"]
840#[derive(Clone, Copy, Debug, PartialEq)]
841pub enum REGION80_A {
842    #[doc = "0: Protection disabled"]
843    DISABLED = 0,
844    #[doc = "1: Protection enabled"]
845    ENABLED = 1,
846}
847impl From<REGION80_A> for bool {
848    #[inline(always)]
849    fn from(variant: REGION80_A) -> Self {
850        variant as u8 != 0
851    }
852}
853impl REGION80_R {
854    #[doc = "Get enumerated values variant"]
855    #[inline(always)]
856    pub fn variant(&self) -> REGION80_A {
857        match self.bits {
858            false => REGION80_A::DISABLED,
859            true => REGION80_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 == REGION80_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 == REGION80_A::ENABLED
871    }
872}
873#[doc = "Field `REGION80` writer - Enable protection for region 80. Write '0' has no effect."]
874pub type REGION80_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION80_A, O>;
875impl<'a, const O: u8> REGION80_W<'a, O> {
876    #[doc = "Protection disabled"]
877    #[inline(always)]
878    pub fn disabled(self) -> &'a mut W {
879        self.variant(REGION80_A::DISABLED)
880    }
881    #[doc = "Protection enabled"]
882    #[inline(always)]
883    pub fn enabled(self) -> &'a mut W {
884        self.variant(REGION80_A::ENABLED)
885    }
886}
887#[doc = "Field `REGION81` reader - Enable protection for region 81. Write '0' has no effect."]
888pub type REGION81_R = crate::BitReader<REGION81_A>;
889#[doc = "Enable protection for region 81. Write '0' has no effect.\n\nValue on reset: 0"]
890#[derive(Clone, Copy, Debug, PartialEq)]
891pub enum REGION81_A {
892    #[doc = "0: Protection disabled"]
893    DISABLED = 0,
894    #[doc = "1: Protection enabled"]
895    ENABLED = 1,
896}
897impl From<REGION81_A> for bool {
898    #[inline(always)]
899    fn from(variant: REGION81_A) -> Self {
900        variant as u8 != 0
901    }
902}
903impl REGION81_R {
904    #[doc = "Get enumerated values variant"]
905    #[inline(always)]
906    pub fn variant(&self) -> REGION81_A {
907        match self.bits {
908            false => REGION81_A::DISABLED,
909            true => REGION81_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 == REGION81_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 == REGION81_A::ENABLED
921    }
922}
923#[doc = "Field `REGION81` writer - Enable protection for region 81. Write '0' has no effect."]
924pub type REGION81_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION81_A, O>;
925impl<'a, const O: u8> REGION81_W<'a, O> {
926    #[doc = "Protection disabled"]
927    #[inline(always)]
928    pub fn disabled(self) -> &'a mut W {
929        self.variant(REGION81_A::DISABLED)
930    }
931    #[doc = "Protection enabled"]
932    #[inline(always)]
933    pub fn enabled(self) -> &'a mut W {
934        self.variant(REGION81_A::ENABLED)
935    }
936}
937#[doc = "Field `REGION82` reader - Enable protection for region 82. Write '0' has no effect."]
938pub type REGION82_R = crate::BitReader<REGION82_A>;
939#[doc = "Enable protection for region 82. Write '0' has no effect.\n\nValue on reset: 0"]
940#[derive(Clone, Copy, Debug, PartialEq)]
941pub enum REGION82_A {
942    #[doc = "0: Protection disabled"]
943    DISABLED = 0,
944    #[doc = "1: Protection enabled"]
945    ENABLED = 1,
946}
947impl From<REGION82_A> for bool {
948    #[inline(always)]
949    fn from(variant: REGION82_A) -> Self {
950        variant as u8 != 0
951    }
952}
953impl REGION82_R {
954    #[doc = "Get enumerated values variant"]
955    #[inline(always)]
956    pub fn variant(&self) -> REGION82_A {
957        match self.bits {
958            false => REGION82_A::DISABLED,
959            true => REGION82_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 == REGION82_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 == REGION82_A::ENABLED
971    }
972}
973#[doc = "Field `REGION82` writer - Enable protection for region 82. Write '0' has no effect."]
974pub type REGION82_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION82_A, O>;
975impl<'a, const O: u8> REGION82_W<'a, O> {
976    #[doc = "Protection disabled"]
977    #[inline(always)]
978    pub fn disabled(self) -> &'a mut W {
979        self.variant(REGION82_A::DISABLED)
980    }
981    #[doc = "Protection enabled"]
982    #[inline(always)]
983    pub fn enabled(self) -> &'a mut W {
984        self.variant(REGION82_A::ENABLED)
985    }
986}
987#[doc = "Field `REGION83` reader - Enable protection for region 83. Write '0' has no effect."]
988pub type REGION83_R = crate::BitReader<REGION83_A>;
989#[doc = "Enable protection for region 83. Write '0' has no effect.\n\nValue on reset: 0"]
990#[derive(Clone, Copy, Debug, PartialEq)]
991pub enum REGION83_A {
992    #[doc = "0: Protection disabled"]
993    DISABLED = 0,
994    #[doc = "1: Protection enabled"]
995    ENABLED = 1,
996}
997impl From<REGION83_A> for bool {
998    #[inline(always)]
999    fn from(variant: REGION83_A) -> Self {
1000        variant as u8 != 0
1001    }
1002}
1003impl REGION83_R {
1004    #[doc = "Get enumerated values variant"]
1005    #[inline(always)]
1006    pub fn variant(&self) -> REGION83_A {
1007        match self.bits {
1008            false => REGION83_A::DISABLED,
1009            true => REGION83_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 == REGION83_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 == REGION83_A::ENABLED
1021    }
1022}
1023#[doc = "Field `REGION83` writer - Enable protection for region 83. Write '0' has no effect."]
1024pub type REGION83_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION83_A, O>;
1025impl<'a, const O: u8> REGION83_W<'a, O> {
1026    #[doc = "Protection disabled"]
1027    #[inline(always)]
1028    pub fn disabled(self) -> &'a mut W {
1029        self.variant(REGION83_A::DISABLED)
1030    }
1031    #[doc = "Protection enabled"]
1032    #[inline(always)]
1033    pub fn enabled(self) -> &'a mut W {
1034        self.variant(REGION83_A::ENABLED)
1035    }
1036}
1037#[doc = "Field `REGION84` reader - Enable protection for region 84. Write '0' has no effect."]
1038pub type REGION84_R = crate::BitReader<REGION84_A>;
1039#[doc = "Enable protection for region 84. Write '0' has no effect.\n\nValue on reset: 0"]
1040#[derive(Clone, Copy, Debug, PartialEq)]
1041pub enum REGION84_A {
1042    #[doc = "0: Protection disabled"]
1043    DISABLED = 0,
1044    #[doc = "1: Protection enabled"]
1045    ENABLED = 1,
1046}
1047impl From<REGION84_A> for bool {
1048    #[inline(always)]
1049    fn from(variant: REGION84_A) -> Self {
1050        variant as u8 != 0
1051    }
1052}
1053impl REGION84_R {
1054    #[doc = "Get enumerated values variant"]
1055    #[inline(always)]
1056    pub fn variant(&self) -> REGION84_A {
1057        match self.bits {
1058            false => REGION84_A::DISABLED,
1059            true => REGION84_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 == REGION84_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 == REGION84_A::ENABLED
1071    }
1072}
1073#[doc = "Field `REGION84` writer - Enable protection for region 84. Write '0' has no effect."]
1074pub type REGION84_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION84_A, O>;
1075impl<'a, const O: u8> REGION84_W<'a, O> {
1076    #[doc = "Protection disabled"]
1077    #[inline(always)]
1078    pub fn disabled(self) -> &'a mut W {
1079        self.variant(REGION84_A::DISABLED)
1080    }
1081    #[doc = "Protection enabled"]
1082    #[inline(always)]
1083    pub fn enabled(self) -> &'a mut W {
1084        self.variant(REGION84_A::ENABLED)
1085    }
1086}
1087#[doc = "Field `REGION85` reader - Enable protection for region 85. Write '0' has no effect."]
1088pub type REGION85_R = crate::BitReader<REGION85_A>;
1089#[doc = "Enable protection for region 85. Write '0' has no effect.\n\nValue on reset: 0"]
1090#[derive(Clone, Copy, Debug, PartialEq)]
1091pub enum REGION85_A {
1092    #[doc = "0: Protection disabled"]
1093    DISABLED = 0,
1094    #[doc = "1: Protection enabled"]
1095    ENABLED = 1,
1096}
1097impl From<REGION85_A> for bool {
1098    #[inline(always)]
1099    fn from(variant: REGION85_A) -> Self {
1100        variant as u8 != 0
1101    }
1102}
1103impl REGION85_R {
1104    #[doc = "Get enumerated values variant"]
1105    #[inline(always)]
1106    pub fn variant(&self) -> REGION85_A {
1107        match self.bits {
1108            false => REGION85_A::DISABLED,
1109            true => REGION85_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 == REGION85_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 == REGION85_A::ENABLED
1121    }
1122}
1123#[doc = "Field `REGION85` writer - Enable protection for region 85. Write '0' has no effect."]
1124pub type REGION85_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION85_A, O>;
1125impl<'a, const O: u8> REGION85_W<'a, O> {
1126    #[doc = "Protection disabled"]
1127    #[inline(always)]
1128    pub fn disabled(self) -> &'a mut W {
1129        self.variant(REGION85_A::DISABLED)
1130    }
1131    #[doc = "Protection enabled"]
1132    #[inline(always)]
1133    pub fn enabled(self) -> &'a mut W {
1134        self.variant(REGION85_A::ENABLED)
1135    }
1136}
1137#[doc = "Field `REGION86` reader - Enable protection for region 86. Write '0' has no effect."]
1138pub type REGION86_R = crate::BitReader<REGION86_A>;
1139#[doc = "Enable protection for region 86. Write '0' has no effect.\n\nValue on reset: 0"]
1140#[derive(Clone, Copy, Debug, PartialEq)]
1141pub enum REGION86_A {
1142    #[doc = "0: Protection disabled"]
1143    DISABLED = 0,
1144    #[doc = "1: Protection enabled"]
1145    ENABLED = 1,
1146}
1147impl From<REGION86_A> for bool {
1148    #[inline(always)]
1149    fn from(variant: REGION86_A) -> Self {
1150        variant as u8 != 0
1151    }
1152}
1153impl REGION86_R {
1154    #[doc = "Get enumerated values variant"]
1155    #[inline(always)]
1156    pub fn variant(&self) -> REGION86_A {
1157        match self.bits {
1158            false => REGION86_A::DISABLED,
1159            true => REGION86_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 == REGION86_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 == REGION86_A::ENABLED
1171    }
1172}
1173#[doc = "Field `REGION86` writer - Enable protection for region 86. Write '0' has no effect."]
1174pub type REGION86_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION86_A, O>;
1175impl<'a, const O: u8> REGION86_W<'a, O> {
1176    #[doc = "Protection disabled"]
1177    #[inline(always)]
1178    pub fn disabled(self) -> &'a mut W {
1179        self.variant(REGION86_A::DISABLED)
1180    }
1181    #[doc = "Protection enabled"]
1182    #[inline(always)]
1183    pub fn enabled(self) -> &'a mut W {
1184        self.variant(REGION86_A::ENABLED)
1185    }
1186}
1187#[doc = "Field `REGION87` reader - Enable protection for region 87. Write '0' has no effect."]
1188pub type REGION87_R = crate::BitReader<REGION87_A>;
1189#[doc = "Enable protection for region 87. Write '0' has no effect.\n\nValue on reset: 0"]
1190#[derive(Clone, Copy, Debug, PartialEq)]
1191pub enum REGION87_A {
1192    #[doc = "0: Protection disabled"]
1193    DISABLED = 0,
1194    #[doc = "1: Protection enabled"]
1195    ENABLED = 1,
1196}
1197impl From<REGION87_A> for bool {
1198    #[inline(always)]
1199    fn from(variant: REGION87_A) -> Self {
1200        variant as u8 != 0
1201    }
1202}
1203impl REGION87_R {
1204    #[doc = "Get enumerated values variant"]
1205    #[inline(always)]
1206    pub fn variant(&self) -> REGION87_A {
1207        match self.bits {
1208            false => REGION87_A::DISABLED,
1209            true => REGION87_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 == REGION87_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 == REGION87_A::ENABLED
1221    }
1222}
1223#[doc = "Field `REGION87` writer - Enable protection for region 87. Write '0' has no effect."]
1224pub type REGION87_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION87_A, O>;
1225impl<'a, const O: u8> REGION87_W<'a, O> {
1226    #[doc = "Protection disabled"]
1227    #[inline(always)]
1228    pub fn disabled(self) -> &'a mut W {
1229        self.variant(REGION87_A::DISABLED)
1230    }
1231    #[doc = "Protection enabled"]
1232    #[inline(always)]
1233    pub fn enabled(self) -> &'a mut W {
1234        self.variant(REGION87_A::ENABLED)
1235    }
1236}
1237#[doc = "Field `REGION88` reader - Enable protection for region 88. Write '0' has no effect."]
1238pub type REGION88_R = crate::BitReader<REGION88_A>;
1239#[doc = "Enable protection for region 88. Write '0' has no effect.\n\nValue on reset: 0"]
1240#[derive(Clone, Copy, Debug, PartialEq)]
1241pub enum REGION88_A {
1242    #[doc = "0: Protection disabled"]
1243    DISABLED = 0,
1244    #[doc = "1: Protection enabled"]
1245    ENABLED = 1,
1246}
1247impl From<REGION88_A> for bool {
1248    #[inline(always)]
1249    fn from(variant: REGION88_A) -> Self {
1250        variant as u8 != 0
1251    }
1252}
1253impl REGION88_R {
1254    #[doc = "Get enumerated values variant"]
1255    #[inline(always)]
1256    pub fn variant(&self) -> REGION88_A {
1257        match self.bits {
1258            false => REGION88_A::DISABLED,
1259            true => REGION88_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 == REGION88_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 == REGION88_A::ENABLED
1271    }
1272}
1273#[doc = "Field `REGION88` writer - Enable protection for region 88. Write '0' has no effect."]
1274pub type REGION88_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION88_A, O>;
1275impl<'a, const O: u8> REGION88_W<'a, O> {
1276    #[doc = "Protection disabled"]
1277    #[inline(always)]
1278    pub fn disabled(self) -> &'a mut W {
1279        self.variant(REGION88_A::DISABLED)
1280    }
1281    #[doc = "Protection enabled"]
1282    #[inline(always)]
1283    pub fn enabled(self) -> &'a mut W {
1284        self.variant(REGION88_A::ENABLED)
1285    }
1286}
1287#[doc = "Field `REGION89` reader - Enable protection for region 89. Write '0' has no effect."]
1288pub type REGION89_R = crate::BitReader<REGION89_A>;
1289#[doc = "Enable protection for region 89. Write '0' has no effect.\n\nValue on reset: 0"]
1290#[derive(Clone, Copy, Debug, PartialEq)]
1291pub enum REGION89_A {
1292    #[doc = "0: Protection disabled"]
1293    DISABLED = 0,
1294    #[doc = "1: Protection enabled"]
1295    ENABLED = 1,
1296}
1297impl From<REGION89_A> for bool {
1298    #[inline(always)]
1299    fn from(variant: REGION89_A) -> Self {
1300        variant as u8 != 0
1301    }
1302}
1303impl REGION89_R {
1304    #[doc = "Get enumerated values variant"]
1305    #[inline(always)]
1306    pub fn variant(&self) -> REGION89_A {
1307        match self.bits {
1308            false => REGION89_A::DISABLED,
1309            true => REGION89_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 == REGION89_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 == REGION89_A::ENABLED
1321    }
1322}
1323#[doc = "Field `REGION89` writer - Enable protection for region 89. Write '0' has no effect."]
1324pub type REGION89_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION89_A, O>;
1325impl<'a, const O: u8> REGION89_W<'a, O> {
1326    #[doc = "Protection disabled"]
1327    #[inline(always)]
1328    pub fn disabled(self) -> &'a mut W {
1329        self.variant(REGION89_A::DISABLED)
1330    }
1331    #[doc = "Protection enabled"]
1332    #[inline(always)]
1333    pub fn enabled(self) -> &'a mut W {
1334        self.variant(REGION89_A::ENABLED)
1335    }
1336}
1337#[doc = "Field `REGION90` reader - Enable protection for region 90. Write '0' has no effect."]
1338pub type REGION90_R = crate::BitReader<REGION90_A>;
1339#[doc = "Enable protection for region 90. Write '0' has no effect.\n\nValue on reset: 0"]
1340#[derive(Clone, Copy, Debug, PartialEq)]
1341pub enum REGION90_A {
1342    #[doc = "0: Protection disabled"]
1343    DISABLED = 0,
1344    #[doc = "1: Protection enabled"]
1345    ENABLED = 1,
1346}
1347impl From<REGION90_A> for bool {
1348    #[inline(always)]
1349    fn from(variant: REGION90_A) -> Self {
1350        variant as u8 != 0
1351    }
1352}
1353impl REGION90_R {
1354    #[doc = "Get enumerated values variant"]
1355    #[inline(always)]
1356    pub fn variant(&self) -> REGION90_A {
1357        match self.bits {
1358            false => REGION90_A::DISABLED,
1359            true => REGION90_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 == REGION90_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 == REGION90_A::ENABLED
1371    }
1372}
1373#[doc = "Field `REGION90` writer - Enable protection for region 90. Write '0' has no effect."]
1374pub type REGION90_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION90_A, O>;
1375impl<'a, const O: u8> REGION90_W<'a, O> {
1376    #[doc = "Protection disabled"]
1377    #[inline(always)]
1378    pub fn disabled(self) -> &'a mut W {
1379        self.variant(REGION90_A::DISABLED)
1380    }
1381    #[doc = "Protection enabled"]
1382    #[inline(always)]
1383    pub fn enabled(self) -> &'a mut W {
1384        self.variant(REGION90_A::ENABLED)
1385    }
1386}
1387#[doc = "Field `REGION91` reader - Enable protection for region 91. Write '0' has no effect."]
1388pub type REGION91_R = crate::BitReader<REGION91_A>;
1389#[doc = "Enable protection for region 91. Write '0' has no effect.\n\nValue on reset: 0"]
1390#[derive(Clone, Copy, Debug, PartialEq)]
1391pub enum REGION91_A {
1392    #[doc = "0: Protection disabled"]
1393    DISABLED = 0,
1394    #[doc = "1: Protection enabled"]
1395    ENABLED = 1,
1396}
1397impl From<REGION91_A> for bool {
1398    #[inline(always)]
1399    fn from(variant: REGION91_A) -> Self {
1400        variant as u8 != 0
1401    }
1402}
1403impl REGION91_R {
1404    #[doc = "Get enumerated values variant"]
1405    #[inline(always)]
1406    pub fn variant(&self) -> REGION91_A {
1407        match self.bits {
1408            false => REGION91_A::DISABLED,
1409            true => REGION91_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 == REGION91_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 == REGION91_A::ENABLED
1421    }
1422}
1423#[doc = "Field `REGION91` writer - Enable protection for region 91. Write '0' has no effect."]
1424pub type REGION91_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION91_A, O>;
1425impl<'a, const O: u8> REGION91_W<'a, O> {
1426    #[doc = "Protection disabled"]
1427    #[inline(always)]
1428    pub fn disabled(self) -> &'a mut W {
1429        self.variant(REGION91_A::DISABLED)
1430    }
1431    #[doc = "Protection enabled"]
1432    #[inline(always)]
1433    pub fn enabled(self) -> &'a mut W {
1434        self.variant(REGION91_A::ENABLED)
1435    }
1436}
1437#[doc = "Field `REGION92` reader - Enable protection for region 92. Write '0' has no effect."]
1438pub type REGION92_R = crate::BitReader<REGION92_A>;
1439#[doc = "Enable protection for region 92. Write '0' has no effect.\n\nValue on reset: 0"]
1440#[derive(Clone, Copy, Debug, PartialEq)]
1441pub enum REGION92_A {
1442    #[doc = "0: Protection disabled"]
1443    DISABLED = 0,
1444    #[doc = "1: Protection enabled"]
1445    ENABLED = 1,
1446}
1447impl From<REGION92_A> for bool {
1448    #[inline(always)]
1449    fn from(variant: REGION92_A) -> Self {
1450        variant as u8 != 0
1451    }
1452}
1453impl REGION92_R {
1454    #[doc = "Get enumerated values variant"]
1455    #[inline(always)]
1456    pub fn variant(&self) -> REGION92_A {
1457        match self.bits {
1458            false => REGION92_A::DISABLED,
1459            true => REGION92_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 == REGION92_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 == REGION92_A::ENABLED
1471    }
1472}
1473#[doc = "Field `REGION92` writer - Enable protection for region 92. Write '0' has no effect."]
1474pub type REGION92_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION92_A, O>;
1475impl<'a, const O: u8> REGION92_W<'a, O> {
1476    #[doc = "Protection disabled"]
1477    #[inline(always)]
1478    pub fn disabled(self) -> &'a mut W {
1479        self.variant(REGION92_A::DISABLED)
1480    }
1481    #[doc = "Protection enabled"]
1482    #[inline(always)]
1483    pub fn enabled(self) -> &'a mut W {
1484        self.variant(REGION92_A::ENABLED)
1485    }
1486}
1487#[doc = "Field `REGION93` reader - Enable protection for region 93. Write '0' has no effect."]
1488pub type REGION93_R = crate::BitReader<REGION93_A>;
1489#[doc = "Enable protection for region 93. Write '0' has no effect.\n\nValue on reset: 0"]
1490#[derive(Clone, Copy, Debug, PartialEq)]
1491pub enum REGION93_A {
1492    #[doc = "0: Protection disabled"]
1493    DISABLED = 0,
1494    #[doc = "1: Protection enabled"]
1495    ENABLED = 1,
1496}
1497impl From<REGION93_A> for bool {
1498    #[inline(always)]
1499    fn from(variant: REGION93_A) -> Self {
1500        variant as u8 != 0
1501    }
1502}
1503impl REGION93_R {
1504    #[doc = "Get enumerated values variant"]
1505    #[inline(always)]
1506    pub fn variant(&self) -> REGION93_A {
1507        match self.bits {
1508            false => REGION93_A::DISABLED,
1509            true => REGION93_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 == REGION93_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 == REGION93_A::ENABLED
1521    }
1522}
1523#[doc = "Field `REGION93` writer - Enable protection for region 93. Write '0' has no effect."]
1524pub type REGION93_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION93_A, O>;
1525impl<'a, const O: u8> REGION93_W<'a, O> {
1526    #[doc = "Protection disabled"]
1527    #[inline(always)]
1528    pub fn disabled(self) -> &'a mut W {
1529        self.variant(REGION93_A::DISABLED)
1530    }
1531    #[doc = "Protection enabled"]
1532    #[inline(always)]
1533    pub fn enabled(self) -> &'a mut W {
1534        self.variant(REGION93_A::ENABLED)
1535    }
1536}
1537#[doc = "Field `REGION94` reader - Enable protection for region 94. Write '0' has no effect."]
1538pub type REGION94_R = crate::BitReader<REGION94_A>;
1539#[doc = "Enable protection for region 94. Write '0' has no effect.\n\nValue on reset: 0"]
1540#[derive(Clone, Copy, Debug, PartialEq)]
1541pub enum REGION94_A {
1542    #[doc = "0: Protection disabled"]
1543    DISABLED = 0,
1544    #[doc = "1: Protection enabled"]
1545    ENABLED = 1,
1546}
1547impl From<REGION94_A> for bool {
1548    #[inline(always)]
1549    fn from(variant: REGION94_A) -> Self {
1550        variant as u8 != 0
1551    }
1552}
1553impl REGION94_R {
1554    #[doc = "Get enumerated values variant"]
1555    #[inline(always)]
1556    pub fn variant(&self) -> REGION94_A {
1557        match self.bits {
1558            false => REGION94_A::DISABLED,
1559            true => REGION94_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 == REGION94_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 == REGION94_A::ENABLED
1571    }
1572}
1573#[doc = "Field `REGION94` writer - Enable protection for region 94. Write '0' has no effect."]
1574pub type REGION94_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION94_A, O>;
1575impl<'a, const O: u8> REGION94_W<'a, O> {
1576    #[doc = "Protection disabled"]
1577    #[inline(always)]
1578    pub fn disabled(self) -> &'a mut W {
1579        self.variant(REGION94_A::DISABLED)
1580    }
1581    #[doc = "Protection enabled"]
1582    #[inline(always)]
1583    pub fn enabled(self) -> &'a mut W {
1584        self.variant(REGION94_A::ENABLED)
1585    }
1586}
1587#[doc = "Field `REGION95` reader - Enable protection for region 95. Write '0' has no effect."]
1588pub type REGION95_R = crate::BitReader<REGION95_A>;
1589#[doc = "Enable protection for region 95. Write '0' has no effect.\n\nValue on reset: 0"]
1590#[derive(Clone, Copy, Debug, PartialEq)]
1591pub enum REGION95_A {
1592    #[doc = "0: Protection disabled"]
1593    DISABLED = 0,
1594    #[doc = "1: Protection enabled"]
1595    ENABLED = 1,
1596}
1597impl From<REGION95_A> for bool {
1598    #[inline(always)]
1599    fn from(variant: REGION95_A) -> Self {
1600        variant as u8 != 0
1601    }
1602}
1603impl REGION95_R {
1604    #[doc = "Get enumerated values variant"]
1605    #[inline(always)]
1606    pub fn variant(&self) -> REGION95_A {
1607        match self.bits {
1608            false => REGION95_A::DISABLED,
1609            true => REGION95_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 == REGION95_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 == REGION95_A::ENABLED
1621    }
1622}
1623#[doc = "Field `REGION95` writer - Enable protection for region 95. Write '0' has no effect."]
1624pub type REGION95_W<'a, const O: u8> = crate::BitWriter<'a, u32, CONFIG2_SPEC, REGION95_A, O>;
1625impl<'a, const O: u8> REGION95_W<'a, O> {
1626    #[doc = "Protection disabled"]
1627    #[inline(always)]
1628    pub fn disabled(self) -> &'a mut W {
1629        self.variant(REGION95_A::DISABLED)
1630    }
1631    #[doc = "Protection enabled"]
1632    #[inline(always)]
1633    pub fn enabled(self) -> &'a mut W {
1634        self.variant(REGION95_A::ENABLED)
1635    }
1636}
1637impl R {
1638    #[doc = "Bit 0 - Enable protection for region 64. Write '0' has no effect."]
1639    #[inline(always)]
1640    pub fn region64(&self) -> REGION64_R {
1641        REGION64_R::new((self.bits & 1) != 0)
1642    }
1643    #[doc = "Bit 1 - Enable protection for region 65. Write '0' has no effect."]
1644    #[inline(always)]
1645    pub fn region65(&self) -> REGION65_R {
1646        REGION65_R::new(((self.bits >> 1) & 1) != 0)
1647    }
1648    #[doc = "Bit 2 - Enable protection for region 66. Write '0' has no effect."]
1649    #[inline(always)]
1650    pub fn region66(&self) -> REGION66_R {
1651        REGION66_R::new(((self.bits >> 2) & 1) != 0)
1652    }
1653    #[doc = "Bit 3 - Enable protection for region 67. Write '0' has no effect."]
1654    #[inline(always)]
1655    pub fn region67(&self) -> REGION67_R {
1656        REGION67_R::new(((self.bits >> 3) & 1) != 0)
1657    }
1658    #[doc = "Bit 4 - Enable protection for region 68. Write '0' has no effect."]
1659    #[inline(always)]
1660    pub fn region68(&self) -> REGION68_R {
1661        REGION68_R::new(((self.bits >> 4) & 1) != 0)
1662    }
1663    #[doc = "Bit 5 - Enable protection for region 69. Write '0' has no effect."]
1664    #[inline(always)]
1665    pub fn region69(&self) -> REGION69_R {
1666        REGION69_R::new(((self.bits >> 5) & 1) != 0)
1667    }
1668    #[doc = "Bit 6 - Enable protection for region 70. Write '0' has no effect."]
1669    #[inline(always)]
1670    pub fn region70(&self) -> REGION70_R {
1671        REGION70_R::new(((self.bits >> 6) & 1) != 0)
1672    }
1673    #[doc = "Bit 7 - Enable protection for region 71. Write '0' has no effect."]
1674    #[inline(always)]
1675    pub fn region71(&self) -> REGION71_R {
1676        REGION71_R::new(((self.bits >> 7) & 1) != 0)
1677    }
1678    #[doc = "Bit 8 - Enable protection for region 72. Write '0' has no effect."]
1679    #[inline(always)]
1680    pub fn region72(&self) -> REGION72_R {
1681        REGION72_R::new(((self.bits >> 8) & 1) != 0)
1682    }
1683    #[doc = "Bit 9 - Enable protection for region 73. Write '0' has no effect."]
1684    #[inline(always)]
1685    pub fn region73(&self) -> REGION73_R {
1686        REGION73_R::new(((self.bits >> 9) & 1) != 0)
1687    }
1688    #[doc = "Bit 10 - Enable protection for region 74. Write '0' has no effect."]
1689    #[inline(always)]
1690    pub fn region74(&self) -> REGION74_R {
1691        REGION74_R::new(((self.bits >> 10) & 1) != 0)
1692    }
1693    #[doc = "Bit 11 - Enable protection for region 75. Write '0' has no effect."]
1694    #[inline(always)]
1695    pub fn region75(&self) -> REGION75_R {
1696        REGION75_R::new(((self.bits >> 11) & 1) != 0)
1697    }
1698    #[doc = "Bit 12 - Enable protection for region 76. Write '0' has no effect."]
1699    #[inline(always)]
1700    pub fn region76(&self) -> REGION76_R {
1701        REGION76_R::new(((self.bits >> 12) & 1) != 0)
1702    }
1703    #[doc = "Bit 13 - Enable protection for region 77. Write '0' has no effect."]
1704    #[inline(always)]
1705    pub fn region77(&self) -> REGION77_R {
1706        REGION77_R::new(((self.bits >> 13) & 1) != 0)
1707    }
1708    #[doc = "Bit 14 - Enable protection for region 78. Write '0' has no effect."]
1709    #[inline(always)]
1710    pub fn region78(&self) -> REGION78_R {
1711        REGION78_R::new(((self.bits >> 14) & 1) != 0)
1712    }
1713    #[doc = "Bit 15 - Enable protection for region 79. Write '0' has no effect."]
1714    #[inline(always)]
1715    pub fn region79(&self) -> REGION79_R {
1716        REGION79_R::new(((self.bits >> 15) & 1) != 0)
1717    }
1718    #[doc = "Bit 16 - Enable protection for region 80. Write '0' has no effect."]
1719    #[inline(always)]
1720    pub fn region80(&self) -> REGION80_R {
1721        REGION80_R::new(((self.bits >> 16) & 1) != 0)
1722    }
1723    #[doc = "Bit 17 - Enable protection for region 81. Write '0' has no effect."]
1724    #[inline(always)]
1725    pub fn region81(&self) -> REGION81_R {
1726        REGION81_R::new(((self.bits >> 17) & 1) != 0)
1727    }
1728    #[doc = "Bit 18 - Enable protection for region 82. Write '0' has no effect."]
1729    #[inline(always)]
1730    pub fn region82(&self) -> REGION82_R {
1731        REGION82_R::new(((self.bits >> 18) & 1) != 0)
1732    }
1733    #[doc = "Bit 19 - Enable protection for region 83. Write '0' has no effect."]
1734    #[inline(always)]
1735    pub fn region83(&self) -> REGION83_R {
1736        REGION83_R::new(((self.bits >> 19) & 1) != 0)
1737    }
1738    #[doc = "Bit 20 - Enable protection for region 84. Write '0' has no effect."]
1739    #[inline(always)]
1740    pub fn region84(&self) -> REGION84_R {
1741        REGION84_R::new(((self.bits >> 20) & 1) != 0)
1742    }
1743    #[doc = "Bit 21 - Enable protection for region 85. Write '0' has no effect."]
1744    #[inline(always)]
1745    pub fn region85(&self) -> REGION85_R {
1746        REGION85_R::new(((self.bits >> 21) & 1) != 0)
1747    }
1748    #[doc = "Bit 22 - Enable protection for region 86. Write '0' has no effect."]
1749    #[inline(always)]
1750    pub fn region86(&self) -> REGION86_R {
1751        REGION86_R::new(((self.bits >> 22) & 1) != 0)
1752    }
1753    #[doc = "Bit 23 - Enable protection for region 87. Write '0' has no effect."]
1754    #[inline(always)]
1755    pub fn region87(&self) -> REGION87_R {
1756        REGION87_R::new(((self.bits >> 23) & 1) != 0)
1757    }
1758    #[doc = "Bit 24 - Enable protection for region 88. Write '0' has no effect."]
1759    #[inline(always)]
1760    pub fn region88(&self) -> REGION88_R {
1761        REGION88_R::new(((self.bits >> 24) & 1) != 0)
1762    }
1763    #[doc = "Bit 25 - Enable protection for region 89. Write '0' has no effect."]
1764    #[inline(always)]
1765    pub fn region89(&self) -> REGION89_R {
1766        REGION89_R::new(((self.bits >> 25) & 1) != 0)
1767    }
1768    #[doc = "Bit 26 - Enable protection for region 90. Write '0' has no effect."]
1769    #[inline(always)]
1770    pub fn region90(&self) -> REGION90_R {
1771        REGION90_R::new(((self.bits >> 26) & 1) != 0)
1772    }
1773    #[doc = "Bit 27 - Enable protection for region 91. Write '0' has no effect."]
1774    #[inline(always)]
1775    pub fn region91(&self) -> REGION91_R {
1776        REGION91_R::new(((self.bits >> 27) & 1) != 0)
1777    }
1778    #[doc = "Bit 28 - Enable protection for region 92. Write '0' has no effect."]
1779    #[inline(always)]
1780    pub fn region92(&self) -> REGION92_R {
1781        REGION92_R::new(((self.bits >> 28) & 1) != 0)
1782    }
1783    #[doc = "Bit 29 - Enable protection for region 93. Write '0' has no effect."]
1784    #[inline(always)]
1785    pub fn region93(&self) -> REGION93_R {
1786        REGION93_R::new(((self.bits >> 29) & 1) != 0)
1787    }
1788    #[doc = "Bit 30 - Enable protection for region 94. Write '0' has no effect."]
1789    #[inline(always)]
1790    pub fn region94(&self) -> REGION94_R {
1791        REGION94_R::new(((self.bits >> 30) & 1) != 0)
1792    }
1793    #[doc = "Bit 31 - Enable protection for region 95. Write '0' has no effect."]
1794    #[inline(always)]
1795    pub fn region95(&self) -> REGION95_R {
1796        REGION95_R::new(((self.bits >> 31) & 1) != 0)
1797    }
1798}
1799impl W {
1800    #[doc = "Bit 0 - Enable protection for region 64. Write '0' has no effect."]
1801    #[inline(always)]
1802    pub fn region64(&mut self) -> REGION64_W<0> {
1803        REGION64_W::new(self)
1804    }
1805    #[doc = "Bit 1 - Enable protection for region 65. Write '0' has no effect."]
1806    #[inline(always)]
1807    pub fn region65(&mut self) -> REGION65_W<1> {
1808        REGION65_W::new(self)
1809    }
1810    #[doc = "Bit 2 - Enable protection for region 66. Write '0' has no effect."]
1811    #[inline(always)]
1812    pub fn region66(&mut self) -> REGION66_W<2> {
1813        REGION66_W::new(self)
1814    }
1815    #[doc = "Bit 3 - Enable protection for region 67. Write '0' has no effect."]
1816    #[inline(always)]
1817    pub fn region67(&mut self) -> REGION67_W<3> {
1818        REGION67_W::new(self)
1819    }
1820    #[doc = "Bit 4 - Enable protection for region 68. Write '0' has no effect."]
1821    #[inline(always)]
1822    pub fn region68(&mut self) -> REGION68_W<4> {
1823        REGION68_W::new(self)
1824    }
1825    #[doc = "Bit 5 - Enable protection for region 69. Write '0' has no effect."]
1826    #[inline(always)]
1827    pub fn region69(&mut self) -> REGION69_W<5> {
1828        REGION69_W::new(self)
1829    }
1830    #[doc = "Bit 6 - Enable protection for region 70. Write '0' has no effect."]
1831    #[inline(always)]
1832    pub fn region70(&mut self) -> REGION70_W<6> {
1833        REGION70_W::new(self)
1834    }
1835    #[doc = "Bit 7 - Enable protection for region 71. Write '0' has no effect."]
1836    #[inline(always)]
1837    pub fn region71(&mut self) -> REGION71_W<7> {
1838        REGION71_W::new(self)
1839    }
1840    #[doc = "Bit 8 - Enable protection for region 72. Write '0' has no effect."]
1841    #[inline(always)]
1842    pub fn region72(&mut self) -> REGION72_W<8> {
1843        REGION72_W::new(self)
1844    }
1845    #[doc = "Bit 9 - Enable protection for region 73. Write '0' has no effect."]
1846    #[inline(always)]
1847    pub fn region73(&mut self) -> REGION73_W<9> {
1848        REGION73_W::new(self)
1849    }
1850    #[doc = "Bit 10 - Enable protection for region 74. Write '0' has no effect."]
1851    #[inline(always)]
1852    pub fn region74(&mut self) -> REGION74_W<10> {
1853        REGION74_W::new(self)
1854    }
1855    #[doc = "Bit 11 - Enable protection for region 75. Write '0' has no effect."]
1856    #[inline(always)]
1857    pub fn region75(&mut self) -> REGION75_W<11> {
1858        REGION75_W::new(self)
1859    }
1860    #[doc = "Bit 12 - Enable protection for region 76. Write '0' has no effect."]
1861    #[inline(always)]
1862    pub fn region76(&mut self) -> REGION76_W<12> {
1863        REGION76_W::new(self)
1864    }
1865    #[doc = "Bit 13 - Enable protection for region 77. Write '0' has no effect."]
1866    #[inline(always)]
1867    pub fn region77(&mut self) -> REGION77_W<13> {
1868        REGION77_W::new(self)
1869    }
1870    #[doc = "Bit 14 - Enable protection for region 78. Write '0' has no effect."]
1871    #[inline(always)]
1872    pub fn region78(&mut self) -> REGION78_W<14> {
1873        REGION78_W::new(self)
1874    }
1875    #[doc = "Bit 15 - Enable protection for region 79. Write '0' has no effect."]
1876    #[inline(always)]
1877    pub fn region79(&mut self) -> REGION79_W<15> {
1878        REGION79_W::new(self)
1879    }
1880    #[doc = "Bit 16 - Enable protection for region 80. Write '0' has no effect."]
1881    #[inline(always)]
1882    pub fn region80(&mut self) -> REGION80_W<16> {
1883        REGION80_W::new(self)
1884    }
1885    #[doc = "Bit 17 - Enable protection for region 81. Write '0' has no effect."]
1886    #[inline(always)]
1887    pub fn region81(&mut self) -> REGION81_W<17> {
1888        REGION81_W::new(self)
1889    }
1890    #[doc = "Bit 18 - Enable protection for region 82. Write '0' has no effect."]
1891    #[inline(always)]
1892    pub fn region82(&mut self) -> REGION82_W<18> {
1893        REGION82_W::new(self)
1894    }
1895    #[doc = "Bit 19 - Enable protection for region 83. Write '0' has no effect."]
1896    #[inline(always)]
1897    pub fn region83(&mut self) -> REGION83_W<19> {
1898        REGION83_W::new(self)
1899    }
1900    #[doc = "Bit 20 - Enable protection for region 84. Write '0' has no effect."]
1901    #[inline(always)]
1902    pub fn region84(&mut self) -> REGION84_W<20> {
1903        REGION84_W::new(self)
1904    }
1905    #[doc = "Bit 21 - Enable protection for region 85. Write '0' has no effect."]
1906    #[inline(always)]
1907    pub fn region85(&mut self) -> REGION85_W<21> {
1908        REGION85_W::new(self)
1909    }
1910    #[doc = "Bit 22 - Enable protection for region 86. Write '0' has no effect."]
1911    #[inline(always)]
1912    pub fn region86(&mut self) -> REGION86_W<22> {
1913        REGION86_W::new(self)
1914    }
1915    #[doc = "Bit 23 - Enable protection for region 87. Write '0' has no effect."]
1916    #[inline(always)]
1917    pub fn region87(&mut self) -> REGION87_W<23> {
1918        REGION87_W::new(self)
1919    }
1920    #[doc = "Bit 24 - Enable protection for region 88. Write '0' has no effect."]
1921    #[inline(always)]
1922    pub fn region88(&mut self) -> REGION88_W<24> {
1923        REGION88_W::new(self)
1924    }
1925    #[doc = "Bit 25 - Enable protection for region 89. Write '0' has no effect."]
1926    #[inline(always)]
1927    pub fn region89(&mut self) -> REGION89_W<25> {
1928        REGION89_W::new(self)
1929    }
1930    #[doc = "Bit 26 - Enable protection for region 90. Write '0' has no effect."]
1931    #[inline(always)]
1932    pub fn region90(&mut self) -> REGION90_W<26> {
1933        REGION90_W::new(self)
1934    }
1935    #[doc = "Bit 27 - Enable protection for region 91. Write '0' has no effect."]
1936    #[inline(always)]
1937    pub fn region91(&mut self) -> REGION91_W<27> {
1938        REGION91_W::new(self)
1939    }
1940    #[doc = "Bit 28 - Enable protection for region 92. Write '0' has no effect."]
1941    #[inline(always)]
1942    pub fn region92(&mut self) -> REGION92_W<28> {
1943        REGION92_W::new(self)
1944    }
1945    #[doc = "Bit 29 - Enable protection for region 93. Write '0' has no effect."]
1946    #[inline(always)]
1947    pub fn region93(&mut self) -> REGION93_W<29> {
1948        REGION93_W::new(self)
1949    }
1950    #[doc = "Bit 30 - Enable protection for region 94. Write '0' has no effect."]
1951    #[inline(always)]
1952    pub fn region94(&mut self) -> REGION94_W<30> {
1953        REGION94_W::new(self)
1954    }
1955    #[doc = "Bit 31 - Enable protection for region 95. Write '0' has no effect."]
1956    #[inline(always)]
1957    pub fn region95(&mut self) -> REGION95_W<31> {
1958        REGION95_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 2\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 [config2](index.html) module"]
1968pub struct CONFIG2_SPEC;
1969impl crate::RegisterSpec for CONFIG2_SPEC {
1970    type Ux = u32;
1971}
1972#[doc = "`read()` method returns [config2::R](R) reader structure"]
1973impl crate::Readable for CONFIG2_SPEC {
1974    type Reader = R;
1975}
1976#[doc = "`write(|w| ..)` method takes [config2::W](W) writer structure"]
1977impl crate::Writable for CONFIG2_SPEC {
1978    type Writer = W;
1979}
1980#[doc = "`reset()` method sets CONFIG2 to value 0"]
1981impl crate::Resettable for CONFIG2_SPEC {
1982    #[inline(always)]
1983    fn reset_value() -> Self::Ux {
1984        0
1985    }
1986}