esp32c3/system/
perip_rst_en0.rs

1#[doc = "Register `PERIP_RST_EN0` reader"]
2pub type R = crate::R<PERIP_RST_EN0_SPEC>;
3#[doc = "Register `PERIP_RST_EN0` writer"]
4pub type W = crate::W<PERIP_RST_EN0_SPEC>;
5#[doc = "Field `TIMERS_RST` reader - reg_timers_rst"]
6pub type TIMERS_RST_R = crate::BitReader;
7#[doc = "Field `TIMERS_RST` writer - reg_timers_rst"]
8pub type TIMERS_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `SPI01_RST` reader - reg_spi01_rst"]
10pub type SPI01_RST_R = crate::BitReader;
11#[doc = "Field `SPI01_RST` writer - reg_spi01_rst"]
12pub type SPI01_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `UART_RST` reader - reg_uart_rst"]
14pub type UART_RST_R = crate::BitReader;
15#[doc = "Field `UART_RST` writer - reg_uart_rst"]
16pub type UART_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `WDG_RST` reader - reg_wdg_rst"]
18pub type WDG_RST_R = crate::BitReader;
19#[doc = "Field `WDG_RST` writer - reg_wdg_rst"]
20pub type WDG_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `I2S0_RST` reader - reg_i2s0_rst"]
22pub type I2S0_RST_R = crate::BitReader;
23#[doc = "Field `I2S0_RST` writer - reg_i2s0_rst"]
24pub type I2S0_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `UART1_RST` reader - reg_uart1_rst"]
26pub type UART1_RST_R = crate::BitReader;
27#[doc = "Field `UART1_RST` writer - reg_uart1_rst"]
28pub type UART1_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `SPI2_RST` reader - reg_spi2_rst"]
30pub type SPI2_RST_R = crate::BitReader;
31#[doc = "Field `SPI2_RST` writer - reg_spi2_rst"]
32pub type SPI2_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `I2C_EXT0_RST` reader - reg_ext0_rst"]
34pub type I2C_EXT0_RST_R = crate::BitReader;
35#[doc = "Field `I2C_EXT0_RST` writer - reg_ext0_rst"]
36pub type I2C_EXT0_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `UHCI0_RST` reader - reg_uhci0_rst"]
38pub type UHCI0_RST_R = crate::BitReader;
39#[doc = "Field `UHCI0_RST` writer - reg_uhci0_rst"]
40pub type UHCI0_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `RMT_RST` reader - reg_rmt_rst"]
42pub type RMT_RST_R = crate::BitReader;
43#[doc = "Field `RMT_RST` writer - reg_rmt_rst"]
44pub type RMT_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `PCNT_RST` reader - reg_pcnt_rst"]
46pub type PCNT_RST_R = crate::BitReader;
47#[doc = "Field `PCNT_RST` writer - reg_pcnt_rst"]
48pub type PCNT_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `LEDC_RST` reader - reg_ledc_rst"]
50pub type LEDC_RST_R = crate::BitReader;
51#[doc = "Field `LEDC_RST` writer - reg_ledc_rst"]
52pub type LEDC_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `UHCI1_RST` reader - reg_uhci1_rst"]
54pub type UHCI1_RST_R = crate::BitReader;
55#[doc = "Field `UHCI1_RST` writer - reg_uhci1_rst"]
56pub type UHCI1_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `TIMERGROUP_RST` reader - reg_timergroup_rst"]
58pub type TIMERGROUP_RST_R = crate::BitReader;
59#[doc = "Field `TIMERGROUP_RST` writer - reg_timergroup_rst"]
60pub type TIMERGROUP_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `EFUSE_RST` reader - reg_efuse_rst"]
62pub type EFUSE_RST_R = crate::BitReader;
63#[doc = "Field `EFUSE_RST` writer - reg_efuse_rst"]
64pub type EFUSE_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `TIMERGROUP1_RST` reader - reg_timergroup1_rst"]
66pub type TIMERGROUP1_RST_R = crate::BitReader;
67#[doc = "Field `TIMERGROUP1_RST` writer - reg_timergroup1_rst"]
68pub type TIMERGROUP1_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
69#[doc = "Field `SPI3_RST` reader - reg_spi3_rst"]
70pub type SPI3_RST_R = crate::BitReader;
71#[doc = "Field `SPI3_RST` writer - reg_spi3_rst"]
72pub type SPI3_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
73#[doc = "Field `PWM0_RST` reader - reg_pwm0_rst"]
74pub type PWM0_RST_R = crate::BitReader;
75#[doc = "Field `PWM0_RST` writer - reg_pwm0_rst"]
76pub type PWM0_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
77#[doc = "Field `EXT1_RST` reader - reg_ext1_rst"]
78pub type EXT1_RST_R = crate::BitReader;
79#[doc = "Field `EXT1_RST` writer - reg_ext1_rst"]
80pub type EXT1_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
81#[doc = "Field `TWAI_RST` reader - reg_can_rst"]
82pub type TWAI_RST_R = crate::BitReader;
83#[doc = "Field `TWAI_RST` writer - reg_can_rst"]
84pub type TWAI_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
85#[doc = "Field `PWM1_RST` reader - reg_pwm1_rst"]
86pub type PWM1_RST_R = crate::BitReader;
87#[doc = "Field `PWM1_RST` writer - reg_pwm1_rst"]
88pub type PWM1_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
89#[doc = "Field `I2S1_RST` reader - reg_i2s1_rst"]
90pub type I2S1_RST_R = crate::BitReader;
91#[doc = "Field `I2S1_RST` writer - reg_i2s1_rst"]
92pub type I2S1_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
93#[doc = "Field `SPI2_DMA_RST` reader - reg_spi2_dma_rst"]
94pub type SPI2_DMA_RST_R = crate::BitReader;
95#[doc = "Field `SPI2_DMA_RST` writer - reg_spi2_dma_rst"]
96pub type SPI2_DMA_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
97#[doc = "Field `USB_DEVICE_RST` reader - reg_usb_device_rst"]
98pub type USB_DEVICE_RST_R = crate::BitReader;
99#[doc = "Field `USB_DEVICE_RST` writer - reg_usb_device_rst"]
100pub type USB_DEVICE_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
101#[doc = "Field `UART_MEM_RST` reader - reg_uart_mem_rst"]
102pub type UART_MEM_RST_R = crate::BitReader;
103#[doc = "Field `UART_MEM_RST` writer - reg_uart_mem_rst"]
104pub type UART_MEM_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
105#[doc = "Field `PWM2_RST` reader - reg_pwm2_rst"]
106pub type PWM2_RST_R = crate::BitReader;
107#[doc = "Field `PWM2_RST` writer - reg_pwm2_rst"]
108pub type PWM2_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
109#[doc = "Field `PWM3_RST` reader - reg_pwm3_rst"]
110pub type PWM3_RST_R = crate::BitReader;
111#[doc = "Field `PWM3_RST` writer - reg_pwm3_rst"]
112pub type PWM3_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
113#[doc = "Field `SPI3_DMA_RST` reader - reg_spi3_dma_rst"]
114pub type SPI3_DMA_RST_R = crate::BitReader;
115#[doc = "Field `SPI3_DMA_RST` writer - reg_spi3_dma_rst"]
116pub type SPI3_DMA_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
117#[doc = "Field `APB_SARADC_RST` reader - reg_apb_saradc_rst"]
118pub type APB_SARADC_RST_R = crate::BitReader;
119#[doc = "Field `APB_SARADC_RST` writer - reg_apb_saradc_rst"]
120pub type APB_SARADC_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
121#[doc = "Field `SYSTIMER_RST` reader - reg_systimer_rst"]
122pub type SYSTIMER_RST_R = crate::BitReader;
123#[doc = "Field `SYSTIMER_RST` writer - reg_systimer_rst"]
124pub type SYSTIMER_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
125#[doc = "Field `ADC2_ARB_RST` reader - reg_adc2_arb_rst"]
126pub type ADC2_ARB_RST_R = crate::BitReader;
127#[doc = "Field `ADC2_ARB_RST` writer - reg_adc2_arb_rst"]
128pub type ADC2_ARB_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
129#[doc = "Field `SPI4_RST` reader - reg_spi4_rst"]
130pub type SPI4_RST_R = crate::BitReader;
131#[doc = "Field `SPI4_RST` writer - reg_spi4_rst"]
132pub type SPI4_RST_W<'a, REG> = crate::BitWriter<'a, REG>;
133impl R {
134    #[doc = "Bit 0 - reg_timers_rst"]
135    #[inline(always)]
136    pub fn timers_rst(&self) -> TIMERS_RST_R {
137        TIMERS_RST_R::new((self.bits & 1) != 0)
138    }
139    #[doc = "Bit 1 - reg_spi01_rst"]
140    #[inline(always)]
141    pub fn spi01_rst(&self) -> SPI01_RST_R {
142        SPI01_RST_R::new(((self.bits >> 1) & 1) != 0)
143    }
144    #[doc = "Bit 2 - reg_uart_rst"]
145    #[inline(always)]
146    pub fn uart_rst(&self) -> UART_RST_R {
147        UART_RST_R::new(((self.bits >> 2) & 1) != 0)
148    }
149    #[doc = "Bit 3 - reg_wdg_rst"]
150    #[inline(always)]
151    pub fn wdg_rst(&self) -> WDG_RST_R {
152        WDG_RST_R::new(((self.bits >> 3) & 1) != 0)
153    }
154    #[doc = "Bit 4 - reg_i2s0_rst"]
155    #[inline(always)]
156    pub fn i2s0_rst(&self) -> I2S0_RST_R {
157        I2S0_RST_R::new(((self.bits >> 4) & 1) != 0)
158    }
159    #[doc = "Bit 5 - reg_uart1_rst"]
160    #[inline(always)]
161    pub fn uart1_rst(&self) -> UART1_RST_R {
162        UART1_RST_R::new(((self.bits >> 5) & 1) != 0)
163    }
164    #[doc = "Bit 6 - reg_spi2_rst"]
165    #[inline(always)]
166    pub fn spi2_rst(&self) -> SPI2_RST_R {
167        SPI2_RST_R::new(((self.bits >> 6) & 1) != 0)
168    }
169    #[doc = "Bit 7 - reg_ext0_rst"]
170    #[inline(always)]
171    pub fn i2c_ext0_rst(&self) -> I2C_EXT0_RST_R {
172        I2C_EXT0_RST_R::new(((self.bits >> 7) & 1) != 0)
173    }
174    #[doc = "Bit 8 - reg_uhci0_rst"]
175    #[inline(always)]
176    pub fn uhci0_rst(&self) -> UHCI0_RST_R {
177        UHCI0_RST_R::new(((self.bits >> 8) & 1) != 0)
178    }
179    #[doc = "Bit 9 - reg_rmt_rst"]
180    #[inline(always)]
181    pub fn rmt_rst(&self) -> RMT_RST_R {
182        RMT_RST_R::new(((self.bits >> 9) & 1) != 0)
183    }
184    #[doc = "Bit 10 - reg_pcnt_rst"]
185    #[inline(always)]
186    pub fn pcnt_rst(&self) -> PCNT_RST_R {
187        PCNT_RST_R::new(((self.bits >> 10) & 1) != 0)
188    }
189    #[doc = "Bit 11 - reg_ledc_rst"]
190    #[inline(always)]
191    pub fn ledc_rst(&self) -> LEDC_RST_R {
192        LEDC_RST_R::new(((self.bits >> 11) & 1) != 0)
193    }
194    #[doc = "Bit 12 - reg_uhci1_rst"]
195    #[inline(always)]
196    pub fn uhci1_rst(&self) -> UHCI1_RST_R {
197        UHCI1_RST_R::new(((self.bits >> 12) & 1) != 0)
198    }
199    #[doc = "Bit 13 - reg_timergroup_rst"]
200    #[inline(always)]
201    pub fn timergroup_rst(&self) -> TIMERGROUP_RST_R {
202        TIMERGROUP_RST_R::new(((self.bits >> 13) & 1) != 0)
203    }
204    #[doc = "Bit 14 - reg_efuse_rst"]
205    #[inline(always)]
206    pub fn efuse_rst(&self) -> EFUSE_RST_R {
207        EFUSE_RST_R::new(((self.bits >> 14) & 1) != 0)
208    }
209    #[doc = "Bit 15 - reg_timergroup1_rst"]
210    #[inline(always)]
211    pub fn timergroup1_rst(&self) -> TIMERGROUP1_RST_R {
212        TIMERGROUP1_RST_R::new(((self.bits >> 15) & 1) != 0)
213    }
214    #[doc = "Bit 16 - reg_spi3_rst"]
215    #[inline(always)]
216    pub fn spi3_rst(&self) -> SPI3_RST_R {
217        SPI3_RST_R::new(((self.bits >> 16) & 1) != 0)
218    }
219    #[doc = "Bit 17 - reg_pwm0_rst"]
220    #[inline(always)]
221    pub fn pwm0_rst(&self) -> PWM0_RST_R {
222        PWM0_RST_R::new(((self.bits >> 17) & 1) != 0)
223    }
224    #[doc = "Bit 18 - reg_ext1_rst"]
225    #[inline(always)]
226    pub fn ext1_rst(&self) -> EXT1_RST_R {
227        EXT1_RST_R::new(((self.bits >> 18) & 1) != 0)
228    }
229    #[doc = "Bit 19 - reg_can_rst"]
230    #[inline(always)]
231    pub fn twai_rst(&self) -> TWAI_RST_R {
232        TWAI_RST_R::new(((self.bits >> 19) & 1) != 0)
233    }
234    #[doc = "Bit 20 - reg_pwm1_rst"]
235    #[inline(always)]
236    pub fn pwm1_rst(&self) -> PWM1_RST_R {
237        PWM1_RST_R::new(((self.bits >> 20) & 1) != 0)
238    }
239    #[doc = "Bit 21 - reg_i2s1_rst"]
240    #[inline(always)]
241    pub fn i2s1_rst(&self) -> I2S1_RST_R {
242        I2S1_RST_R::new(((self.bits >> 21) & 1) != 0)
243    }
244    #[doc = "Bit 22 - reg_spi2_dma_rst"]
245    #[inline(always)]
246    pub fn spi2_dma_rst(&self) -> SPI2_DMA_RST_R {
247        SPI2_DMA_RST_R::new(((self.bits >> 22) & 1) != 0)
248    }
249    #[doc = "Bit 23 - reg_usb_device_rst"]
250    #[inline(always)]
251    pub fn usb_device_rst(&self) -> USB_DEVICE_RST_R {
252        USB_DEVICE_RST_R::new(((self.bits >> 23) & 1) != 0)
253    }
254    #[doc = "Bit 24 - reg_uart_mem_rst"]
255    #[inline(always)]
256    pub fn uart_mem_rst(&self) -> UART_MEM_RST_R {
257        UART_MEM_RST_R::new(((self.bits >> 24) & 1) != 0)
258    }
259    #[doc = "Bit 25 - reg_pwm2_rst"]
260    #[inline(always)]
261    pub fn pwm2_rst(&self) -> PWM2_RST_R {
262        PWM2_RST_R::new(((self.bits >> 25) & 1) != 0)
263    }
264    #[doc = "Bit 26 - reg_pwm3_rst"]
265    #[inline(always)]
266    pub fn pwm3_rst(&self) -> PWM3_RST_R {
267        PWM3_RST_R::new(((self.bits >> 26) & 1) != 0)
268    }
269    #[doc = "Bit 27 - reg_spi3_dma_rst"]
270    #[inline(always)]
271    pub fn spi3_dma_rst(&self) -> SPI3_DMA_RST_R {
272        SPI3_DMA_RST_R::new(((self.bits >> 27) & 1) != 0)
273    }
274    #[doc = "Bit 28 - reg_apb_saradc_rst"]
275    #[inline(always)]
276    pub fn apb_saradc_rst(&self) -> APB_SARADC_RST_R {
277        APB_SARADC_RST_R::new(((self.bits >> 28) & 1) != 0)
278    }
279    #[doc = "Bit 29 - reg_systimer_rst"]
280    #[inline(always)]
281    pub fn systimer_rst(&self) -> SYSTIMER_RST_R {
282        SYSTIMER_RST_R::new(((self.bits >> 29) & 1) != 0)
283    }
284    #[doc = "Bit 30 - reg_adc2_arb_rst"]
285    #[inline(always)]
286    pub fn adc2_arb_rst(&self) -> ADC2_ARB_RST_R {
287        ADC2_ARB_RST_R::new(((self.bits >> 30) & 1) != 0)
288    }
289    #[doc = "Bit 31 - reg_spi4_rst"]
290    #[inline(always)]
291    pub fn spi4_rst(&self) -> SPI4_RST_R {
292        SPI4_RST_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("PERIP_RST_EN0")
299            .field("timers_rst", &self.timers_rst())
300            .field("spi01_rst", &self.spi01_rst())
301            .field("uart_rst", &self.uart_rst())
302            .field("wdg_rst", &self.wdg_rst())
303            .field("i2s0_rst", &self.i2s0_rst())
304            .field("uart1_rst", &self.uart1_rst())
305            .field("spi2_rst", &self.spi2_rst())
306            .field("i2c_ext0_rst", &self.i2c_ext0_rst())
307            .field("uhci0_rst", &self.uhci0_rst())
308            .field("rmt_rst", &self.rmt_rst())
309            .field("pcnt_rst", &self.pcnt_rst())
310            .field("ledc_rst", &self.ledc_rst())
311            .field("uhci1_rst", &self.uhci1_rst())
312            .field("timergroup_rst", &self.timergroup_rst())
313            .field("efuse_rst", &self.efuse_rst())
314            .field("timergroup1_rst", &self.timergroup1_rst())
315            .field("spi3_rst", &self.spi3_rst())
316            .field("pwm0_rst", &self.pwm0_rst())
317            .field("ext1_rst", &self.ext1_rst())
318            .field("twai_rst", &self.twai_rst())
319            .field("pwm1_rst", &self.pwm1_rst())
320            .field("i2s1_rst", &self.i2s1_rst())
321            .field("spi2_dma_rst", &self.spi2_dma_rst())
322            .field("usb_device_rst", &self.usb_device_rst())
323            .field("uart_mem_rst", &self.uart_mem_rst())
324            .field("pwm2_rst", &self.pwm2_rst())
325            .field("pwm3_rst", &self.pwm3_rst())
326            .field("spi3_dma_rst", &self.spi3_dma_rst())
327            .field("apb_saradc_rst", &self.apb_saradc_rst())
328            .field("systimer_rst", &self.systimer_rst())
329            .field("adc2_arb_rst", &self.adc2_arb_rst())
330            .field("spi4_rst", &self.spi4_rst())
331            .finish()
332    }
333}
334impl W {
335    #[doc = "Bit 0 - reg_timers_rst"]
336    #[inline(always)]
337    pub fn timers_rst(&mut self) -> TIMERS_RST_W<PERIP_RST_EN0_SPEC> {
338        TIMERS_RST_W::new(self, 0)
339    }
340    #[doc = "Bit 1 - reg_spi01_rst"]
341    #[inline(always)]
342    pub fn spi01_rst(&mut self) -> SPI01_RST_W<PERIP_RST_EN0_SPEC> {
343        SPI01_RST_W::new(self, 1)
344    }
345    #[doc = "Bit 2 - reg_uart_rst"]
346    #[inline(always)]
347    pub fn uart_rst(&mut self) -> UART_RST_W<PERIP_RST_EN0_SPEC> {
348        UART_RST_W::new(self, 2)
349    }
350    #[doc = "Bit 3 - reg_wdg_rst"]
351    #[inline(always)]
352    pub fn wdg_rst(&mut self) -> WDG_RST_W<PERIP_RST_EN0_SPEC> {
353        WDG_RST_W::new(self, 3)
354    }
355    #[doc = "Bit 4 - reg_i2s0_rst"]
356    #[inline(always)]
357    pub fn i2s0_rst(&mut self) -> I2S0_RST_W<PERIP_RST_EN0_SPEC> {
358        I2S0_RST_W::new(self, 4)
359    }
360    #[doc = "Bit 5 - reg_uart1_rst"]
361    #[inline(always)]
362    pub fn uart1_rst(&mut self) -> UART1_RST_W<PERIP_RST_EN0_SPEC> {
363        UART1_RST_W::new(self, 5)
364    }
365    #[doc = "Bit 6 - reg_spi2_rst"]
366    #[inline(always)]
367    pub fn spi2_rst(&mut self) -> SPI2_RST_W<PERIP_RST_EN0_SPEC> {
368        SPI2_RST_W::new(self, 6)
369    }
370    #[doc = "Bit 7 - reg_ext0_rst"]
371    #[inline(always)]
372    pub fn i2c_ext0_rst(&mut self) -> I2C_EXT0_RST_W<PERIP_RST_EN0_SPEC> {
373        I2C_EXT0_RST_W::new(self, 7)
374    }
375    #[doc = "Bit 8 - reg_uhci0_rst"]
376    #[inline(always)]
377    pub fn uhci0_rst(&mut self) -> UHCI0_RST_W<PERIP_RST_EN0_SPEC> {
378        UHCI0_RST_W::new(self, 8)
379    }
380    #[doc = "Bit 9 - reg_rmt_rst"]
381    #[inline(always)]
382    pub fn rmt_rst(&mut self) -> RMT_RST_W<PERIP_RST_EN0_SPEC> {
383        RMT_RST_W::new(self, 9)
384    }
385    #[doc = "Bit 10 - reg_pcnt_rst"]
386    #[inline(always)]
387    pub fn pcnt_rst(&mut self) -> PCNT_RST_W<PERIP_RST_EN0_SPEC> {
388        PCNT_RST_W::new(self, 10)
389    }
390    #[doc = "Bit 11 - reg_ledc_rst"]
391    #[inline(always)]
392    pub fn ledc_rst(&mut self) -> LEDC_RST_W<PERIP_RST_EN0_SPEC> {
393        LEDC_RST_W::new(self, 11)
394    }
395    #[doc = "Bit 12 - reg_uhci1_rst"]
396    #[inline(always)]
397    pub fn uhci1_rst(&mut self) -> UHCI1_RST_W<PERIP_RST_EN0_SPEC> {
398        UHCI1_RST_W::new(self, 12)
399    }
400    #[doc = "Bit 13 - reg_timergroup_rst"]
401    #[inline(always)]
402    pub fn timergroup_rst(&mut self) -> TIMERGROUP_RST_W<PERIP_RST_EN0_SPEC> {
403        TIMERGROUP_RST_W::new(self, 13)
404    }
405    #[doc = "Bit 14 - reg_efuse_rst"]
406    #[inline(always)]
407    pub fn efuse_rst(&mut self) -> EFUSE_RST_W<PERIP_RST_EN0_SPEC> {
408        EFUSE_RST_W::new(self, 14)
409    }
410    #[doc = "Bit 15 - reg_timergroup1_rst"]
411    #[inline(always)]
412    pub fn timergroup1_rst(&mut self) -> TIMERGROUP1_RST_W<PERIP_RST_EN0_SPEC> {
413        TIMERGROUP1_RST_W::new(self, 15)
414    }
415    #[doc = "Bit 16 - reg_spi3_rst"]
416    #[inline(always)]
417    pub fn spi3_rst(&mut self) -> SPI3_RST_W<PERIP_RST_EN0_SPEC> {
418        SPI3_RST_W::new(self, 16)
419    }
420    #[doc = "Bit 17 - reg_pwm0_rst"]
421    #[inline(always)]
422    pub fn pwm0_rst(&mut self) -> PWM0_RST_W<PERIP_RST_EN0_SPEC> {
423        PWM0_RST_W::new(self, 17)
424    }
425    #[doc = "Bit 18 - reg_ext1_rst"]
426    #[inline(always)]
427    pub fn ext1_rst(&mut self) -> EXT1_RST_W<PERIP_RST_EN0_SPEC> {
428        EXT1_RST_W::new(self, 18)
429    }
430    #[doc = "Bit 19 - reg_can_rst"]
431    #[inline(always)]
432    pub fn twai_rst(&mut self) -> TWAI_RST_W<PERIP_RST_EN0_SPEC> {
433        TWAI_RST_W::new(self, 19)
434    }
435    #[doc = "Bit 20 - reg_pwm1_rst"]
436    #[inline(always)]
437    pub fn pwm1_rst(&mut self) -> PWM1_RST_W<PERIP_RST_EN0_SPEC> {
438        PWM1_RST_W::new(self, 20)
439    }
440    #[doc = "Bit 21 - reg_i2s1_rst"]
441    #[inline(always)]
442    pub fn i2s1_rst(&mut self) -> I2S1_RST_W<PERIP_RST_EN0_SPEC> {
443        I2S1_RST_W::new(self, 21)
444    }
445    #[doc = "Bit 22 - reg_spi2_dma_rst"]
446    #[inline(always)]
447    pub fn spi2_dma_rst(&mut self) -> SPI2_DMA_RST_W<PERIP_RST_EN0_SPEC> {
448        SPI2_DMA_RST_W::new(self, 22)
449    }
450    #[doc = "Bit 23 - reg_usb_device_rst"]
451    #[inline(always)]
452    pub fn usb_device_rst(&mut self) -> USB_DEVICE_RST_W<PERIP_RST_EN0_SPEC> {
453        USB_DEVICE_RST_W::new(self, 23)
454    }
455    #[doc = "Bit 24 - reg_uart_mem_rst"]
456    #[inline(always)]
457    pub fn uart_mem_rst(&mut self) -> UART_MEM_RST_W<PERIP_RST_EN0_SPEC> {
458        UART_MEM_RST_W::new(self, 24)
459    }
460    #[doc = "Bit 25 - reg_pwm2_rst"]
461    #[inline(always)]
462    pub fn pwm2_rst(&mut self) -> PWM2_RST_W<PERIP_RST_EN0_SPEC> {
463        PWM2_RST_W::new(self, 25)
464    }
465    #[doc = "Bit 26 - reg_pwm3_rst"]
466    #[inline(always)]
467    pub fn pwm3_rst(&mut self) -> PWM3_RST_W<PERIP_RST_EN0_SPEC> {
468        PWM3_RST_W::new(self, 26)
469    }
470    #[doc = "Bit 27 - reg_spi3_dma_rst"]
471    #[inline(always)]
472    pub fn spi3_dma_rst(&mut self) -> SPI3_DMA_RST_W<PERIP_RST_EN0_SPEC> {
473        SPI3_DMA_RST_W::new(self, 27)
474    }
475    #[doc = "Bit 28 - reg_apb_saradc_rst"]
476    #[inline(always)]
477    pub fn apb_saradc_rst(&mut self) -> APB_SARADC_RST_W<PERIP_RST_EN0_SPEC> {
478        APB_SARADC_RST_W::new(self, 28)
479    }
480    #[doc = "Bit 29 - reg_systimer_rst"]
481    #[inline(always)]
482    pub fn systimer_rst(&mut self) -> SYSTIMER_RST_W<PERIP_RST_EN0_SPEC> {
483        SYSTIMER_RST_W::new(self, 29)
484    }
485    #[doc = "Bit 30 - reg_adc2_arb_rst"]
486    #[inline(always)]
487    pub fn adc2_arb_rst(&mut self) -> ADC2_ARB_RST_W<PERIP_RST_EN0_SPEC> {
488        ADC2_ARB_RST_W::new(self, 30)
489    }
490    #[doc = "Bit 31 - reg_spi4_rst"]
491    #[inline(always)]
492    pub fn spi4_rst(&mut self) -> SPI4_RST_W<PERIP_RST_EN0_SPEC> {
493        SPI4_RST_W::new(self, 31)
494    }
495}
496#[doc = "reserved\n\nYou can [`read`](crate::Reg::read) this register and get [`perip_rst_en0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`perip_rst_en0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
497pub struct PERIP_RST_EN0_SPEC;
498impl crate::RegisterSpec for PERIP_RST_EN0_SPEC {
499    type Ux = u32;
500}
501#[doc = "`read()` method returns [`perip_rst_en0::R`](R) reader structure"]
502impl crate::Readable for PERIP_RST_EN0_SPEC {}
503#[doc = "`write(|w| ..)` method takes [`perip_rst_en0::W`](W) writer structure"]
504impl crate::Writable for PERIP_RST_EN0_SPEC {
505    type Safety = crate::Unsafe;
506    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
507    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
508}
509#[doc = "`reset()` method sets PERIP_RST_EN0 to value 0"]
510impl crate::Resettable for PERIP_RST_EN0_SPEC {
511    const RESET_VALUE: u32 = 0;
512}