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) has occurred."]
343 _0 = 0,
344 #[doc = "1: An overflow (crest) has 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) has occurred."]
377 #[inline(always)]
378 pub fn _0(self) -> &'a mut W {
379 self.variant(TCFPO_A::_0)
380 }
381 #[doc = "An overflow (crest) has 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) has occurred."]
393 _0 = 0,
394 #[doc = "1: An underflow (trough) has 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) has occurred."]
427 #[inline(always)]
428 pub fn _0(self) -> &'a mut W {
429 self.variant(TCFPU_A::_0)
430 }
431 #[doc = "An underflow (trough) has occurred."]
432 #[inline(always)]
433 pub fn _1(self) -> &'a mut W {
434 self.variant(TCFPU_A::_1)
435 }
436}
437#[doc = "Field `ITCNT` reader - GTCIV/GTCIU Interrupt Skipping Count Counter(Counter for counting the number of times a timer interrupt has been skipped.)"]
438pub type ITCNT_R = crate::FieldReader<u8, u8>;
439#[doc = "Field `TUCF` reader - Count Direction Flag"]
440pub type TUCF_R = crate::BitReader<TUCF_A>;
441#[doc = "Count Direction Flag\n\nValue on reset: 1"]
442#[derive(Clone, Copy, Debug, PartialEq, Eq)]
443pub enum TUCF_A {
444 #[doc = "0: GTCNT counter is counting down"]
445 _0 = 0,
446 #[doc = "1: GTCNT counter is counting up."]
447 _1 = 1,
448}
449impl From<TUCF_A> for bool {
450 #[inline(always)]
451 fn from(variant: TUCF_A) -> Self {
452 variant as u8 != 0
453 }
454}
455impl TUCF_R {
456 #[doc = "Get enumerated values variant"]
457 #[inline(always)]
458 pub fn variant(&self) -> TUCF_A {
459 match self.bits {
460 false => TUCF_A::_0,
461 true => TUCF_A::_1,
462 }
463 }
464 #[doc = "Checks if the value of the field is `_0`"]
465 #[inline(always)]
466 pub fn is_0(&self) -> bool {
467 *self == TUCF_A::_0
468 }
469 #[doc = "Checks if the value of the field is `_1`"]
470 #[inline(always)]
471 pub fn is_1(&self) -> bool {
472 *self == TUCF_A::_1
473 }
474}
475#[doc = "Field `ODF` reader - Output Disable Flag"]
476pub type ODF_R = crate::BitReader<ODF_A>;
477#[doc = "Output Disable Flag\n\nValue on reset: 0"]
478#[derive(Clone, Copy, Debug, PartialEq, Eq)]
479pub enum ODF_A {
480 #[doc = "0: No output disable request is generated."]
481 _0 = 0,
482 #[doc = "1: An output disable request is generated."]
483 _1 = 1,
484}
485impl From<ODF_A> for bool {
486 #[inline(always)]
487 fn from(variant: ODF_A) -> Self {
488 variant as u8 != 0
489 }
490}
491impl ODF_R {
492 #[doc = "Get enumerated values variant"]
493 #[inline(always)]
494 pub fn variant(&self) -> ODF_A {
495 match self.bits {
496 false => ODF_A::_0,
497 true => ODF_A::_1,
498 }
499 }
500 #[doc = "Checks if the value of the field is `_0`"]
501 #[inline(always)]
502 pub fn is_0(&self) -> bool {
503 *self == ODF_A::_0
504 }
505 #[doc = "Checks if the value of the field is `_1`"]
506 #[inline(always)]
507 pub fn is_1(&self) -> bool {
508 *self == ODF_A::_1
509 }
510}
511#[doc = "Field `DTEF` reader - Dead Time Error Flag"]
512pub type DTEF_R = crate::BitReader<DTEF_A>;
513#[doc = "Dead Time Error Flag\n\nValue on reset: 0"]
514#[derive(Clone, Copy, Debug, PartialEq, Eq)]
515pub enum DTEF_A {
516 #[doc = "0: No dead time error has occurred."]
517 _0 = 0,
518 #[doc = "1: A dead time error has occurred."]
519 _1 = 1,
520}
521impl From<DTEF_A> for bool {
522 #[inline(always)]
523 fn from(variant: DTEF_A) -> Self {
524 variant as u8 != 0
525 }
526}
527impl DTEF_R {
528 #[doc = "Get enumerated values variant"]
529 #[inline(always)]
530 pub fn variant(&self) -> DTEF_A {
531 match self.bits {
532 false => DTEF_A::_0,
533 true => DTEF_A::_1,
534 }
535 }
536 #[doc = "Checks if the value of the field is `_0`"]
537 #[inline(always)]
538 pub fn is_0(&self) -> bool {
539 *self == DTEF_A::_0
540 }
541 #[doc = "Checks if the value of the field is `_1`"]
542 #[inline(always)]
543 pub fn is_1(&self) -> bool {
544 *self == DTEF_A::_1
545 }
546}
547#[doc = "Field `OABHF` reader - Same Time Output Level High Disable Request Enable"]
548pub type OABHF_R = crate::BitReader<OABHF_A>;
549#[doc = "Same Time Output Level High Disable Request Enable\n\nValue on reset: 0"]
550#[derive(Clone, Copy, Debug, PartialEq, Eq)]
551pub enum OABHF_A {
552 #[doc = "0: GTIOCA pin and GTIOCB pin don't output 1 at the same time."]
553 _0 = 0,
554 #[doc = "1: GTIOCA pin and GTIOCB pin output 1 at the same time."]
555 _1 = 1,
556}
557impl From<OABHF_A> for bool {
558 #[inline(always)]
559 fn from(variant: OABHF_A) -> Self {
560 variant as u8 != 0
561 }
562}
563impl OABHF_R {
564 #[doc = "Get enumerated values variant"]
565 #[inline(always)]
566 pub fn variant(&self) -> OABHF_A {
567 match self.bits {
568 false => OABHF_A::_0,
569 true => OABHF_A::_1,
570 }
571 }
572 #[doc = "Checks if the value of the field is `_0`"]
573 #[inline(always)]
574 pub fn is_0(&self) -> bool {
575 *self == OABHF_A::_0
576 }
577 #[doc = "Checks if the value of the field is `_1`"]
578 #[inline(always)]
579 pub fn is_1(&self) -> bool {
580 *self == OABHF_A::_1
581 }
582}
583#[doc = "Field `OABLF` reader - Same Time Output Level Low Disable Request Enable"]
584pub type OABLF_R = crate::BitReader<OABLF_A>;
585#[doc = "Same Time Output Level Low Disable Request Enable\n\nValue on reset: 0"]
586#[derive(Clone, Copy, Debug, PartialEq, Eq)]
587pub enum OABLF_A {
588 #[doc = "0: GTIOCA pin and GTIOCB pin don't output 0 at the same time."]
589 _0 = 0,
590 #[doc = "1: GTIOCA pin and GTIOCB pin output 0 at the same time."]
591 _1 = 1,
592}
593impl From<OABLF_A> for bool {
594 #[inline(always)]
595 fn from(variant: OABLF_A) -> Self {
596 variant as u8 != 0
597 }
598}
599impl OABLF_R {
600 #[doc = "Get enumerated values variant"]
601 #[inline(always)]
602 pub fn variant(&self) -> OABLF_A {
603 match self.bits {
604 false => OABLF_A::_0,
605 true => OABLF_A::_1,
606 }
607 }
608 #[doc = "Checks if the value of the field is `_0`"]
609 #[inline(always)]
610 pub fn is_0(&self) -> bool {
611 *self == OABLF_A::_0
612 }
613 #[doc = "Checks if the value of the field is `_1`"]
614 #[inline(always)]
615 pub fn is_1(&self) -> bool {
616 *self == OABLF_A::_1
617 }
618}
619impl R {
620 #[doc = "Bit 0 - Input Capture/Compare Match Flag A"]
621 #[inline(always)]
622 pub fn tcfa(&self) -> TCFA_R {
623 TCFA_R::new((self.bits & 1) != 0)
624 }
625 #[doc = "Bit 1 - Input Capture/Compare Match Flag B"]
626 #[inline(always)]
627 pub fn tcfb(&self) -> TCFB_R {
628 TCFB_R::new(((self.bits >> 1) & 1) != 0)
629 }
630 #[doc = "Bit 2 - Input Compare Match Flag C"]
631 #[inline(always)]
632 pub fn tcfc(&self) -> TCFC_R {
633 TCFC_R::new(((self.bits >> 2) & 1) != 0)
634 }
635 #[doc = "Bit 3 - Input Compare Match Flag D"]
636 #[inline(always)]
637 pub fn tcfd(&self) -> TCFD_R {
638 TCFD_R::new(((self.bits >> 3) & 1) != 0)
639 }
640 #[doc = "Bit 4 - Input Compare Match Flag E"]
641 #[inline(always)]
642 pub fn tcfe(&self) -> TCFE_R {
643 TCFE_R::new(((self.bits >> 4) & 1) != 0)
644 }
645 #[doc = "Bit 5 - Input Compare Match Flag F"]
646 #[inline(always)]
647 pub fn tcff(&self) -> TCFF_R {
648 TCFF_R::new(((self.bits >> 5) & 1) != 0)
649 }
650 #[doc = "Bit 6 - Overflow Flag"]
651 #[inline(always)]
652 pub fn tcfpo(&self) -> TCFPO_R {
653 TCFPO_R::new(((self.bits >> 6) & 1) != 0)
654 }
655 #[doc = "Bit 7 - Underflow Flag"]
656 #[inline(always)]
657 pub fn tcfpu(&self) -> TCFPU_R {
658 TCFPU_R::new(((self.bits >> 7) & 1) != 0)
659 }
660 #[doc = "Bits 8:10 - GTCIV/GTCIU Interrupt Skipping Count Counter(Counter for counting the number of times a timer interrupt has been skipped.)"]
661 #[inline(always)]
662 pub fn itcnt(&self) -> ITCNT_R {
663 ITCNT_R::new(((self.bits >> 8) & 7) as u8)
664 }
665 #[doc = "Bit 15 - Count Direction Flag"]
666 #[inline(always)]
667 pub fn tucf(&self) -> TUCF_R {
668 TUCF_R::new(((self.bits >> 15) & 1) != 0)
669 }
670 #[doc = "Bit 24 - Output Disable Flag"]
671 #[inline(always)]
672 pub fn odf(&self) -> ODF_R {
673 ODF_R::new(((self.bits >> 24) & 1) != 0)
674 }
675 #[doc = "Bit 28 - Dead Time Error Flag"]
676 #[inline(always)]
677 pub fn dtef(&self) -> DTEF_R {
678 DTEF_R::new(((self.bits >> 28) & 1) != 0)
679 }
680 #[doc = "Bit 29 - Same Time Output Level High Disable Request Enable"]
681 #[inline(always)]
682 pub fn oabhf(&self) -> OABHF_R {
683 OABHF_R::new(((self.bits >> 29) & 1) != 0)
684 }
685 #[doc = "Bit 30 - Same Time Output Level Low Disable Request Enable"]
686 #[inline(always)]
687 pub fn oablf(&self) -> OABLF_R {
688 OABLF_R::new(((self.bits >> 30) & 1) != 0)
689 }
690}
691impl W {
692 #[doc = "Bit 0 - Input Capture/Compare Match Flag A"]
693 #[inline(always)]
694 #[must_use]
695 pub fn tcfa(&mut self) -> TCFA_W<0> {
696 TCFA_W::new(self)
697 }
698 #[doc = "Bit 1 - Input Capture/Compare Match Flag B"]
699 #[inline(always)]
700 #[must_use]
701 pub fn tcfb(&mut self) -> TCFB_W<1> {
702 TCFB_W::new(self)
703 }
704 #[doc = "Bit 2 - Input Compare Match Flag C"]
705 #[inline(always)]
706 #[must_use]
707 pub fn tcfc(&mut self) -> TCFC_W<2> {
708 TCFC_W::new(self)
709 }
710 #[doc = "Bit 3 - Input Compare Match Flag D"]
711 #[inline(always)]
712 #[must_use]
713 pub fn tcfd(&mut self) -> TCFD_W<3> {
714 TCFD_W::new(self)
715 }
716 #[doc = "Bit 4 - Input Compare Match Flag E"]
717 #[inline(always)]
718 #[must_use]
719 pub fn tcfe(&mut self) -> TCFE_W<4> {
720 TCFE_W::new(self)
721 }
722 #[doc = "Bit 5 - Input Compare Match Flag F"]
723 #[inline(always)]
724 #[must_use]
725 pub fn tcff(&mut self) -> TCFF_W<5> {
726 TCFF_W::new(self)
727 }
728 #[doc = "Bit 6 - Overflow Flag"]
729 #[inline(always)]
730 #[must_use]
731 pub fn tcfpo(&mut self) -> TCFPO_W<6> {
732 TCFPO_W::new(self)
733 }
734 #[doc = "Bit 7 - Underflow Flag"]
735 #[inline(always)]
736 #[must_use]
737 pub fn tcfpu(&mut self) -> TCFPU_W<7> {
738 TCFPU_W::new(self)
739 }
740 #[doc = "Writes raw bits to the register."]
741 #[inline(always)]
742 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
743 self.0.bits(bits);
744 self
745 }
746}
747#[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"]
748pub struct GTST_SPEC;
749impl crate::RegisterSpec for GTST_SPEC {
750 type Ux = u32;
751}
752#[doc = "`read()` method returns [gtst::R](R) reader structure"]
753impl crate::Readable for GTST_SPEC {
754 type Reader = R;
755}
756#[doc = "`write(|w| ..)` method takes [gtst::W](W) writer structure"]
757impl crate::Writable for GTST_SPEC {
758 type Writer = W;
759 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
760 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
761}
762#[doc = "`reset()` method sets GTST to value 0x8000"]
763impl crate::Resettable for GTST_SPEC {
764 const RESET_VALUE: Self::Ux = 0x8000;
765}