stm32h7/stm32h743/hrtim_timd/
cpt1dcr.rs1#[doc = "Register `CPT1DCR` reader"]
2pub struct R(crate::R<CPT1DCR_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<CPT1DCR_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<CPT1DCR_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<CPT1DCR_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `CPT1DCR` writer"]
17pub struct W(crate::W<CPT1DCR_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<CPT1DCR_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<CPT1DCR_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<CPT1DCR_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `TECMP2` reader - Timer E Compare 2"]
38pub type TECMP2_R = crate::BitReader<bool>;
39#[doc = "Field `TECMP2` writer - Timer E Compare 2"]
40pub type TECMP2_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
41#[doc = "Field `TECMP1` reader - Timer E Compare 1"]
42pub type TECMP1_R = crate::BitReader<bool>;
43#[doc = "Field `TECMP1` writer - Timer E Compare 1"]
44pub type TECMP1_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
45#[doc = "Field `TE1RST` reader - Timer E output 1 Reset"]
46pub type TE1RST_R = crate::BitReader<bool>;
47#[doc = "Field `TE1RST` writer - Timer E output 1 Reset"]
48pub type TE1RST_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
49#[doc = "Field `TE1SET` reader - Timer E output 1 Set"]
50pub type TE1SET_R = crate::BitReader<bool>;
51#[doc = "Field `TE1SET` writer - Timer E output 1 Set"]
52pub type TE1SET_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
53#[doc = "Field `TCCMP2` reader - Timer C Compare 2"]
54pub type TCCMP2_R = crate::BitReader<bool>;
55#[doc = "Field `TCCMP2` writer - Timer C Compare 2"]
56pub type TCCMP2_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
57#[doc = "Field `TCCMP1` reader - Timer C Compare 1"]
58pub type TCCMP1_R = crate::BitReader<bool>;
59#[doc = "Field `TCCMP1` writer - Timer C Compare 1"]
60pub type TCCMP1_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
61#[doc = "Field `TC1RST` reader - Timer C output 1 Reset"]
62pub type TC1RST_R = crate::BitReader<bool>;
63#[doc = "Field `TC1RST` writer - Timer C output 1 Reset"]
64pub type TC1RST_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
65#[doc = "Field `TC1SET` reader - Timer C output 1 Set"]
66pub type TC1SET_R = crate::BitReader<bool>;
67#[doc = "Field `TC1SET` writer - Timer C output 1 Set"]
68pub type TC1SET_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
69#[doc = "Field `TBCMP2` reader - Timer B Compare 2"]
70pub type TBCMP2_R = crate::BitReader<bool>;
71#[doc = "Field `TBCMP2` writer - Timer B Compare 2"]
72pub type TBCMP2_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
73#[doc = "Field `TBCMP1` reader - Timer B Compare 1"]
74pub type TBCMP1_R = crate::BitReader<bool>;
75#[doc = "Field `TBCMP1` writer - Timer B Compare 1"]
76pub type TBCMP1_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
77#[doc = "Field `TB1RST` reader - Timer B output 1 Reset"]
78pub type TB1RST_R = crate::BitReader<bool>;
79#[doc = "Field `TB1RST` writer - Timer B output 1 Reset"]
80pub type TB1RST_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
81#[doc = "Field `TB1SET` reader - Timer B output 1 Set"]
82pub type TB1SET_R = crate::BitReader<bool>;
83#[doc = "Field `TB1SET` writer - Timer B output 1 Set"]
84pub type TB1SET_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
85#[doc = "Field `TACMP2` reader - Timer A Compare 2"]
86pub type TACMP2_R = crate::BitReader<bool>;
87#[doc = "Field `TACMP2` writer - Timer A Compare 2"]
88pub type TACMP2_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
89#[doc = "Field `TACMP1` reader - Timer A Compare 1"]
90pub type TACMP1_R = crate::BitReader<bool>;
91#[doc = "Field `TACMP1` writer - Timer A Compare 1"]
92pub type TACMP1_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
93#[doc = "Field `TA1RST` reader - Timer A output 1 Reset"]
94pub type TA1RST_R = crate::BitReader<bool>;
95#[doc = "Field `TA1RST` writer - Timer A output 1 Reset"]
96pub type TA1RST_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
97#[doc = "Field `TA1SET` reader - Timer A output 1 Set"]
98pub type TA1SET_R = crate::BitReader<bool>;
99#[doc = "Field `TA1SET` writer - Timer A output 1 Set"]
100pub type TA1SET_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
101#[doc = "Field `EXEV10CPT` reader - External Event 10 Capture"]
102pub type EXEV10CPT_R = crate::BitReader<bool>;
103#[doc = "Field `EXEV10CPT` writer - External Event 10 Capture"]
104pub type EXEV10CPT_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
105#[doc = "Field `EXEV9CPT` reader - External Event 9 Capture"]
106pub type EXEV9CPT_R = crate::BitReader<bool>;
107#[doc = "Field `EXEV9CPT` writer - External Event 9 Capture"]
108pub type EXEV9CPT_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
109#[doc = "Field `EXEV8CPT` reader - External Event 8 Capture"]
110pub type EXEV8CPT_R = crate::BitReader<bool>;
111#[doc = "Field `EXEV8CPT` writer - External Event 8 Capture"]
112pub type EXEV8CPT_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
113#[doc = "Field `EXEV7CPT` reader - External Event 7 Capture"]
114pub type EXEV7CPT_R = crate::BitReader<bool>;
115#[doc = "Field `EXEV7CPT` writer - External Event 7 Capture"]
116pub type EXEV7CPT_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
117#[doc = "Field `EXEV6CPT` reader - External Event 6 Capture"]
118pub type EXEV6CPT_R = crate::BitReader<bool>;
119#[doc = "Field `EXEV6CPT` writer - External Event 6 Capture"]
120pub type EXEV6CPT_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
121#[doc = "Field `EXEV5CPT` reader - External Event 5 Capture"]
122pub type EXEV5CPT_R = crate::BitReader<bool>;
123#[doc = "Field `EXEV5CPT` writer - External Event 5 Capture"]
124pub type EXEV5CPT_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
125#[doc = "Field `EXEV4CPT` reader - External Event 4 Capture"]
126pub type EXEV4CPT_R = crate::BitReader<bool>;
127#[doc = "Field `EXEV4CPT` writer - External Event 4 Capture"]
128pub type EXEV4CPT_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
129#[doc = "Field `EXEV3CPT` reader - External Event 3 Capture"]
130pub type EXEV3CPT_R = crate::BitReader<bool>;
131#[doc = "Field `EXEV3CPT` writer - External Event 3 Capture"]
132pub type EXEV3CPT_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
133#[doc = "Field `EXEV2CPT` reader - External Event 2 Capture"]
134pub type EXEV2CPT_R = crate::BitReader<bool>;
135#[doc = "Field `EXEV2CPT` writer - External Event 2 Capture"]
136pub type EXEV2CPT_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
137#[doc = "Field `EXEV1CPT` reader - External Event 1 Capture"]
138pub type EXEV1CPT_R = crate::BitReader<bool>;
139#[doc = "Field `EXEV1CPT` writer - External Event 1 Capture"]
140pub type EXEV1CPT_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
141#[doc = "Field `UDPCPT` reader - Update Capture"]
142pub type UDPCPT_R = crate::BitReader<bool>;
143#[doc = "Field `UDPCPT` writer - Update Capture"]
144pub type UDPCPT_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
145#[doc = "Field `SWCPT` reader - Software Capture"]
146pub type SWCPT_R = crate::BitReader<bool>;
147#[doc = "Field `SWCPT` writer - Software Capture"]
148pub type SWCPT_W<'a, const O: u8> = crate::BitWriter<'a, u32, CPT1DCR_SPEC, bool, O>;
149impl R {
150 #[doc = "Bit 31 - Timer E Compare 2"]
151 #[inline(always)]
152 pub fn tecmp2(&self) -> TECMP2_R {
153 TECMP2_R::new(((self.bits >> 31) & 1) != 0)
154 }
155 #[doc = "Bit 30 - Timer E Compare 1"]
156 #[inline(always)]
157 pub fn tecmp1(&self) -> TECMP1_R {
158 TECMP1_R::new(((self.bits >> 30) & 1) != 0)
159 }
160 #[doc = "Bit 29 - Timer E output 1 Reset"]
161 #[inline(always)]
162 pub fn te1rst(&self) -> TE1RST_R {
163 TE1RST_R::new(((self.bits >> 29) & 1) != 0)
164 }
165 #[doc = "Bit 28 - Timer E output 1 Set"]
166 #[inline(always)]
167 pub fn te1set(&self) -> TE1SET_R {
168 TE1SET_R::new(((self.bits >> 28) & 1) != 0)
169 }
170 #[doc = "Bit 23 - Timer C Compare 2"]
171 #[inline(always)]
172 pub fn tccmp2(&self) -> TCCMP2_R {
173 TCCMP2_R::new(((self.bits >> 23) & 1) != 0)
174 }
175 #[doc = "Bit 22 - Timer C Compare 1"]
176 #[inline(always)]
177 pub fn tccmp1(&self) -> TCCMP1_R {
178 TCCMP1_R::new(((self.bits >> 22) & 1) != 0)
179 }
180 #[doc = "Bit 21 - Timer C output 1 Reset"]
181 #[inline(always)]
182 pub fn tc1rst(&self) -> TC1RST_R {
183 TC1RST_R::new(((self.bits >> 21) & 1) != 0)
184 }
185 #[doc = "Bit 20 - Timer C output 1 Set"]
186 #[inline(always)]
187 pub fn tc1set(&self) -> TC1SET_R {
188 TC1SET_R::new(((self.bits >> 20) & 1) != 0)
189 }
190 #[doc = "Bit 19 - Timer B Compare 2"]
191 #[inline(always)]
192 pub fn tbcmp2(&self) -> TBCMP2_R {
193 TBCMP2_R::new(((self.bits >> 19) & 1) != 0)
194 }
195 #[doc = "Bit 18 - Timer B Compare 1"]
196 #[inline(always)]
197 pub fn tbcmp1(&self) -> TBCMP1_R {
198 TBCMP1_R::new(((self.bits >> 18) & 1) != 0)
199 }
200 #[doc = "Bit 17 - Timer B output 1 Reset"]
201 #[inline(always)]
202 pub fn tb1rst(&self) -> TB1RST_R {
203 TB1RST_R::new(((self.bits >> 17) & 1) != 0)
204 }
205 #[doc = "Bit 16 - Timer B output 1 Set"]
206 #[inline(always)]
207 pub fn tb1set(&self) -> TB1SET_R {
208 TB1SET_R::new(((self.bits >> 16) & 1) != 0)
209 }
210 #[doc = "Bit 15 - Timer A Compare 2"]
211 #[inline(always)]
212 pub fn tacmp2(&self) -> TACMP2_R {
213 TACMP2_R::new(((self.bits >> 15) & 1) != 0)
214 }
215 #[doc = "Bit 14 - Timer A Compare 1"]
216 #[inline(always)]
217 pub fn tacmp1(&self) -> TACMP1_R {
218 TACMP1_R::new(((self.bits >> 14) & 1) != 0)
219 }
220 #[doc = "Bit 13 - Timer A output 1 Reset"]
221 #[inline(always)]
222 pub fn ta1rst(&self) -> TA1RST_R {
223 TA1RST_R::new(((self.bits >> 13) & 1) != 0)
224 }
225 #[doc = "Bit 12 - Timer A output 1 Set"]
226 #[inline(always)]
227 pub fn ta1set(&self) -> TA1SET_R {
228 TA1SET_R::new(((self.bits >> 12) & 1) != 0)
229 }
230 #[doc = "Bit 11 - External Event 10 Capture"]
231 #[inline(always)]
232 pub fn exev10cpt(&self) -> EXEV10CPT_R {
233 EXEV10CPT_R::new(((self.bits >> 11) & 1) != 0)
234 }
235 #[doc = "Bit 10 - External Event 9 Capture"]
236 #[inline(always)]
237 pub fn exev9cpt(&self) -> EXEV9CPT_R {
238 EXEV9CPT_R::new(((self.bits >> 10) & 1) != 0)
239 }
240 #[doc = "Bit 9 - External Event 8 Capture"]
241 #[inline(always)]
242 pub fn exev8cpt(&self) -> EXEV8CPT_R {
243 EXEV8CPT_R::new(((self.bits >> 9) & 1) != 0)
244 }
245 #[doc = "Bit 8 - External Event 7 Capture"]
246 #[inline(always)]
247 pub fn exev7cpt(&self) -> EXEV7CPT_R {
248 EXEV7CPT_R::new(((self.bits >> 8) & 1) != 0)
249 }
250 #[doc = "Bit 7 - External Event 6 Capture"]
251 #[inline(always)]
252 pub fn exev6cpt(&self) -> EXEV6CPT_R {
253 EXEV6CPT_R::new(((self.bits >> 7) & 1) != 0)
254 }
255 #[doc = "Bit 6 - External Event 5 Capture"]
256 #[inline(always)]
257 pub fn exev5cpt(&self) -> EXEV5CPT_R {
258 EXEV5CPT_R::new(((self.bits >> 6) & 1) != 0)
259 }
260 #[doc = "Bit 5 - External Event 4 Capture"]
261 #[inline(always)]
262 pub fn exev4cpt(&self) -> EXEV4CPT_R {
263 EXEV4CPT_R::new(((self.bits >> 5) & 1) != 0)
264 }
265 #[doc = "Bit 4 - External Event 3 Capture"]
266 #[inline(always)]
267 pub fn exev3cpt(&self) -> EXEV3CPT_R {
268 EXEV3CPT_R::new(((self.bits >> 4) & 1) != 0)
269 }
270 #[doc = "Bit 3 - External Event 2 Capture"]
271 #[inline(always)]
272 pub fn exev2cpt(&self) -> EXEV2CPT_R {
273 EXEV2CPT_R::new(((self.bits >> 3) & 1) != 0)
274 }
275 #[doc = "Bit 2 - External Event 1 Capture"]
276 #[inline(always)]
277 pub fn exev1cpt(&self) -> EXEV1CPT_R {
278 EXEV1CPT_R::new(((self.bits >> 2) & 1) != 0)
279 }
280 #[doc = "Bit 1 - Update Capture"]
281 #[inline(always)]
282 pub fn udpcpt(&self) -> UDPCPT_R {
283 UDPCPT_R::new(((self.bits >> 1) & 1) != 0)
284 }
285 #[doc = "Bit 0 - Software Capture"]
286 #[inline(always)]
287 pub fn swcpt(&self) -> SWCPT_R {
288 SWCPT_R::new((self.bits & 1) != 0)
289 }
290}
291impl W {
292 #[doc = "Bit 31 - Timer E Compare 2"]
293 #[inline(always)]
294 pub fn tecmp2(&mut self) -> TECMP2_W<31> {
295 TECMP2_W::new(self)
296 }
297 #[doc = "Bit 30 - Timer E Compare 1"]
298 #[inline(always)]
299 pub fn tecmp1(&mut self) -> TECMP1_W<30> {
300 TECMP1_W::new(self)
301 }
302 #[doc = "Bit 29 - Timer E output 1 Reset"]
303 #[inline(always)]
304 pub fn te1rst(&mut self) -> TE1RST_W<29> {
305 TE1RST_W::new(self)
306 }
307 #[doc = "Bit 28 - Timer E output 1 Set"]
308 #[inline(always)]
309 pub fn te1set(&mut self) -> TE1SET_W<28> {
310 TE1SET_W::new(self)
311 }
312 #[doc = "Bit 23 - Timer C Compare 2"]
313 #[inline(always)]
314 pub fn tccmp2(&mut self) -> TCCMP2_W<23> {
315 TCCMP2_W::new(self)
316 }
317 #[doc = "Bit 22 - Timer C Compare 1"]
318 #[inline(always)]
319 pub fn tccmp1(&mut self) -> TCCMP1_W<22> {
320 TCCMP1_W::new(self)
321 }
322 #[doc = "Bit 21 - Timer C output 1 Reset"]
323 #[inline(always)]
324 pub fn tc1rst(&mut self) -> TC1RST_W<21> {
325 TC1RST_W::new(self)
326 }
327 #[doc = "Bit 20 - Timer C output 1 Set"]
328 #[inline(always)]
329 pub fn tc1set(&mut self) -> TC1SET_W<20> {
330 TC1SET_W::new(self)
331 }
332 #[doc = "Bit 19 - Timer B Compare 2"]
333 #[inline(always)]
334 pub fn tbcmp2(&mut self) -> TBCMP2_W<19> {
335 TBCMP2_W::new(self)
336 }
337 #[doc = "Bit 18 - Timer B Compare 1"]
338 #[inline(always)]
339 pub fn tbcmp1(&mut self) -> TBCMP1_W<18> {
340 TBCMP1_W::new(self)
341 }
342 #[doc = "Bit 17 - Timer B output 1 Reset"]
343 #[inline(always)]
344 pub fn tb1rst(&mut self) -> TB1RST_W<17> {
345 TB1RST_W::new(self)
346 }
347 #[doc = "Bit 16 - Timer B output 1 Set"]
348 #[inline(always)]
349 pub fn tb1set(&mut self) -> TB1SET_W<16> {
350 TB1SET_W::new(self)
351 }
352 #[doc = "Bit 15 - Timer A Compare 2"]
353 #[inline(always)]
354 pub fn tacmp2(&mut self) -> TACMP2_W<15> {
355 TACMP2_W::new(self)
356 }
357 #[doc = "Bit 14 - Timer A Compare 1"]
358 #[inline(always)]
359 pub fn tacmp1(&mut self) -> TACMP1_W<14> {
360 TACMP1_W::new(self)
361 }
362 #[doc = "Bit 13 - Timer A output 1 Reset"]
363 #[inline(always)]
364 pub fn ta1rst(&mut self) -> TA1RST_W<13> {
365 TA1RST_W::new(self)
366 }
367 #[doc = "Bit 12 - Timer A output 1 Set"]
368 #[inline(always)]
369 pub fn ta1set(&mut self) -> TA1SET_W<12> {
370 TA1SET_W::new(self)
371 }
372 #[doc = "Bit 11 - External Event 10 Capture"]
373 #[inline(always)]
374 pub fn exev10cpt(&mut self) -> EXEV10CPT_W<11> {
375 EXEV10CPT_W::new(self)
376 }
377 #[doc = "Bit 10 - External Event 9 Capture"]
378 #[inline(always)]
379 pub fn exev9cpt(&mut self) -> EXEV9CPT_W<10> {
380 EXEV9CPT_W::new(self)
381 }
382 #[doc = "Bit 9 - External Event 8 Capture"]
383 #[inline(always)]
384 pub fn exev8cpt(&mut self) -> EXEV8CPT_W<9> {
385 EXEV8CPT_W::new(self)
386 }
387 #[doc = "Bit 8 - External Event 7 Capture"]
388 #[inline(always)]
389 pub fn exev7cpt(&mut self) -> EXEV7CPT_W<8> {
390 EXEV7CPT_W::new(self)
391 }
392 #[doc = "Bit 7 - External Event 6 Capture"]
393 #[inline(always)]
394 pub fn exev6cpt(&mut self) -> EXEV6CPT_W<7> {
395 EXEV6CPT_W::new(self)
396 }
397 #[doc = "Bit 6 - External Event 5 Capture"]
398 #[inline(always)]
399 pub fn exev5cpt(&mut self) -> EXEV5CPT_W<6> {
400 EXEV5CPT_W::new(self)
401 }
402 #[doc = "Bit 5 - External Event 4 Capture"]
403 #[inline(always)]
404 pub fn exev4cpt(&mut self) -> EXEV4CPT_W<5> {
405 EXEV4CPT_W::new(self)
406 }
407 #[doc = "Bit 4 - External Event 3 Capture"]
408 #[inline(always)]
409 pub fn exev3cpt(&mut self) -> EXEV3CPT_W<4> {
410 EXEV3CPT_W::new(self)
411 }
412 #[doc = "Bit 3 - External Event 2 Capture"]
413 #[inline(always)]
414 pub fn exev2cpt(&mut self) -> EXEV2CPT_W<3> {
415 EXEV2CPT_W::new(self)
416 }
417 #[doc = "Bit 2 - External Event 1 Capture"]
418 #[inline(always)]
419 pub fn exev1cpt(&mut self) -> EXEV1CPT_W<2> {
420 EXEV1CPT_W::new(self)
421 }
422 #[doc = "Bit 1 - Update Capture"]
423 #[inline(always)]
424 pub fn udpcpt(&mut self) -> UDPCPT_W<1> {
425 UDPCPT_W::new(self)
426 }
427 #[doc = "Bit 0 - Software Capture"]
428 #[inline(always)]
429 pub fn swcpt(&mut self) -> SWCPT_W<0> {
430 SWCPT_W::new(self)
431 }
432 #[doc = "Writes raw bits to the register."]
433 #[inline(always)]
434 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
435 self.0.bits(bits);
436 self
437 }
438}
439#[doc = "Timerx Capture 2 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 [cpt1dcr](index.html) module"]
440pub struct CPT1DCR_SPEC;
441impl crate::RegisterSpec for CPT1DCR_SPEC {
442 type Ux = u32;
443}
444#[doc = "`read()` method returns [cpt1dcr::R](R) reader structure"]
445impl crate::Readable for CPT1DCR_SPEC {
446 type Reader = R;
447}
448#[doc = "`write(|w| ..)` method takes [cpt1dcr::W](W) writer structure"]
449impl crate::Writable for CPT1DCR_SPEC {
450 type Writer = W;
451}
452#[doc = "`reset()` method sets CPT1DCR to value 0"]
453impl crate::Resettable for CPT1DCR_SPEC {
454 #[inline(always)]
455 fn reset_value() -> Self::Ux {
456 0
457 }
458}