1#[doc = "Register `REGIONENCLR` reader"]
2pub struct R(crate::R<REGIONENCLR_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<REGIONENCLR_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<REGIONENCLR_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<REGIONENCLR_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `REGIONENCLR` writer"]
17pub struct W(crate::W<REGIONENCLR_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<REGIONENCLR_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<REGIONENCLR_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<REGIONENCLR_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `RGN0WA` reader - Disable write access watch in region\\[0\\]"]
38pub type RGN0WA_R = crate::BitReader<RGN0WA_A>;
39#[doc = "Disable write access watch in region\\[0\\]\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq)]
41pub enum RGN0WA_A {
42 #[doc = "0: Write access watch in this region is disabled"]
43 DISABLED = 0,
44 #[doc = "1: Write access watch in this region is enabled"]
45 ENABLED = 1,
46}
47impl From<RGN0WA_A> for bool {
48 #[inline(always)]
49 fn from(variant: RGN0WA_A) -> Self {
50 variant as u8 != 0
51 }
52}
53impl RGN0WA_R {
54 #[doc = "Get enumerated values variant"]
55 #[inline(always)]
56 pub fn variant(&self) -> RGN0WA_A {
57 match self.bits {
58 false => RGN0WA_A::DISABLED,
59 true => RGN0WA_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 == RGN0WA_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 == RGN0WA_A::ENABLED
71 }
72}
73#[doc = "Disable write access watch in region\\[0\\]\n\nValue on reset: 0"]
74#[derive(Clone, Copy, Debug, PartialEq)]
75pub enum RGN0WA_AW {
76 #[doc = "1: Disable write access watch in this region"]
77 CLEAR = 1,
78}
79impl From<RGN0WA_AW> for bool {
80 #[inline(always)]
81 fn from(variant: RGN0WA_AW) -> Self {
82 variant as u8 != 0
83 }
84}
85#[doc = "Field `RGN0WA` writer - Disable write access watch in region\\[0\\]"]
86pub type RGN0WA_W<'a, const O: u8> = crate::BitWriter<'a, u32, REGIONENCLR_SPEC, RGN0WA_AW, O>;
87impl<'a, const O: u8> RGN0WA_W<'a, O> {
88 #[doc = "Disable write access watch in this region"]
89 #[inline(always)]
90 pub fn clear(self) -> &'a mut W {
91 self.variant(RGN0WA_AW::CLEAR)
92 }
93}
94#[doc = "Field `RGN0RA` reader - Disable read access watch in region\\[0\\]"]
95pub type RGN0RA_R = crate::BitReader<RGN0RA_A>;
96#[doc = "Disable read access watch in region\\[0\\]\n\nValue on reset: 0"]
97#[derive(Clone, Copy, Debug, PartialEq)]
98pub enum RGN0RA_A {
99 #[doc = "0: Read access watch in this region is disabled"]
100 DISABLED = 0,
101 #[doc = "1: Read access watch in this region is enabled"]
102 ENABLED = 1,
103}
104impl From<RGN0RA_A> for bool {
105 #[inline(always)]
106 fn from(variant: RGN0RA_A) -> Self {
107 variant as u8 != 0
108 }
109}
110impl RGN0RA_R {
111 #[doc = "Get enumerated values variant"]
112 #[inline(always)]
113 pub fn variant(&self) -> RGN0RA_A {
114 match self.bits {
115 false => RGN0RA_A::DISABLED,
116 true => RGN0RA_A::ENABLED,
117 }
118 }
119 #[doc = "Checks if the value of the field is `DISABLED`"]
120 #[inline(always)]
121 pub fn is_disabled(&self) -> bool {
122 *self == RGN0RA_A::DISABLED
123 }
124 #[doc = "Checks if the value of the field is `ENABLED`"]
125 #[inline(always)]
126 pub fn is_enabled(&self) -> bool {
127 *self == RGN0RA_A::ENABLED
128 }
129}
130#[doc = "Disable read access watch in region\\[0\\]\n\nValue on reset: 0"]
131#[derive(Clone, Copy, Debug, PartialEq)]
132pub enum RGN0RA_AW {
133 #[doc = "1: Disable read access watch in this region"]
134 CLEAR = 1,
135}
136impl From<RGN0RA_AW> for bool {
137 #[inline(always)]
138 fn from(variant: RGN0RA_AW) -> Self {
139 variant as u8 != 0
140 }
141}
142#[doc = "Field `RGN0RA` writer - Disable read access watch in region\\[0\\]"]
143pub type RGN0RA_W<'a, const O: u8> = crate::BitWriter<'a, u32, REGIONENCLR_SPEC, RGN0RA_AW, O>;
144impl<'a, const O: u8> RGN0RA_W<'a, O> {
145 #[doc = "Disable read access watch in this region"]
146 #[inline(always)]
147 pub fn clear(self) -> &'a mut W {
148 self.variant(RGN0RA_AW::CLEAR)
149 }
150}
151#[doc = "Field `RGN1WA` reader - Disable write access watch in region\\[1\\]"]
152pub type RGN1WA_R = crate::BitReader<RGN1WA_A>;
153#[doc = "Disable write access watch in region\\[1\\]\n\nValue on reset: 0"]
154#[derive(Clone, Copy, Debug, PartialEq)]
155pub enum RGN1WA_A {
156 #[doc = "0: Write access watch in this region is disabled"]
157 DISABLED = 0,
158 #[doc = "1: Write access watch in this region is enabled"]
159 ENABLED = 1,
160}
161impl From<RGN1WA_A> for bool {
162 #[inline(always)]
163 fn from(variant: RGN1WA_A) -> Self {
164 variant as u8 != 0
165 }
166}
167impl RGN1WA_R {
168 #[doc = "Get enumerated values variant"]
169 #[inline(always)]
170 pub fn variant(&self) -> RGN1WA_A {
171 match self.bits {
172 false => RGN1WA_A::DISABLED,
173 true => RGN1WA_A::ENABLED,
174 }
175 }
176 #[doc = "Checks if the value of the field is `DISABLED`"]
177 #[inline(always)]
178 pub fn is_disabled(&self) -> bool {
179 *self == RGN1WA_A::DISABLED
180 }
181 #[doc = "Checks if the value of the field is `ENABLED`"]
182 #[inline(always)]
183 pub fn is_enabled(&self) -> bool {
184 *self == RGN1WA_A::ENABLED
185 }
186}
187#[doc = "Disable write access watch in region\\[1\\]\n\nValue on reset: 0"]
188#[derive(Clone, Copy, Debug, PartialEq)]
189pub enum RGN1WA_AW {
190 #[doc = "1: Disable write access watch in this region"]
191 CLEAR = 1,
192}
193impl From<RGN1WA_AW> for bool {
194 #[inline(always)]
195 fn from(variant: RGN1WA_AW) -> Self {
196 variant as u8 != 0
197 }
198}
199#[doc = "Field `RGN1WA` writer - Disable write access watch in region\\[1\\]"]
200pub type RGN1WA_W<'a, const O: u8> = crate::BitWriter<'a, u32, REGIONENCLR_SPEC, RGN1WA_AW, O>;
201impl<'a, const O: u8> RGN1WA_W<'a, O> {
202 #[doc = "Disable write access watch in this region"]
203 #[inline(always)]
204 pub fn clear(self) -> &'a mut W {
205 self.variant(RGN1WA_AW::CLEAR)
206 }
207}
208#[doc = "Field `RGN1RA` reader - Disable read access watch in region\\[1\\]"]
209pub type RGN1RA_R = crate::BitReader<RGN1RA_A>;
210#[doc = "Disable read access watch in region\\[1\\]\n\nValue on reset: 0"]
211#[derive(Clone, Copy, Debug, PartialEq)]
212pub enum RGN1RA_A {
213 #[doc = "0: Read access watch in this region is disabled"]
214 DISABLED = 0,
215 #[doc = "1: Read access watch in this region is enabled"]
216 ENABLED = 1,
217}
218impl From<RGN1RA_A> for bool {
219 #[inline(always)]
220 fn from(variant: RGN1RA_A) -> Self {
221 variant as u8 != 0
222 }
223}
224impl RGN1RA_R {
225 #[doc = "Get enumerated values variant"]
226 #[inline(always)]
227 pub fn variant(&self) -> RGN1RA_A {
228 match self.bits {
229 false => RGN1RA_A::DISABLED,
230 true => RGN1RA_A::ENABLED,
231 }
232 }
233 #[doc = "Checks if the value of the field is `DISABLED`"]
234 #[inline(always)]
235 pub fn is_disabled(&self) -> bool {
236 *self == RGN1RA_A::DISABLED
237 }
238 #[doc = "Checks if the value of the field is `ENABLED`"]
239 #[inline(always)]
240 pub fn is_enabled(&self) -> bool {
241 *self == RGN1RA_A::ENABLED
242 }
243}
244#[doc = "Disable read access watch in region\\[1\\]\n\nValue on reset: 0"]
245#[derive(Clone, Copy, Debug, PartialEq)]
246pub enum RGN1RA_AW {
247 #[doc = "1: Disable read access watch in this region"]
248 CLEAR = 1,
249}
250impl From<RGN1RA_AW> for bool {
251 #[inline(always)]
252 fn from(variant: RGN1RA_AW) -> Self {
253 variant as u8 != 0
254 }
255}
256#[doc = "Field `RGN1RA` writer - Disable read access watch in region\\[1\\]"]
257pub type RGN1RA_W<'a, const O: u8> = crate::BitWriter<'a, u32, REGIONENCLR_SPEC, RGN1RA_AW, O>;
258impl<'a, const O: u8> RGN1RA_W<'a, O> {
259 #[doc = "Disable read access watch in this region"]
260 #[inline(always)]
261 pub fn clear(self) -> &'a mut W {
262 self.variant(RGN1RA_AW::CLEAR)
263 }
264}
265#[doc = "Field `RGN2WA` reader - Disable write access watch in region\\[2\\]"]
266pub type RGN2WA_R = crate::BitReader<RGN2WA_A>;
267#[doc = "Disable write access watch in region\\[2\\]\n\nValue on reset: 0"]
268#[derive(Clone, Copy, Debug, PartialEq)]
269pub enum RGN2WA_A {
270 #[doc = "0: Write access watch in this region is disabled"]
271 DISABLED = 0,
272 #[doc = "1: Write access watch in this region is enabled"]
273 ENABLED = 1,
274}
275impl From<RGN2WA_A> for bool {
276 #[inline(always)]
277 fn from(variant: RGN2WA_A) -> Self {
278 variant as u8 != 0
279 }
280}
281impl RGN2WA_R {
282 #[doc = "Get enumerated values variant"]
283 #[inline(always)]
284 pub fn variant(&self) -> RGN2WA_A {
285 match self.bits {
286 false => RGN2WA_A::DISABLED,
287 true => RGN2WA_A::ENABLED,
288 }
289 }
290 #[doc = "Checks if the value of the field is `DISABLED`"]
291 #[inline(always)]
292 pub fn is_disabled(&self) -> bool {
293 *self == RGN2WA_A::DISABLED
294 }
295 #[doc = "Checks if the value of the field is `ENABLED`"]
296 #[inline(always)]
297 pub fn is_enabled(&self) -> bool {
298 *self == RGN2WA_A::ENABLED
299 }
300}
301#[doc = "Disable write access watch in region\\[2\\]\n\nValue on reset: 0"]
302#[derive(Clone, Copy, Debug, PartialEq)]
303pub enum RGN2WA_AW {
304 #[doc = "1: Disable write access watch in this region"]
305 CLEAR = 1,
306}
307impl From<RGN2WA_AW> for bool {
308 #[inline(always)]
309 fn from(variant: RGN2WA_AW) -> Self {
310 variant as u8 != 0
311 }
312}
313#[doc = "Field `RGN2WA` writer - Disable write access watch in region\\[2\\]"]
314pub type RGN2WA_W<'a, const O: u8> = crate::BitWriter<'a, u32, REGIONENCLR_SPEC, RGN2WA_AW, O>;
315impl<'a, const O: u8> RGN2WA_W<'a, O> {
316 #[doc = "Disable write access watch in this region"]
317 #[inline(always)]
318 pub fn clear(self) -> &'a mut W {
319 self.variant(RGN2WA_AW::CLEAR)
320 }
321}
322#[doc = "Field `RGN2RA` reader - Disable read access watch in region\\[2\\]"]
323pub type RGN2RA_R = crate::BitReader<RGN2RA_A>;
324#[doc = "Disable read access watch in region\\[2\\]\n\nValue on reset: 0"]
325#[derive(Clone, Copy, Debug, PartialEq)]
326pub enum RGN2RA_A {
327 #[doc = "0: Read access watch in this region is disabled"]
328 DISABLED = 0,
329 #[doc = "1: Read access watch in this region is enabled"]
330 ENABLED = 1,
331}
332impl From<RGN2RA_A> for bool {
333 #[inline(always)]
334 fn from(variant: RGN2RA_A) -> Self {
335 variant as u8 != 0
336 }
337}
338impl RGN2RA_R {
339 #[doc = "Get enumerated values variant"]
340 #[inline(always)]
341 pub fn variant(&self) -> RGN2RA_A {
342 match self.bits {
343 false => RGN2RA_A::DISABLED,
344 true => RGN2RA_A::ENABLED,
345 }
346 }
347 #[doc = "Checks if the value of the field is `DISABLED`"]
348 #[inline(always)]
349 pub fn is_disabled(&self) -> bool {
350 *self == RGN2RA_A::DISABLED
351 }
352 #[doc = "Checks if the value of the field is `ENABLED`"]
353 #[inline(always)]
354 pub fn is_enabled(&self) -> bool {
355 *self == RGN2RA_A::ENABLED
356 }
357}
358#[doc = "Disable read access watch in region\\[2\\]\n\nValue on reset: 0"]
359#[derive(Clone, Copy, Debug, PartialEq)]
360pub enum RGN2RA_AW {
361 #[doc = "1: Disable read access watch in this region"]
362 CLEAR = 1,
363}
364impl From<RGN2RA_AW> for bool {
365 #[inline(always)]
366 fn from(variant: RGN2RA_AW) -> Self {
367 variant as u8 != 0
368 }
369}
370#[doc = "Field `RGN2RA` writer - Disable read access watch in region\\[2\\]"]
371pub type RGN2RA_W<'a, const O: u8> = crate::BitWriter<'a, u32, REGIONENCLR_SPEC, RGN2RA_AW, O>;
372impl<'a, const O: u8> RGN2RA_W<'a, O> {
373 #[doc = "Disable read access watch in this region"]
374 #[inline(always)]
375 pub fn clear(self) -> &'a mut W {
376 self.variant(RGN2RA_AW::CLEAR)
377 }
378}
379#[doc = "Field `RGN3WA` reader - Disable write access watch in region\\[3\\]"]
380pub type RGN3WA_R = crate::BitReader<RGN3WA_A>;
381#[doc = "Disable write access watch in region\\[3\\]\n\nValue on reset: 0"]
382#[derive(Clone, Copy, Debug, PartialEq)]
383pub enum RGN3WA_A {
384 #[doc = "0: Write access watch in this region is disabled"]
385 DISABLED = 0,
386 #[doc = "1: Write access watch in this region is enabled"]
387 ENABLED = 1,
388}
389impl From<RGN3WA_A> for bool {
390 #[inline(always)]
391 fn from(variant: RGN3WA_A) -> Self {
392 variant as u8 != 0
393 }
394}
395impl RGN3WA_R {
396 #[doc = "Get enumerated values variant"]
397 #[inline(always)]
398 pub fn variant(&self) -> RGN3WA_A {
399 match self.bits {
400 false => RGN3WA_A::DISABLED,
401 true => RGN3WA_A::ENABLED,
402 }
403 }
404 #[doc = "Checks if the value of the field is `DISABLED`"]
405 #[inline(always)]
406 pub fn is_disabled(&self) -> bool {
407 *self == RGN3WA_A::DISABLED
408 }
409 #[doc = "Checks if the value of the field is `ENABLED`"]
410 #[inline(always)]
411 pub fn is_enabled(&self) -> bool {
412 *self == RGN3WA_A::ENABLED
413 }
414}
415#[doc = "Disable write access watch in region\\[3\\]\n\nValue on reset: 0"]
416#[derive(Clone, Copy, Debug, PartialEq)]
417pub enum RGN3WA_AW {
418 #[doc = "1: Disable write access watch in this region"]
419 CLEAR = 1,
420}
421impl From<RGN3WA_AW> for bool {
422 #[inline(always)]
423 fn from(variant: RGN3WA_AW) -> Self {
424 variant as u8 != 0
425 }
426}
427#[doc = "Field `RGN3WA` writer - Disable write access watch in region\\[3\\]"]
428pub type RGN3WA_W<'a, const O: u8> = crate::BitWriter<'a, u32, REGIONENCLR_SPEC, RGN3WA_AW, O>;
429impl<'a, const O: u8> RGN3WA_W<'a, O> {
430 #[doc = "Disable write access watch in this region"]
431 #[inline(always)]
432 pub fn clear(self) -> &'a mut W {
433 self.variant(RGN3WA_AW::CLEAR)
434 }
435}
436#[doc = "Field `RGN3RA` reader - Disable read access watch in region\\[3\\]"]
437pub type RGN3RA_R = crate::BitReader<RGN3RA_A>;
438#[doc = "Disable read access watch in region\\[3\\]\n\nValue on reset: 0"]
439#[derive(Clone, Copy, Debug, PartialEq)]
440pub enum RGN3RA_A {
441 #[doc = "0: Read access watch in this region is disabled"]
442 DISABLED = 0,
443 #[doc = "1: Read access watch in this region is enabled"]
444 ENABLED = 1,
445}
446impl From<RGN3RA_A> for bool {
447 #[inline(always)]
448 fn from(variant: RGN3RA_A) -> Self {
449 variant as u8 != 0
450 }
451}
452impl RGN3RA_R {
453 #[doc = "Get enumerated values variant"]
454 #[inline(always)]
455 pub fn variant(&self) -> RGN3RA_A {
456 match self.bits {
457 false => RGN3RA_A::DISABLED,
458 true => RGN3RA_A::ENABLED,
459 }
460 }
461 #[doc = "Checks if the value of the field is `DISABLED`"]
462 #[inline(always)]
463 pub fn is_disabled(&self) -> bool {
464 *self == RGN3RA_A::DISABLED
465 }
466 #[doc = "Checks if the value of the field is `ENABLED`"]
467 #[inline(always)]
468 pub fn is_enabled(&self) -> bool {
469 *self == RGN3RA_A::ENABLED
470 }
471}
472#[doc = "Disable read access watch in region\\[3\\]\n\nValue on reset: 0"]
473#[derive(Clone, Copy, Debug, PartialEq)]
474pub enum RGN3RA_AW {
475 #[doc = "1: Disable read access watch in this region"]
476 CLEAR = 1,
477}
478impl From<RGN3RA_AW> for bool {
479 #[inline(always)]
480 fn from(variant: RGN3RA_AW) -> Self {
481 variant as u8 != 0
482 }
483}
484#[doc = "Field `RGN3RA` writer - Disable read access watch in region\\[3\\]"]
485pub type RGN3RA_W<'a, const O: u8> = crate::BitWriter<'a, u32, REGIONENCLR_SPEC, RGN3RA_AW, O>;
486impl<'a, const O: u8> RGN3RA_W<'a, O> {
487 #[doc = "Disable read access watch in this region"]
488 #[inline(always)]
489 pub fn clear(self) -> &'a mut W {
490 self.variant(RGN3RA_AW::CLEAR)
491 }
492}
493#[doc = "Field `PRGN0WA` reader - Disable write access watch in PREGION\\[0\\]"]
494pub type PRGN0WA_R = crate::BitReader<PRGN0WA_A>;
495#[doc = "Disable write access watch in PREGION\\[0\\]\n\nValue on reset: 0"]
496#[derive(Clone, Copy, Debug, PartialEq)]
497pub enum PRGN0WA_A {
498 #[doc = "0: Write access watch in this PREGION is disabled"]
499 DISABLED = 0,
500 #[doc = "1: Write access watch in this PREGION is enabled"]
501 ENABLED = 1,
502}
503impl From<PRGN0WA_A> for bool {
504 #[inline(always)]
505 fn from(variant: PRGN0WA_A) -> Self {
506 variant as u8 != 0
507 }
508}
509impl PRGN0WA_R {
510 #[doc = "Get enumerated values variant"]
511 #[inline(always)]
512 pub fn variant(&self) -> PRGN0WA_A {
513 match self.bits {
514 false => PRGN0WA_A::DISABLED,
515 true => PRGN0WA_A::ENABLED,
516 }
517 }
518 #[doc = "Checks if the value of the field is `DISABLED`"]
519 #[inline(always)]
520 pub fn is_disabled(&self) -> bool {
521 *self == PRGN0WA_A::DISABLED
522 }
523 #[doc = "Checks if the value of the field is `ENABLED`"]
524 #[inline(always)]
525 pub fn is_enabled(&self) -> bool {
526 *self == PRGN0WA_A::ENABLED
527 }
528}
529#[doc = "Disable write access watch in PREGION\\[0\\]\n\nValue on reset: 0"]
530#[derive(Clone, Copy, Debug, PartialEq)]
531pub enum PRGN0WA_AW {
532 #[doc = "1: Disable write access watch in this PREGION"]
533 CLEAR = 1,
534}
535impl From<PRGN0WA_AW> for bool {
536 #[inline(always)]
537 fn from(variant: PRGN0WA_AW) -> Self {
538 variant as u8 != 0
539 }
540}
541#[doc = "Field `PRGN0WA` writer - Disable write access watch in PREGION\\[0\\]"]
542pub type PRGN0WA_W<'a, const O: u8> = crate::BitWriter<'a, u32, REGIONENCLR_SPEC, PRGN0WA_AW, O>;
543impl<'a, const O: u8> PRGN0WA_W<'a, O> {
544 #[doc = "Disable write access watch in this PREGION"]
545 #[inline(always)]
546 pub fn clear(self) -> &'a mut W {
547 self.variant(PRGN0WA_AW::CLEAR)
548 }
549}
550#[doc = "Field `PRGN0RA` reader - Disable read access watch in PREGION\\[0\\]"]
551pub type PRGN0RA_R = crate::BitReader<PRGN0RA_A>;
552#[doc = "Disable read access watch in PREGION\\[0\\]\n\nValue on reset: 0"]
553#[derive(Clone, Copy, Debug, PartialEq)]
554pub enum PRGN0RA_A {
555 #[doc = "0: Read access watch in this PREGION is disabled"]
556 DISABLED = 0,
557 #[doc = "1: Read access watch in this PREGION is enabled"]
558 ENABLED = 1,
559}
560impl From<PRGN0RA_A> for bool {
561 #[inline(always)]
562 fn from(variant: PRGN0RA_A) -> Self {
563 variant as u8 != 0
564 }
565}
566impl PRGN0RA_R {
567 #[doc = "Get enumerated values variant"]
568 #[inline(always)]
569 pub fn variant(&self) -> PRGN0RA_A {
570 match self.bits {
571 false => PRGN0RA_A::DISABLED,
572 true => PRGN0RA_A::ENABLED,
573 }
574 }
575 #[doc = "Checks if the value of the field is `DISABLED`"]
576 #[inline(always)]
577 pub fn is_disabled(&self) -> bool {
578 *self == PRGN0RA_A::DISABLED
579 }
580 #[doc = "Checks if the value of the field is `ENABLED`"]
581 #[inline(always)]
582 pub fn is_enabled(&self) -> bool {
583 *self == PRGN0RA_A::ENABLED
584 }
585}
586#[doc = "Disable read access watch in PREGION\\[0\\]\n\nValue on reset: 0"]
587#[derive(Clone, Copy, Debug, PartialEq)]
588pub enum PRGN0RA_AW {
589 #[doc = "1: Disable read access watch in this PREGION"]
590 CLEAR = 1,
591}
592impl From<PRGN0RA_AW> for bool {
593 #[inline(always)]
594 fn from(variant: PRGN0RA_AW) -> Self {
595 variant as u8 != 0
596 }
597}
598#[doc = "Field `PRGN0RA` writer - Disable read access watch in PREGION\\[0\\]"]
599pub type PRGN0RA_W<'a, const O: u8> = crate::BitWriter<'a, u32, REGIONENCLR_SPEC, PRGN0RA_AW, O>;
600impl<'a, const O: u8> PRGN0RA_W<'a, O> {
601 #[doc = "Disable read access watch in this PREGION"]
602 #[inline(always)]
603 pub fn clear(self) -> &'a mut W {
604 self.variant(PRGN0RA_AW::CLEAR)
605 }
606}
607#[doc = "Field `PRGN1WA` reader - Disable write access watch in PREGION\\[1\\]"]
608pub type PRGN1WA_R = crate::BitReader<PRGN1WA_A>;
609#[doc = "Disable write access watch in PREGION\\[1\\]\n\nValue on reset: 0"]
610#[derive(Clone, Copy, Debug, PartialEq)]
611pub enum PRGN1WA_A {
612 #[doc = "0: Write access watch in this PREGION is disabled"]
613 DISABLED = 0,
614 #[doc = "1: Write access watch in this PREGION is enabled"]
615 ENABLED = 1,
616}
617impl From<PRGN1WA_A> for bool {
618 #[inline(always)]
619 fn from(variant: PRGN1WA_A) -> Self {
620 variant as u8 != 0
621 }
622}
623impl PRGN1WA_R {
624 #[doc = "Get enumerated values variant"]
625 #[inline(always)]
626 pub fn variant(&self) -> PRGN1WA_A {
627 match self.bits {
628 false => PRGN1WA_A::DISABLED,
629 true => PRGN1WA_A::ENABLED,
630 }
631 }
632 #[doc = "Checks if the value of the field is `DISABLED`"]
633 #[inline(always)]
634 pub fn is_disabled(&self) -> bool {
635 *self == PRGN1WA_A::DISABLED
636 }
637 #[doc = "Checks if the value of the field is `ENABLED`"]
638 #[inline(always)]
639 pub fn is_enabled(&self) -> bool {
640 *self == PRGN1WA_A::ENABLED
641 }
642}
643#[doc = "Disable write access watch in PREGION\\[1\\]\n\nValue on reset: 0"]
644#[derive(Clone, Copy, Debug, PartialEq)]
645pub enum PRGN1WA_AW {
646 #[doc = "1: Disable write access watch in this PREGION"]
647 CLEAR = 1,
648}
649impl From<PRGN1WA_AW> for bool {
650 #[inline(always)]
651 fn from(variant: PRGN1WA_AW) -> Self {
652 variant as u8 != 0
653 }
654}
655#[doc = "Field `PRGN1WA` writer - Disable write access watch in PREGION\\[1\\]"]
656pub type PRGN1WA_W<'a, const O: u8> = crate::BitWriter<'a, u32, REGIONENCLR_SPEC, PRGN1WA_AW, O>;
657impl<'a, const O: u8> PRGN1WA_W<'a, O> {
658 #[doc = "Disable write access watch in this PREGION"]
659 #[inline(always)]
660 pub fn clear(self) -> &'a mut W {
661 self.variant(PRGN1WA_AW::CLEAR)
662 }
663}
664#[doc = "Field `PRGN1RA` reader - Disable read access watch in PREGION\\[1\\]"]
665pub type PRGN1RA_R = crate::BitReader<PRGN1RA_A>;
666#[doc = "Disable read access watch in PREGION\\[1\\]\n\nValue on reset: 0"]
667#[derive(Clone, Copy, Debug, PartialEq)]
668pub enum PRGN1RA_A {
669 #[doc = "0: Read access watch in this PREGION is disabled"]
670 DISABLED = 0,
671 #[doc = "1: Read access watch in this PREGION is enabled"]
672 ENABLED = 1,
673}
674impl From<PRGN1RA_A> for bool {
675 #[inline(always)]
676 fn from(variant: PRGN1RA_A) -> Self {
677 variant as u8 != 0
678 }
679}
680impl PRGN1RA_R {
681 #[doc = "Get enumerated values variant"]
682 #[inline(always)]
683 pub fn variant(&self) -> PRGN1RA_A {
684 match self.bits {
685 false => PRGN1RA_A::DISABLED,
686 true => PRGN1RA_A::ENABLED,
687 }
688 }
689 #[doc = "Checks if the value of the field is `DISABLED`"]
690 #[inline(always)]
691 pub fn is_disabled(&self) -> bool {
692 *self == PRGN1RA_A::DISABLED
693 }
694 #[doc = "Checks if the value of the field is `ENABLED`"]
695 #[inline(always)]
696 pub fn is_enabled(&self) -> bool {
697 *self == PRGN1RA_A::ENABLED
698 }
699}
700#[doc = "Disable read access watch in PREGION\\[1\\]\n\nValue on reset: 0"]
701#[derive(Clone, Copy, Debug, PartialEq)]
702pub enum PRGN1RA_AW {
703 #[doc = "1: Disable read access watch in this PREGION"]
704 CLEAR = 1,
705}
706impl From<PRGN1RA_AW> for bool {
707 #[inline(always)]
708 fn from(variant: PRGN1RA_AW) -> Self {
709 variant as u8 != 0
710 }
711}
712#[doc = "Field `PRGN1RA` writer - Disable read access watch in PREGION\\[1\\]"]
713pub type PRGN1RA_W<'a, const O: u8> = crate::BitWriter<'a, u32, REGIONENCLR_SPEC, PRGN1RA_AW, O>;
714impl<'a, const O: u8> PRGN1RA_W<'a, O> {
715 #[doc = "Disable read access watch in this PREGION"]
716 #[inline(always)]
717 pub fn clear(self) -> &'a mut W {
718 self.variant(PRGN1RA_AW::CLEAR)
719 }
720}
721impl R {
722 #[doc = "Bit 0 - Disable write access watch in region\\[0\\]"]
723 #[inline(always)]
724 pub fn rgn0wa(&self) -> RGN0WA_R {
725 RGN0WA_R::new((self.bits & 1) != 0)
726 }
727 #[doc = "Bit 1 - Disable read access watch in region\\[0\\]"]
728 #[inline(always)]
729 pub fn rgn0ra(&self) -> RGN0RA_R {
730 RGN0RA_R::new(((self.bits >> 1) & 1) != 0)
731 }
732 #[doc = "Bit 2 - Disable write access watch in region\\[1\\]"]
733 #[inline(always)]
734 pub fn rgn1wa(&self) -> RGN1WA_R {
735 RGN1WA_R::new(((self.bits >> 2) & 1) != 0)
736 }
737 #[doc = "Bit 3 - Disable read access watch in region\\[1\\]"]
738 #[inline(always)]
739 pub fn rgn1ra(&self) -> RGN1RA_R {
740 RGN1RA_R::new(((self.bits >> 3) & 1) != 0)
741 }
742 #[doc = "Bit 4 - Disable write access watch in region\\[2\\]"]
743 #[inline(always)]
744 pub fn rgn2wa(&self) -> RGN2WA_R {
745 RGN2WA_R::new(((self.bits >> 4) & 1) != 0)
746 }
747 #[doc = "Bit 5 - Disable read access watch in region\\[2\\]"]
748 #[inline(always)]
749 pub fn rgn2ra(&self) -> RGN2RA_R {
750 RGN2RA_R::new(((self.bits >> 5) & 1) != 0)
751 }
752 #[doc = "Bit 6 - Disable write access watch in region\\[3\\]"]
753 #[inline(always)]
754 pub fn rgn3wa(&self) -> RGN3WA_R {
755 RGN3WA_R::new(((self.bits >> 6) & 1) != 0)
756 }
757 #[doc = "Bit 7 - Disable read access watch in region\\[3\\]"]
758 #[inline(always)]
759 pub fn rgn3ra(&self) -> RGN3RA_R {
760 RGN3RA_R::new(((self.bits >> 7) & 1) != 0)
761 }
762 #[doc = "Bit 24 - Disable write access watch in PREGION\\[0\\]"]
763 #[inline(always)]
764 pub fn prgn0wa(&self) -> PRGN0WA_R {
765 PRGN0WA_R::new(((self.bits >> 24) & 1) != 0)
766 }
767 #[doc = "Bit 25 - Disable read access watch in PREGION\\[0\\]"]
768 #[inline(always)]
769 pub fn prgn0ra(&self) -> PRGN0RA_R {
770 PRGN0RA_R::new(((self.bits >> 25) & 1) != 0)
771 }
772 #[doc = "Bit 26 - Disable write access watch in PREGION\\[1\\]"]
773 #[inline(always)]
774 pub fn prgn1wa(&self) -> PRGN1WA_R {
775 PRGN1WA_R::new(((self.bits >> 26) & 1) != 0)
776 }
777 #[doc = "Bit 27 - Disable read access watch in PREGION\\[1\\]"]
778 #[inline(always)]
779 pub fn prgn1ra(&self) -> PRGN1RA_R {
780 PRGN1RA_R::new(((self.bits >> 27) & 1) != 0)
781 }
782}
783impl W {
784 #[doc = "Bit 0 - Disable write access watch in region\\[0\\]"]
785 #[inline(always)]
786 pub fn rgn0wa(&mut self) -> RGN0WA_W<0> {
787 RGN0WA_W::new(self)
788 }
789 #[doc = "Bit 1 - Disable read access watch in region\\[0\\]"]
790 #[inline(always)]
791 pub fn rgn0ra(&mut self) -> RGN0RA_W<1> {
792 RGN0RA_W::new(self)
793 }
794 #[doc = "Bit 2 - Disable write access watch in region\\[1\\]"]
795 #[inline(always)]
796 pub fn rgn1wa(&mut self) -> RGN1WA_W<2> {
797 RGN1WA_W::new(self)
798 }
799 #[doc = "Bit 3 - Disable read access watch in region\\[1\\]"]
800 #[inline(always)]
801 pub fn rgn1ra(&mut self) -> RGN1RA_W<3> {
802 RGN1RA_W::new(self)
803 }
804 #[doc = "Bit 4 - Disable write access watch in region\\[2\\]"]
805 #[inline(always)]
806 pub fn rgn2wa(&mut self) -> RGN2WA_W<4> {
807 RGN2WA_W::new(self)
808 }
809 #[doc = "Bit 5 - Disable read access watch in region\\[2\\]"]
810 #[inline(always)]
811 pub fn rgn2ra(&mut self) -> RGN2RA_W<5> {
812 RGN2RA_W::new(self)
813 }
814 #[doc = "Bit 6 - Disable write access watch in region\\[3\\]"]
815 #[inline(always)]
816 pub fn rgn3wa(&mut self) -> RGN3WA_W<6> {
817 RGN3WA_W::new(self)
818 }
819 #[doc = "Bit 7 - Disable read access watch in region\\[3\\]"]
820 #[inline(always)]
821 pub fn rgn3ra(&mut self) -> RGN3RA_W<7> {
822 RGN3RA_W::new(self)
823 }
824 #[doc = "Bit 24 - Disable write access watch in PREGION\\[0\\]"]
825 #[inline(always)]
826 pub fn prgn0wa(&mut self) -> PRGN0WA_W<24> {
827 PRGN0WA_W::new(self)
828 }
829 #[doc = "Bit 25 - Disable read access watch in PREGION\\[0\\]"]
830 #[inline(always)]
831 pub fn prgn0ra(&mut self) -> PRGN0RA_W<25> {
832 PRGN0RA_W::new(self)
833 }
834 #[doc = "Bit 26 - Disable write access watch in PREGION\\[1\\]"]
835 #[inline(always)]
836 pub fn prgn1wa(&mut self) -> PRGN1WA_W<26> {
837 PRGN1WA_W::new(self)
838 }
839 #[doc = "Bit 27 - Disable read access watch in PREGION\\[1\\]"]
840 #[inline(always)]
841 pub fn prgn1ra(&mut self) -> PRGN1RA_W<27> {
842 PRGN1RA_W::new(self)
843 }
844 #[doc = "Writes raw bits to the register."]
845 #[inline(always)]
846 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
847 self.0.bits(bits);
848 self
849 }
850}
851#[doc = "Disable regions watch\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 [regionenclr](index.html) module"]
852pub struct REGIONENCLR_SPEC;
853impl crate::RegisterSpec for REGIONENCLR_SPEC {
854 type Ux = u32;
855}
856#[doc = "`read()` method returns [regionenclr::R](R) reader structure"]
857impl crate::Readable for REGIONENCLR_SPEC {
858 type Reader = R;
859}
860#[doc = "`write(|w| ..)` method takes [regionenclr::W](W) writer structure"]
861impl crate::Writable for REGIONENCLR_SPEC {
862 type Writer = W;
863}
864#[doc = "`reset()` method sets REGIONENCLR to value 0"]
865impl crate::Resettable for REGIONENCLR_SPEC {
866 #[inline(always)]
867 fn reset_value() -> Self::Ux {
868 0
869 }
870}