1#[doc = "Register `POWERCLR` reader"]
2pub struct R(crate::R<POWERCLR_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<POWERCLR_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<POWERCLR_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<POWERCLR_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `POWERCLR` writer"]
17pub struct W(crate::W<POWERCLR_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<POWERCLR_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<POWERCLR_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<POWERCLR_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `S0POWER` reader - Keep RAM section S0 of RAM\\[n\\]
38on or off in System ON mode"]
39pub type S0POWER_R = crate::BitReader<S0POWER_A>;
40#[doc = "Keep RAM section S0 of RAM\\[n\\]
41on or off in System ON mode\n\nValue on reset: 1"]
42#[derive(Clone, Copy, Debug, PartialEq)]
43pub enum S0POWER_A {
44 #[doc = "1: Off"]
45 OFF = 1,
46}
47impl From<S0POWER_A> for bool {
48 #[inline(always)]
49 fn from(variant: S0POWER_A) -> Self {
50 variant as u8 != 0
51 }
52}
53impl S0POWER_R {
54 #[doc = "Get enumerated values variant"]
55 #[inline(always)]
56 pub fn variant(&self) -> Option<S0POWER_A> {
57 match self.bits {
58 true => Some(S0POWER_A::OFF),
59 _ => None,
60 }
61 }
62 #[doc = "Checks if the value of the field is `OFF`"]
63 #[inline(always)]
64 pub fn is_off(&self) -> bool {
65 *self == S0POWER_A::OFF
66 }
67}
68#[doc = "Field `S0POWER` writer - Keep RAM section S0 of RAM\\[n\\]
69on or off in System ON mode"]
70pub type S0POWER_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWERCLR_SPEC, S0POWER_A, O>;
71impl<'a, const O: u8> S0POWER_W<'a, O> {
72 #[doc = "Off"]
73 #[inline(always)]
74 pub fn off(self) -> &'a mut W {
75 self.variant(S0POWER_A::OFF)
76 }
77}
78#[doc = "Field `S1POWER` reader - Keep RAM section S1 of RAM\\[n\\]
79on or off in System ON mode"]
80pub type S1POWER_R = crate::BitReader<S1POWER_A>;
81#[doc = "Keep RAM section S1 of RAM\\[n\\]
82on or off in System ON mode\n\nValue on reset: 1"]
83#[derive(Clone, Copy, Debug, PartialEq)]
84pub enum S1POWER_A {
85 #[doc = "1: Off"]
86 OFF = 1,
87}
88impl From<S1POWER_A> for bool {
89 #[inline(always)]
90 fn from(variant: S1POWER_A) -> Self {
91 variant as u8 != 0
92 }
93}
94impl S1POWER_R {
95 #[doc = "Get enumerated values variant"]
96 #[inline(always)]
97 pub fn variant(&self) -> Option<S1POWER_A> {
98 match self.bits {
99 true => Some(S1POWER_A::OFF),
100 _ => None,
101 }
102 }
103 #[doc = "Checks if the value of the field is `OFF`"]
104 #[inline(always)]
105 pub fn is_off(&self) -> bool {
106 *self == S1POWER_A::OFF
107 }
108}
109#[doc = "Field `S1POWER` writer - Keep RAM section S1 of RAM\\[n\\]
110on or off in System ON mode"]
111pub type S1POWER_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWERCLR_SPEC, S1POWER_A, O>;
112impl<'a, const O: u8> S1POWER_W<'a, O> {
113 #[doc = "Off"]
114 #[inline(always)]
115 pub fn off(self) -> &'a mut W {
116 self.variant(S1POWER_A::OFF)
117 }
118}
119#[doc = "Field `S2POWER` reader - Keep RAM section S2 of RAM\\[n\\]
120on or off in System ON mode"]
121pub type S2POWER_R = crate::BitReader<S2POWER_A>;
122#[doc = "Keep RAM section S2 of RAM\\[n\\]
123on or off in System ON mode\n\nValue on reset: 1"]
124#[derive(Clone, Copy, Debug, PartialEq)]
125pub enum S2POWER_A {
126 #[doc = "1: Off"]
127 OFF = 1,
128}
129impl From<S2POWER_A> for bool {
130 #[inline(always)]
131 fn from(variant: S2POWER_A) -> Self {
132 variant as u8 != 0
133 }
134}
135impl S2POWER_R {
136 #[doc = "Get enumerated values variant"]
137 #[inline(always)]
138 pub fn variant(&self) -> Option<S2POWER_A> {
139 match self.bits {
140 true => Some(S2POWER_A::OFF),
141 _ => None,
142 }
143 }
144 #[doc = "Checks if the value of the field is `OFF`"]
145 #[inline(always)]
146 pub fn is_off(&self) -> bool {
147 *self == S2POWER_A::OFF
148 }
149}
150#[doc = "Field `S2POWER` writer - Keep RAM section S2 of RAM\\[n\\]
151on or off in System ON mode"]
152pub type S2POWER_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWERCLR_SPEC, S2POWER_A, O>;
153impl<'a, const O: u8> S2POWER_W<'a, O> {
154 #[doc = "Off"]
155 #[inline(always)]
156 pub fn off(self) -> &'a mut W {
157 self.variant(S2POWER_A::OFF)
158 }
159}
160#[doc = "Field `S3POWER` reader - Keep RAM section S3 of RAM\\[n\\]
161on or off in System ON mode"]
162pub type S3POWER_R = crate::BitReader<S3POWER_A>;
163#[doc = "Keep RAM section S3 of RAM\\[n\\]
164on or off in System ON mode\n\nValue on reset: 1"]
165#[derive(Clone, Copy, Debug, PartialEq)]
166pub enum S3POWER_A {
167 #[doc = "1: Off"]
168 OFF = 1,
169}
170impl From<S3POWER_A> for bool {
171 #[inline(always)]
172 fn from(variant: S3POWER_A) -> Self {
173 variant as u8 != 0
174 }
175}
176impl S3POWER_R {
177 #[doc = "Get enumerated values variant"]
178 #[inline(always)]
179 pub fn variant(&self) -> Option<S3POWER_A> {
180 match self.bits {
181 true => Some(S3POWER_A::OFF),
182 _ => None,
183 }
184 }
185 #[doc = "Checks if the value of the field is `OFF`"]
186 #[inline(always)]
187 pub fn is_off(&self) -> bool {
188 *self == S3POWER_A::OFF
189 }
190}
191#[doc = "Field `S3POWER` writer - Keep RAM section S3 of RAM\\[n\\]
192on or off in System ON mode"]
193pub type S3POWER_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWERCLR_SPEC, S3POWER_A, O>;
194impl<'a, const O: u8> S3POWER_W<'a, O> {
195 #[doc = "Off"]
196 #[inline(always)]
197 pub fn off(self) -> &'a mut W {
198 self.variant(S3POWER_A::OFF)
199 }
200}
201#[doc = "Field `S4POWER` reader - Keep RAM section S4 of RAM\\[n\\]
202on or off in System ON mode"]
203pub type S4POWER_R = crate::BitReader<S4POWER_A>;
204#[doc = "Keep RAM section S4 of RAM\\[n\\]
205on or off in System ON mode\n\nValue on reset: 1"]
206#[derive(Clone, Copy, Debug, PartialEq)]
207pub enum S4POWER_A {
208 #[doc = "1: Off"]
209 OFF = 1,
210}
211impl From<S4POWER_A> for bool {
212 #[inline(always)]
213 fn from(variant: S4POWER_A) -> Self {
214 variant as u8 != 0
215 }
216}
217impl S4POWER_R {
218 #[doc = "Get enumerated values variant"]
219 #[inline(always)]
220 pub fn variant(&self) -> Option<S4POWER_A> {
221 match self.bits {
222 true => Some(S4POWER_A::OFF),
223 _ => None,
224 }
225 }
226 #[doc = "Checks if the value of the field is `OFF`"]
227 #[inline(always)]
228 pub fn is_off(&self) -> bool {
229 *self == S4POWER_A::OFF
230 }
231}
232#[doc = "Field `S4POWER` writer - Keep RAM section S4 of RAM\\[n\\]
233on or off in System ON mode"]
234pub type S4POWER_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWERCLR_SPEC, S4POWER_A, O>;
235impl<'a, const O: u8> S4POWER_W<'a, O> {
236 #[doc = "Off"]
237 #[inline(always)]
238 pub fn off(self) -> &'a mut W {
239 self.variant(S4POWER_A::OFF)
240 }
241}
242#[doc = "Field `S5POWER` reader - Keep RAM section S5 of RAM\\[n\\]
243on or off in System ON mode"]
244pub type S5POWER_R = crate::BitReader<S5POWER_A>;
245#[doc = "Keep RAM section S5 of RAM\\[n\\]
246on or off in System ON mode\n\nValue on reset: 1"]
247#[derive(Clone, Copy, Debug, PartialEq)]
248pub enum S5POWER_A {
249 #[doc = "1: Off"]
250 OFF = 1,
251}
252impl From<S5POWER_A> for bool {
253 #[inline(always)]
254 fn from(variant: S5POWER_A) -> Self {
255 variant as u8 != 0
256 }
257}
258impl S5POWER_R {
259 #[doc = "Get enumerated values variant"]
260 #[inline(always)]
261 pub fn variant(&self) -> Option<S5POWER_A> {
262 match self.bits {
263 true => Some(S5POWER_A::OFF),
264 _ => None,
265 }
266 }
267 #[doc = "Checks if the value of the field is `OFF`"]
268 #[inline(always)]
269 pub fn is_off(&self) -> bool {
270 *self == S5POWER_A::OFF
271 }
272}
273#[doc = "Field `S5POWER` writer - Keep RAM section S5 of RAM\\[n\\]
274on or off in System ON mode"]
275pub type S5POWER_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWERCLR_SPEC, S5POWER_A, O>;
276impl<'a, const O: u8> S5POWER_W<'a, O> {
277 #[doc = "Off"]
278 #[inline(always)]
279 pub fn off(self) -> &'a mut W {
280 self.variant(S5POWER_A::OFF)
281 }
282}
283#[doc = "Field `S6POWER` reader - Keep RAM section S6 of RAM\\[n\\]
284on or off in System ON mode"]
285pub type S6POWER_R = crate::BitReader<S6POWER_A>;
286#[doc = "Keep RAM section S6 of RAM\\[n\\]
287on or off in System ON mode\n\nValue on reset: 1"]
288#[derive(Clone, Copy, Debug, PartialEq)]
289pub enum S6POWER_A {
290 #[doc = "1: Off"]
291 OFF = 1,
292}
293impl From<S6POWER_A> for bool {
294 #[inline(always)]
295 fn from(variant: S6POWER_A) -> Self {
296 variant as u8 != 0
297 }
298}
299impl S6POWER_R {
300 #[doc = "Get enumerated values variant"]
301 #[inline(always)]
302 pub fn variant(&self) -> Option<S6POWER_A> {
303 match self.bits {
304 true => Some(S6POWER_A::OFF),
305 _ => None,
306 }
307 }
308 #[doc = "Checks if the value of the field is `OFF`"]
309 #[inline(always)]
310 pub fn is_off(&self) -> bool {
311 *self == S6POWER_A::OFF
312 }
313}
314#[doc = "Field `S6POWER` writer - Keep RAM section S6 of RAM\\[n\\]
315on or off in System ON mode"]
316pub type S6POWER_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWERCLR_SPEC, S6POWER_A, O>;
317impl<'a, const O: u8> S6POWER_W<'a, O> {
318 #[doc = "Off"]
319 #[inline(always)]
320 pub fn off(self) -> &'a mut W {
321 self.variant(S6POWER_A::OFF)
322 }
323}
324#[doc = "Field `S7POWER` reader - Keep RAM section S7 of RAM\\[n\\]
325on or off in System ON mode"]
326pub type S7POWER_R = crate::BitReader<S7POWER_A>;
327#[doc = "Keep RAM section S7 of RAM\\[n\\]
328on or off in System ON mode\n\nValue on reset: 1"]
329#[derive(Clone, Copy, Debug, PartialEq)]
330pub enum S7POWER_A {
331 #[doc = "1: Off"]
332 OFF = 1,
333}
334impl From<S7POWER_A> for bool {
335 #[inline(always)]
336 fn from(variant: S7POWER_A) -> Self {
337 variant as u8 != 0
338 }
339}
340impl S7POWER_R {
341 #[doc = "Get enumerated values variant"]
342 #[inline(always)]
343 pub fn variant(&self) -> Option<S7POWER_A> {
344 match self.bits {
345 true => Some(S7POWER_A::OFF),
346 _ => None,
347 }
348 }
349 #[doc = "Checks if the value of the field is `OFF`"]
350 #[inline(always)]
351 pub fn is_off(&self) -> bool {
352 *self == S7POWER_A::OFF
353 }
354}
355#[doc = "Field `S7POWER` writer - Keep RAM section S7 of RAM\\[n\\]
356on or off in System ON mode"]
357pub type S7POWER_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWERCLR_SPEC, S7POWER_A, O>;
358impl<'a, const O: u8> S7POWER_W<'a, O> {
359 #[doc = "Off"]
360 #[inline(always)]
361 pub fn off(self) -> &'a mut W {
362 self.variant(S7POWER_A::OFF)
363 }
364}
365#[doc = "Field `S8POWER` reader - Keep RAM section S8 of RAM\\[n\\]
366on or off in System ON mode"]
367pub type S8POWER_R = crate::BitReader<S8POWER_A>;
368#[doc = "Keep RAM section S8 of RAM\\[n\\]
369on or off in System ON mode\n\nValue on reset: 1"]
370#[derive(Clone, Copy, Debug, PartialEq)]
371pub enum S8POWER_A {
372 #[doc = "1: Off"]
373 OFF = 1,
374}
375impl From<S8POWER_A> for bool {
376 #[inline(always)]
377 fn from(variant: S8POWER_A) -> Self {
378 variant as u8 != 0
379 }
380}
381impl S8POWER_R {
382 #[doc = "Get enumerated values variant"]
383 #[inline(always)]
384 pub fn variant(&self) -> Option<S8POWER_A> {
385 match self.bits {
386 true => Some(S8POWER_A::OFF),
387 _ => None,
388 }
389 }
390 #[doc = "Checks if the value of the field is `OFF`"]
391 #[inline(always)]
392 pub fn is_off(&self) -> bool {
393 *self == S8POWER_A::OFF
394 }
395}
396#[doc = "Field `S8POWER` writer - Keep RAM section S8 of RAM\\[n\\]
397on or off in System ON mode"]
398pub type S8POWER_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWERCLR_SPEC, S8POWER_A, O>;
399impl<'a, const O: u8> S8POWER_W<'a, O> {
400 #[doc = "Off"]
401 #[inline(always)]
402 pub fn off(self) -> &'a mut W {
403 self.variant(S8POWER_A::OFF)
404 }
405}
406#[doc = "Field `S9POWER` reader - Keep RAM section S9 of RAM\\[n\\]
407on or off in System ON mode"]
408pub type S9POWER_R = crate::BitReader<S9POWER_A>;
409#[doc = "Keep RAM section S9 of RAM\\[n\\]
410on or off in System ON mode\n\nValue on reset: 1"]
411#[derive(Clone, Copy, Debug, PartialEq)]
412pub enum S9POWER_A {
413 #[doc = "1: Off"]
414 OFF = 1,
415}
416impl From<S9POWER_A> for bool {
417 #[inline(always)]
418 fn from(variant: S9POWER_A) -> Self {
419 variant as u8 != 0
420 }
421}
422impl S9POWER_R {
423 #[doc = "Get enumerated values variant"]
424 #[inline(always)]
425 pub fn variant(&self) -> Option<S9POWER_A> {
426 match self.bits {
427 true => Some(S9POWER_A::OFF),
428 _ => None,
429 }
430 }
431 #[doc = "Checks if the value of the field is `OFF`"]
432 #[inline(always)]
433 pub fn is_off(&self) -> bool {
434 *self == S9POWER_A::OFF
435 }
436}
437#[doc = "Field `S9POWER` writer - Keep RAM section S9 of RAM\\[n\\]
438on or off in System ON mode"]
439pub type S9POWER_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWERCLR_SPEC, S9POWER_A, O>;
440impl<'a, const O: u8> S9POWER_W<'a, O> {
441 #[doc = "Off"]
442 #[inline(always)]
443 pub fn off(self) -> &'a mut W {
444 self.variant(S9POWER_A::OFF)
445 }
446}
447#[doc = "Field `S10POWER` reader - Keep RAM section S10 of RAM\\[n\\]
448on or off in System ON mode"]
449pub type S10POWER_R = crate::BitReader<S10POWER_A>;
450#[doc = "Keep RAM section S10 of RAM\\[n\\]
451on or off in System ON mode\n\nValue on reset: 1"]
452#[derive(Clone, Copy, Debug, PartialEq)]
453pub enum S10POWER_A {
454 #[doc = "1: Off"]
455 OFF = 1,
456}
457impl From<S10POWER_A> for bool {
458 #[inline(always)]
459 fn from(variant: S10POWER_A) -> Self {
460 variant as u8 != 0
461 }
462}
463impl S10POWER_R {
464 #[doc = "Get enumerated values variant"]
465 #[inline(always)]
466 pub fn variant(&self) -> Option<S10POWER_A> {
467 match self.bits {
468 true => Some(S10POWER_A::OFF),
469 _ => None,
470 }
471 }
472 #[doc = "Checks if the value of the field is `OFF`"]
473 #[inline(always)]
474 pub fn is_off(&self) -> bool {
475 *self == S10POWER_A::OFF
476 }
477}
478#[doc = "Field `S10POWER` writer - Keep RAM section S10 of RAM\\[n\\]
479on or off in System ON mode"]
480pub type S10POWER_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWERCLR_SPEC, S10POWER_A, O>;
481impl<'a, const O: u8> S10POWER_W<'a, O> {
482 #[doc = "Off"]
483 #[inline(always)]
484 pub fn off(self) -> &'a mut W {
485 self.variant(S10POWER_A::OFF)
486 }
487}
488#[doc = "Field `S11POWER` reader - Keep RAM section S11 of RAM\\[n\\]
489on or off in System ON mode"]
490pub type S11POWER_R = crate::BitReader<S11POWER_A>;
491#[doc = "Keep RAM section S11 of RAM\\[n\\]
492on or off in System ON mode\n\nValue on reset: 1"]
493#[derive(Clone, Copy, Debug, PartialEq)]
494pub enum S11POWER_A {
495 #[doc = "1: Off"]
496 OFF = 1,
497}
498impl From<S11POWER_A> for bool {
499 #[inline(always)]
500 fn from(variant: S11POWER_A) -> Self {
501 variant as u8 != 0
502 }
503}
504impl S11POWER_R {
505 #[doc = "Get enumerated values variant"]
506 #[inline(always)]
507 pub fn variant(&self) -> Option<S11POWER_A> {
508 match self.bits {
509 true => Some(S11POWER_A::OFF),
510 _ => None,
511 }
512 }
513 #[doc = "Checks if the value of the field is `OFF`"]
514 #[inline(always)]
515 pub fn is_off(&self) -> bool {
516 *self == S11POWER_A::OFF
517 }
518}
519#[doc = "Field `S11POWER` writer - Keep RAM section S11 of RAM\\[n\\]
520on or off in System ON mode"]
521pub type S11POWER_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWERCLR_SPEC, S11POWER_A, O>;
522impl<'a, const O: u8> S11POWER_W<'a, O> {
523 #[doc = "Off"]
524 #[inline(always)]
525 pub fn off(self) -> &'a mut W {
526 self.variant(S11POWER_A::OFF)
527 }
528}
529#[doc = "Field `S12POWER` reader - Keep RAM section S12 of RAM\\[n\\]
530on or off in System ON mode"]
531pub type S12POWER_R = crate::BitReader<S12POWER_A>;
532#[doc = "Keep RAM section S12 of RAM\\[n\\]
533on or off in System ON mode\n\nValue on reset: 1"]
534#[derive(Clone, Copy, Debug, PartialEq)]
535pub enum S12POWER_A {
536 #[doc = "1: Off"]
537 OFF = 1,
538}
539impl From<S12POWER_A> for bool {
540 #[inline(always)]
541 fn from(variant: S12POWER_A) -> Self {
542 variant as u8 != 0
543 }
544}
545impl S12POWER_R {
546 #[doc = "Get enumerated values variant"]
547 #[inline(always)]
548 pub fn variant(&self) -> Option<S12POWER_A> {
549 match self.bits {
550 true => Some(S12POWER_A::OFF),
551 _ => None,
552 }
553 }
554 #[doc = "Checks if the value of the field is `OFF`"]
555 #[inline(always)]
556 pub fn is_off(&self) -> bool {
557 *self == S12POWER_A::OFF
558 }
559}
560#[doc = "Field `S12POWER` writer - Keep RAM section S12 of RAM\\[n\\]
561on or off in System ON mode"]
562pub type S12POWER_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWERCLR_SPEC, S12POWER_A, O>;
563impl<'a, const O: u8> S12POWER_W<'a, O> {
564 #[doc = "Off"]
565 #[inline(always)]
566 pub fn off(self) -> &'a mut W {
567 self.variant(S12POWER_A::OFF)
568 }
569}
570#[doc = "Field `S13POWER` reader - Keep RAM section S13 of RAM\\[n\\]
571on or off in System ON mode"]
572pub type S13POWER_R = crate::BitReader<S13POWER_A>;
573#[doc = "Keep RAM section S13 of RAM\\[n\\]
574on or off in System ON mode\n\nValue on reset: 1"]
575#[derive(Clone, Copy, Debug, PartialEq)]
576pub enum S13POWER_A {
577 #[doc = "1: Off"]
578 OFF = 1,
579}
580impl From<S13POWER_A> for bool {
581 #[inline(always)]
582 fn from(variant: S13POWER_A) -> Self {
583 variant as u8 != 0
584 }
585}
586impl S13POWER_R {
587 #[doc = "Get enumerated values variant"]
588 #[inline(always)]
589 pub fn variant(&self) -> Option<S13POWER_A> {
590 match self.bits {
591 true => Some(S13POWER_A::OFF),
592 _ => None,
593 }
594 }
595 #[doc = "Checks if the value of the field is `OFF`"]
596 #[inline(always)]
597 pub fn is_off(&self) -> bool {
598 *self == S13POWER_A::OFF
599 }
600}
601#[doc = "Field `S13POWER` writer - Keep RAM section S13 of RAM\\[n\\]
602on or off in System ON mode"]
603pub type S13POWER_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWERCLR_SPEC, S13POWER_A, O>;
604impl<'a, const O: u8> S13POWER_W<'a, O> {
605 #[doc = "Off"]
606 #[inline(always)]
607 pub fn off(self) -> &'a mut W {
608 self.variant(S13POWER_A::OFF)
609 }
610}
611#[doc = "Field `S14POWER` reader - Keep RAM section S14 of RAM\\[n\\]
612on or off in System ON mode"]
613pub type S14POWER_R = crate::BitReader<S14POWER_A>;
614#[doc = "Keep RAM section S14 of RAM\\[n\\]
615on or off in System ON mode\n\nValue on reset: 1"]
616#[derive(Clone, Copy, Debug, PartialEq)]
617pub enum S14POWER_A {
618 #[doc = "1: Off"]
619 OFF = 1,
620}
621impl From<S14POWER_A> for bool {
622 #[inline(always)]
623 fn from(variant: S14POWER_A) -> Self {
624 variant as u8 != 0
625 }
626}
627impl S14POWER_R {
628 #[doc = "Get enumerated values variant"]
629 #[inline(always)]
630 pub fn variant(&self) -> Option<S14POWER_A> {
631 match self.bits {
632 true => Some(S14POWER_A::OFF),
633 _ => None,
634 }
635 }
636 #[doc = "Checks if the value of the field is `OFF`"]
637 #[inline(always)]
638 pub fn is_off(&self) -> bool {
639 *self == S14POWER_A::OFF
640 }
641}
642#[doc = "Field `S14POWER` writer - Keep RAM section S14 of RAM\\[n\\]
643on or off in System ON mode"]
644pub type S14POWER_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWERCLR_SPEC, S14POWER_A, O>;
645impl<'a, const O: u8> S14POWER_W<'a, O> {
646 #[doc = "Off"]
647 #[inline(always)]
648 pub fn off(self) -> &'a mut W {
649 self.variant(S14POWER_A::OFF)
650 }
651}
652#[doc = "Field `S15POWER` reader - Keep RAM section S15 of RAM\\[n\\]
653on or off in System ON mode"]
654pub type S15POWER_R = crate::BitReader<S15POWER_A>;
655#[doc = "Keep RAM section S15 of RAM\\[n\\]
656on or off in System ON mode\n\nValue on reset: 1"]
657#[derive(Clone, Copy, Debug, PartialEq)]
658pub enum S15POWER_A {
659 #[doc = "1: Off"]
660 OFF = 1,
661}
662impl From<S15POWER_A> for bool {
663 #[inline(always)]
664 fn from(variant: S15POWER_A) -> Self {
665 variant as u8 != 0
666 }
667}
668impl S15POWER_R {
669 #[doc = "Get enumerated values variant"]
670 #[inline(always)]
671 pub fn variant(&self) -> Option<S15POWER_A> {
672 match self.bits {
673 true => Some(S15POWER_A::OFF),
674 _ => None,
675 }
676 }
677 #[doc = "Checks if the value of the field is `OFF`"]
678 #[inline(always)]
679 pub fn is_off(&self) -> bool {
680 *self == S15POWER_A::OFF
681 }
682}
683#[doc = "Field `S15POWER` writer - Keep RAM section S15 of RAM\\[n\\]
684on or off in System ON mode"]
685pub type S15POWER_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWERCLR_SPEC, S15POWER_A, O>;
686impl<'a, const O: u8> S15POWER_W<'a, O> {
687 #[doc = "Off"]
688 #[inline(always)]
689 pub fn off(self) -> &'a mut W {
690 self.variant(S15POWER_A::OFF)
691 }
692}
693#[doc = "Field `S0RETENTION` reader - Keep retention on RAM section S0 of RAM\\[n\\]
694when RAM section is switched off"]
695pub type S0RETENTION_R = crate::BitReader<S0RETENTION_A>;
696#[doc = "Keep retention on RAM section S0 of RAM\\[n\\]
697when RAM section is switched off\n\nValue on reset: 0"]
698#[derive(Clone, Copy, Debug, PartialEq)]
699pub enum S0RETENTION_A {
700 #[doc = "1: Off"]
701 OFF = 1,
702}
703impl From<S0RETENTION_A> for bool {
704 #[inline(always)]
705 fn from(variant: S0RETENTION_A) -> Self {
706 variant as u8 != 0
707 }
708}
709impl S0RETENTION_R {
710 #[doc = "Get enumerated values variant"]
711 #[inline(always)]
712 pub fn variant(&self) -> Option<S0RETENTION_A> {
713 match self.bits {
714 true => Some(S0RETENTION_A::OFF),
715 _ => None,
716 }
717 }
718 #[doc = "Checks if the value of the field is `OFF`"]
719 #[inline(always)]
720 pub fn is_off(&self) -> bool {
721 *self == S0RETENTION_A::OFF
722 }
723}
724#[doc = "Field `S0RETENTION` writer - Keep retention on RAM section S0 of RAM\\[n\\]
725when RAM section is switched off"]
726pub type S0RETENTION_W<'a, const O: u8> =
727 crate::BitWriter<'a, u32, POWERCLR_SPEC, S0RETENTION_A, O>;
728impl<'a, const O: u8> S0RETENTION_W<'a, O> {
729 #[doc = "Off"]
730 #[inline(always)]
731 pub fn off(self) -> &'a mut W {
732 self.variant(S0RETENTION_A::OFF)
733 }
734}
735#[doc = "Field `S1RETENTION` reader - Keep retention on RAM section S1 of RAM\\[n\\]
736when RAM section is switched off"]
737pub type S1RETENTION_R = crate::BitReader<S1RETENTION_A>;
738#[doc = "Keep retention on RAM section S1 of RAM\\[n\\]
739when RAM section is switched off\n\nValue on reset: 0"]
740#[derive(Clone, Copy, Debug, PartialEq)]
741pub enum S1RETENTION_A {
742 #[doc = "1: Off"]
743 OFF = 1,
744}
745impl From<S1RETENTION_A> for bool {
746 #[inline(always)]
747 fn from(variant: S1RETENTION_A) -> Self {
748 variant as u8 != 0
749 }
750}
751impl S1RETENTION_R {
752 #[doc = "Get enumerated values variant"]
753 #[inline(always)]
754 pub fn variant(&self) -> Option<S1RETENTION_A> {
755 match self.bits {
756 true => Some(S1RETENTION_A::OFF),
757 _ => None,
758 }
759 }
760 #[doc = "Checks if the value of the field is `OFF`"]
761 #[inline(always)]
762 pub fn is_off(&self) -> bool {
763 *self == S1RETENTION_A::OFF
764 }
765}
766#[doc = "Field `S1RETENTION` writer - Keep retention on RAM section S1 of RAM\\[n\\]
767when RAM section is switched off"]
768pub type S1RETENTION_W<'a, const O: u8> =
769 crate::BitWriter<'a, u32, POWERCLR_SPEC, S1RETENTION_A, O>;
770impl<'a, const O: u8> S1RETENTION_W<'a, O> {
771 #[doc = "Off"]
772 #[inline(always)]
773 pub fn off(self) -> &'a mut W {
774 self.variant(S1RETENTION_A::OFF)
775 }
776}
777#[doc = "Field `S2RETENTION` reader - Keep retention on RAM section S2 of RAM\\[n\\]
778when RAM section is switched off"]
779pub type S2RETENTION_R = crate::BitReader<S2RETENTION_A>;
780#[doc = "Keep retention on RAM section S2 of RAM\\[n\\]
781when RAM section is switched off\n\nValue on reset: 0"]
782#[derive(Clone, Copy, Debug, PartialEq)]
783pub enum S2RETENTION_A {
784 #[doc = "1: Off"]
785 OFF = 1,
786}
787impl From<S2RETENTION_A> for bool {
788 #[inline(always)]
789 fn from(variant: S2RETENTION_A) -> Self {
790 variant as u8 != 0
791 }
792}
793impl S2RETENTION_R {
794 #[doc = "Get enumerated values variant"]
795 #[inline(always)]
796 pub fn variant(&self) -> Option<S2RETENTION_A> {
797 match self.bits {
798 true => Some(S2RETENTION_A::OFF),
799 _ => None,
800 }
801 }
802 #[doc = "Checks if the value of the field is `OFF`"]
803 #[inline(always)]
804 pub fn is_off(&self) -> bool {
805 *self == S2RETENTION_A::OFF
806 }
807}
808#[doc = "Field `S2RETENTION` writer - Keep retention on RAM section S2 of RAM\\[n\\]
809when RAM section is switched off"]
810pub type S2RETENTION_W<'a, const O: u8> =
811 crate::BitWriter<'a, u32, POWERCLR_SPEC, S2RETENTION_A, O>;
812impl<'a, const O: u8> S2RETENTION_W<'a, O> {
813 #[doc = "Off"]
814 #[inline(always)]
815 pub fn off(self) -> &'a mut W {
816 self.variant(S2RETENTION_A::OFF)
817 }
818}
819#[doc = "Field `S3RETENTION` reader - Keep retention on RAM section S3 of RAM\\[n\\]
820when RAM section is switched off"]
821pub type S3RETENTION_R = crate::BitReader<S3RETENTION_A>;
822#[doc = "Keep retention on RAM section S3 of RAM\\[n\\]
823when RAM section is switched off\n\nValue on reset: 0"]
824#[derive(Clone, Copy, Debug, PartialEq)]
825pub enum S3RETENTION_A {
826 #[doc = "1: Off"]
827 OFF = 1,
828}
829impl From<S3RETENTION_A> for bool {
830 #[inline(always)]
831 fn from(variant: S3RETENTION_A) -> Self {
832 variant as u8 != 0
833 }
834}
835impl S3RETENTION_R {
836 #[doc = "Get enumerated values variant"]
837 #[inline(always)]
838 pub fn variant(&self) -> Option<S3RETENTION_A> {
839 match self.bits {
840 true => Some(S3RETENTION_A::OFF),
841 _ => None,
842 }
843 }
844 #[doc = "Checks if the value of the field is `OFF`"]
845 #[inline(always)]
846 pub fn is_off(&self) -> bool {
847 *self == S3RETENTION_A::OFF
848 }
849}
850#[doc = "Field `S3RETENTION` writer - Keep retention on RAM section S3 of RAM\\[n\\]
851when RAM section is switched off"]
852pub type S3RETENTION_W<'a, const O: u8> =
853 crate::BitWriter<'a, u32, POWERCLR_SPEC, S3RETENTION_A, O>;
854impl<'a, const O: u8> S3RETENTION_W<'a, O> {
855 #[doc = "Off"]
856 #[inline(always)]
857 pub fn off(self) -> &'a mut W {
858 self.variant(S3RETENTION_A::OFF)
859 }
860}
861#[doc = "Field `S4RETENTION` reader - Keep retention on RAM section S4 of RAM\\[n\\]
862when RAM section is switched off"]
863pub type S4RETENTION_R = crate::BitReader<S4RETENTION_A>;
864#[doc = "Keep retention on RAM section S4 of RAM\\[n\\]
865when RAM section is switched off\n\nValue on reset: 0"]
866#[derive(Clone, Copy, Debug, PartialEq)]
867pub enum S4RETENTION_A {
868 #[doc = "1: Off"]
869 OFF = 1,
870}
871impl From<S4RETENTION_A> for bool {
872 #[inline(always)]
873 fn from(variant: S4RETENTION_A) -> Self {
874 variant as u8 != 0
875 }
876}
877impl S4RETENTION_R {
878 #[doc = "Get enumerated values variant"]
879 #[inline(always)]
880 pub fn variant(&self) -> Option<S4RETENTION_A> {
881 match self.bits {
882 true => Some(S4RETENTION_A::OFF),
883 _ => None,
884 }
885 }
886 #[doc = "Checks if the value of the field is `OFF`"]
887 #[inline(always)]
888 pub fn is_off(&self) -> bool {
889 *self == S4RETENTION_A::OFF
890 }
891}
892#[doc = "Field `S4RETENTION` writer - Keep retention on RAM section S4 of RAM\\[n\\]
893when RAM section is switched off"]
894pub type S4RETENTION_W<'a, const O: u8> =
895 crate::BitWriter<'a, u32, POWERCLR_SPEC, S4RETENTION_A, O>;
896impl<'a, const O: u8> S4RETENTION_W<'a, O> {
897 #[doc = "Off"]
898 #[inline(always)]
899 pub fn off(self) -> &'a mut W {
900 self.variant(S4RETENTION_A::OFF)
901 }
902}
903#[doc = "Field `S5RETENTION` reader - Keep retention on RAM section S5 of RAM\\[n\\]
904when RAM section is switched off"]
905pub type S5RETENTION_R = crate::BitReader<S5RETENTION_A>;
906#[doc = "Keep retention on RAM section S5 of RAM\\[n\\]
907when RAM section is switched off\n\nValue on reset: 0"]
908#[derive(Clone, Copy, Debug, PartialEq)]
909pub enum S5RETENTION_A {
910 #[doc = "1: Off"]
911 OFF = 1,
912}
913impl From<S5RETENTION_A> for bool {
914 #[inline(always)]
915 fn from(variant: S5RETENTION_A) -> Self {
916 variant as u8 != 0
917 }
918}
919impl S5RETENTION_R {
920 #[doc = "Get enumerated values variant"]
921 #[inline(always)]
922 pub fn variant(&self) -> Option<S5RETENTION_A> {
923 match self.bits {
924 true => Some(S5RETENTION_A::OFF),
925 _ => None,
926 }
927 }
928 #[doc = "Checks if the value of the field is `OFF`"]
929 #[inline(always)]
930 pub fn is_off(&self) -> bool {
931 *self == S5RETENTION_A::OFF
932 }
933}
934#[doc = "Field `S5RETENTION` writer - Keep retention on RAM section S5 of RAM\\[n\\]
935when RAM section is switched off"]
936pub type S5RETENTION_W<'a, const O: u8> =
937 crate::BitWriter<'a, u32, POWERCLR_SPEC, S5RETENTION_A, O>;
938impl<'a, const O: u8> S5RETENTION_W<'a, O> {
939 #[doc = "Off"]
940 #[inline(always)]
941 pub fn off(self) -> &'a mut W {
942 self.variant(S5RETENTION_A::OFF)
943 }
944}
945#[doc = "Field `S6RETENTION` reader - Keep retention on RAM section S6 of RAM\\[n\\]
946when RAM section is switched off"]
947pub type S6RETENTION_R = crate::BitReader<S6RETENTION_A>;
948#[doc = "Keep retention on RAM section S6 of RAM\\[n\\]
949when RAM section is switched off\n\nValue on reset: 0"]
950#[derive(Clone, Copy, Debug, PartialEq)]
951pub enum S6RETENTION_A {
952 #[doc = "1: Off"]
953 OFF = 1,
954}
955impl From<S6RETENTION_A> for bool {
956 #[inline(always)]
957 fn from(variant: S6RETENTION_A) -> Self {
958 variant as u8 != 0
959 }
960}
961impl S6RETENTION_R {
962 #[doc = "Get enumerated values variant"]
963 #[inline(always)]
964 pub fn variant(&self) -> Option<S6RETENTION_A> {
965 match self.bits {
966 true => Some(S6RETENTION_A::OFF),
967 _ => None,
968 }
969 }
970 #[doc = "Checks if the value of the field is `OFF`"]
971 #[inline(always)]
972 pub fn is_off(&self) -> bool {
973 *self == S6RETENTION_A::OFF
974 }
975}
976#[doc = "Field `S6RETENTION` writer - Keep retention on RAM section S6 of RAM\\[n\\]
977when RAM section is switched off"]
978pub type S6RETENTION_W<'a, const O: u8> =
979 crate::BitWriter<'a, u32, POWERCLR_SPEC, S6RETENTION_A, O>;
980impl<'a, const O: u8> S6RETENTION_W<'a, O> {
981 #[doc = "Off"]
982 #[inline(always)]
983 pub fn off(self) -> &'a mut W {
984 self.variant(S6RETENTION_A::OFF)
985 }
986}
987#[doc = "Field `S7RETENTION` reader - Keep retention on RAM section S7 of RAM\\[n\\]
988when RAM section is switched off"]
989pub type S7RETENTION_R = crate::BitReader<S7RETENTION_A>;
990#[doc = "Keep retention on RAM section S7 of RAM\\[n\\]
991when RAM section is switched off\n\nValue on reset: 0"]
992#[derive(Clone, Copy, Debug, PartialEq)]
993pub enum S7RETENTION_A {
994 #[doc = "1: Off"]
995 OFF = 1,
996}
997impl From<S7RETENTION_A> for bool {
998 #[inline(always)]
999 fn from(variant: S7RETENTION_A) -> Self {
1000 variant as u8 != 0
1001 }
1002}
1003impl S7RETENTION_R {
1004 #[doc = "Get enumerated values variant"]
1005 #[inline(always)]
1006 pub fn variant(&self) -> Option<S7RETENTION_A> {
1007 match self.bits {
1008 true => Some(S7RETENTION_A::OFF),
1009 _ => None,
1010 }
1011 }
1012 #[doc = "Checks if the value of the field is `OFF`"]
1013 #[inline(always)]
1014 pub fn is_off(&self) -> bool {
1015 *self == S7RETENTION_A::OFF
1016 }
1017}
1018#[doc = "Field `S7RETENTION` writer - Keep retention on RAM section S7 of RAM\\[n\\]
1019when RAM section is switched off"]
1020pub type S7RETENTION_W<'a, const O: u8> =
1021 crate::BitWriter<'a, u32, POWERCLR_SPEC, S7RETENTION_A, O>;
1022impl<'a, const O: u8> S7RETENTION_W<'a, O> {
1023 #[doc = "Off"]
1024 #[inline(always)]
1025 pub fn off(self) -> &'a mut W {
1026 self.variant(S7RETENTION_A::OFF)
1027 }
1028}
1029#[doc = "Field `S8RETENTION` reader - Keep retention on RAM section S8 of RAM\\[n\\]
1030when RAM section is switched off"]
1031pub type S8RETENTION_R = crate::BitReader<S8RETENTION_A>;
1032#[doc = "Keep retention on RAM section S8 of RAM\\[n\\]
1033when RAM section is switched off\n\nValue on reset: 0"]
1034#[derive(Clone, Copy, Debug, PartialEq)]
1035pub enum S8RETENTION_A {
1036 #[doc = "1: Off"]
1037 OFF = 1,
1038}
1039impl From<S8RETENTION_A> for bool {
1040 #[inline(always)]
1041 fn from(variant: S8RETENTION_A) -> Self {
1042 variant as u8 != 0
1043 }
1044}
1045impl S8RETENTION_R {
1046 #[doc = "Get enumerated values variant"]
1047 #[inline(always)]
1048 pub fn variant(&self) -> Option<S8RETENTION_A> {
1049 match self.bits {
1050 true => Some(S8RETENTION_A::OFF),
1051 _ => None,
1052 }
1053 }
1054 #[doc = "Checks if the value of the field is `OFF`"]
1055 #[inline(always)]
1056 pub fn is_off(&self) -> bool {
1057 *self == S8RETENTION_A::OFF
1058 }
1059}
1060#[doc = "Field `S8RETENTION` writer - Keep retention on RAM section S8 of RAM\\[n\\]
1061when RAM section is switched off"]
1062pub type S8RETENTION_W<'a, const O: u8> =
1063 crate::BitWriter<'a, u32, POWERCLR_SPEC, S8RETENTION_A, O>;
1064impl<'a, const O: u8> S8RETENTION_W<'a, O> {
1065 #[doc = "Off"]
1066 #[inline(always)]
1067 pub fn off(self) -> &'a mut W {
1068 self.variant(S8RETENTION_A::OFF)
1069 }
1070}
1071#[doc = "Field `S9RETENTION` reader - Keep retention on RAM section S9 of RAM\\[n\\]
1072when RAM section is switched off"]
1073pub type S9RETENTION_R = crate::BitReader<S9RETENTION_A>;
1074#[doc = "Keep retention on RAM section S9 of RAM\\[n\\]
1075when RAM section is switched off\n\nValue on reset: 0"]
1076#[derive(Clone, Copy, Debug, PartialEq)]
1077pub enum S9RETENTION_A {
1078 #[doc = "1: Off"]
1079 OFF = 1,
1080}
1081impl From<S9RETENTION_A> for bool {
1082 #[inline(always)]
1083 fn from(variant: S9RETENTION_A) -> Self {
1084 variant as u8 != 0
1085 }
1086}
1087impl S9RETENTION_R {
1088 #[doc = "Get enumerated values variant"]
1089 #[inline(always)]
1090 pub fn variant(&self) -> Option<S9RETENTION_A> {
1091 match self.bits {
1092 true => Some(S9RETENTION_A::OFF),
1093 _ => None,
1094 }
1095 }
1096 #[doc = "Checks if the value of the field is `OFF`"]
1097 #[inline(always)]
1098 pub fn is_off(&self) -> bool {
1099 *self == S9RETENTION_A::OFF
1100 }
1101}
1102#[doc = "Field `S9RETENTION` writer - Keep retention on RAM section S9 of RAM\\[n\\]
1103when RAM section is switched off"]
1104pub type S9RETENTION_W<'a, const O: u8> =
1105 crate::BitWriter<'a, u32, POWERCLR_SPEC, S9RETENTION_A, O>;
1106impl<'a, const O: u8> S9RETENTION_W<'a, O> {
1107 #[doc = "Off"]
1108 #[inline(always)]
1109 pub fn off(self) -> &'a mut W {
1110 self.variant(S9RETENTION_A::OFF)
1111 }
1112}
1113#[doc = "Field `S10RETENTION` reader - Keep retention on RAM section S10 of RAM\\[n\\]
1114when RAM section is switched off"]
1115pub type S10RETENTION_R = crate::BitReader<S10RETENTION_A>;
1116#[doc = "Keep retention on RAM section S10 of RAM\\[n\\]
1117when RAM section is switched off\n\nValue on reset: 0"]
1118#[derive(Clone, Copy, Debug, PartialEq)]
1119pub enum S10RETENTION_A {
1120 #[doc = "1: Off"]
1121 OFF = 1,
1122}
1123impl From<S10RETENTION_A> for bool {
1124 #[inline(always)]
1125 fn from(variant: S10RETENTION_A) -> Self {
1126 variant as u8 != 0
1127 }
1128}
1129impl S10RETENTION_R {
1130 #[doc = "Get enumerated values variant"]
1131 #[inline(always)]
1132 pub fn variant(&self) -> Option<S10RETENTION_A> {
1133 match self.bits {
1134 true => Some(S10RETENTION_A::OFF),
1135 _ => None,
1136 }
1137 }
1138 #[doc = "Checks if the value of the field is `OFF`"]
1139 #[inline(always)]
1140 pub fn is_off(&self) -> bool {
1141 *self == S10RETENTION_A::OFF
1142 }
1143}
1144#[doc = "Field `S10RETENTION` writer - Keep retention on RAM section S10 of RAM\\[n\\]
1145when RAM section is switched off"]
1146pub type S10RETENTION_W<'a, const O: u8> =
1147 crate::BitWriter<'a, u32, POWERCLR_SPEC, S10RETENTION_A, O>;
1148impl<'a, const O: u8> S10RETENTION_W<'a, O> {
1149 #[doc = "Off"]
1150 #[inline(always)]
1151 pub fn off(self) -> &'a mut W {
1152 self.variant(S10RETENTION_A::OFF)
1153 }
1154}
1155#[doc = "Field `S11RETENTION` reader - Keep retention on RAM section S11 of RAM\\[n\\]
1156when RAM section is switched off"]
1157pub type S11RETENTION_R = crate::BitReader<S11RETENTION_A>;
1158#[doc = "Keep retention on RAM section S11 of RAM\\[n\\]
1159when RAM section is switched off\n\nValue on reset: 0"]
1160#[derive(Clone, Copy, Debug, PartialEq)]
1161pub enum S11RETENTION_A {
1162 #[doc = "1: Off"]
1163 OFF = 1,
1164}
1165impl From<S11RETENTION_A> for bool {
1166 #[inline(always)]
1167 fn from(variant: S11RETENTION_A) -> Self {
1168 variant as u8 != 0
1169 }
1170}
1171impl S11RETENTION_R {
1172 #[doc = "Get enumerated values variant"]
1173 #[inline(always)]
1174 pub fn variant(&self) -> Option<S11RETENTION_A> {
1175 match self.bits {
1176 true => Some(S11RETENTION_A::OFF),
1177 _ => None,
1178 }
1179 }
1180 #[doc = "Checks if the value of the field is `OFF`"]
1181 #[inline(always)]
1182 pub fn is_off(&self) -> bool {
1183 *self == S11RETENTION_A::OFF
1184 }
1185}
1186#[doc = "Field `S11RETENTION` writer - Keep retention on RAM section S11 of RAM\\[n\\]
1187when RAM section is switched off"]
1188pub type S11RETENTION_W<'a, const O: u8> =
1189 crate::BitWriter<'a, u32, POWERCLR_SPEC, S11RETENTION_A, O>;
1190impl<'a, const O: u8> S11RETENTION_W<'a, O> {
1191 #[doc = "Off"]
1192 #[inline(always)]
1193 pub fn off(self) -> &'a mut W {
1194 self.variant(S11RETENTION_A::OFF)
1195 }
1196}
1197#[doc = "Field `S12RETENTION` reader - Keep retention on RAM section S12 of RAM\\[n\\]
1198when RAM section is switched off"]
1199pub type S12RETENTION_R = crate::BitReader<S12RETENTION_A>;
1200#[doc = "Keep retention on RAM section S12 of RAM\\[n\\]
1201when RAM section is switched off\n\nValue on reset: 0"]
1202#[derive(Clone, Copy, Debug, PartialEq)]
1203pub enum S12RETENTION_A {
1204 #[doc = "1: Off"]
1205 OFF = 1,
1206}
1207impl From<S12RETENTION_A> for bool {
1208 #[inline(always)]
1209 fn from(variant: S12RETENTION_A) -> Self {
1210 variant as u8 != 0
1211 }
1212}
1213impl S12RETENTION_R {
1214 #[doc = "Get enumerated values variant"]
1215 #[inline(always)]
1216 pub fn variant(&self) -> Option<S12RETENTION_A> {
1217 match self.bits {
1218 true => Some(S12RETENTION_A::OFF),
1219 _ => None,
1220 }
1221 }
1222 #[doc = "Checks if the value of the field is `OFF`"]
1223 #[inline(always)]
1224 pub fn is_off(&self) -> bool {
1225 *self == S12RETENTION_A::OFF
1226 }
1227}
1228#[doc = "Field `S12RETENTION` writer - Keep retention on RAM section S12 of RAM\\[n\\]
1229when RAM section is switched off"]
1230pub type S12RETENTION_W<'a, const O: u8> =
1231 crate::BitWriter<'a, u32, POWERCLR_SPEC, S12RETENTION_A, O>;
1232impl<'a, const O: u8> S12RETENTION_W<'a, O> {
1233 #[doc = "Off"]
1234 #[inline(always)]
1235 pub fn off(self) -> &'a mut W {
1236 self.variant(S12RETENTION_A::OFF)
1237 }
1238}
1239#[doc = "Field `S13RETENTION` reader - Keep retention on RAM section S13 of RAM\\[n\\]
1240when RAM section is switched off"]
1241pub type S13RETENTION_R = crate::BitReader<S13RETENTION_A>;
1242#[doc = "Keep retention on RAM section S13 of RAM\\[n\\]
1243when RAM section is switched off\n\nValue on reset: 0"]
1244#[derive(Clone, Copy, Debug, PartialEq)]
1245pub enum S13RETENTION_A {
1246 #[doc = "1: Off"]
1247 OFF = 1,
1248}
1249impl From<S13RETENTION_A> for bool {
1250 #[inline(always)]
1251 fn from(variant: S13RETENTION_A) -> Self {
1252 variant as u8 != 0
1253 }
1254}
1255impl S13RETENTION_R {
1256 #[doc = "Get enumerated values variant"]
1257 #[inline(always)]
1258 pub fn variant(&self) -> Option<S13RETENTION_A> {
1259 match self.bits {
1260 true => Some(S13RETENTION_A::OFF),
1261 _ => None,
1262 }
1263 }
1264 #[doc = "Checks if the value of the field is `OFF`"]
1265 #[inline(always)]
1266 pub fn is_off(&self) -> bool {
1267 *self == S13RETENTION_A::OFF
1268 }
1269}
1270#[doc = "Field `S13RETENTION` writer - Keep retention on RAM section S13 of RAM\\[n\\]
1271when RAM section is switched off"]
1272pub type S13RETENTION_W<'a, const O: u8> =
1273 crate::BitWriter<'a, u32, POWERCLR_SPEC, S13RETENTION_A, O>;
1274impl<'a, const O: u8> S13RETENTION_W<'a, O> {
1275 #[doc = "Off"]
1276 #[inline(always)]
1277 pub fn off(self) -> &'a mut W {
1278 self.variant(S13RETENTION_A::OFF)
1279 }
1280}
1281#[doc = "Field `S14RETENTION` reader - Keep retention on RAM section S14 of RAM\\[n\\]
1282when RAM section is switched off"]
1283pub type S14RETENTION_R = crate::BitReader<S14RETENTION_A>;
1284#[doc = "Keep retention on RAM section S14 of RAM\\[n\\]
1285when RAM section is switched off\n\nValue on reset: 0"]
1286#[derive(Clone, Copy, Debug, PartialEq)]
1287pub enum S14RETENTION_A {
1288 #[doc = "1: Off"]
1289 OFF = 1,
1290}
1291impl From<S14RETENTION_A> for bool {
1292 #[inline(always)]
1293 fn from(variant: S14RETENTION_A) -> Self {
1294 variant as u8 != 0
1295 }
1296}
1297impl S14RETENTION_R {
1298 #[doc = "Get enumerated values variant"]
1299 #[inline(always)]
1300 pub fn variant(&self) -> Option<S14RETENTION_A> {
1301 match self.bits {
1302 true => Some(S14RETENTION_A::OFF),
1303 _ => None,
1304 }
1305 }
1306 #[doc = "Checks if the value of the field is `OFF`"]
1307 #[inline(always)]
1308 pub fn is_off(&self) -> bool {
1309 *self == S14RETENTION_A::OFF
1310 }
1311}
1312#[doc = "Field `S14RETENTION` writer - Keep retention on RAM section S14 of RAM\\[n\\]
1313when RAM section is switched off"]
1314pub type S14RETENTION_W<'a, const O: u8> =
1315 crate::BitWriter<'a, u32, POWERCLR_SPEC, S14RETENTION_A, O>;
1316impl<'a, const O: u8> S14RETENTION_W<'a, O> {
1317 #[doc = "Off"]
1318 #[inline(always)]
1319 pub fn off(self) -> &'a mut W {
1320 self.variant(S14RETENTION_A::OFF)
1321 }
1322}
1323#[doc = "Field `S15RETENTION` reader - Keep retention on RAM section S15 of RAM\\[n\\]
1324when RAM section is switched off"]
1325pub type S15RETENTION_R = crate::BitReader<S15RETENTION_A>;
1326#[doc = "Keep retention on RAM section S15 of RAM\\[n\\]
1327when RAM section is switched off\n\nValue on reset: 0"]
1328#[derive(Clone, Copy, Debug, PartialEq)]
1329pub enum S15RETENTION_A {
1330 #[doc = "1: Off"]
1331 OFF = 1,
1332}
1333impl From<S15RETENTION_A> for bool {
1334 #[inline(always)]
1335 fn from(variant: S15RETENTION_A) -> Self {
1336 variant as u8 != 0
1337 }
1338}
1339impl S15RETENTION_R {
1340 #[doc = "Get enumerated values variant"]
1341 #[inline(always)]
1342 pub fn variant(&self) -> Option<S15RETENTION_A> {
1343 match self.bits {
1344 true => Some(S15RETENTION_A::OFF),
1345 _ => None,
1346 }
1347 }
1348 #[doc = "Checks if the value of the field is `OFF`"]
1349 #[inline(always)]
1350 pub fn is_off(&self) -> bool {
1351 *self == S15RETENTION_A::OFF
1352 }
1353}
1354#[doc = "Field `S15RETENTION` writer - Keep retention on RAM section S15 of RAM\\[n\\]
1355when RAM section is switched off"]
1356pub type S15RETENTION_W<'a, const O: u8> =
1357 crate::BitWriter<'a, u32, POWERCLR_SPEC, S15RETENTION_A, O>;
1358impl<'a, const O: u8> S15RETENTION_W<'a, O> {
1359 #[doc = "Off"]
1360 #[inline(always)]
1361 pub fn off(self) -> &'a mut W {
1362 self.variant(S15RETENTION_A::OFF)
1363 }
1364}
1365impl R {
1366 #[doc = "Bit 0 - Keep RAM section S0 of RAM\\[n\\]
1367on or off in System ON mode"]
1368 #[inline(always)]
1369 pub fn s0power(&self) -> S0POWER_R {
1370 S0POWER_R::new((self.bits & 1) != 0)
1371 }
1372 #[doc = "Bit 1 - Keep RAM section S1 of RAM\\[n\\]
1373on or off in System ON mode"]
1374 #[inline(always)]
1375 pub fn s1power(&self) -> S1POWER_R {
1376 S1POWER_R::new(((self.bits >> 1) & 1) != 0)
1377 }
1378 #[doc = "Bit 2 - Keep RAM section S2 of RAM\\[n\\]
1379on or off in System ON mode"]
1380 #[inline(always)]
1381 pub fn s2power(&self) -> S2POWER_R {
1382 S2POWER_R::new(((self.bits >> 2) & 1) != 0)
1383 }
1384 #[doc = "Bit 3 - Keep RAM section S3 of RAM\\[n\\]
1385on or off in System ON mode"]
1386 #[inline(always)]
1387 pub fn s3power(&self) -> S3POWER_R {
1388 S3POWER_R::new(((self.bits >> 3) & 1) != 0)
1389 }
1390 #[doc = "Bit 4 - Keep RAM section S4 of RAM\\[n\\]
1391on or off in System ON mode"]
1392 #[inline(always)]
1393 pub fn s4power(&self) -> S4POWER_R {
1394 S4POWER_R::new(((self.bits >> 4) & 1) != 0)
1395 }
1396 #[doc = "Bit 5 - Keep RAM section S5 of RAM\\[n\\]
1397on or off in System ON mode"]
1398 #[inline(always)]
1399 pub fn s5power(&self) -> S5POWER_R {
1400 S5POWER_R::new(((self.bits >> 5) & 1) != 0)
1401 }
1402 #[doc = "Bit 6 - Keep RAM section S6 of RAM\\[n\\]
1403on or off in System ON mode"]
1404 #[inline(always)]
1405 pub fn s6power(&self) -> S6POWER_R {
1406 S6POWER_R::new(((self.bits >> 6) & 1) != 0)
1407 }
1408 #[doc = "Bit 7 - Keep RAM section S7 of RAM\\[n\\]
1409on or off in System ON mode"]
1410 #[inline(always)]
1411 pub fn s7power(&self) -> S7POWER_R {
1412 S7POWER_R::new(((self.bits >> 7) & 1) != 0)
1413 }
1414 #[doc = "Bit 8 - Keep RAM section S8 of RAM\\[n\\]
1415on or off in System ON mode"]
1416 #[inline(always)]
1417 pub fn s8power(&self) -> S8POWER_R {
1418 S8POWER_R::new(((self.bits >> 8) & 1) != 0)
1419 }
1420 #[doc = "Bit 9 - Keep RAM section S9 of RAM\\[n\\]
1421on or off in System ON mode"]
1422 #[inline(always)]
1423 pub fn s9power(&self) -> S9POWER_R {
1424 S9POWER_R::new(((self.bits >> 9) & 1) != 0)
1425 }
1426 #[doc = "Bit 10 - Keep RAM section S10 of RAM\\[n\\]
1427on or off in System ON mode"]
1428 #[inline(always)]
1429 pub fn s10power(&self) -> S10POWER_R {
1430 S10POWER_R::new(((self.bits >> 10) & 1) != 0)
1431 }
1432 #[doc = "Bit 11 - Keep RAM section S11 of RAM\\[n\\]
1433on or off in System ON mode"]
1434 #[inline(always)]
1435 pub fn s11power(&self) -> S11POWER_R {
1436 S11POWER_R::new(((self.bits >> 11) & 1) != 0)
1437 }
1438 #[doc = "Bit 12 - Keep RAM section S12 of RAM\\[n\\]
1439on or off in System ON mode"]
1440 #[inline(always)]
1441 pub fn s12power(&self) -> S12POWER_R {
1442 S12POWER_R::new(((self.bits >> 12) & 1) != 0)
1443 }
1444 #[doc = "Bit 13 - Keep RAM section S13 of RAM\\[n\\]
1445on or off in System ON mode"]
1446 #[inline(always)]
1447 pub fn s13power(&self) -> S13POWER_R {
1448 S13POWER_R::new(((self.bits >> 13) & 1) != 0)
1449 }
1450 #[doc = "Bit 14 - Keep RAM section S14 of RAM\\[n\\]
1451on or off in System ON mode"]
1452 #[inline(always)]
1453 pub fn s14power(&self) -> S14POWER_R {
1454 S14POWER_R::new(((self.bits >> 14) & 1) != 0)
1455 }
1456 #[doc = "Bit 15 - Keep RAM section S15 of RAM\\[n\\]
1457on or off in System ON mode"]
1458 #[inline(always)]
1459 pub fn s15power(&self) -> S15POWER_R {
1460 S15POWER_R::new(((self.bits >> 15) & 1) != 0)
1461 }
1462 #[doc = "Bit 16 - Keep retention on RAM section S0 of RAM\\[n\\]
1463when RAM section is switched off"]
1464 #[inline(always)]
1465 pub fn s0retention(&self) -> S0RETENTION_R {
1466 S0RETENTION_R::new(((self.bits >> 16) & 1) != 0)
1467 }
1468 #[doc = "Bit 17 - Keep retention on RAM section S1 of RAM\\[n\\]
1469when RAM section is switched off"]
1470 #[inline(always)]
1471 pub fn s1retention(&self) -> S1RETENTION_R {
1472 S1RETENTION_R::new(((self.bits >> 17) & 1) != 0)
1473 }
1474 #[doc = "Bit 18 - Keep retention on RAM section S2 of RAM\\[n\\]
1475when RAM section is switched off"]
1476 #[inline(always)]
1477 pub fn s2retention(&self) -> S2RETENTION_R {
1478 S2RETENTION_R::new(((self.bits >> 18) & 1) != 0)
1479 }
1480 #[doc = "Bit 19 - Keep retention on RAM section S3 of RAM\\[n\\]
1481when RAM section is switched off"]
1482 #[inline(always)]
1483 pub fn s3retention(&self) -> S3RETENTION_R {
1484 S3RETENTION_R::new(((self.bits >> 19) & 1) != 0)
1485 }
1486 #[doc = "Bit 20 - Keep retention on RAM section S4 of RAM\\[n\\]
1487when RAM section is switched off"]
1488 #[inline(always)]
1489 pub fn s4retention(&self) -> S4RETENTION_R {
1490 S4RETENTION_R::new(((self.bits >> 20) & 1) != 0)
1491 }
1492 #[doc = "Bit 21 - Keep retention on RAM section S5 of RAM\\[n\\]
1493when RAM section is switched off"]
1494 #[inline(always)]
1495 pub fn s5retention(&self) -> S5RETENTION_R {
1496 S5RETENTION_R::new(((self.bits >> 21) & 1) != 0)
1497 }
1498 #[doc = "Bit 22 - Keep retention on RAM section S6 of RAM\\[n\\]
1499when RAM section is switched off"]
1500 #[inline(always)]
1501 pub fn s6retention(&self) -> S6RETENTION_R {
1502 S6RETENTION_R::new(((self.bits >> 22) & 1) != 0)
1503 }
1504 #[doc = "Bit 23 - Keep retention on RAM section S7 of RAM\\[n\\]
1505when RAM section is switched off"]
1506 #[inline(always)]
1507 pub fn s7retention(&self) -> S7RETENTION_R {
1508 S7RETENTION_R::new(((self.bits >> 23) & 1) != 0)
1509 }
1510 #[doc = "Bit 24 - Keep retention on RAM section S8 of RAM\\[n\\]
1511when RAM section is switched off"]
1512 #[inline(always)]
1513 pub fn s8retention(&self) -> S8RETENTION_R {
1514 S8RETENTION_R::new(((self.bits >> 24) & 1) != 0)
1515 }
1516 #[doc = "Bit 25 - Keep retention on RAM section S9 of RAM\\[n\\]
1517when RAM section is switched off"]
1518 #[inline(always)]
1519 pub fn s9retention(&self) -> S9RETENTION_R {
1520 S9RETENTION_R::new(((self.bits >> 25) & 1) != 0)
1521 }
1522 #[doc = "Bit 26 - Keep retention on RAM section S10 of RAM\\[n\\]
1523when RAM section is switched off"]
1524 #[inline(always)]
1525 pub fn s10retention(&self) -> S10RETENTION_R {
1526 S10RETENTION_R::new(((self.bits >> 26) & 1) != 0)
1527 }
1528 #[doc = "Bit 27 - Keep retention on RAM section S11 of RAM\\[n\\]
1529when RAM section is switched off"]
1530 #[inline(always)]
1531 pub fn s11retention(&self) -> S11RETENTION_R {
1532 S11RETENTION_R::new(((self.bits >> 27) & 1) != 0)
1533 }
1534 #[doc = "Bit 28 - Keep retention on RAM section S12 of RAM\\[n\\]
1535when RAM section is switched off"]
1536 #[inline(always)]
1537 pub fn s12retention(&self) -> S12RETENTION_R {
1538 S12RETENTION_R::new(((self.bits >> 28) & 1) != 0)
1539 }
1540 #[doc = "Bit 29 - Keep retention on RAM section S13 of RAM\\[n\\]
1541when RAM section is switched off"]
1542 #[inline(always)]
1543 pub fn s13retention(&self) -> S13RETENTION_R {
1544 S13RETENTION_R::new(((self.bits >> 29) & 1) != 0)
1545 }
1546 #[doc = "Bit 30 - Keep retention on RAM section S14 of RAM\\[n\\]
1547when RAM section is switched off"]
1548 #[inline(always)]
1549 pub fn s14retention(&self) -> S14RETENTION_R {
1550 S14RETENTION_R::new(((self.bits >> 30) & 1) != 0)
1551 }
1552 #[doc = "Bit 31 - Keep retention on RAM section S15 of RAM\\[n\\]
1553when RAM section is switched off"]
1554 #[inline(always)]
1555 pub fn s15retention(&self) -> S15RETENTION_R {
1556 S15RETENTION_R::new(((self.bits >> 31) & 1) != 0)
1557 }
1558}
1559impl W {
1560 #[doc = "Bit 0 - Keep RAM section S0 of RAM\\[n\\]
1561on or off in System ON mode"]
1562 #[inline(always)]
1563 pub fn s0power(&mut self) -> S0POWER_W<0> {
1564 S0POWER_W::new(self)
1565 }
1566 #[doc = "Bit 1 - Keep RAM section S1 of RAM\\[n\\]
1567on or off in System ON mode"]
1568 #[inline(always)]
1569 pub fn s1power(&mut self) -> S1POWER_W<1> {
1570 S1POWER_W::new(self)
1571 }
1572 #[doc = "Bit 2 - Keep RAM section S2 of RAM\\[n\\]
1573on or off in System ON mode"]
1574 #[inline(always)]
1575 pub fn s2power(&mut self) -> S2POWER_W<2> {
1576 S2POWER_W::new(self)
1577 }
1578 #[doc = "Bit 3 - Keep RAM section S3 of RAM\\[n\\]
1579on or off in System ON mode"]
1580 #[inline(always)]
1581 pub fn s3power(&mut self) -> S3POWER_W<3> {
1582 S3POWER_W::new(self)
1583 }
1584 #[doc = "Bit 4 - Keep RAM section S4 of RAM\\[n\\]
1585on or off in System ON mode"]
1586 #[inline(always)]
1587 pub fn s4power(&mut self) -> S4POWER_W<4> {
1588 S4POWER_W::new(self)
1589 }
1590 #[doc = "Bit 5 - Keep RAM section S5 of RAM\\[n\\]
1591on or off in System ON mode"]
1592 #[inline(always)]
1593 pub fn s5power(&mut self) -> S5POWER_W<5> {
1594 S5POWER_W::new(self)
1595 }
1596 #[doc = "Bit 6 - Keep RAM section S6 of RAM\\[n\\]
1597on or off in System ON mode"]
1598 #[inline(always)]
1599 pub fn s6power(&mut self) -> S6POWER_W<6> {
1600 S6POWER_W::new(self)
1601 }
1602 #[doc = "Bit 7 - Keep RAM section S7 of RAM\\[n\\]
1603on or off in System ON mode"]
1604 #[inline(always)]
1605 pub fn s7power(&mut self) -> S7POWER_W<7> {
1606 S7POWER_W::new(self)
1607 }
1608 #[doc = "Bit 8 - Keep RAM section S8 of RAM\\[n\\]
1609on or off in System ON mode"]
1610 #[inline(always)]
1611 pub fn s8power(&mut self) -> S8POWER_W<8> {
1612 S8POWER_W::new(self)
1613 }
1614 #[doc = "Bit 9 - Keep RAM section S9 of RAM\\[n\\]
1615on or off in System ON mode"]
1616 #[inline(always)]
1617 pub fn s9power(&mut self) -> S9POWER_W<9> {
1618 S9POWER_W::new(self)
1619 }
1620 #[doc = "Bit 10 - Keep RAM section S10 of RAM\\[n\\]
1621on or off in System ON mode"]
1622 #[inline(always)]
1623 pub fn s10power(&mut self) -> S10POWER_W<10> {
1624 S10POWER_W::new(self)
1625 }
1626 #[doc = "Bit 11 - Keep RAM section S11 of RAM\\[n\\]
1627on or off in System ON mode"]
1628 #[inline(always)]
1629 pub fn s11power(&mut self) -> S11POWER_W<11> {
1630 S11POWER_W::new(self)
1631 }
1632 #[doc = "Bit 12 - Keep RAM section S12 of RAM\\[n\\]
1633on or off in System ON mode"]
1634 #[inline(always)]
1635 pub fn s12power(&mut self) -> S12POWER_W<12> {
1636 S12POWER_W::new(self)
1637 }
1638 #[doc = "Bit 13 - Keep RAM section S13 of RAM\\[n\\]
1639on or off in System ON mode"]
1640 #[inline(always)]
1641 pub fn s13power(&mut self) -> S13POWER_W<13> {
1642 S13POWER_W::new(self)
1643 }
1644 #[doc = "Bit 14 - Keep RAM section S14 of RAM\\[n\\]
1645on or off in System ON mode"]
1646 #[inline(always)]
1647 pub fn s14power(&mut self) -> S14POWER_W<14> {
1648 S14POWER_W::new(self)
1649 }
1650 #[doc = "Bit 15 - Keep RAM section S15 of RAM\\[n\\]
1651on or off in System ON mode"]
1652 #[inline(always)]
1653 pub fn s15power(&mut self) -> S15POWER_W<15> {
1654 S15POWER_W::new(self)
1655 }
1656 #[doc = "Bit 16 - Keep retention on RAM section S0 of RAM\\[n\\]
1657when RAM section is switched off"]
1658 #[inline(always)]
1659 pub fn s0retention(&mut self) -> S0RETENTION_W<16> {
1660 S0RETENTION_W::new(self)
1661 }
1662 #[doc = "Bit 17 - Keep retention on RAM section S1 of RAM\\[n\\]
1663when RAM section is switched off"]
1664 #[inline(always)]
1665 pub fn s1retention(&mut self) -> S1RETENTION_W<17> {
1666 S1RETENTION_W::new(self)
1667 }
1668 #[doc = "Bit 18 - Keep retention on RAM section S2 of RAM\\[n\\]
1669when RAM section is switched off"]
1670 #[inline(always)]
1671 pub fn s2retention(&mut self) -> S2RETENTION_W<18> {
1672 S2RETENTION_W::new(self)
1673 }
1674 #[doc = "Bit 19 - Keep retention on RAM section S3 of RAM\\[n\\]
1675when RAM section is switched off"]
1676 #[inline(always)]
1677 pub fn s3retention(&mut self) -> S3RETENTION_W<19> {
1678 S3RETENTION_W::new(self)
1679 }
1680 #[doc = "Bit 20 - Keep retention on RAM section S4 of RAM\\[n\\]
1681when RAM section is switched off"]
1682 #[inline(always)]
1683 pub fn s4retention(&mut self) -> S4RETENTION_W<20> {
1684 S4RETENTION_W::new(self)
1685 }
1686 #[doc = "Bit 21 - Keep retention on RAM section S5 of RAM\\[n\\]
1687when RAM section is switched off"]
1688 #[inline(always)]
1689 pub fn s5retention(&mut self) -> S5RETENTION_W<21> {
1690 S5RETENTION_W::new(self)
1691 }
1692 #[doc = "Bit 22 - Keep retention on RAM section S6 of RAM\\[n\\]
1693when RAM section is switched off"]
1694 #[inline(always)]
1695 pub fn s6retention(&mut self) -> S6RETENTION_W<22> {
1696 S6RETENTION_W::new(self)
1697 }
1698 #[doc = "Bit 23 - Keep retention on RAM section S7 of RAM\\[n\\]
1699when RAM section is switched off"]
1700 #[inline(always)]
1701 pub fn s7retention(&mut self) -> S7RETENTION_W<23> {
1702 S7RETENTION_W::new(self)
1703 }
1704 #[doc = "Bit 24 - Keep retention on RAM section S8 of RAM\\[n\\]
1705when RAM section is switched off"]
1706 #[inline(always)]
1707 pub fn s8retention(&mut self) -> S8RETENTION_W<24> {
1708 S8RETENTION_W::new(self)
1709 }
1710 #[doc = "Bit 25 - Keep retention on RAM section S9 of RAM\\[n\\]
1711when RAM section is switched off"]
1712 #[inline(always)]
1713 pub fn s9retention(&mut self) -> S9RETENTION_W<25> {
1714 S9RETENTION_W::new(self)
1715 }
1716 #[doc = "Bit 26 - Keep retention on RAM section S10 of RAM\\[n\\]
1717when RAM section is switched off"]
1718 #[inline(always)]
1719 pub fn s10retention(&mut self) -> S10RETENTION_W<26> {
1720 S10RETENTION_W::new(self)
1721 }
1722 #[doc = "Bit 27 - Keep retention on RAM section S11 of RAM\\[n\\]
1723when RAM section is switched off"]
1724 #[inline(always)]
1725 pub fn s11retention(&mut self) -> S11RETENTION_W<27> {
1726 S11RETENTION_W::new(self)
1727 }
1728 #[doc = "Bit 28 - Keep retention on RAM section S12 of RAM\\[n\\]
1729when RAM section is switched off"]
1730 #[inline(always)]
1731 pub fn s12retention(&mut self) -> S12RETENTION_W<28> {
1732 S12RETENTION_W::new(self)
1733 }
1734 #[doc = "Bit 29 - Keep retention on RAM section S13 of RAM\\[n\\]
1735when RAM section is switched off"]
1736 #[inline(always)]
1737 pub fn s13retention(&mut self) -> S13RETENTION_W<29> {
1738 S13RETENTION_W::new(self)
1739 }
1740 #[doc = "Bit 30 - Keep retention on RAM section S14 of RAM\\[n\\]
1741when RAM section is switched off"]
1742 #[inline(always)]
1743 pub fn s14retention(&mut self) -> S14RETENTION_W<30> {
1744 S14RETENTION_W::new(self)
1745 }
1746 #[doc = "Bit 31 - Keep retention on RAM section S15 of RAM\\[n\\]
1747when RAM section is switched off"]
1748 #[inline(always)]
1749 pub fn s15retention(&mut self) -> S15RETENTION_W<31> {
1750 S15RETENTION_W::new(self)
1751 }
1752 #[doc = "Writes raw bits to the register."]
1753 #[inline(always)]
1754 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1755 self.0.bits(bits);
1756 self
1757 }
1758}
1759#[doc = "Description cluster: RAM\\[n\\]
1760power control clear register\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 [powerclr](index.html) module"]
1761pub struct POWERCLR_SPEC;
1762impl crate::RegisterSpec for POWERCLR_SPEC {
1763 type Ux = u32;
1764}
1765#[doc = "`read()` method returns [powerclr::R](R) reader structure"]
1766impl crate::Readable for POWERCLR_SPEC {
1767 type Reader = R;
1768}
1769#[doc = "`write(|w| ..)` method takes [powerclr::W](W) writer structure"]
1770impl crate::Writable for POWERCLR_SPEC {
1771 type Writer = W;
1772}
1773#[doc = "`reset()` method sets POWERCLR to value 0xffff"]
1774impl crate::Resettable for POWERCLR_SPEC {
1775 #[inline(always)]
1776 fn reset_value() -> Self::Ux {
1777 0xffff
1778 }
1779}