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