ra2l1/gpt320/
gtst.rs

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