nrf52832_pac/bprot/
config3.rs

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