gd32e5/gd32e503/slave_timer3/
st3cntrst.rs

1#[doc = "Register `ST3CNTRST` reader"]
2pub type R = crate::R<St3cntrstSpec>;
3#[doc = "Register `ST3CNTRST` writer"]
4pub type W = crate::W<St3cntrstSpec>;
5#[doc = "Field `UPRST` reader - Slave_TIMERx update event resets counter"]
6pub type UprstR = crate::BitReader;
7#[doc = "Field `UPRST` writer - Slave_TIMERx update event resets counter"]
8pub type UprstW<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `CMP1RST` reader - Slave_TIMERx compare 1 event resets counter"]
10pub type Cmp1rstR = crate::BitReader;
11#[doc = "Field `CMP1RST` writer - Slave_TIMERx compare 1 event resets counter"]
12pub type Cmp1rstW<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `CMP3RST` reader - Slave_TIMERx compare 3 event resets counter"]
14pub type Cmp3rstR = crate::BitReader;
15#[doc = "Field `CMP3RST` writer - Slave_TIMERx compare 3 event resets counter"]
16pub type Cmp3rstW<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `MTPERRST` reader - Master_TIMER period event resets counter"]
18pub type MtperrstR = crate::BitReader;
19#[doc = "Field `MTPERRST` writer - Master_TIMER period event resets counter"]
20pub type MtperrstW<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `MTCMP0RST` reader - Master_TIMER compare 0 event resets counter"]
22pub type Mtcmp0rstR = crate::BitReader;
23#[doc = "Field `MTCMP0RST` writer - Master_TIMER compare 0 event resets counter"]
24pub type Mtcmp0rstW<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `MTCMP1RST` reader - Master_TIMER compare 1 event resets counter"]
26pub type Mtcmp1rstR = crate::BitReader;
27#[doc = "Field `MTCMP1RST` writer - Master_TIMER compare 1 event resets counter"]
28pub type Mtcmp1rstW<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `MTCMP2RST` reader - Master_TIMER compare 2 event resets counter"]
30pub type Mtcmp2rstR = crate::BitReader;
31#[doc = "Field `MTCMP2RST` writer - Master_TIMER compare 2 event resets counter"]
32pub type Mtcmp2rstW<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `MTCMP3RST` reader - Master_TIMER compare 3 event resets counter"]
34pub type Mtcmp3rstR = crate::BitReader;
35#[doc = "Field `MTCMP3RST` writer - Master_TIMER compare 3 event resets counter"]
36pub type Mtcmp3rstW<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `EXEV0RST` reader - External event 0 resets counter"]
38pub type Exev0rstR = crate::BitReader;
39#[doc = "Field `EXEV0RST` writer - External event 0 resets counter"]
40pub type Exev0rstW<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `EXEV1RST` reader - External event 1 resets counter"]
42pub type Exev1rstR = crate::BitReader;
43#[doc = "Field `EXEV1RST` writer - External event 1 resets counter"]
44pub type Exev1rstW<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `EXEV2RST` reader - External event 2 resets counter"]
46pub type Exev2rstR = crate::BitReader;
47#[doc = "Field `EXEV2RST` writer - External event 2 resets counter"]
48pub type Exev2rstW<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `EXEV3RST` reader - External event 3 resets counter"]
50pub type Exev3rstR = crate::BitReader;
51#[doc = "Field `EXEV3RST` writer - External event 3 resets counter"]
52pub type Exev3rstW<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `EXEV4RST` reader - External event 4 resets counter"]
54pub type Exev4rstR = crate::BitReader;
55#[doc = "Field `EXEV4RST` writer - External event 4 resets counter"]
56pub type Exev4rstW<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `EXEV5RST` reader - External event 5 resets counter"]
58pub type Exev5rstR = crate::BitReader;
59#[doc = "Field `EXEV5RST` writer - External event 5 resets counter"]
60pub type Exev5rstW<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `EXEV6RST` reader - External event 6 resets counter"]
62pub type Exev6rstR = crate::BitReader;
63#[doc = "Field `EXEV6RST` writer - External event 6 resets counter"]
64pub type Exev6rstW<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `EXEV7RST` reader - External event 7 resets counter"]
66pub type Exev7rstR = crate::BitReader;
67#[doc = "Field `EXEV7RST` writer - External event 7 resets counter"]
68pub type Exev7rstW<'a, REG> = crate::BitWriter<'a, REG>;
69#[doc = "Field `EXEV8RST` reader - External event 8 resets counter"]
70pub type Exev8rstR = crate::BitReader;
71#[doc = "Field `EXEV8RST` writer - External event 8 resets counter"]
72pub type Exev8rstW<'a, REG> = crate::BitWriter<'a, REG>;
73#[doc = "Field `EXEV9RST` reader - External event 9 resets counter"]
74pub type Exev9rstR = crate::BitReader;
75#[doc = "Field `EXEV9RST` writer - External event 9 resets counter"]
76pub type Exev9rstW<'a, REG> = crate::BitWriter<'a, REG>;
77#[doc = "Field `ST0CMP0RST` reader - Slave_TIMER0 compare 0 event resets counter"]
78pub type St0cmp0rstR = crate::BitReader;
79#[doc = "Field `ST0CMP0RST` writer - Slave_TIMER0 compare 0 event resets counter"]
80pub type St0cmp0rstW<'a, REG> = crate::BitWriter<'a, REG>;
81#[doc = "Field `ST0CMP1RST` reader - Slave_TIMER0 compare 1 event resets counter"]
82pub type St0cmp1rstR = crate::BitReader;
83#[doc = "Field `ST0CMP1RST` writer - Slave_TIMER0 compare 1 event resets counter"]
84pub type St0cmp1rstW<'a, REG> = crate::BitWriter<'a, REG>;
85#[doc = "Field `ST0CMP3RST` reader - Slave_TIMER0 compare 3 event resets counter"]
86pub type St0cmp3rstR = crate::BitReader;
87#[doc = "Field `ST0CMP3RST` writer - Slave_TIMER0 compare 3 event resets counter"]
88pub type St0cmp3rstW<'a, REG> = crate::BitWriter<'a, REG>;
89#[doc = "Field `ST1CMP0RST` reader - Slave_TIMER1 compare 0 event resets counter"]
90pub type St1cmp0rstR = crate::BitReader;
91#[doc = "Field `ST1CMP0RST` writer - Slave_TIMER1 compare 0 event resets counter"]
92pub type St1cmp0rstW<'a, REG> = crate::BitWriter<'a, REG>;
93#[doc = "Field `ST1CMP1RST` reader - Slave_TIMER1 compare 1 event resets counter"]
94pub type St1cmp1rstR = crate::BitReader;
95#[doc = "Field `ST1CMP1RST` writer - Slave_TIMER1 compare 1 event resets counter"]
96pub type St1cmp1rstW<'a, REG> = crate::BitWriter<'a, REG>;
97#[doc = "Field `ST1CMP3RST` reader - Slave_TIMER1 compare 3 event resets counter"]
98pub type St1cmp3rstR = crate::BitReader;
99#[doc = "Field `ST1CMP3RST` writer - Slave_TIMER1 compare 3 event resets counter"]
100pub type St1cmp3rstW<'a, REG> = crate::BitWriter<'a, REG>;
101#[doc = "Field `ST2CMP0RST` reader - Slave_TIMER2 compare 0 event resets counter"]
102pub type St2cmp0rstR = crate::BitReader;
103#[doc = "Field `ST2CMP0RST` writer - Slave_TIMER2 compare 0 event resets counter"]
104pub type St2cmp0rstW<'a, REG> = crate::BitWriter<'a, REG>;
105#[doc = "Field `ST2CMP1RST` reader - Slave_TIMER2 compare 1 event resets counter"]
106pub type St2cmp1rstR = crate::BitReader;
107#[doc = "Field `ST2CMP1RST` writer - Slave_TIMER2 compare 1 event resets counter"]
108pub type St2cmp1rstW<'a, REG> = crate::BitWriter<'a, REG>;
109#[doc = "Field `ST2CMP3RST` reader - Slave_TIMER2 compare 3 event resets counter"]
110pub type St2cmp3rstR = crate::BitReader;
111#[doc = "Field `ST2CMP3RST` writer - Slave_TIMER2 compare 3 event resets counter"]
112pub type St2cmp3rstW<'a, REG> = crate::BitWriter<'a, REG>;
113#[doc = "Field `ST4CMP0RST` reader - Slave_TIMER4 compare 0 event resets counter"]
114pub type St4cmp0rstR = crate::BitReader;
115#[doc = "Field `ST4CMP0RST` writer - Slave_TIMER4 compare 0 event resets counter"]
116pub type St4cmp0rstW<'a, REG> = crate::BitWriter<'a, REG>;
117#[doc = "Field `ST4CMP1RST` reader - Slave_TIMER4 compare 1 event resets counter"]
118pub type St4cmp1rstR = crate::BitReader;
119#[doc = "Field `ST4CMP1RST` writer - Slave_TIMER4 compare 1 event resets counter"]
120pub type St4cmp1rstW<'a, REG> = crate::BitWriter<'a, REG>;
121#[doc = "Field `ST4CMP3RST` reader - Slave_TIMER4 compare 3 event resets counter"]
122pub type St4cmp3rstR = crate::BitReader;
123#[doc = "Field `ST4CMP3RST` writer - Slave_TIMER4 compare 3 event resets counter"]
124pub type St4cmp3rstW<'a, REG> = crate::BitWriter<'a, REG>;
125impl R {
126    #[doc = "Bit 1 - Slave_TIMERx update event resets counter"]
127    #[inline(always)]
128    pub fn uprst(&self) -> UprstR {
129        UprstR::new(((self.bits >> 1) & 1) != 0)
130    }
131    #[doc = "Bit 2 - Slave_TIMERx compare 1 event resets counter"]
132    #[inline(always)]
133    pub fn cmp1rst(&self) -> Cmp1rstR {
134        Cmp1rstR::new(((self.bits >> 2) & 1) != 0)
135    }
136    #[doc = "Bit 3 - Slave_TIMERx compare 3 event resets counter"]
137    #[inline(always)]
138    pub fn cmp3rst(&self) -> Cmp3rstR {
139        Cmp3rstR::new(((self.bits >> 3) & 1) != 0)
140    }
141    #[doc = "Bit 4 - Master_TIMER period event resets counter"]
142    #[inline(always)]
143    pub fn mtperrst(&self) -> MtperrstR {
144        MtperrstR::new(((self.bits >> 4) & 1) != 0)
145    }
146    #[doc = "Bit 5 - Master_TIMER compare 0 event resets counter"]
147    #[inline(always)]
148    pub fn mtcmp0rst(&self) -> Mtcmp0rstR {
149        Mtcmp0rstR::new(((self.bits >> 5) & 1) != 0)
150    }
151    #[doc = "Bit 6 - Master_TIMER compare 1 event resets counter"]
152    #[inline(always)]
153    pub fn mtcmp1rst(&self) -> Mtcmp1rstR {
154        Mtcmp1rstR::new(((self.bits >> 6) & 1) != 0)
155    }
156    #[doc = "Bit 7 - Master_TIMER compare 2 event resets counter"]
157    #[inline(always)]
158    pub fn mtcmp2rst(&self) -> Mtcmp2rstR {
159        Mtcmp2rstR::new(((self.bits >> 7) & 1) != 0)
160    }
161    #[doc = "Bit 8 - Master_TIMER compare 3 event resets counter"]
162    #[inline(always)]
163    pub fn mtcmp3rst(&self) -> Mtcmp3rstR {
164        Mtcmp3rstR::new(((self.bits >> 8) & 1) != 0)
165    }
166    #[doc = "Bit 9 - External event 0 resets counter"]
167    #[inline(always)]
168    pub fn exev0rst(&self) -> Exev0rstR {
169        Exev0rstR::new(((self.bits >> 9) & 1) != 0)
170    }
171    #[doc = "Bit 10 - External event 1 resets counter"]
172    #[inline(always)]
173    pub fn exev1rst(&self) -> Exev1rstR {
174        Exev1rstR::new(((self.bits >> 10) & 1) != 0)
175    }
176    #[doc = "Bit 11 - External event 2 resets counter"]
177    #[inline(always)]
178    pub fn exev2rst(&self) -> Exev2rstR {
179        Exev2rstR::new(((self.bits >> 11) & 1) != 0)
180    }
181    #[doc = "Bit 12 - External event 3 resets counter"]
182    #[inline(always)]
183    pub fn exev3rst(&self) -> Exev3rstR {
184        Exev3rstR::new(((self.bits >> 12) & 1) != 0)
185    }
186    #[doc = "Bit 13 - External event 4 resets counter"]
187    #[inline(always)]
188    pub fn exev4rst(&self) -> Exev4rstR {
189        Exev4rstR::new(((self.bits >> 13) & 1) != 0)
190    }
191    #[doc = "Bit 14 - External event 5 resets counter"]
192    #[inline(always)]
193    pub fn exev5rst(&self) -> Exev5rstR {
194        Exev5rstR::new(((self.bits >> 14) & 1) != 0)
195    }
196    #[doc = "Bit 15 - External event 6 resets counter"]
197    #[inline(always)]
198    pub fn exev6rst(&self) -> Exev6rstR {
199        Exev6rstR::new(((self.bits >> 15) & 1) != 0)
200    }
201    #[doc = "Bit 16 - External event 7 resets counter"]
202    #[inline(always)]
203    pub fn exev7rst(&self) -> Exev7rstR {
204        Exev7rstR::new(((self.bits >> 16) & 1) != 0)
205    }
206    #[doc = "Bit 17 - External event 8 resets counter"]
207    #[inline(always)]
208    pub fn exev8rst(&self) -> Exev8rstR {
209        Exev8rstR::new(((self.bits >> 17) & 1) != 0)
210    }
211    #[doc = "Bit 18 - External event 9 resets counter"]
212    #[inline(always)]
213    pub fn exev9rst(&self) -> Exev9rstR {
214        Exev9rstR::new(((self.bits >> 18) & 1) != 0)
215    }
216    #[doc = "Bit 19 - Slave_TIMER0 compare 0 event resets counter"]
217    #[inline(always)]
218    pub fn st0cmp0rst(&self) -> St0cmp0rstR {
219        St0cmp0rstR::new(((self.bits >> 19) & 1) != 0)
220    }
221    #[doc = "Bit 20 - Slave_TIMER0 compare 1 event resets counter"]
222    #[inline(always)]
223    pub fn st0cmp1rst(&self) -> St0cmp1rstR {
224        St0cmp1rstR::new(((self.bits >> 20) & 1) != 0)
225    }
226    #[doc = "Bit 21 - Slave_TIMER0 compare 3 event resets counter"]
227    #[inline(always)]
228    pub fn st0cmp3rst(&self) -> St0cmp3rstR {
229        St0cmp3rstR::new(((self.bits >> 21) & 1) != 0)
230    }
231    #[doc = "Bit 22 - Slave_TIMER1 compare 0 event resets counter"]
232    #[inline(always)]
233    pub fn st1cmp0rst(&self) -> St1cmp0rstR {
234        St1cmp0rstR::new(((self.bits >> 22) & 1) != 0)
235    }
236    #[doc = "Bit 23 - Slave_TIMER1 compare 1 event resets counter"]
237    #[inline(always)]
238    pub fn st1cmp1rst(&self) -> St1cmp1rstR {
239        St1cmp1rstR::new(((self.bits >> 23) & 1) != 0)
240    }
241    #[doc = "Bit 24 - Slave_TIMER1 compare 3 event resets counter"]
242    #[inline(always)]
243    pub fn st1cmp3rst(&self) -> St1cmp3rstR {
244        St1cmp3rstR::new(((self.bits >> 24) & 1) != 0)
245    }
246    #[doc = "Bit 25 - Slave_TIMER2 compare 0 event resets counter"]
247    #[inline(always)]
248    pub fn st2cmp0rst(&self) -> St2cmp0rstR {
249        St2cmp0rstR::new(((self.bits >> 25) & 1) != 0)
250    }
251    #[doc = "Bit 26 - Slave_TIMER2 compare 1 event resets counter"]
252    #[inline(always)]
253    pub fn st2cmp1rst(&self) -> St2cmp1rstR {
254        St2cmp1rstR::new(((self.bits >> 26) & 1) != 0)
255    }
256    #[doc = "Bit 27 - Slave_TIMER2 compare 3 event resets counter"]
257    #[inline(always)]
258    pub fn st2cmp3rst(&self) -> St2cmp3rstR {
259        St2cmp3rstR::new(((self.bits >> 27) & 1) != 0)
260    }
261    #[doc = "Bit 28 - Slave_TIMER4 compare 0 event resets counter"]
262    #[inline(always)]
263    pub fn st4cmp0rst(&self) -> St4cmp0rstR {
264        St4cmp0rstR::new(((self.bits >> 28) & 1) != 0)
265    }
266    #[doc = "Bit 29 - Slave_TIMER4 compare 1 event resets counter"]
267    #[inline(always)]
268    pub fn st4cmp1rst(&self) -> St4cmp1rstR {
269        St4cmp1rstR::new(((self.bits >> 29) & 1) != 0)
270    }
271    #[doc = "Bit 30 - Slave_TIMER4 compare 3 event resets counter"]
272    #[inline(always)]
273    pub fn st4cmp3rst(&self) -> St4cmp3rstR {
274        St4cmp3rstR::new(((self.bits >> 30) & 1) != 0)
275    }
276}
277impl W {
278    #[doc = "Bit 1 - Slave_TIMERx update event resets counter"]
279    #[inline(always)]
280    #[must_use]
281    pub fn uprst(&mut self) -> UprstW<St3cntrstSpec> {
282        UprstW::new(self, 1)
283    }
284    #[doc = "Bit 2 - Slave_TIMERx compare 1 event resets counter"]
285    #[inline(always)]
286    #[must_use]
287    pub fn cmp1rst(&mut self) -> Cmp1rstW<St3cntrstSpec> {
288        Cmp1rstW::new(self, 2)
289    }
290    #[doc = "Bit 3 - Slave_TIMERx compare 3 event resets counter"]
291    #[inline(always)]
292    #[must_use]
293    pub fn cmp3rst(&mut self) -> Cmp3rstW<St3cntrstSpec> {
294        Cmp3rstW::new(self, 3)
295    }
296    #[doc = "Bit 4 - Master_TIMER period event resets counter"]
297    #[inline(always)]
298    #[must_use]
299    pub fn mtperrst(&mut self) -> MtperrstW<St3cntrstSpec> {
300        MtperrstW::new(self, 4)
301    }
302    #[doc = "Bit 5 - Master_TIMER compare 0 event resets counter"]
303    #[inline(always)]
304    #[must_use]
305    pub fn mtcmp0rst(&mut self) -> Mtcmp0rstW<St3cntrstSpec> {
306        Mtcmp0rstW::new(self, 5)
307    }
308    #[doc = "Bit 6 - Master_TIMER compare 1 event resets counter"]
309    #[inline(always)]
310    #[must_use]
311    pub fn mtcmp1rst(&mut self) -> Mtcmp1rstW<St3cntrstSpec> {
312        Mtcmp1rstW::new(self, 6)
313    }
314    #[doc = "Bit 7 - Master_TIMER compare 2 event resets counter"]
315    #[inline(always)]
316    #[must_use]
317    pub fn mtcmp2rst(&mut self) -> Mtcmp2rstW<St3cntrstSpec> {
318        Mtcmp2rstW::new(self, 7)
319    }
320    #[doc = "Bit 8 - Master_TIMER compare 3 event resets counter"]
321    #[inline(always)]
322    #[must_use]
323    pub fn mtcmp3rst(&mut self) -> Mtcmp3rstW<St3cntrstSpec> {
324        Mtcmp3rstW::new(self, 8)
325    }
326    #[doc = "Bit 9 - External event 0 resets counter"]
327    #[inline(always)]
328    #[must_use]
329    pub fn exev0rst(&mut self) -> Exev0rstW<St3cntrstSpec> {
330        Exev0rstW::new(self, 9)
331    }
332    #[doc = "Bit 10 - External event 1 resets counter"]
333    #[inline(always)]
334    #[must_use]
335    pub fn exev1rst(&mut self) -> Exev1rstW<St3cntrstSpec> {
336        Exev1rstW::new(self, 10)
337    }
338    #[doc = "Bit 11 - External event 2 resets counter"]
339    #[inline(always)]
340    #[must_use]
341    pub fn exev2rst(&mut self) -> Exev2rstW<St3cntrstSpec> {
342        Exev2rstW::new(self, 11)
343    }
344    #[doc = "Bit 12 - External event 3 resets counter"]
345    #[inline(always)]
346    #[must_use]
347    pub fn exev3rst(&mut self) -> Exev3rstW<St3cntrstSpec> {
348        Exev3rstW::new(self, 12)
349    }
350    #[doc = "Bit 13 - External event 4 resets counter"]
351    #[inline(always)]
352    #[must_use]
353    pub fn exev4rst(&mut self) -> Exev4rstW<St3cntrstSpec> {
354        Exev4rstW::new(self, 13)
355    }
356    #[doc = "Bit 14 - External event 5 resets counter"]
357    #[inline(always)]
358    #[must_use]
359    pub fn exev5rst(&mut self) -> Exev5rstW<St3cntrstSpec> {
360        Exev5rstW::new(self, 14)
361    }
362    #[doc = "Bit 15 - External event 6 resets counter"]
363    #[inline(always)]
364    #[must_use]
365    pub fn exev6rst(&mut self) -> Exev6rstW<St3cntrstSpec> {
366        Exev6rstW::new(self, 15)
367    }
368    #[doc = "Bit 16 - External event 7 resets counter"]
369    #[inline(always)]
370    #[must_use]
371    pub fn exev7rst(&mut self) -> Exev7rstW<St3cntrstSpec> {
372        Exev7rstW::new(self, 16)
373    }
374    #[doc = "Bit 17 - External event 8 resets counter"]
375    #[inline(always)]
376    #[must_use]
377    pub fn exev8rst(&mut self) -> Exev8rstW<St3cntrstSpec> {
378        Exev8rstW::new(self, 17)
379    }
380    #[doc = "Bit 18 - External event 9 resets counter"]
381    #[inline(always)]
382    #[must_use]
383    pub fn exev9rst(&mut self) -> Exev9rstW<St3cntrstSpec> {
384        Exev9rstW::new(self, 18)
385    }
386    #[doc = "Bit 19 - Slave_TIMER0 compare 0 event resets counter"]
387    #[inline(always)]
388    #[must_use]
389    pub fn st0cmp0rst(&mut self) -> St0cmp0rstW<St3cntrstSpec> {
390        St0cmp0rstW::new(self, 19)
391    }
392    #[doc = "Bit 20 - Slave_TIMER0 compare 1 event resets counter"]
393    #[inline(always)]
394    #[must_use]
395    pub fn st0cmp1rst(&mut self) -> St0cmp1rstW<St3cntrstSpec> {
396        St0cmp1rstW::new(self, 20)
397    }
398    #[doc = "Bit 21 - Slave_TIMER0 compare 3 event resets counter"]
399    #[inline(always)]
400    #[must_use]
401    pub fn st0cmp3rst(&mut self) -> St0cmp3rstW<St3cntrstSpec> {
402        St0cmp3rstW::new(self, 21)
403    }
404    #[doc = "Bit 22 - Slave_TIMER1 compare 0 event resets counter"]
405    #[inline(always)]
406    #[must_use]
407    pub fn st1cmp0rst(&mut self) -> St1cmp0rstW<St3cntrstSpec> {
408        St1cmp0rstW::new(self, 22)
409    }
410    #[doc = "Bit 23 - Slave_TIMER1 compare 1 event resets counter"]
411    #[inline(always)]
412    #[must_use]
413    pub fn st1cmp1rst(&mut self) -> St1cmp1rstW<St3cntrstSpec> {
414        St1cmp1rstW::new(self, 23)
415    }
416    #[doc = "Bit 24 - Slave_TIMER1 compare 3 event resets counter"]
417    #[inline(always)]
418    #[must_use]
419    pub fn st1cmp3rst(&mut self) -> St1cmp3rstW<St3cntrstSpec> {
420        St1cmp3rstW::new(self, 24)
421    }
422    #[doc = "Bit 25 - Slave_TIMER2 compare 0 event resets counter"]
423    #[inline(always)]
424    #[must_use]
425    pub fn st2cmp0rst(&mut self) -> St2cmp0rstW<St3cntrstSpec> {
426        St2cmp0rstW::new(self, 25)
427    }
428    #[doc = "Bit 26 - Slave_TIMER2 compare 1 event resets counter"]
429    #[inline(always)]
430    #[must_use]
431    pub fn st2cmp1rst(&mut self) -> St2cmp1rstW<St3cntrstSpec> {
432        St2cmp1rstW::new(self, 26)
433    }
434    #[doc = "Bit 27 - Slave_TIMER2 compare 3 event resets counter"]
435    #[inline(always)]
436    #[must_use]
437    pub fn st2cmp3rst(&mut self) -> St2cmp3rstW<St3cntrstSpec> {
438        St2cmp3rstW::new(self, 27)
439    }
440    #[doc = "Bit 28 - Slave_TIMER4 compare 0 event resets counter"]
441    #[inline(always)]
442    #[must_use]
443    pub fn st4cmp0rst(&mut self) -> St4cmp0rstW<St3cntrstSpec> {
444        St4cmp0rstW::new(self, 28)
445    }
446    #[doc = "Bit 29 - Slave_TIMER4 compare 1 event resets counter"]
447    #[inline(always)]
448    #[must_use]
449    pub fn st4cmp1rst(&mut self) -> St4cmp1rstW<St3cntrstSpec> {
450        St4cmp1rstW::new(self, 29)
451    }
452    #[doc = "Bit 30 - Slave_TIMER4 compare 3 event resets counter"]
453    #[inline(always)]
454    #[must_use]
455    pub fn st4cmp3rst(&mut self) -> St4cmp3rstW<St3cntrstSpec> {
456        St4cmp3rstW::new(self, 30)
457    }
458}
459#[doc = "SHRTIMER Slave_TIMERx counter reset register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`st3cntrst::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 [`st3cntrst::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
460pub struct St3cntrstSpec;
461impl crate::RegisterSpec for St3cntrstSpec {
462    type Ux = u32;
463}
464#[doc = "`read()` method returns [`st3cntrst::R`](R) reader structure"]
465impl crate::Readable for St3cntrstSpec {}
466#[doc = "`write(|w| ..)` method takes [`st3cntrst::W`](W) writer structure"]
467impl crate::Writable for St3cntrstSpec {
468    type Safety = crate::Unsafe;
469    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
470    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
471}
472#[doc = "`reset()` method sets ST3CNTRST to value 0"]
473impl crate::Resettable for St3cntrstSpec {
474    const RESET_VALUE: u32 = 0;
475}