ra2a1 0.2.0

Peripheral access API for ra2a1 microcontrollers (generated using svd2rust)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
#[doc = "Register `GTST` reader"]
pub struct R(crate::R<GTST_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<GTST_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<GTST_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<GTST_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `GTST` writer"]
pub struct W(crate::W<GTST_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<GTST_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<GTST_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<GTST_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `TCFA` reader - Input Capture/Compare Match Flag A"]
pub type TCFA_R = crate::BitReader<TCFA_A>;
#[doc = "Input Capture/Compare Match Flag A\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TCFA_A {
    #[doc = "0: No input capture/compare match of GTCCRA is generated."]
    _0 = 0,
    #[doc = "1: An input capture/compare match of GTCCRA is generated."]
    _1 = 1,
}
impl From<TCFA_A> for bool {
    #[inline(always)]
    fn from(variant: TCFA_A) -> Self {
        variant as u8 != 0
    }
}
impl TCFA_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> TCFA_A {
        match self.bits {
            false => TCFA_A::_0,
            true => TCFA_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == TCFA_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == TCFA_A::_1
    }
}
#[doc = "Field `TCFA` writer - Input Capture/Compare Match Flag A"]
pub type TCFA_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTST_SPEC, TCFA_A, O>;
impl<'a, const O: u8> TCFA_W<'a, O> {
    #[doc = "No input capture/compare match of GTCCRA is generated."]
    #[inline(always)]
    pub fn _0(self) -> &'a mut W {
        self.variant(TCFA_A::_0)
    }
    #[doc = "An input capture/compare match of GTCCRA is generated."]
    #[inline(always)]
    pub fn _1(self) -> &'a mut W {
        self.variant(TCFA_A::_1)
    }
}
#[doc = "Field `TCFB` reader - Input Capture/Compare Match Flag B"]
pub type TCFB_R = crate::BitReader<TCFB_A>;
#[doc = "Input Capture/Compare Match Flag B\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TCFB_A {
    #[doc = "0: No input capture/compare match of GTCCRB is generated."]
    _0 = 0,
    #[doc = "1: An input capture/compare match of GTCCRB is generated."]
    _1 = 1,
}
impl From<TCFB_A> for bool {
    #[inline(always)]
    fn from(variant: TCFB_A) -> Self {
        variant as u8 != 0
    }
}
impl TCFB_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> TCFB_A {
        match self.bits {
            false => TCFB_A::_0,
            true => TCFB_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == TCFB_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == TCFB_A::_1
    }
}
#[doc = "Field `TCFB` writer - Input Capture/Compare Match Flag B"]
pub type TCFB_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTST_SPEC, TCFB_A, O>;
impl<'a, const O: u8> TCFB_W<'a, O> {
    #[doc = "No input capture/compare match of GTCCRB is generated."]
    #[inline(always)]
    pub fn _0(self) -> &'a mut W {
        self.variant(TCFB_A::_0)
    }
    #[doc = "An input capture/compare match of GTCCRB is generated."]
    #[inline(always)]
    pub fn _1(self) -> &'a mut W {
        self.variant(TCFB_A::_1)
    }
}
#[doc = "Field `TCFC` reader - Input Compare Match Flag C"]
pub type TCFC_R = crate::BitReader<TCFC_A>;
#[doc = "Input Compare Match Flag C\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TCFC_A {
    #[doc = "0: No compare match of GTCCRC is generated."]
    _0 = 0,
    #[doc = "1: A compare match of GTCCRC is generated."]
    _1 = 1,
}
impl From<TCFC_A> for bool {
    #[inline(always)]
    fn from(variant: TCFC_A) -> Self {
        variant as u8 != 0
    }
}
impl TCFC_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> TCFC_A {
        match self.bits {
            false => TCFC_A::_0,
            true => TCFC_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == TCFC_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == TCFC_A::_1
    }
}
#[doc = "Field `TCFC` writer - Input Compare Match Flag C"]
pub type TCFC_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTST_SPEC, TCFC_A, O>;
impl<'a, const O: u8> TCFC_W<'a, O> {
    #[doc = "No compare match of GTCCRC is generated."]
    #[inline(always)]
    pub fn _0(self) -> &'a mut W {
        self.variant(TCFC_A::_0)
    }
    #[doc = "A compare match of GTCCRC is generated."]
    #[inline(always)]
    pub fn _1(self) -> &'a mut W {
        self.variant(TCFC_A::_1)
    }
}
#[doc = "Field `TCFD` reader - Input Compare Match Flag D"]
pub type TCFD_R = crate::BitReader<TCFD_A>;
#[doc = "Input Compare Match Flag D\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TCFD_A {
    #[doc = "0: No compare match of GTCCRD is generated."]
    _0 = 0,
    #[doc = "1: A compare match of GTCCRD is generated."]
    _1 = 1,
}
impl From<TCFD_A> for bool {
    #[inline(always)]
    fn from(variant: TCFD_A) -> Self {
        variant as u8 != 0
    }
}
impl TCFD_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> TCFD_A {
        match self.bits {
            false => TCFD_A::_0,
            true => TCFD_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == TCFD_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == TCFD_A::_1
    }
}
#[doc = "Field `TCFD` writer - Input Compare Match Flag D"]
pub type TCFD_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTST_SPEC, TCFD_A, O>;
impl<'a, const O: u8> TCFD_W<'a, O> {
    #[doc = "No compare match of GTCCRD is generated."]
    #[inline(always)]
    pub fn _0(self) -> &'a mut W {
        self.variant(TCFD_A::_0)
    }
    #[doc = "A compare match of GTCCRD is generated."]
    #[inline(always)]
    pub fn _1(self) -> &'a mut W {
        self.variant(TCFD_A::_1)
    }
}
#[doc = "Field `TCFE` reader - Input Compare Match Flag E"]
pub type TCFE_R = crate::BitReader<TCFE_A>;
#[doc = "Input Compare Match Flag E\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TCFE_A {
    #[doc = "0: No compare match of GTCCRE is generated"]
    _0 = 0,
    #[doc = "1: A compare match of GTCCRE is generated."]
    _1 = 1,
}
impl From<TCFE_A> for bool {
    #[inline(always)]
    fn from(variant: TCFE_A) -> Self {
        variant as u8 != 0
    }
}
impl TCFE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> TCFE_A {
        match self.bits {
            false => TCFE_A::_0,
            true => TCFE_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == TCFE_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == TCFE_A::_1
    }
}
#[doc = "Field `TCFE` writer - Input Compare Match Flag E"]
pub type TCFE_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTST_SPEC, TCFE_A, O>;
impl<'a, const O: u8> TCFE_W<'a, O> {
    #[doc = "No compare match of GTCCRE is generated"]
    #[inline(always)]
    pub fn _0(self) -> &'a mut W {
        self.variant(TCFE_A::_0)
    }
    #[doc = "A compare match of GTCCRE is generated."]
    #[inline(always)]
    pub fn _1(self) -> &'a mut W {
        self.variant(TCFE_A::_1)
    }
}
#[doc = "Field `TCFF` reader - Input Compare Match Flag F"]
pub type TCFF_R = crate::BitReader<TCFF_A>;
#[doc = "Input Compare Match Flag F\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TCFF_A {
    #[doc = "0: No compare match of GTCCRF is generated"]
    _0 = 0,
    #[doc = "1: A compare match of GTCCRF is generated."]
    _1 = 1,
}
impl From<TCFF_A> for bool {
    #[inline(always)]
    fn from(variant: TCFF_A) -> Self {
        variant as u8 != 0
    }
}
impl TCFF_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> TCFF_A {
        match self.bits {
            false => TCFF_A::_0,
            true => TCFF_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == TCFF_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == TCFF_A::_1
    }
}
#[doc = "Field `TCFF` writer - Input Compare Match Flag F"]
pub type TCFF_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTST_SPEC, TCFF_A, O>;
impl<'a, const O: u8> TCFF_W<'a, O> {
    #[doc = "No compare match of GTCCRF is generated"]
    #[inline(always)]
    pub fn _0(self) -> &'a mut W {
        self.variant(TCFF_A::_0)
    }
    #[doc = "A compare match of GTCCRF is generated."]
    #[inline(always)]
    pub fn _1(self) -> &'a mut W {
        self.variant(TCFF_A::_1)
    }
}
#[doc = "Field `TCPFO` reader - Overflow Flag"]
pub type TCPFO_R = crate::BitReader<TCPFO_A>;
#[doc = "Overflow Flag\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TCPFO_A {
    #[doc = "0: No overflow (crest) has occurred."]
    _0 = 0,
    #[doc = "1: An overflow (crest) has occurred."]
    _1 = 1,
}
impl From<TCPFO_A> for bool {
    #[inline(always)]
    fn from(variant: TCPFO_A) -> Self {
        variant as u8 != 0
    }
}
impl TCPFO_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> TCPFO_A {
        match self.bits {
            false => TCPFO_A::_0,
            true => TCPFO_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == TCPFO_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == TCPFO_A::_1
    }
}
#[doc = "Field `TCPFO` writer - Overflow Flag"]
pub type TCPFO_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTST_SPEC, TCPFO_A, O>;
impl<'a, const O: u8> TCPFO_W<'a, O> {
    #[doc = "No overflow (crest) has occurred."]
    #[inline(always)]
    pub fn _0(self) -> &'a mut W {
        self.variant(TCPFO_A::_0)
    }
    #[doc = "An overflow (crest) has occurred."]
    #[inline(always)]
    pub fn _1(self) -> &'a mut W {
        self.variant(TCPFO_A::_1)
    }
}
#[doc = "Field `TCFPU` reader - Underflow Flag"]
pub type TCFPU_R = crate::BitReader<TCFPU_A>;
#[doc = "Underflow Flag\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TCFPU_A {
    #[doc = "0: No underflow (trough) has occurred."]
    _0 = 0,
    #[doc = "1: An underflow (trough) has occurred."]
    _1 = 1,
}
impl From<TCFPU_A> for bool {
    #[inline(always)]
    fn from(variant: TCFPU_A) -> Self {
        variant as u8 != 0
    }
}
impl TCFPU_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> TCFPU_A {
        match self.bits {
            false => TCFPU_A::_0,
            true => TCFPU_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == TCFPU_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == TCFPU_A::_1
    }
}
#[doc = "Field `TCFPU` writer - Underflow Flag"]
pub type TCFPU_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTST_SPEC, TCFPU_A, O>;
impl<'a, const O: u8> TCFPU_W<'a, O> {
    #[doc = "No underflow (trough) has occurred."]
    #[inline(always)]
    pub fn _0(self) -> &'a mut W {
        self.variant(TCFPU_A::_0)
    }
    #[doc = "An underflow (trough) has occurred."]
    #[inline(always)]
    pub fn _1(self) -> &'a mut W {
        self.variant(TCFPU_A::_1)
    }
}
#[doc = "Field `GTCF` reader - Count Direction Flag"]
pub type GTCF_R = crate::BitReader<GTCF_A>;
#[doc = "Count Direction Flag\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GTCF_A {
    #[doc = "0: The GTCNT counter counts downward."]
    _0 = 0,
    #[doc = "1: The GTCNT counter counts upward."]
    _1 = 1,
}
impl From<GTCF_A> for bool {
    #[inline(always)]
    fn from(variant: GTCF_A) -> Self {
        variant as u8 != 0
    }
}
impl GTCF_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> GTCF_A {
        match self.bits {
            false => GTCF_A::_0,
            true => GTCF_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == GTCF_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == GTCF_A::_1
    }
}
#[doc = "Field `ODF` reader - Output Disable Flag"]
pub type ODF_R = crate::BitReader<ODF_A>;
#[doc = "Output Disable Flag\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ODF_A {
    #[doc = "0: No output disable request is generated."]
    _0 = 0,
    #[doc = "1: An output disable request is generated."]
    _1 = 1,
}
impl From<ODF_A> for bool {
    #[inline(always)]
    fn from(variant: ODF_A) -> Self {
        variant as u8 != 0
    }
}
impl ODF_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ODF_A {
        match self.bits {
            false => ODF_A::_0,
            true => ODF_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == ODF_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == ODF_A::_1
    }
}
#[doc = "Field `OABHF` reader - Same Time Output Level High Disable Request Enable"]
pub type OABHF_R = crate::BitReader<OABHF_A>;
#[doc = "Same Time Output Level High Disable Request Enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum OABHF_A {
    #[doc = "0: GTIOCA pin and GTIOCB pin don't output 1 at the same time."]
    _0 = 0,
    #[doc = "1: GTIOCA pin and GTIOCB pin output 1 at the same time."]
    _1 = 1,
}
impl From<OABHF_A> for bool {
    #[inline(always)]
    fn from(variant: OABHF_A) -> Self {
        variant as u8 != 0
    }
}
impl OABHF_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> OABHF_A {
        match self.bits {
            false => OABHF_A::_0,
            true => OABHF_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == OABHF_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == OABHF_A::_1
    }
}
#[doc = "Field `OABLF` reader - Same Time Output Level Low Disable Request Enable"]
pub type OABLF_R = crate::BitReader<OABLF_A>;
#[doc = "Same Time Output Level Low Disable Request Enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum OABLF_A {
    #[doc = "0: GTIOCA pin and GTIOCB pin don't output 0 at the same time."]
    _0 = 0,
    #[doc = "1: GTIOCA pin and GTIOCB pin output 0 at the same time."]
    _1 = 1,
}
impl From<OABLF_A> for bool {
    #[inline(always)]
    fn from(variant: OABLF_A) -> Self {
        variant as u8 != 0
    }
}
impl OABLF_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> OABLF_A {
        match self.bits {
            false => OABLF_A::_0,
            true => OABLF_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == OABLF_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == OABLF_A::_1
    }
}
impl R {
    #[doc = "Bit 0 - Input Capture/Compare Match Flag A"]
    #[inline(always)]
    pub fn tcfa(&self) -> TCFA_R {
        TCFA_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Input Capture/Compare Match Flag B"]
    #[inline(always)]
    pub fn tcfb(&self) -> TCFB_R {
        TCFB_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Input Compare Match Flag C"]
    #[inline(always)]
    pub fn tcfc(&self) -> TCFC_R {
        TCFC_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Input Compare Match Flag D"]
    #[inline(always)]
    pub fn tcfd(&self) -> TCFD_R {
        TCFD_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Input Compare Match Flag E"]
    #[inline(always)]
    pub fn tcfe(&self) -> TCFE_R {
        TCFE_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Input Compare Match Flag F"]
    #[inline(always)]
    pub fn tcff(&self) -> TCFF_R {
        TCFF_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Overflow Flag"]
    #[inline(always)]
    pub fn tcpfo(&self) -> TCPFO_R {
        TCPFO_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Underflow Flag"]
    #[inline(always)]
    pub fn tcfpu(&self) -> TCFPU_R {
        TCFPU_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 15 - Count Direction Flag"]
    #[inline(always)]
    pub fn gtcf(&self) -> GTCF_R {
        GTCF_R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 24 - Output Disable Flag"]
    #[inline(always)]
    pub fn odf(&self) -> ODF_R {
        ODF_R::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Bit 29 - Same Time Output Level High Disable Request Enable"]
    #[inline(always)]
    pub fn oabhf(&self) -> OABHF_R {
        OABHF_R::new(((self.bits >> 29) & 1) != 0)
    }
    #[doc = "Bit 30 - Same Time Output Level Low Disable Request Enable"]
    #[inline(always)]
    pub fn oablf(&self) -> OABLF_R {
        OABLF_R::new(((self.bits >> 30) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Input Capture/Compare Match Flag A"]
    #[inline(always)]
    #[must_use]
    pub fn tcfa(&mut self) -> TCFA_W<0> {
        TCFA_W::new(self)
    }
    #[doc = "Bit 1 - Input Capture/Compare Match Flag B"]
    #[inline(always)]
    #[must_use]
    pub fn tcfb(&mut self) -> TCFB_W<1> {
        TCFB_W::new(self)
    }
    #[doc = "Bit 2 - Input Compare Match Flag C"]
    #[inline(always)]
    #[must_use]
    pub fn tcfc(&mut self) -> TCFC_W<2> {
        TCFC_W::new(self)
    }
    #[doc = "Bit 3 - Input Compare Match Flag D"]
    #[inline(always)]
    #[must_use]
    pub fn tcfd(&mut self) -> TCFD_W<3> {
        TCFD_W::new(self)
    }
    #[doc = "Bit 4 - Input Compare Match Flag E"]
    #[inline(always)]
    #[must_use]
    pub fn tcfe(&mut self) -> TCFE_W<4> {
        TCFE_W::new(self)
    }
    #[doc = "Bit 5 - Input Compare Match Flag F"]
    #[inline(always)]
    #[must_use]
    pub fn tcff(&mut self) -> TCFF_W<5> {
        TCFF_W::new(self)
    }
    #[doc = "Bit 6 - Overflow Flag"]
    #[inline(always)]
    #[must_use]
    pub fn tcpfo(&mut self) -> TCPFO_W<6> {
        TCPFO_W::new(self)
    }
    #[doc = "Bit 7 - Underflow Flag"]
    #[inline(always)]
    #[must_use]
    pub fn tcfpu(&mut self) -> TCFPU_W<7> {
        TCFPU_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "General PWM Timer Status 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 [gtst](index.html) module"]
pub struct GTST_SPEC;
impl crate::RegisterSpec for GTST_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [gtst::R](R) reader structure"]
impl crate::Readable for GTST_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [gtst::W](W) writer structure"]
impl crate::Writable for GTST_SPEC {
    type Writer = W;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets GTST to value 0x8000"]
impl crate::Resettable for GTST_SPEC {
    const RESET_VALUE: Self::Ux = 0x8000;
}