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