1#[doc = "Register `GTITC` reader"]
2pub struct R(crate::R<GTITC_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<GTITC_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<GTITC_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<GTITC_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `GTITC` writer"]
17pub struct W(crate::W<GTITC_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<GTITC_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<GTITC_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<GTITC_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `ITLA` reader - GTCCRA Register Compare Match/Input Capture Interrupt Link"]
38pub type ITLA_R = crate::BitReader<ITLA_A>;
39#[doc = "GTCCRA Register Compare Match/Input Capture Interrupt Link\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq, Eq)]
41pub enum ITLA_A {
42 #[doc = "0: Not linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
43 _0 = 0,
44 #[doc = "1: Linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
45 _1 = 1,
46}
47impl From<ITLA_A> for bool {
48 #[inline(always)]
49 fn from(variant: ITLA_A) -> Self {
50 variant as u8 != 0
51 }
52}
53impl ITLA_R {
54 #[doc = "Get enumerated values variant"]
55 #[inline(always)]
56 pub fn variant(&self) -> ITLA_A {
57 match self.bits {
58 false => ITLA_A::_0,
59 true => ITLA_A::_1,
60 }
61 }
62 #[doc = "Checks if the value of the field is `_0`"]
63 #[inline(always)]
64 pub fn is_0(&self) -> bool {
65 *self == ITLA_A::_0
66 }
67 #[doc = "Checks if the value of the field is `_1`"]
68 #[inline(always)]
69 pub fn is_1(&self) -> bool {
70 *self == ITLA_A::_1
71 }
72}
73#[doc = "Field `ITLA` writer - GTCCRA Register Compare Match/Input Capture Interrupt Link"]
74pub type ITLA_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTITC_SPEC, ITLA_A, O>;
75impl<'a, const O: u8> ITLA_W<'a, O> {
76 #[doc = "Not linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
77 #[inline(always)]
78 pub fn _0(self) -> &'a mut W {
79 self.variant(ITLA_A::_0)
80 }
81 #[doc = "Linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
82 #[inline(always)]
83 pub fn _1(self) -> &'a mut W {
84 self.variant(ITLA_A::_1)
85 }
86}
87#[doc = "Field `ITLB` reader - GTCCRB Register Compare Match/Input Capture Interrupt Link"]
88pub type ITLB_R = crate::BitReader<ITLB_A>;
89#[doc = "GTCCRB Register Compare Match/Input Capture Interrupt Link\n\nValue on reset: 0"]
90#[derive(Clone, Copy, Debug, PartialEq, Eq)]
91pub enum ITLB_A {
92 #[doc = "0: Not linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
93 _0 = 0,
94 #[doc = "1: Linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
95 _1 = 1,
96}
97impl From<ITLB_A> for bool {
98 #[inline(always)]
99 fn from(variant: ITLB_A) -> Self {
100 variant as u8 != 0
101 }
102}
103impl ITLB_R {
104 #[doc = "Get enumerated values variant"]
105 #[inline(always)]
106 pub fn variant(&self) -> ITLB_A {
107 match self.bits {
108 false => ITLB_A::_0,
109 true => ITLB_A::_1,
110 }
111 }
112 #[doc = "Checks if the value of the field is `_0`"]
113 #[inline(always)]
114 pub fn is_0(&self) -> bool {
115 *self == ITLB_A::_0
116 }
117 #[doc = "Checks if the value of the field is `_1`"]
118 #[inline(always)]
119 pub fn is_1(&self) -> bool {
120 *self == ITLB_A::_1
121 }
122}
123#[doc = "Field `ITLB` writer - GTCCRB Register Compare Match/Input Capture Interrupt Link"]
124pub type ITLB_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTITC_SPEC, ITLB_A, O>;
125impl<'a, const O: u8> ITLB_W<'a, O> {
126 #[doc = "Not linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
127 #[inline(always)]
128 pub fn _0(self) -> &'a mut W {
129 self.variant(ITLB_A::_0)
130 }
131 #[doc = "Linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
132 #[inline(always)]
133 pub fn _1(self) -> &'a mut W {
134 self.variant(ITLB_A::_1)
135 }
136}
137#[doc = "Field `ITLC` reader - GTCCRC Register Compare Match Interrupt Link"]
138pub type ITLC_R = crate::BitReader<ITLC_A>;
139#[doc = "GTCCRC Register Compare Match Interrupt Link\n\nValue on reset: 0"]
140#[derive(Clone, Copy, Debug, PartialEq, Eq)]
141pub enum ITLC_A {
142 #[doc = "0: Not linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
143 _0 = 0,
144 #[doc = "1: Linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
145 _1 = 1,
146}
147impl From<ITLC_A> for bool {
148 #[inline(always)]
149 fn from(variant: ITLC_A) -> Self {
150 variant as u8 != 0
151 }
152}
153impl ITLC_R {
154 #[doc = "Get enumerated values variant"]
155 #[inline(always)]
156 pub fn variant(&self) -> ITLC_A {
157 match self.bits {
158 false => ITLC_A::_0,
159 true => ITLC_A::_1,
160 }
161 }
162 #[doc = "Checks if the value of the field is `_0`"]
163 #[inline(always)]
164 pub fn is_0(&self) -> bool {
165 *self == ITLC_A::_0
166 }
167 #[doc = "Checks if the value of the field is `_1`"]
168 #[inline(always)]
169 pub fn is_1(&self) -> bool {
170 *self == ITLC_A::_1
171 }
172}
173#[doc = "Field `ITLC` writer - GTCCRC Register Compare Match Interrupt Link"]
174pub type ITLC_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTITC_SPEC, ITLC_A, O>;
175impl<'a, const O: u8> ITLC_W<'a, O> {
176 #[doc = "Not linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
177 #[inline(always)]
178 pub fn _0(self) -> &'a mut W {
179 self.variant(ITLC_A::_0)
180 }
181 #[doc = "Linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
182 #[inline(always)]
183 pub fn _1(self) -> &'a mut W {
184 self.variant(ITLC_A::_1)
185 }
186}
187#[doc = "Field `ITLD` reader - GTCCRD Register Compare Match Interrupt Link"]
188pub type ITLD_R = crate::BitReader<ITLD_A>;
189#[doc = "GTCCRD Register Compare Match Interrupt Link\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq, Eq)]
191pub enum ITLD_A {
192 #[doc = "0: Not linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
193 _0 = 0,
194 #[doc = "1: Linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
195 _1 = 1,
196}
197impl From<ITLD_A> for bool {
198 #[inline(always)]
199 fn from(variant: ITLD_A) -> Self {
200 variant as u8 != 0
201 }
202}
203impl ITLD_R {
204 #[doc = "Get enumerated values variant"]
205 #[inline(always)]
206 pub fn variant(&self) -> ITLD_A {
207 match self.bits {
208 false => ITLD_A::_0,
209 true => ITLD_A::_1,
210 }
211 }
212 #[doc = "Checks if the value of the field is `_0`"]
213 #[inline(always)]
214 pub fn is_0(&self) -> bool {
215 *self == ITLD_A::_0
216 }
217 #[doc = "Checks if the value of the field is `_1`"]
218 #[inline(always)]
219 pub fn is_1(&self) -> bool {
220 *self == ITLD_A::_1
221 }
222}
223#[doc = "Field `ITLD` writer - GTCCRD Register Compare Match Interrupt Link"]
224pub type ITLD_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTITC_SPEC, ITLD_A, O>;
225impl<'a, const O: u8> ITLD_W<'a, O> {
226 #[doc = "Not linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
227 #[inline(always)]
228 pub fn _0(self) -> &'a mut W {
229 self.variant(ITLD_A::_0)
230 }
231 #[doc = "Linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
232 #[inline(always)]
233 pub fn _1(self) -> &'a mut W {
234 self.variant(ITLD_A::_1)
235 }
236}
237#[doc = "Field `ITLE` reader - GTCCRE Register Compare Match Interrupt Link"]
238pub type ITLE_R = crate::BitReader<ITLE_A>;
239#[doc = "GTCCRE Register Compare Match Interrupt Link\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq, Eq)]
241pub enum ITLE_A {
242 #[doc = "0: Not linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
243 _0 = 0,
244 #[doc = "1: Linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
245 _1 = 1,
246}
247impl From<ITLE_A> for bool {
248 #[inline(always)]
249 fn from(variant: ITLE_A) -> Self {
250 variant as u8 != 0
251 }
252}
253impl ITLE_R {
254 #[doc = "Get enumerated values variant"]
255 #[inline(always)]
256 pub fn variant(&self) -> ITLE_A {
257 match self.bits {
258 false => ITLE_A::_0,
259 true => ITLE_A::_1,
260 }
261 }
262 #[doc = "Checks if the value of the field is `_0`"]
263 #[inline(always)]
264 pub fn is_0(&self) -> bool {
265 *self == ITLE_A::_0
266 }
267 #[doc = "Checks if the value of the field is `_1`"]
268 #[inline(always)]
269 pub fn is_1(&self) -> bool {
270 *self == ITLE_A::_1
271 }
272}
273#[doc = "Field `ITLE` writer - GTCCRE Register Compare Match Interrupt Link"]
274pub type ITLE_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTITC_SPEC, ITLE_A, O>;
275impl<'a, const O: u8> ITLE_W<'a, O> {
276 #[doc = "Not linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
277 #[inline(always)]
278 pub fn _0(self) -> &'a mut W {
279 self.variant(ITLE_A::_0)
280 }
281 #[doc = "Linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
282 #[inline(always)]
283 pub fn _1(self) -> &'a mut W {
284 self.variant(ITLE_A::_1)
285 }
286}
287#[doc = "Field `ITLF` reader - GTCCRF Register Compare Match Interrupt Link"]
288pub type ITLF_R = crate::BitReader<ITLF_A>;
289#[doc = "GTCCRF Register Compare Match Interrupt Link\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq, Eq)]
291pub enum ITLF_A {
292 #[doc = "0: Not linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
293 _0 = 0,
294 #[doc = "1: Linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
295 _1 = 1,
296}
297impl From<ITLF_A> for bool {
298 #[inline(always)]
299 fn from(variant: ITLF_A) -> Self {
300 variant as u8 != 0
301 }
302}
303impl ITLF_R {
304 #[doc = "Get enumerated values variant"]
305 #[inline(always)]
306 pub fn variant(&self) -> ITLF_A {
307 match self.bits {
308 false => ITLF_A::_0,
309 true => ITLF_A::_1,
310 }
311 }
312 #[doc = "Checks if the value of the field is `_0`"]
313 #[inline(always)]
314 pub fn is_0(&self) -> bool {
315 *self == ITLF_A::_0
316 }
317 #[doc = "Checks if the value of the field is `_1`"]
318 #[inline(always)]
319 pub fn is_1(&self) -> bool {
320 *self == ITLF_A::_1
321 }
322}
323#[doc = "Field `ITLF` writer - GTCCRF Register Compare Match Interrupt Link"]
324pub type ITLF_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTITC_SPEC, ITLF_A, O>;
325impl<'a, const O: u8> ITLF_W<'a, O> {
326 #[doc = "Not linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
327 #[inline(always)]
328 pub fn _0(self) -> &'a mut W {
329 self.variant(ITLF_A::_0)
330 }
331 #[doc = "Linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
332 #[inline(always)]
333 pub fn _1(self) -> &'a mut W {
334 self.variant(ITLF_A::_1)
335 }
336}
337#[doc = "Field `IVTC` reader - GPTn_OVF/GPTn_UDF Interrupt Skipping Function Select"]
338pub type IVTC_R = crate::FieldReader<u8, IVTC_A>;
339#[doc = "GPTn_OVF/GPTn_UDF Interrupt Skipping Function Select\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq, Eq)]
341#[repr(u8)]
342pub enum IVTC_A {
343 #[doc = "0: Skipping is not performed."]
344 _00 = 0,
345 #[doc = "1: Both overflow and underflow for saw waves and crest for triangle waves and complementary PWM mode are counted and skipped."]
346 _01 = 1,
347 #[doc = "2: Both overflow and underflow for saw waves and trough for triangle waves and complementary PWM mode are counted and skipped."]
348 _10 = 2,
349 #[doc = "3: Both overflow and underflow for saw waves and both crest and trough for triangle waves and complementary PWM mode are counted and skipped."]
350 _11 = 3,
351}
352impl From<IVTC_A> for u8 {
353 #[inline(always)]
354 fn from(variant: IVTC_A) -> Self {
355 variant as _
356 }
357}
358impl IVTC_R {
359 #[doc = "Get enumerated values variant"]
360 #[inline(always)]
361 pub fn variant(&self) -> IVTC_A {
362 match self.bits {
363 0 => IVTC_A::_00,
364 1 => IVTC_A::_01,
365 2 => IVTC_A::_10,
366 3 => IVTC_A::_11,
367 _ => unreachable!(),
368 }
369 }
370 #[doc = "Checks if the value of the field is `_00`"]
371 #[inline(always)]
372 pub fn is_00(&self) -> bool {
373 *self == IVTC_A::_00
374 }
375 #[doc = "Checks if the value of the field is `_01`"]
376 #[inline(always)]
377 pub fn is_01(&self) -> bool {
378 *self == IVTC_A::_01
379 }
380 #[doc = "Checks if the value of the field is `_10`"]
381 #[inline(always)]
382 pub fn is_10(&self) -> bool {
383 *self == IVTC_A::_10
384 }
385 #[doc = "Checks if the value of the field is `_11`"]
386 #[inline(always)]
387 pub fn is_11(&self) -> bool {
388 *self == IVTC_A::_11
389 }
390}
391#[doc = "Field `IVTC` writer - GPTn_OVF/GPTn_UDF Interrupt Skipping Function Select"]
392pub type IVTC_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, GTITC_SPEC, u8, IVTC_A, 2, O>;
393impl<'a, const O: u8> IVTC_W<'a, O> {
394 #[doc = "Skipping is not performed."]
395 #[inline(always)]
396 pub fn _00(self) -> &'a mut W {
397 self.variant(IVTC_A::_00)
398 }
399 #[doc = "Both overflow and underflow for saw waves and crest for triangle waves and complementary PWM mode are counted and skipped."]
400 #[inline(always)]
401 pub fn _01(self) -> &'a mut W {
402 self.variant(IVTC_A::_01)
403 }
404 #[doc = "Both overflow and underflow for saw waves and trough for triangle waves and complementary PWM mode are counted and skipped."]
405 #[inline(always)]
406 pub fn _10(self) -> &'a mut W {
407 self.variant(IVTC_A::_10)
408 }
409 #[doc = "Both overflow and underflow for saw waves and both crest and trough for triangle waves and complementary PWM mode are counted and skipped."]
410 #[inline(always)]
411 pub fn _11(self) -> &'a mut W {
412 self.variant(IVTC_A::_11)
413 }
414}
415#[doc = "Field `IVTT` reader - GPTn_OVF/GPTn_UDF Interrupt Skipping Count Select"]
416pub type IVTT_R = crate::FieldReader<u8, IVTT_A>;
417#[doc = "GPTn_OVF/GPTn_UDF Interrupt Skipping Count Select\n\nValue on reset: 0"]
418#[derive(Clone, Copy, Debug, PartialEq, Eq)]
419#[repr(u8)]
420pub enum IVTT_A {
421 #[doc = "0: Skipping is not performed"]
422 _000 = 0,
423 #[doc = "1: Skipping count of 1"]
424 _001 = 1,
425 #[doc = "2: Skipping count of 2"]
426 _010 = 2,
427 #[doc = "3: Skipping count of 3"]
428 _011 = 3,
429 #[doc = "4: Skipping count of 4"]
430 _100 = 4,
431 #[doc = "5: Skipping count of 5"]
432 _101 = 5,
433 #[doc = "6: Skipping count of 6"]
434 _110 = 6,
435 #[doc = "7: Skipping count of 7"]
436 _111 = 7,
437}
438impl From<IVTT_A> for u8 {
439 #[inline(always)]
440 fn from(variant: IVTT_A) -> Self {
441 variant as _
442 }
443}
444impl IVTT_R {
445 #[doc = "Get enumerated values variant"]
446 #[inline(always)]
447 pub fn variant(&self) -> IVTT_A {
448 match self.bits {
449 0 => IVTT_A::_000,
450 1 => IVTT_A::_001,
451 2 => IVTT_A::_010,
452 3 => IVTT_A::_011,
453 4 => IVTT_A::_100,
454 5 => IVTT_A::_101,
455 6 => IVTT_A::_110,
456 7 => IVTT_A::_111,
457 _ => unreachable!(),
458 }
459 }
460 #[doc = "Checks if the value of the field is `_000`"]
461 #[inline(always)]
462 pub fn is_000(&self) -> bool {
463 *self == IVTT_A::_000
464 }
465 #[doc = "Checks if the value of the field is `_001`"]
466 #[inline(always)]
467 pub fn is_001(&self) -> bool {
468 *self == IVTT_A::_001
469 }
470 #[doc = "Checks if the value of the field is `_010`"]
471 #[inline(always)]
472 pub fn is_010(&self) -> bool {
473 *self == IVTT_A::_010
474 }
475 #[doc = "Checks if the value of the field is `_011`"]
476 #[inline(always)]
477 pub fn is_011(&self) -> bool {
478 *self == IVTT_A::_011
479 }
480 #[doc = "Checks if the value of the field is `_100`"]
481 #[inline(always)]
482 pub fn is_100(&self) -> bool {
483 *self == IVTT_A::_100
484 }
485 #[doc = "Checks if the value of the field is `_101`"]
486 #[inline(always)]
487 pub fn is_101(&self) -> bool {
488 *self == IVTT_A::_101
489 }
490 #[doc = "Checks if the value of the field is `_110`"]
491 #[inline(always)]
492 pub fn is_110(&self) -> bool {
493 *self == IVTT_A::_110
494 }
495 #[doc = "Checks if the value of the field is `_111`"]
496 #[inline(always)]
497 pub fn is_111(&self) -> bool {
498 *self == IVTT_A::_111
499 }
500}
501#[doc = "Field `IVTT` writer - GPTn_OVF/GPTn_UDF Interrupt Skipping Count Select"]
502pub type IVTT_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, GTITC_SPEC, u8, IVTT_A, 3, O>;
503impl<'a, const O: u8> IVTT_W<'a, O> {
504 #[doc = "Skipping is not performed"]
505 #[inline(always)]
506 pub fn _000(self) -> &'a mut W {
507 self.variant(IVTT_A::_000)
508 }
509 #[doc = "Skipping count of 1"]
510 #[inline(always)]
511 pub fn _001(self) -> &'a mut W {
512 self.variant(IVTT_A::_001)
513 }
514 #[doc = "Skipping count of 2"]
515 #[inline(always)]
516 pub fn _010(self) -> &'a mut W {
517 self.variant(IVTT_A::_010)
518 }
519 #[doc = "Skipping count of 3"]
520 #[inline(always)]
521 pub fn _011(self) -> &'a mut W {
522 self.variant(IVTT_A::_011)
523 }
524 #[doc = "Skipping count of 4"]
525 #[inline(always)]
526 pub fn _100(self) -> &'a mut W {
527 self.variant(IVTT_A::_100)
528 }
529 #[doc = "Skipping count of 5"]
530 #[inline(always)]
531 pub fn _101(self) -> &'a mut W {
532 self.variant(IVTT_A::_101)
533 }
534 #[doc = "Skipping count of 6"]
535 #[inline(always)]
536 pub fn _110(self) -> &'a mut W {
537 self.variant(IVTT_A::_110)
538 }
539 #[doc = "Skipping count of 7"]
540 #[inline(always)]
541 pub fn _111(self) -> &'a mut W {
542 self.variant(IVTT_A::_111)
543 }
544}
545#[doc = "Field `ADTAL` reader - GTADTRA Register A/D Conversion Start Request Link"]
546pub type ADTAL_R = crate::BitReader<ADTAL_A>;
547#[doc = "GTADTRA Register A/D Conversion Start Request Link\n\nValue on reset: 0"]
548#[derive(Clone, Copy, Debug, PartialEq, Eq)]
549pub enum ADTAL_A {
550 #[doc = "0: Not linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
551 _0 = 0,
552 #[doc = "1: Linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
553 _1 = 1,
554}
555impl From<ADTAL_A> for bool {
556 #[inline(always)]
557 fn from(variant: ADTAL_A) -> Self {
558 variant as u8 != 0
559 }
560}
561impl ADTAL_R {
562 #[doc = "Get enumerated values variant"]
563 #[inline(always)]
564 pub fn variant(&self) -> ADTAL_A {
565 match self.bits {
566 false => ADTAL_A::_0,
567 true => ADTAL_A::_1,
568 }
569 }
570 #[doc = "Checks if the value of the field is `_0`"]
571 #[inline(always)]
572 pub fn is_0(&self) -> bool {
573 *self == ADTAL_A::_0
574 }
575 #[doc = "Checks if the value of the field is `_1`"]
576 #[inline(always)]
577 pub fn is_1(&self) -> bool {
578 *self == ADTAL_A::_1
579 }
580}
581#[doc = "Field `ADTAL` writer - GTADTRA Register A/D Conversion Start Request Link"]
582pub type ADTAL_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTITC_SPEC, ADTAL_A, O>;
583impl<'a, const O: u8> ADTAL_W<'a, O> {
584 #[doc = "Not linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
585 #[inline(always)]
586 pub fn _0(self) -> &'a mut W {
587 self.variant(ADTAL_A::_0)
588 }
589 #[doc = "Linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
590 #[inline(always)]
591 pub fn _1(self) -> &'a mut W {
592 self.variant(ADTAL_A::_1)
593 }
594}
595#[doc = "Field `ADTBL` reader - GTADTRB Register A/D Conversion Start Request Link"]
596pub type ADTBL_R = crate::BitReader<ADTBL_A>;
597#[doc = "GTADTRB Register A/D Conversion Start Request Link\n\nValue on reset: 0"]
598#[derive(Clone, Copy, Debug, PartialEq, Eq)]
599pub enum ADTBL_A {
600 #[doc = "0: Not linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
601 _0 = 0,
602 #[doc = "1: Linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
603 _1 = 1,
604}
605impl From<ADTBL_A> for bool {
606 #[inline(always)]
607 fn from(variant: ADTBL_A) -> Self {
608 variant as u8 != 0
609 }
610}
611impl ADTBL_R {
612 #[doc = "Get enumerated values variant"]
613 #[inline(always)]
614 pub fn variant(&self) -> ADTBL_A {
615 match self.bits {
616 false => ADTBL_A::_0,
617 true => ADTBL_A::_1,
618 }
619 }
620 #[doc = "Checks if the value of the field is `_0`"]
621 #[inline(always)]
622 pub fn is_0(&self) -> bool {
623 *self == ADTBL_A::_0
624 }
625 #[doc = "Checks if the value of the field is `_1`"]
626 #[inline(always)]
627 pub fn is_1(&self) -> bool {
628 *self == ADTBL_A::_1
629 }
630}
631#[doc = "Field `ADTBL` writer - GTADTRB Register A/D Conversion Start Request Link"]
632pub type ADTBL_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTITC_SPEC, ADTBL_A, O>;
633impl<'a, const O: u8> ADTBL_W<'a, O> {
634 #[doc = "Not linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
635 #[inline(always)]
636 pub fn _0(self) -> &'a mut W {
637 self.variant(ADTBL_A::_0)
638 }
639 #[doc = "Linked with GPTn_OVF/GPTn_UDF interrupt skipping function."]
640 #[inline(always)]
641 pub fn _1(self) -> &'a mut W {
642 self.variant(ADTBL_A::_1)
643 }
644}
645impl R {
646 #[doc = "Bit 0 - GTCCRA Register Compare Match/Input Capture Interrupt Link"]
647 #[inline(always)]
648 pub fn itla(&self) -> ITLA_R {
649 ITLA_R::new((self.bits & 1) != 0)
650 }
651 #[doc = "Bit 1 - GTCCRB Register Compare Match/Input Capture Interrupt Link"]
652 #[inline(always)]
653 pub fn itlb(&self) -> ITLB_R {
654 ITLB_R::new(((self.bits >> 1) & 1) != 0)
655 }
656 #[doc = "Bit 2 - GTCCRC Register Compare Match Interrupt Link"]
657 #[inline(always)]
658 pub fn itlc(&self) -> ITLC_R {
659 ITLC_R::new(((self.bits >> 2) & 1) != 0)
660 }
661 #[doc = "Bit 3 - GTCCRD Register Compare Match Interrupt Link"]
662 #[inline(always)]
663 pub fn itld(&self) -> ITLD_R {
664 ITLD_R::new(((self.bits >> 3) & 1) != 0)
665 }
666 #[doc = "Bit 4 - GTCCRE Register Compare Match Interrupt Link"]
667 #[inline(always)]
668 pub fn itle(&self) -> ITLE_R {
669 ITLE_R::new(((self.bits >> 4) & 1) != 0)
670 }
671 #[doc = "Bit 5 - GTCCRF Register Compare Match Interrupt Link"]
672 #[inline(always)]
673 pub fn itlf(&self) -> ITLF_R {
674 ITLF_R::new(((self.bits >> 5) & 1) != 0)
675 }
676 #[doc = "Bits 6:7 - GPTn_OVF/GPTn_UDF Interrupt Skipping Function Select"]
677 #[inline(always)]
678 pub fn ivtc(&self) -> IVTC_R {
679 IVTC_R::new(((self.bits >> 6) & 3) as u8)
680 }
681 #[doc = "Bits 8:10 - GPTn_OVF/GPTn_UDF Interrupt Skipping Count Select"]
682 #[inline(always)]
683 pub fn ivtt(&self) -> IVTT_R {
684 IVTT_R::new(((self.bits >> 8) & 7) as u8)
685 }
686 #[doc = "Bit 12 - GTADTRA Register A/D Conversion Start Request Link"]
687 #[inline(always)]
688 pub fn adtal(&self) -> ADTAL_R {
689 ADTAL_R::new(((self.bits >> 12) & 1) != 0)
690 }
691 #[doc = "Bit 14 - GTADTRB Register A/D Conversion Start Request Link"]
692 #[inline(always)]
693 pub fn adtbl(&self) -> ADTBL_R {
694 ADTBL_R::new(((self.bits >> 14) & 1) != 0)
695 }
696}
697impl W {
698 #[doc = "Bit 0 - GTCCRA Register Compare Match/Input Capture Interrupt Link"]
699 #[inline(always)]
700 #[must_use]
701 pub fn itla(&mut self) -> ITLA_W<0> {
702 ITLA_W::new(self)
703 }
704 #[doc = "Bit 1 - GTCCRB Register Compare Match/Input Capture Interrupt Link"]
705 #[inline(always)]
706 #[must_use]
707 pub fn itlb(&mut self) -> ITLB_W<1> {
708 ITLB_W::new(self)
709 }
710 #[doc = "Bit 2 - GTCCRC Register Compare Match Interrupt Link"]
711 #[inline(always)]
712 #[must_use]
713 pub fn itlc(&mut self) -> ITLC_W<2> {
714 ITLC_W::new(self)
715 }
716 #[doc = "Bit 3 - GTCCRD Register Compare Match Interrupt Link"]
717 #[inline(always)]
718 #[must_use]
719 pub fn itld(&mut self) -> ITLD_W<3> {
720 ITLD_W::new(self)
721 }
722 #[doc = "Bit 4 - GTCCRE Register Compare Match Interrupt Link"]
723 #[inline(always)]
724 #[must_use]
725 pub fn itle(&mut self) -> ITLE_W<4> {
726 ITLE_W::new(self)
727 }
728 #[doc = "Bit 5 - GTCCRF Register Compare Match Interrupt Link"]
729 #[inline(always)]
730 #[must_use]
731 pub fn itlf(&mut self) -> ITLF_W<5> {
732 ITLF_W::new(self)
733 }
734 #[doc = "Bits 6:7 - GPTn_OVF/GPTn_UDF Interrupt Skipping Function Select"]
735 #[inline(always)]
736 #[must_use]
737 pub fn ivtc(&mut self) -> IVTC_W<6> {
738 IVTC_W::new(self)
739 }
740 #[doc = "Bits 8:10 - GPTn_OVF/GPTn_UDF Interrupt Skipping Count Select"]
741 #[inline(always)]
742 #[must_use]
743 pub fn ivtt(&mut self) -> IVTT_W<8> {
744 IVTT_W::new(self)
745 }
746 #[doc = "Bit 12 - GTADTRA Register A/D Conversion Start Request Link"]
747 #[inline(always)]
748 #[must_use]
749 pub fn adtal(&mut self) -> ADTAL_W<12> {
750 ADTAL_W::new(self)
751 }
752 #[doc = "Bit 14 - GTADTRB Register A/D Conversion Start Request Link"]
753 #[inline(always)]
754 #[must_use]
755 pub fn adtbl(&mut self) -> ADTBL_W<14> {
756 ADTBL_W::new(self)
757 }
758 #[doc = "Writes raw bits to the register."]
759 #[inline(always)]
760 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
761 self.0.bits(bits);
762 self
763 }
764}
765#[doc = "General PWM Timer Interrupt and A/D Conversion Start Request Skipping Setting 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 [gtitc](index.html) module"]
766pub struct GTITC_SPEC;
767impl crate::RegisterSpec for GTITC_SPEC {
768 type Ux = u32;
769}
770#[doc = "`read()` method returns [gtitc::R](R) reader structure"]
771impl crate::Readable for GTITC_SPEC {
772 type Reader = R;
773}
774#[doc = "`write(|w| ..)` method takes [gtitc::W](W) writer structure"]
775impl crate::Writable for GTITC_SPEC {
776 type Writer = W;
777 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
778 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
779}
780#[doc = "`reset()` method sets GTITC to value 0"]
781impl crate::Resettable for GTITC_SPEC {
782 const RESET_VALUE: Self::Ux = 0;
783}