esp32p4/hp_sys_clkrst/
hp_rst_en1.rs

1#[doc = "Register `HP_RST_EN1` reader"]
2pub type R = crate::R<HP_RST_EN1_SPEC>;
3#[doc = "Register `HP_RST_EN1` writer"]
4pub type W = crate::W<HP_RST_EN1_SPEC>;
5#[doc = "Field `RST_EN_PPA` reader - Reserved"]
6pub type RST_EN_PPA_R = crate::BitReader;
7#[doc = "Field `RST_EN_PPA` writer - Reserved"]
8pub type RST_EN_PPA_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `RST_EN_AHB_PDMA` reader - Reserved"]
10pub type RST_EN_AHB_PDMA_R = crate::BitReader;
11#[doc = "Field `RST_EN_AHB_PDMA` writer - Reserved"]
12pub type RST_EN_AHB_PDMA_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `RST_EN_AXI_PDMA` reader - Reserved"]
14pub type RST_EN_AXI_PDMA_R = crate::BitReader;
15#[doc = "Field `RST_EN_AXI_PDMA` writer - Reserved"]
16pub type RST_EN_AXI_PDMA_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `RST_EN_IOMUX` reader - Reserved"]
18pub type RST_EN_IOMUX_R = crate::BitReader;
19#[doc = "Field `RST_EN_IOMUX` writer - Reserved"]
20pub type RST_EN_IOMUX_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `RST_EN_PADBIST` reader - Reserved"]
22pub type RST_EN_PADBIST_R = crate::BitReader;
23#[doc = "Field `RST_EN_PADBIST` writer - Reserved"]
24pub type RST_EN_PADBIST_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `RST_EN_STIMER` reader - Reserved"]
26pub type RST_EN_STIMER_R = crate::BitReader;
27#[doc = "Field `RST_EN_STIMER` writer - Reserved"]
28pub type RST_EN_STIMER_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `RST_EN_TIMERGRP0` reader - Reserved"]
30pub type RST_EN_TIMERGRP0_R = crate::BitReader;
31#[doc = "Field `RST_EN_TIMERGRP0` writer - Reserved"]
32pub type RST_EN_TIMERGRP0_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `RST_EN_TIMERGRP1` reader - Reserved"]
34pub type RST_EN_TIMERGRP1_R = crate::BitReader;
35#[doc = "Field `RST_EN_TIMERGRP1` writer - Reserved"]
36pub type RST_EN_TIMERGRP1_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `RST_EN_UART0_CORE` reader - Reserved"]
38pub type RST_EN_UART0_CORE_R = crate::BitReader;
39#[doc = "Field `RST_EN_UART0_CORE` writer - Reserved"]
40pub type RST_EN_UART0_CORE_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `RST_EN_UART1_CORE` reader - Reserved"]
42pub type RST_EN_UART1_CORE_R = crate::BitReader;
43#[doc = "Field `RST_EN_UART1_CORE` writer - Reserved"]
44pub type RST_EN_UART1_CORE_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `RST_EN_UART2_CORE` reader - Reserved"]
46pub type RST_EN_UART2_CORE_R = crate::BitReader;
47#[doc = "Field `RST_EN_UART2_CORE` writer - Reserved"]
48pub type RST_EN_UART2_CORE_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `RST_EN_UART3_CORE` reader - Reserved"]
50pub type RST_EN_UART3_CORE_R = crate::BitReader;
51#[doc = "Field `RST_EN_UART3_CORE` writer - Reserved"]
52pub type RST_EN_UART3_CORE_W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `RST_EN_UART4_CORE` reader - Reserved"]
54pub type RST_EN_UART4_CORE_R = crate::BitReader;
55#[doc = "Field `RST_EN_UART4_CORE` writer - Reserved"]
56pub type RST_EN_UART4_CORE_W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `RST_EN_UART0_APB` reader - Reserved"]
58pub type RST_EN_UART0_APB_R = crate::BitReader;
59#[doc = "Field `RST_EN_UART0_APB` writer - Reserved"]
60pub type RST_EN_UART0_APB_W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `RST_EN_UART1_APB` reader - Reserved"]
62pub type RST_EN_UART1_APB_R = crate::BitReader;
63#[doc = "Field `RST_EN_UART1_APB` writer - Reserved"]
64pub type RST_EN_UART1_APB_W<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `RST_EN_UART2_APB` reader - Reserved"]
66pub type RST_EN_UART2_APB_R = crate::BitReader;
67#[doc = "Field `RST_EN_UART2_APB` writer - Reserved"]
68pub type RST_EN_UART2_APB_W<'a, REG> = crate::BitWriter<'a, REG>;
69#[doc = "Field `RST_EN_UART3_APB` reader - Reserved"]
70pub type RST_EN_UART3_APB_R = crate::BitReader;
71#[doc = "Field `RST_EN_UART3_APB` writer - Reserved"]
72pub type RST_EN_UART3_APB_W<'a, REG> = crate::BitWriter<'a, REG>;
73#[doc = "Field `RST_EN_UART4_APB` reader - Reserved"]
74pub type RST_EN_UART4_APB_R = crate::BitReader;
75#[doc = "Field `RST_EN_UART4_APB` writer - Reserved"]
76pub type RST_EN_UART4_APB_W<'a, REG> = crate::BitWriter<'a, REG>;
77#[doc = "Field `RST_EN_UHCI` reader - Reserved"]
78pub type RST_EN_UHCI_R = crate::BitReader;
79#[doc = "Field `RST_EN_UHCI` writer - Reserved"]
80pub type RST_EN_UHCI_W<'a, REG> = crate::BitWriter<'a, REG>;
81#[doc = "Field `RST_EN_I3CMST` reader - Reserved"]
82pub type RST_EN_I3CMST_R = crate::BitReader;
83#[doc = "Field `RST_EN_I3CMST` writer - Reserved"]
84pub type RST_EN_I3CMST_W<'a, REG> = crate::BitWriter<'a, REG>;
85#[doc = "Field `RST_EN_I3CSLV` reader - Reserved"]
86pub type RST_EN_I3CSLV_R = crate::BitReader;
87#[doc = "Field `RST_EN_I3CSLV` writer - Reserved"]
88pub type RST_EN_I3CSLV_W<'a, REG> = crate::BitWriter<'a, REG>;
89#[doc = "Field `RST_EN_I2C1` reader - Reserved"]
90pub type RST_EN_I2C1_R = crate::BitReader;
91#[doc = "Field `RST_EN_I2C1` writer - Reserved"]
92pub type RST_EN_I2C1_W<'a, REG> = crate::BitWriter<'a, REG>;
93#[doc = "Field `RST_EN_I2C0` reader - Reserved"]
94pub type RST_EN_I2C0_R = crate::BitReader;
95#[doc = "Field `RST_EN_I2C0` writer - Reserved"]
96pub type RST_EN_I2C0_W<'a, REG> = crate::BitWriter<'a, REG>;
97#[doc = "Field `RST_EN_RMT` reader - Reserved"]
98pub type RST_EN_RMT_R = crate::BitReader;
99#[doc = "Field `RST_EN_RMT` writer - Reserved"]
100pub type RST_EN_RMT_W<'a, REG> = crate::BitWriter<'a, REG>;
101#[doc = "Field `RST_EN_PWM0` reader - Reserved"]
102pub type RST_EN_PWM0_R = crate::BitReader;
103#[doc = "Field `RST_EN_PWM0` writer - Reserved"]
104pub type RST_EN_PWM0_W<'a, REG> = crate::BitWriter<'a, REG>;
105#[doc = "Field `RST_EN_PWM1` reader - Reserved"]
106pub type RST_EN_PWM1_R = crate::BitReader;
107#[doc = "Field `RST_EN_PWM1` writer - Reserved"]
108pub type RST_EN_PWM1_W<'a, REG> = crate::BitWriter<'a, REG>;
109#[doc = "Field `RST_EN_CAN0` reader - Reserved"]
110pub type RST_EN_CAN0_R = crate::BitReader;
111#[doc = "Field `RST_EN_CAN0` writer - Reserved"]
112pub type RST_EN_CAN0_W<'a, REG> = crate::BitWriter<'a, REG>;
113#[doc = "Field `RST_EN_CAN1` reader - Reserved"]
114pub type RST_EN_CAN1_R = crate::BitReader;
115#[doc = "Field `RST_EN_CAN1` writer - Reserved"]
116pub type RST_EN_CAN1_W<'a, REG> = crate::BitWriter<'a, REG>;
117#[doc = "Field `RST_EN_CAN2` reader - Reserved"]
118pub type RST_EN_CAN2_R = crate::BitReader;
119#[doc = "Field `RST_EN_CAN2` writer - Reserved"]
120pub type RST_EN_CAN2_W<'a, REG> = crate::BitWriter<'a, REG>;
121#[doc = "Field `RST_EN_LEDC` reader - Reserved"]
122pub type RST_EN_LEDC_R = crate::BitReader;
123#[doc = "Field `RST_EN_LEDC` writer - Reserved"]
124pub type RST_EN_LEDC_W<'a, REG> = crate::BitWriter<'a, REG>;
125#[doc = "Field `RST_EN_PCNT` reader - Reserved"]
126pub type RST_EN_PCNT_R = crate::BitReader;
127#[doc = "Field `RST_EN_PCNT` writer - Reserved"]
128pub type RST_EN_PCNT_W<'a, REG> = crate::BitWriter<'a, REG>;
129#[doc = "Field `RST_EN_ETM` reader - Reserved"]
130pub type RST_EN_ETM_R = crate::BitReader;
131#[doc = "Field `RST_EN_ETM` writer - Reserved"]
132pub type RST_EN_ETM_W<'a, REG> = crate::BitWriter<'a, REG>;
133impl R {
134    #[doc = "Bit 0 - Reserved"]
135    #[inline(always)]
136    pub fn rst_en_ppa(&self) -> RST_EN_PPA_R {
137        RST_EN_PPA_R::new((self.bits & 1) != 0)
138    }
139    #[doc = "Bit 1 - Reserved"]
140    #[inline(always)]
141    pub fn rst_en_ahb_pdma(&self) -> RST_EN_AHB_PDMA_R {
142        RST_EN_AHB_PDMA_R::new(((self.bits >> 1) & 1) != 0)
143    }
144    #[doc = "Bit 2 - Reserved"]
145    #[inline(always)]
146    pub fn rst_en_axi_pdma(&self) -> RST_EN_AXI_PDMA_R {
147        RST_EN_AXI_PDMA_R::new(((self.bits >> 2) & 1) != 0)
148    }
149    #[doc = "Bit 3 - Reserved"]
150    #[inline(always)]
151    pub fn rst_en_iomux(&self) -> RST_EN_IOMUX_R {
152        RST_EN_IOMUX_R::new(((self.bits >> 3) & 1) != 0)
153    }
154    #[doc = "Bit 4 - Reserved"]
155    #[inline(always)]
156    pub fn rst_en_padbist(&self) -> RST_EN_PADBIST_R {
157        RST_EN_PADBIST_R::new(((self.bits >> 4) & 1) != 0)
158    }
159    #[doc = "Bit 5 - Reserved"]
160    #[inline(always)]
161    pub fn rst_en_stimer(&self) -> RST_EN_STIMER_R {
162        RST_EN_STIMER_R::new(((self.bits >> 5) & 1) != 0)
163    }
164    #[doc = "Bit 6 - Reserved"]
165    #[inline(always)]
166    pub fn rst_en_timergrp0(&self) -> RST_EN_TIMERGRP0_R {
167        RST_EN_TIMERGRP0_R::new(((self.bits >> 6) & 1) != 0)
168    }
169    #[doc = "Bit 7 - Reserved"]
170    #[inline(always)]
171    pub fn rst_en_timergrp1(&self) -> RST_EN_TIMERGRP1_R {
172        RST_EN_TIMERGRP1_R::new(((self.bits >> 7) & 1) != 0)
173    }
174    #[doc = "Bit 8 - Reserved"]
175    #[inline(always)]
176    pub fn rst_en_uart0_core(&self) -> RST_EN_UART0_CORE_R {
177        RST_EN_UART0_CORE_R::new(((self.bits >> 8) & 1) != 0)
178    }
179    #[doc = "Bit 9 - Reserved"]
180    #[inline(always)]
181    pub fn rst_en_uart1_core(&self) -> RST_EN_UART1_CORE_R {
182        RST_EN_UART1_CORE_R::new(((self.bits >> 9) & 1) != 0)
183    }
184    #[doc = "Bit 10 - Reserved"]
185    #[inline(always)]
186    pub fn rst_en_uart2_core(&self) -> RST_EN_UART2_CORE_R {
187        RST_EN_UART2_CORE_R::new(((self.bits >> 10) & 1) != 0)
188    }
189    #[doc = "Bit 11 - Reserved"]
190    #[inline(always)]
191    pub fn rst_en_uart3_core(&self) -> RST_EN_UART3_CORE_R {
192        RST_EN_UART3_CORE_R::new(((self.bits >> 11) & 1) != 0)
193    }
194    #[doc = "Bit 12 - Reserved"]
195    #[inline(always)]
196    pub fn rst_en_uart4_core(&self) -> RST_EN_UART4_CORE_R {
197        RST_EN_UART4_CORE_R::new(((self.bits >> 12) & 1) != 0)
198    }
199    #[doc = "Bit 13 - Reserved"]
200    #[inline(always)]
201    pub fn rst_en_uart0_apb(&self) -> RST_EN_UART0_APB_R {
202        RST_EN_UART0_APB_R::new(((self.bits >> 13) & 1) != 0)
203    }
204    #[doc = "Bit 14 - Reserved"]
205    #[inline(always)]
206    pub fn rst_en_uart1_apb(&self) -> RST_EN_UART1_APB_R {
207        RST_EN_UART1_APB_R::new(((self.bits >> 14) & 1) != 0)
208    }
209    #[doc = "Bit 15 - Reserved"]
210    #[inline(always)]
211    pub fn rst_en_uart2_apb(&self) -> RST_EN_UART2_APB_R {
212        RST_EN_UART2_APB_R::new(((self.bits >> 15) & 1) != 0)
213    }
214    #[doc = "Bit 16 - Reserved"]
215    #[inline(always)]
216    pub fn rst_en_uart3_apb(&self) -> RST_EN_UART3_APB_R {
217        RST_EN_UART3_APB_R::new(((self.bits >> 16) & 1) != 0)
218    }
219    #[doc = "Bit 17 - Reserved"]
220    #[inline(always)]
221    pub fn rst_en_uart4_apb(&self) -> RST_EN_UART4_APB_R {
222        RST_EN_UART4_APB_R::new(((self.bits >> 17) & 1) != 0)
223    }
224    #[doc = "Bit 18 - Reserved"]
225    #[inline(always)]
226    pub fn rst_en_uhci(&self) -> RST_EN_UHCI_R {
227        RST_EN_UHCI_R::new(((self.bits >> 18) & 1) != 0)
228    }
229    #[doc = "Bit 19 - Reserved"]
230    #[inline(always)]
231    pub fn rst_en_i3cmst(&self) -> RST_EN_I3CMST_R {
232        RST_EN_I3CMST_R::new(((self.bits >> 19) & 1) != 0)
233    }
234    #[doc = "Bit 20 - Reserved"]
235    #[inline(always)]
236    pub fn rst_en_i3cslv(&self) -> RST_EN_I3CSLV_R {
237        RST_EN_I3CSLV_R::new(((self.bits >> 20) & 1) != 0)
238    }
239    #[doc = "Bit 21 - Reserved"]
240    #[inline(always)]
241    pub fn rst_en_i2c1(&self) -> RST_EN_I2C1_R {
242        RST_EN_I2C1_R::new(((self.bits >> 21) & 1) != 0)
243    }
244    #[doc = "Bit 22 - Reserved"]
245    #[inline(always)]
246    pub fn rst_en_i2c0(&self) -> RST_EN_I2C0_R {
247        RST_EN_I2C0_R::new(((self.bits >> 22) & 1) != 0)
248    }
249    #[doc = "Bit 23 - Reserved"]
250    #[inline(always)]
251    pub fn rst_en_rmt(&self) -> RST_EN_RMT_R {
252        RST_EN_RMT_R::new(((self.bits >> 23) & 1) != 0)
253    }
254    #[doc = "Bit 24 - Reserved"]
255    #[inline(always)]
256    pub fn rst_en_pwm0(&self) -> RST_EN_PWM0_R {
257        RST_EN_PWM0_R::new(((self.bits >> 24) & 1) != 0)
258    }
259    #[doc = "Bit 25 - Reserved"]
260    #[inline(always)]
261    pub fn rst_en_pwm1(&self) -> RST_EN_PWM1_R {
262        RST_EN_PWM1_R::new(((self.bits >> 25) & 1) != 0)
263    }
264    #[doc = "Bit 26 - Reserved"]
265    #[inline(always)]
266    pub fn rst_en_can0(&self) -> RST_EN_CAN0_R {
267        RST_EN_CAN0_R::new(((self.bits >> 26) & 1) != 0)
268    }
269    #[doc = "Bit 27 - Reserved"]
270    #[inline(always)]
271    pub fn rst_en_can1(&self) -> RST_EN_CAN1_R {
272        RST_EN_CAN1_R::new(((self.bits >> 27) & 1) != 0)
273    }
274    #[doc = "Bit 28 - Reserved"]
275    #[inline(always)]
276    pub fn rst_en_can2(&self) -> RST_EN_CAN2_R {
277        RST_EN_CAN2_R::new(((self.bits >> 28) & 1) != 0)
278    }
279    #[doc = "Bit 29 - Reserved"]
280    #[inline(always)]
281    pub fn rst_en_ledc(&self) -> RST_EN_LEDC_R {
282        RST_EN_LEDC_R::new(((self.bits >> 29) & 1) != 0)
283    }
284    #[doc = "Bit 30 - Reserved"]
285    #[inline(always)]
286    pub fn rst_en_pcnt(&self) -> RST_EN_PCNT_R {
287        RST_EN_PCNT_R::new(((self.bits >> 30) & 1) != 0)
288    }
289    #[doc = "Bit 31 - Reserved"]
290    #[inline(always)]
291    pub fn rst_en_etm(&self) -> RST_EN_ETM_R {
292        RST_EN_ETM_R::new(((self.bits >> 31) & 1) != 0)
293    }
294}
295#[cfg(feature = "impl-register-debug")]
296impl core::fmt::Debug for R {
297    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
298        f.debug_struct("HP_RST_EN1")
299            .field("rst_en_ppa", &format_args!("{}", self.rst_en_ppa().bit()))
300            .field(
301                "rst_en_ahb_pdma",
302                &format_args!("{}", self.rst_en_ahb_pdma().bit()),
303            )
304            .field(
305                "rst_en_axi_pdma",
306                &format_args!("{}", self.rst_en_axi_pdma().bit()),
307            )
308            .field(
309                "rst_en_iomux",
310                &format_args!("{}", self.rst_en_iomux().bit()),
311            )
312            .field(
313                "rst_en_padbist",
314                &format_args!("{}", self.rst_en_padbist().bit()),
315            )
316            .field(
317                "rst_en_stimer",
318                &format_args!("{}", self.rst_en_stimer().bit()),
319            )
320            .field(
321                "rst_en_timergrp0",
322                &format_args!("{}", self.rst_en_timergrp0().bit()),
323            )
324            .field(
325                "rst_en_timergrp1",
326                &format_args!("{}", self.rst_en_timergrp1().bit()),
327            )
328            .field(
329                "rst_en_uart0_core",
330                &format_args!("{}", self.rst_en_uart0_core().bit()),
331            )
332            .field(
333                "rst_en_uart1_core",
334                &format_args!("{}", self.rst_en_uart1_core().bit()),
335            )
336            .field(
337                "rst_en_uart2_core",
338                &format_args!("{}", self.rst_en_uart2_core().bit()),
339            )
340            .field(
341                "rst_en_uart3_core",
342                &format_args!("{}", self.rst_en_uart3_core().bit()),
343            )
344            .field(
345                "rst_en_uart4_core",
346                &format_args!("{}", self.rst_en_uart4_core().bit()),
347            )
348            .field(
349                "rst_en_uart0_apb",
350                &format_args!("{}", self.rst_en_uart0_apb().bit()),
351            )
352            .field(
353                "rst_en_uart1_apb",
354                &format_args!("{}", self.rst_en_uart1_apb().bit()),
355            )
356            .field(
357                "rst_en_uart2_apb",
358                &format_args!("{}", self.rst_en_uart2_apb().bit()),
359            )
360            .field(
361                "rst_en_uart3_apb",
362                &format_args!("{}", self.rst_en_uart3_apb().bit()),
363            )
364            .field(
365                "rst_en_uart4_apb",
366                &format_args!("{}", self.rst_en_uart4_apb().bit()),
367            )
368            .field("rst_en_uhci", &format_args!("{}", self.rst_en_uhci().bit()))
369            .field(
370                "rst_en_i3cmst",
371                &format_args!("{}", self.rst_en_i3cmst().bit()),
372            )
373            .field(
374                "rst_en_i3cslv",
375                &format_args!("{}", self.rst_en_i3cslv().bit()),
376            )
377            .field("rst_en_i2c1", &format_args!("{}", self.rst_en_i2c1().bit()))
378            .field("rst_en_i2c0", &format_args!("{}", self.rst_en_i2c0().bit()))
379            .field("rst_en_rmt", &format_args!("{}", self.rst_en_rmt().bit()))
380            .field("rst_en_pwm0", &format_args!("{}", self.rst_en_pwm0().bit()))
381            .field("rst_en_pwm1", &format_args!("{}", self.rst_en_pwm1().bit()))
382            .field("rst_en_can0", &format_args!("{}", self.rst_en_can0().bit()))
383            .field("rst_en_can1", &format_args!("{}", self.rst_en_can1().bit()))
384            .field("rst_en_can2", &format_args!("{}", self.rst_en_can2().bit()))
385            .field("rst_en_ledc", &format_args!("{}", self.rst_en_ledc().bit()))
386            .field("rst_en_pcnt", &format_args!("{}", self.rst_en_pcnt().bit()))
387            .field("rst_en_etm", &format_args!("{}", self.rst_en_etm().bit()))
388            .finish()
389    }
390}
391#[cfg(feature = "impl-register-debug")]
392impl core::fmt::Debug for crate::generic::Reg<HP_RST_EN1_SPEC> {
393    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
394        core::fmt::Debug::fmt(&self.read(), f)
395    }
396}
397impl W {
398    #[doc = "Bit 0 - Reserved"]
399    #[inline(always)]
400    #[must_use]
401    pub fn rst_en_ppa(&mut self) -> RST_EN_PPA_W<HP_RST_EN1_SPEC> {
402        RST_EN_PPA_W::new(self, 0)
403    }
404    #[doc = "Bit 1 - Reserved"]
405    #[inline(always)]
406    #[must_use]
407    pub fn rst_en_ahb_pdma(&mut self) -> RST_EN_AHB_PDMA_W<HP_RST_EN1_SPEC> {
408        RST_EN_AHB_PDMA_W::new(self, 1)
409    }
410    #[doc = "Bit 2 - Reserved"]
411    #[inline(always)]
412    #[must_use]
413    pub fn rst_en_axi_pdma(&mut self) -> RST_EN_AXI_PDMA_W<HP_RST_EN1_SPEC> {
414        RST_EN_AXI_PDMA_W::new(self, 2)
415    }
416    #[doc = "Bit 3 - Reserved"]
417    #[inline(always)]
418    #[must_use]
419    pub fn rst_en_iomux(&mut self) -> RST_EN_IOMUX_W<HP_RST_EN1_SPEC> {
420        RST_EN_IOMUX_W::new(self, 3)
421    }
422    #[doc = "Bit 4 - Reserved"]
423    #[inline(always)]
424    #[must_use]
425    pub fn rst_en_padbist(&mut self) -> RST_EN_PADBIST_W<HP_RST_EN1_SPEC> {
426        RST_EN_PADBIST_W::new(self, 4)
427    }
428    #[doc = "Bit 5 - Reserved"]
429    #[inline(always)]
430    #[must_use]
431    pub fn rst_en_stimer(&mut self) -> RST_EN_STIMER_W<HP_RST_EN1_SPEC> {
432        RST_EN_STIMER_W::new(self, 5)
433    }
434    #[doc = "Bit 6 - Reserved"]
435    #[inline(always)]
436    #[must_use]
437    pub fn rst_en_timergrp0(&mut self) -> RST_EN_TIMERGRP0_W<HP_RST_EN1_SPEC> {
438        RST_EN_TIMERGRP0_W::new(self, 6)
439    }
440    #[doc = "Bit 7 - Reserved"]
441    #[inline(always)]
442    #[must_use]
443    pub fn rst_en_timergrp1(&mut self) -> RST_EN_TIMERGRP1_W<HP_RST_EN1_SPEC> {
444        RST_EN_TIMERGRP1_W::new(self, 7)
445    }
446    #[doc = "Bit 8 - Reserved"]
447    #[inline(always)]
448    #[must_use]
449    pub fn rst_en_uart0_core(&mut self) -> RST_EN_UART0_CORE_W<HP_RST_EN1_SPEC> {
450        RST_EN_UART0_CORE_W::new(self, 8)
451    }
452    #[doc = "Bit 9 - Reserved"]
453    #[inline(always)]
454    #[must_use]
455    pub fn rst_en_uart1_core(&mut self) -> RST_EN_UART1_CORE_W<HP_RST_EN1_SPEC> {
456        RST_EN_UART1_CORE_W::new(self, 9)
457    }
458    #[doc = "Bit 10 - Reserved"]
459    #[inline(always)]
460    #[must_use]
461    pub fn rst_en_uart2_core(&mut self) -> RST_EN_UART2_CORE_W<HP_RST_EN1_SPEC> {
462        RST_EN_UART2_CORE_W::new(self, 10)
463    }
464    #[doc = "Bit 11 - Reserved"]
465    #[inline(always)]
466    #[must_use]
467    pub fn rst_en_uart3_core(&mut self) -> RST_EN_UART3_CORE_W<HP_RST_EN1_SPEC> {
468        RST_EN_UART3_CORE_W::new(self, 11)
469    }
470    #[doc = "Bit 12 - Reserved"]
471    #[inline(always)]
472    #[must_use]
473    pub fn rst_en_uart4_core(&mut self) -> RST_EN_UART4_CORE_W<HP_RST_EN1_SPEC> {
474        RST_EN_UART4_CORE_W::new(self, 12)
475    }
476    #[doc = "Bit 13 - Reserved"]
477    #[inline(always)]
478    #[must_use]
479    pub fn rst_en_uart0_apb(&mut self) -> RST_EN_UART0_APB_W<HP_RST_EN1_SPEC> {
480        RST_EN_UART0_APB_W::new(self, 13)
481    }
482    #[doc = "Bit 14 - Reserved"]
483    #[inline(always)]
484    #[must_use]
485    pub fn rst_en_uart1_apb(&mut self) -> RST_EN_UART1_APB_W<HP_RST_EN1_SPEC> {
486        RST_EN_UART1_APB_W::new(self, 14)
487    }
488    #[doc = "Bit 15 - Reserved"]
489    #[inline(always)]
490    #[must_use]
491    pub fn rst_en_uart2_apb(&mut self) -> RST_EN_UART2_APB_W<HP_RST_EN1_SPEC> {
492        RST_EN_UART2_APB_W::new(self, 15)
493    }
494    #[doc = "Bit 16 - Reserved"]
495    #[inline(always)]
496    #[must_use]
497    pub fn rst_en_uart3_apb(&mut self) -> RST_EN_UART3_APB_W<HP_RST_EN1_SPEC> {
498        RST_EN_UART3_APB_W::new(self, 16)
499    }
500    #[doc = "Bit 17 - Reserved"]
501    #[inline(always)]
502    #[must_use]
503    pub fn rst_en_uart4_apb(&mut self) -> RST_EN_UART4_APB_W<HP_RST_EN1_SPEC> {
504        RST_EN_UART4_APB_W::new(self, 17)
505    }
506    #[doc = "Bit 18 - Reserved"]
507    #[inline(always)]
508    #[must_use]
509    pub fn rst_en_uhci(&mut self) -> RST_EN_UHCI_W<HP_RST_EN1_SPEC> {
510        RST_EN_UHCI_W::new(self, 18)
511    }
512    #[doc = "Bit 19 - Reserved"]
513    #[inline(always)]
514    #[must_use]
515    pub fn rst_en_i3cmst(&mut self) -> RST_EN_I3CMST_W<HP_RST_EN1_SPEC> {
516        RST_EN_I3CMST_W::new(self, 19)
517    }
518    #[doc = "Bit 20 - Reserved"]
519    #[inline(always)]
520    #[must_use]
521    pub fn rst_en_i3cslv(&mut self) -> RST_EN_I3CSLV_W<HP_RST_EN1_SPEC> {
522        RST_EN_I3CSLV_W::new(self, 20)
523    }
524    #[doc = "Bit 21 - Reserved"]
525    #[inline(always)]
526    #[must_use]
527    pub fn rst_en_i2c1(&mut self) -> RST_EN_I2C1_W<HP_RST_EN1_SPEC> {
528        RST_EN_I2C1_W::new(self, 21)
529    }
530    #[doc = "Bit 22 - Reserved"]
531    #[inline(always)]
532    #[must_use]
533    pub fn rst_en_i2c0(&mut self) -> RST_EN_I2C0_W<HP_RST_EN1_SPEC> {
534        RST_EN_I2C0_W::new(self, 22)
535    }
536    #[doc = "Bit 23 - Reserved"]
537    #[inline(always)]
538    #[must_use]
539    pub fn rst_en_rmt(&mut self) -> RST_EN_RMT_W<HP_RST_EN1_SPEC> {
540        RST_EN_RMT_W::new(self, 23)
541    }
542    #[doc = "Bit 24 - Reserved"]
543    #[inline(always)]
544    #[must_use]
545    pub fn rst_en_pwm0(&mut self) -> RST_EN_PWM0_W<HP_RST_EN1_SPEC> {
546        RST_EN_PWM0_W::new(self, 24)
547    }
548    #[doc = "Bit 25 - Reserved"]
549    #[inline(always)]
550    #[must_use]
551    pub fn rst_en_pwm1(&mut self) -> RST_EN_PWM1_W<HP_RST_EN1_SPEC> {
552        RST_EN_PWM1_W::new(self, 25)
553    }
554    #[doc = "Bit 26 - Reserved"]
555    #[inline(always)]
556    #[must_use]
557    pub fn rst_en_can0(&mut self) -> RST_EN_CAN0_W<HP_RST_EN1_SPEC> {
558        RST_EN_CAN0_W::new(self, 26)
559    }
560    #[doc = "Bit 27 - Reserved"]
561    #[inline(always)]
562    #[must_use]
563    pub fn rst_en_can1(&mut self) -> RST_EN_CAN1_W<HP_RST_EN1_SPEC> {
564        RST_EN_CAN1_W::new(self, 27)
565    }
566    #[doc = "Bit 28 - Reserved"]
567    #[inline(always)]
568    #[must_use]
569    pub fn rst_en_can2(&mut self) -> RST_EN_CAN2_W<HP_RST_EN1_SPEC> {
570        RST_EN_CAN2_W::new(self, 28)
571    }
572    #[doc = "Bit 29 - Reserved"]
573    #[inline(always)]
574    #[must_use]
575    pub fn rst_en_ledc(&mut self) -> RST_EN_LEDC_W<HP_RST_EN1_SPEC> {
576        RST_EN_LEDC_W::new(self, 29)
577    }
578    #[doc = "Bit 30 - Reserved"]
579    #[inline(always)]
580    #[must_use]
581    pub fn rst_en_pcnt(&mut self) -> RST_EN_PCNT_W<HP_RST_EN1_SPEC> {
582        RST_EN_PCNT_W::new(self, 30)
583    }
584    #[doc = "Bit 31 - Reserved"]
585    #[inline(always)]
586    #[must_use]
587    pub fn rst_en_etm(&mut self) -> RST_EN_ETM_W<HP_RST_EN1_SPEC> {
588        RST_EN_ETM_W::new(self, 31)
589    }
590}
591#[doc = "Reserved\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`hp_rst_en1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`hp_rst_en1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
592pub struct HP_RST_EN1_SPEC;
593impl crate::RegisterSpec for HP_RST_EN1_SPEC {
594    type Ux = u32;
595}
596#[doc = "`read()` method returns [`hp_rst_en1::R`](R) reader structure"]
597impl crate::Readable for HP_RST_EN1_SPEC {}
598#[doc = "`write(|w| ..)` method takes [`hp_rst_en1::W`](W) writer structure"]
599impl crate::Writable for HP_RST_EN1_SPEC {
600    type Safety = crate::Unsafe;
601    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
602    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
603}
604#[doc = "`reset()` method sets HP_RST_EN1 to value 0"]
605impl crate::Resettable for HP_RST_EN1_SPEC {
606    const RESET_VALUE: u32 = 0;
607}