esp32s2/rtc_cntl/
pwc.rs

1#[doc = "Register `PWC` reader"]
2pub type R = crate::R<PWC_SPEC>;
3#[doc = "Register `PWC` writer"]
4pub type W = crate::W<PWC_SPEC>;
5#[doc = "Field `FASTMEM_FORCE_NOISO` reader - Set this bit to disable the force isolation to the RTC fast memory."]
6pub type FASTMEM_FORCE_NOISO_R = crate::BitReader;
7#[doc = "Field `FASTMEM_FORCE_NOISO` writer - Set this bit to disable the force isolation to the RTC fast memory."]
8pub type FASTMEM_FORCE_NOISO_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `FASTMEM_FORCE_ISO` reader - Set this bit to force isolate the RTC fast memory."]
10pub type FASTMEM_FORCE_ISO_R = crate::BitReader;
11#[doc = "Field `FASTMEM_FORCE_ISO` writer - Set this bit to force isolate the RTC fast memory."]
12pub type FASTMEM_FORCE_ISO_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `SLOWMEM_FORCE_NOISO` reader - Set this bit to disable the force isolation to the RTC slow memory."]
14pub type SLOWMEM_FORCE_NOISO_R = crate::BitReader;
15#[doc = "Field `SLOWMEM_FORCE_NOISO` writer - Set this bit to disable the force isolation to the RTC slow memory."]
16pub type SLOWMEM_FORCE_NOISO_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `SLOWMEM_FORCE_ISO` reader - Set this bit to force isolate the RTC slow memory."]
18pub type SLOWMEM_FORCE_ISO_R = crate::BitReader;
19#[doc = "Field `SLOWMEM_FORCE_ISO` writer - Set this bit to force isolate the RTC slow memory."]
20pub type SLOWMEM_FORCE_ISO_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `FORCE_ISO` reader - Set this bit to force isolate the RTC peripherals."]
22pub type FORCE_ISO_R = crate::BitReader;
23#[doc = "Field `FORCE_ISO` writer - Set this bit to force isolate the RTC peripherals."]
24pub type FORCE_ISO_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `FORCE_NOISO` reader - Set this bit to disable the force isolation to the RTC peripherals."]
26pub type FORCE_NOISO_R = crate::BitReader;
27#[doc = "Field `FORCE_NOISO` writer - Set this bit to disable the force isolation to the RTC peripherals."]
28pub type FORCE_NOISO_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `FASTMEM_FOLW_CPU` reader - Set 1 to FPD the RTC fast memory when the CPU is powered down. Set 0 to FPD the RTC fast memory when the RTC main state machine is powered down."]
30pub type FASTMEM_FOLW_CPU_R = crate::BitReader;
31#[doc = "Field `FASTMEM_FOLW_CPU` writer - Set 1 to FPD the RTC fast memory when the CPU is powered down. Set 0 to FPD the RTC fast memory when the RTC main state machine is powered down."]
32pub type FASTMEM_FOLW_CPU_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `FASTMEM_FORCE_LPD` reader - Set this bit to force not retain the RTC fast memory."]
34pub type FASTMEM_FORCE_LPD_R = crate::BitReader;
35#[doc = "Field `FASTMEM_FORCE_LPD` writer - Set this bit to force not retain the RTC fast memory."]
36pub type FASTMEM_FORCE_LPD_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `FASTMEM_FORCE_LPU` reader - Set this bit to force retain the RTC fast memory."]
38pub type FASTMEM_FORCE_LPU_R = crate::BitReader;
39#[doc = "Field `FASTMEM_FORCE_LPU` writer - Set this bit to force retain the RTC fast memory."]
40pub type FASTMEM_FORCE_LPU_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `SLOWMEM_FOLW_CPU` reader - Set 1 to FPD the RTC slow memory when the CPU is powered down. Set 0 to FPD the RTC slow memory when the RTC main state machine is powered down."]
42pub type SLOWMEM_FOLW_CPU_R = crate::BitReader;
43#[doc = "Field `SLOWMEM_FOLW_CPU` writer - Set 1 to FPD the RTC slow memory when the CPU is powered down. Set 0 to FPD the RTC slow memory when the RTC main state machine is powered down."]
44pub type SLOWMEM_FOLW_CPU_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `SLOWMEM_FORCE_LPD` reader - Set this bit to force not retain the RTC slow memory."]
46pub type SLOWMEM_FORCE_LPD_R = crate::BitReader;
47#[doc = "Field `SLOWMEM_FORCE_LPD` writer - Set this bit to force not retain the RTC slow memory."]
48pub type SLOWMEM_FORCE_LPD_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `SLOWMEM_FORCE_LPU` reader - Set this bit to force retain the RTC slow memory."]
50pub type SLOWMEM_FORCE_LPU_R = crate::BitReader;
51#[doc = "Field `SLOWMEM_FORCE_LPU` writer - Set this bit to force retain the RTC slow memory."]
52pub type SLOWMEM_FORCE_LPU_W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `FASTMEM_FORCE_PD` reader - Set this bit to FPD the RTC fast memory."]
54pub type FASTMEM_FORCE_PD_R = crate::BitReader;
55#[doc = "Field `FASTMEM_FORCE_PD` writer - Set this bit to FPD the RTC fast memory."]
56pub type FASTMEM_FORCE_PD_W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `FASTMEM_FORCE_PU` reader - Set this bit to FPU the RTC fast memory."]
58pub type FASTMEM_FORCE_PU_R = crate::BitReader;
59#[doc = "Field `FASTMEM_FORCE_PU` writer - Set this bit to FPU the RTC fast memory."]
60pub type FASTMEM_FORCE_PU_W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `FASTMEM_PD_EN` reader - Set this bit to enable PD for the RTC fast memory in sleep."]
62pub type FASTMEM_PD_EN_R = crate::BitReader;
63#[doc = "Field `FASTMEM_PD_EN` writer - Set this bit to enable PD for the RTC fast memory in sleep."]
64pub type FASTMEM_PD_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `SLOWMEM_FORCE_PD` reader - Set this bit to FPD the RTC slow memory."]
66pub type SLOWMEM_FORCE_PD_R = crate::BitReader;
67#[doc = "Field `SLOWMEM_FORCE_PD` writer - Set this bit to FPD the RTC slow memory."]
68pub type SLOWMEM_FORCE_PD_W<'a, REG> = crate::BitWriter<'a, REG>;
69#[doc = "Field `SLOWMEM_FORCE_PU` reader - Set this bit to FPU the RTC slow memory."]
70pub type SLOWMEM_FORCE_PU_R = crate::BitReader;
71#[doc = "Field `SLOWMEM_FORCE_PU` writer - Set this bit to FPU the RTC slow memory."]
72pub type SLOWMEM_FORCE_PU_W<'a, REG> = crate::BitWriter<'a, REG>;
73#[doc = "Field `SLOWMEM_PD_EN` reader - Set this bit to enable PD for the RTC slow memory in sleep."]
74pub type SLOWMEM_PD_EN_R = crate::BitReader;
75#[doc = "Field `SLOWMEM_PD_EN` writer - Set this bit to enable PD for the RTC slow memory in sleep."]
76pub type SLOWMEM_PD_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
77#[doc = "Field `FORCE_PD` reader - Set this bit to FPD the RTC peripherals."]
78pub type FORCE_PD_R = crate::BitReader;
79#[doc = "Field `FORCE_PD` writer - Set this bit to FPD the RTC peripherals."]
80pub type FORCE_PD_W<'a, REG> = crate::BitWriter<'a, REG>;
81#[doc = "Field `FORCE_PU` reader - Set this bit to FPU the RTC peripherals."]
82pub type FORCE_PU_R = crate::BitReader;
83#[doc = "Field `FORCE_PU` writer - Set this bit to FPU the RTC peripherals."]
84pub type FORCE_PU_W<'a, REG> = crate::BitWriter<'a, REG>;
85#[doc = "Field `PD_EN` reader - Set this bit to enable PD for the RTC peripherals in sleep."]
86pub type PD_EN_R = crate::BitReader;
87#[doc = "Field `PD_EN` writer - Set this bit to enable PD for the RTC peripherals in sleep."]
88pub type PD_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
89#[doc = "Field `PAD_FORCE_HOLD` reader - Set this bit the force hold the RTC GPIOs."]
90pub type PAD_FORCE_HOLD_R = crate::BitReader;
91#[doc = "Field `PAD_FORCE_HOLD` writer - Set this bit the force hold the RTC GPIOs."]
92pub type PAD_FORCE_HOLD_W<'a, REG> = crate::BitWriter<'a, REG>;
93impl R {
94    #[doc = "Bit 0 - Set this bit to disable the force isolation to the RTC fast memory."]
95    #[inline(always)]
96    pub fn fastmem_force_noiso(&self) -> FASTMEM_FORCE_NOISO_R {
97        FASTMEM_FORCE_NOISO_R::new((self.bits & 1) != 0)
98    }
99    #[doc = "Bit 1 - Set this bit to force isolate the RTC fast memory."]
100    #[inline(always)]
101    pub fn fastmem_force_iso(&self) -> FASTMEM_FORCE_ISO_R {
102        FASTMEM_FORCE_ISO_R::new(((self.bits >> 1) & 1) != 0)
103    }
104    #[doc = "Bit 2 - Set this bit to disable the force isolation to the RTC slow memory."]
105    #[inline(always)]
106    pub fn slowmem_force_noiso(&self) -> SLOWMEM_FORCE_NOISO_R {
107        SLOWMEM_FORCE_NOISO_R::new(((self.bits >> 2) & 1) != 0)
108    }
109    #[doc = "Bit 3 - Set this bit to force isolate the RTC slow memory."]
110    #[inline(always)]
111    pub fn slowmem_force_iso(&self) -> SLOWMEM_FORCE_ISO_R {
112        SLOWMEM_FORCE_ISO_R::new(((self.bits >> 3) & 1) != 0)
113    }
114    #[doc = "Bit 4 - Set this bit to force isolate the RTC peripherals."]
115    #[inline(always)]
116    pub fn force_iso(&self) -> FORCE_ISO_R {
117        FORCE_ISO_R::new(((self.bits >> 4) & 1) != 0)
118    }
119    #[doc = "Bit 5 - Set this bit to disable the force isolation to the RTC peripherals."]
120    #[inline(always)]
121    pub fn force_noiso(&self) -> FORCE_NOISO_R {
122        FORCE_NOISO_R::new(((self.bits >> 5) & 1) != 0)
123    }
124    #[doc = "Bit 6 - Set 1 to FPD the RTC fast memory when the CPU is powered down. Set 0 to FPD the RTC fast memory when the RTC main state machine is powered down."]
125    #[inline(always)]
126    pub fn fastmem_folw_cpu(&self) -> FASTMEM_FOLW_CPU_R {
127        FASTMEM_FOLW_CPU_R::new(((self.bits >> 6) & 1) != 0)
128    }
129    #[doc = "Bit 7 - Set this bit to force not retain the RTC fast memory."]
130    #[inline(always)]
131    pub fn fastmem_force_lpd(&self) -> FASTMEM_FORCE_LPD_R {
132        FASTMEM_FORCE_LPD_R::new(((self.bits >> 7) & 1) != 0)
133    }
134    #[doc = "Bit 8 - Set this bit to force retain the RTC fast memory."]
135    #[inline(always)]
136    pub fn fastmem_force_lpu(&self) -> FASTMEM_FORCE_LPU_R {
137        FASTMEM_FORCE_LPU_R::new(((self.bits >> 8) & 1) != 0)
138    }
139    #[doc = "Bit 9 - Set 1 to FPD the RTC slow memory when the CPU is powered down. Set 0 to FPD the RTC slow memory when the RTC main state machine is powered down."]
140    #[inline(always)]
141    pub fn slowmem_folw_cpu(&self) -> SLOWMEM_FOLW_CPU_R {
142        SLOWMEM_FOLW_CPU_R::new(((self.bits >> 9) & 1) != 0)
143    }
144    #[doc = "Bit 10 - Set this bit to force not retain the RTC slow memory."]
145    #[inline(always)]
146    pub fn slowmem_force_lpd(&self) -> SLOWMEM_FORCE_LPD_R {
147        SLOWMEM_FORCE_LPD_R::new(((self.bits >> 10) & 1) != 0)
148    }
149    #[doc = "Bit 11 - Set this bit to force retain the RTC slow memory."]
150    #[inline(always)]
151    pub fn slowmem_force_lpu(&self) -> SLOWMEM_FORCE_LPU_R {
152        SLOWMEM_FORCE_LPU_R::new(((self.bits >> 11) & 1) != 0)
153    }
154    #[doc = "Bit 12 - Set this bit to FPD the RTC fast memory."]
155    #[inline(always)]
156    pub fn fastmem_force_pd(&self) -> FASTMEM_FORCE_PD_R {
157        FASTMEM_FORCE_PD_R::new(((self.bits >> 12) & 1) != 0)
158    }
159    #[doc = "Bit 13 - Set this bit to FPU the RTC fast memory."]
160    #[inline(always)]
161    pub fn fastmem_force_pu(&self) -> FASTMEM_FORCE_PU_R {
162        FASTMEM_FORCE_PU_R::new(((self.bits >> 13) & 1) != 0)
163    }
164    #[doc = "Bit 14 - Set this bit to enable PD for the RTC fast memory in sleep."]
165    #[inline(always)]
166    pub fn fastmem_pd_en(&self) -> FASTMEM_PD_EN_R {
167        FASTMEM_PD_EN_R::new(((self.bits >> 14) & 1) != 0)
168    }
169    #[doc = "Bit 15 - Set this bit to FPD the RTC slow memory."]
170    #[inline(always)]
171    pub fn slowmem_force_pd(&self) -> SLOWMEM_FORCE_PD_R {
172        SLOWMEM_FORCE_PD_R::new(((self.bits >> 15) & 1) != 0)
173    }
174    #[doc = "Bit 16 - Set this bit to FPU the RTC slow memory."]
175    #[inline(always)]
176    pub fn slowmem_force_pu(&self) -> SLOWMEM_FORCE_PU_R {
177        SLOWMEM_FORCE_PU_R::new(((self.bits >> 16) & 1) != 0)
178    }
179    #[doc = "Bit 17 - Set this bit to enable PD for the RTC slow memory in sleep."]
180    #[inline(always)]
181    pub fn slowmem_pd_en(&self) -> SLOWMEM_PD_EN_R {
182        SLOWMEM_PD_EN_R::new(((self.bits >> 17) & 1) != 0)
183    }
184    #[doc = "Bit 18 - Set this bit to FPD the RTC peripherals."]
185    #[inline(always)]
186    pub fn force_pd(&self) -> FORCE_PD_R {
187        FORCE_PD_R::new(((self.bits >> 18) & 1) != 0)
188    }
189    #[doc = "Bit 19 - Set this bit to FPU the RTC peripherals."]
190    #[inline(always)]
191    pub fn force_pu(&self) -> FORCE_PU_R {
192        FORCE_PU_R::new(((self.bits >> 19) & 1) != 0)
193    }
194    #[doc = "Bit 20 - Set this bit to enable PD for the RTC peripherals in sleep."]
195    #[inline(always)]
196    pub fn pd_en(&self) -> PD_EN_R {
197        PD_EN_R::new(((self.bits >> 20) & 1) != 0)
198    }
199    #[doc = "Bit 21 - Set this bit the force hold the RTC GPIOs."]
200    #[inline(always)]
201    pub fn pad_force_hold(&self) -> PAD_FORCE_HOLD_R {
202        PAD_FORCE_HOLD_R::new(((self.bits >> 21) & 1) != 0)
203    }
204}
205#[cfg(feature = "impl-register-debug")]
206impl core::fmt::Debug for R {
207    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
208        f.debug_struct("PWC")
209            .field("fastmem_force_noiso", &self.fastmem_force_noiso())
210            .field("fastmem_force_iso", &self.fastmem_force_iso())
211            .field("slowmem_force_noiso", &self.slowmem_force_noiso())
212            .field("slowmem_force_iso", &self.slowmem_force_iso())
213            .field("force_iso", &self.force_iso())
214            .field("force_noiso", &self.force_noiso())
215            .field("fastmem_folw_cpu", &self.fastmem_folw_cpu())
216            .field("fastmem_force_lpd", &self.fastmem_force_lpd())
217            .field("fastmem_force_lpu", &self.fastmem_force_lpu())
218            .field("slowmem_folw_cpu", &self.slowmem_folw_cpu())
219            .field("slowmem_force_lpd", &self.slowmem_force_lpd())
220            .field("slowmem_force_lpu", &self.slowmem_force_lpu())
221            .field("fastmem_force_pd", &self.fastmem_force_pd())
222            .field("fastmem_force_pu", &self.fastmem_force_pu())
223            .field("fastmem_pd_en", &self.fastmem_pd_en())
224            .field("slowmem_force_pd", &self.slowmem_force_pd())
225            .field("slowmem_force_pu", &self.slowmem_force_pu())
226            .field("slowmem_pd_en", &self.slowmem_pd_en())
227            .field("force_pd", &self.force_pd())
228            .field("force_pu", &self.force_pu())
229            .field("pd_en", &self.pd_en())
230            .field("pad_force_hold", &self.pad_force_hold())
231            .finish()
232    }
233}
234impl W {
235    #[doc = "Bit 0 - Set this bit to disable the force isolation to the RTC fast memory."]
236    #[inline(always)]
237    pub fn fastmem_force_noiso(&mut self) -> FASTMEM_FORCE_NOISO_W<PWC_SPEC> {
238        FASTMEM_FORCE_NOISO_W::new(self, 0)
239    }
240    #[doc = "Bit 1 - Set this bit to force isolate the RTC fast memory."]
241    #[inline(always)]
242    pub fn fastmem_force_iso(&mut self) -> FASTMEM_FORCE_ISO_W<PWC_SPEC> {
243        FASTMEM_FORCE_ISO_W::new(self, 1)
244    }
245    #[doc = "Bit 2 - Set this bit to disable the force isolation to the RTC slow memory."]
246    #[inline(always)]
247    pub fn slowmem_force_noiso(&mut self) -> SLOWMEM_FORCE_NOISO_W<PWC_SPEC> {
248        SLOWMEM_FORCE_NOISO_W::new(self, 2)
249    }
250    #[doc = "Bit 3 - Set this bit to force isolate the RTC slow memory."]
251    #[inline(always)]
252    pub fn slowmem_force_iso(&mut self) -> SLOWMEM_FORCE_ISO_W<PWC_SPEC> {
253        SLOWMEM_FORCE_ISO_W::new(self, 3)
254    }
255    #[doc = "Bit 4 - Set this bit to force isolate the RTC peripherals."]
256    #[inline(always)]
257    pub fn force_iso(&mut self) -> FORCE_ISO_W<PWC_SPEC> {
258        FORCE_ISO_W::new(self, 4)
259    }
260    #[doc = "Bit 5 - Set this bit to disable the force isolation to the RTC peripherals."]
261    #[inline(always)]
262    pub fn force_noiso(&mut self) -> FORCE_NOISO_W<PWC_SPEC> {
263        FORCE_NOISO_W::new(self, 5)
264    }
265    #[doc = "Bit 6 - Set 1 to FPD the RTC fast memory when the CPU is powered down. Set 0 to FPD the RTC fast memory when the RTC main state machine is powered down."]
266    #[inline(always)]
267    pub fn fastmem_folw_cpu(&mut self) -> FASTMEM_FOLW_CPU_W<PWC_SPEC> {
268        FASTMEM_FOLW_CPU_W::new(self, 6)
269    }
270    #[doc = "Bit 7 - Set this bit to force not retain the RTC fast memory."]
271    #[inline(always)]
272    pub fn fastmem_force_lpd(&mut self) -> FASTMEM_FORCE_LPD_W<PWC_SPEC> {
273        FASTMEM_FORCE_LPD_W::new(self, 7)
274    }
275    #[doc = "Bit 8 - Set this bit to force retain the RTC fast memory."]
276    #[inline(always)]
277    pub fn fastmem_force_lpu(&mut self) -> FASTMEM_FORCE_LPU_W<PWC_SPEC> {
278        FASTMEM_FORCE_LPU_W::new(self, 8)
279    }
280    #[doc = "Bit 9 - Set 1 to FPD the RTC slow memory when the CPU is powered down. Set 0 to FPD the RTC slow memory when the RTC main state machine is powered down."]
281    #[inline(always)]
282    pub fn slowmem_folw_cpu(&mut self) -> SLOWMEM_FOLW_CPU_W<PWC_SPEC> {
283        SLOWMEM_FOLW_CPU_W::new(self, 9)
284    }
285    #[doc = "Bit 10 - Set this bit to force not retain the RTC slow memory."]
286    #[inline(always)]
287    pub fn slowmem_force_lpd(&mut self) -> SLOWMEM_FORCE_LPD_W<PWC_SPEC> {
288        SLOWMEM_FORCE_LPD_W::new(self, 10)
289    }
290    #[doc = "Bit 11 - Set this bit to force retain the RTC slow memory."]
291    #[inline(always)]
292    pub fn slowmem_force_lpu(&mut self) -> SLOWMEM_FORCE_LPU_W<PWC_SPEC> {
293        SLOWMEM_FORCE_LPU_W::new(self, 11)
294    }
295    #[doc = "Bit 12 - Set this bit to FPD the RTC fast memory."]
296    #[inline(always)]
297    pub fn fastmem_force_pd(&mut self) -> FASTMEM_FORCE_PD_W<PWC_SPEC> {
298        FASTMEM_FORCE_PD_W::new(self, 12)
299    }
300    #[doc = "Bit 13 - Set this bit to FPU the RTC fast memory."]
301    #[inline(always)]
302    pub fn fastmem_force_pu(&mut self) -> FASTMEM_FORCE_PU_W<PWC_SPEC> {
303        FASTMEM_FORCE_PU_W::new(self, 13)
304    }
305    #[doc = "Bit 14 - Set this bit to enable PD for the RTC fast memory in sleep."]
306    #[inline(always)]
307    pub fn fastmem_pd_en(&mut self) -> FASTMEM_PD_EN_W<PWC_SPEC> {
308        FASTMEM_PD_EN_W::new(self, 14)
309    }
310    #[doc = "Bit 15 - Set this bit to FPD the RTC slow memory."]
311    #[inline(always)]
312    pub fn slowmem_force_pd(&mut self) -> SLOWMEM_FORCE_PD_W<PWC_SPEC> {
313        SLOWMEM_FORCE_PD_W::new(self, 15)
314    }
315    #[doc = "Bit 16 - Set this bit to FPU the RTC slow memory."]
316    #[inline(always)]
317    pub fn slowmem_force_pu(&mut self) -> SLOWMEM_FORCE_PU_W<PWC_SPEC> {
318        SLOWMEM_FORCE_PU_W::new(self, 16)
319    }
320    #[doc = "Bit 17 - Set this bit to enable PD for the RTC slow memory in sleep."]
321    #[inline(always)]
322    pub fn slowmem_pd_en(&mut self) -> SLOWMEM_PD_EN_W<PWC_SPEC> {
323        SLOWMEM_PD_EN_W::new(self, 17)
324    }
325    #[doc = "Bit 18 - Set this bit to FPD the RTC peripherals."]
326    #[inline(always)]
327    pub fn force_pd(&mut self) -> FORCE_PD_W<PWC_SPEC> {
328        FORCE_PD_W::new(self, 18)
329    }
330    #[doc = "Bit 19 - Set this bit to FPU the RTC peripherals."]
331    #[inline(always)]
332    pub fn force_pu(&mut self) -> FORCE_PU_W<PWC_SPEC> {
333        FORCE_PU_W::new(self, 19)
334    }
335    #[doc = "Bit 20 - Set this bit to enable PD for the RTC peripherals in sleep."]
336    #[inline(always)]
337    pub fn pd_en(&mut self) -> PD_EN_W<PWC_SPEC> {
338        PD_EN_W::new(self, 20)
339    }
340    #[doc = "Bit 21 - Set this bit the force hold the RTC GPIOs."]
341    #[inline(always)]
342    pub fn pad_force_hold(&mut self) -> PAD_FORCE_HOLD_W<PWC_SPEC> {
343        PAD_FORCE_HOLD_W::new(self, 21)
344    }
345}
346#[doc = "RTC power configuraiton register\n\nYou can [`read`](crate::Reg::read) this register and get [`pwc::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pwc::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
347pub struct PWC_SPEC;
348impl crate::RegisterSpec for PWC_SPEC {
349    type Ux = u32;
350}
351#[doc = "`read()` method returns [`pwc::R`](R) reader structure"]
352impl crate::Readable for PWC_SPEC {}
353#[doc = "`write(|w| ..)` method takes [`pwc::W`](W) writer structure"]
354impl crate::Writable for PWC_SPEC {
355    type Safety = crate::Unsafe;
356}
357#[doc = "`reset()` method sets PWC to value 0x0001_2925"]
358impl crate::Resettable for PWC_SPEC {
359    const RESET_VALUE: u32 = 0x0001_2925;
360}