1#[doc = "Register `GTIOR` reader"]
2pub struct R(crate::R<GTIOR_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<GTIOR_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<GTIOR_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<GTIOR_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `GTIOR` writer"]
17pub struct W(crate::W<GTIOR_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<GTIOR_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<GTIOR_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<GTIOR_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `GTIOA` reader - GTIOCnA Pin Function Select"]
38pub type GTIOA_R = crate::FieldReader<u8, u8>;
39#[doc = "Field `GTIOA` writer - GTIOCnA Pin Function Select"]
40pub type GTIOA_W<'a, const O: u8> = crate::FieldWriter<'a, u32, GTIOR_SPEC, u8, u8, 5, O>;
41#[doc = "Field `CPSCIR` reader - Complementary PWM Mode Initial Output at Synchronous Clear Disable"]
42pub type CPSCIR_R = crate::BitReader<CPSCIR_A>;
43#[doc = "Complementary PWM Mode Initial Output at Synchronous Clear Disable\n\nValue on reset: 0"]
44#[derive(Clone, Copy, Debug, PartialEq, Eq)]
45pub enum CPSCIR_A {
46 #[doc = "0: Output the initial value set by the GTIOR.GTIOA and GTIOB bits when synchronous clear occurs in Trough section of complementary PWM mode"]
47 _0 = 0,
48 #[doc = "1: Disable output the initial value"]
49 _1 = 1,
50}
51impl From<CPSCIR_A> for bool {
52 #[inline(always)]
53 fn from(variant: CPSCIR_A) -> Self {
54 variant as u8 != 0
55 }
56}
57impl CPSCIR_R {
58 #[doc = "Get enumerated values variant"]
59 #[inline(always)]
60 pub fn variant(&self) -> CPSCIR_A {
61 match self.bits {
62 false => CPSCIR_A::_0,
63 true => CPSCIR_A::_1,
64 }
65 }
66 #[doc = "Checks if the value of the field is `_0`"]
67 #[inline(always)]
68 pub fn is_0(&self) -> bool {
69 *self == CPSCIR_A::_0
70 }
71 #[doc = "Checks if the value of the field is `_1`"]
72 #[inline(always)]
73 pub fn is_1(&self) -> bool {
74 *self == CPSCIR_A::_1
75 }
76}
77#[doc = "Field `CPSCIR` writer - Complementary PWM Mode Initial Output at Synchronous Clear Disable"]
78pub type CPSCIR_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTIOR_SPEC, CPSCIR_A, O>;
79impl<'a, const O: u8> CPSCIR_W<'a, O> {
80 #[doc = "Output the initial value set by the GTIOR.GTIOA and GTIOB bits when synchronous clear occurs in Trough section of complementary PWM mode"]
81 #[inline(always)]
82 pub fn _0(self) -> &'a mut W {
83 self.variant(CPSCIR_A::_0)
84 }
85 #[doc = "Disable output the initial value"]
86 #[inline(always)]
87 pub fn _1(self) -> &'a mut W {
88 self.variant(CPSCIR_A::_1)
89 }
90}
91#[doc = "Field `OADFLT` reader - GTIOCnA Pin Output Value Setting at the Count Stop"]
92pub type OADFLT_R = crate::BitReader<OADFLT_A>;
93#[doc = "GTIOCnA Pin Output Value Setting at the Count Stop\n\nValue on reset: 0"]
94#[derive(Clone, Copy, Debug, PartialEq, Eq)]
95pub enum OADFLT_A {
96 #[doc = "0: The GTIOCnA pin outputs low when counting stops"]
97 _0 = 0,
98 #[doc = "1: The GTIOCnA pin outputs high when counting stops"]
99 _1 = 1,
100}
101impl From<OADFLT_A> for bool {
102 #[inline(always)]
103 fn from(variant: OADFLT_A) -> Self {
104 variant as u8 != 0
105 }
106}
107impl OADFLT_R {
108 #[doc = "Get enumerated values variant"]
109 #[inline(always)]
110 pub fn variant(&self) -> OADFLT_A {
111 match self.bits {
112 false => OADFLT_A::_0,
113 true => OADFLT_A::_1,
114 }
115 }
116 #[doc = "Checks if the value of the field is `_0`"]
117 #[inline(always)]
118 pub fn is_0(&self) -> bool {
119 *self == OADFLT_A::_0
120 }
121 #[doc = "Checks if the value of the field is `_1`"]
122 #[inline(always)]
123 pub fn is_1(&self) -> bool {
124 *self == OADFLT_A::_1
125 }
126}
127#[doc = "Field `OADFLT` writer - GTIOCnA Pin Output Value Setting at the Count Stop"]
128pub type OADFLT_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTIOR_SPEC, OADFLT_A, O>;
129impl<'a, const O: u8> OADFLT_W<'a, O> {
130 #[doc = "The GTIOCnA pin outputs low when counting stops"]
131 #[inline(always)]
132 pub fn _0(self) -> &'a mut W {
133 self.variant(OADFLT_A::_0)
134 }
135 #[doc = "The GTIOCnA pin outputs high when counting stops"]
136 #[inline(always)]
137 pub fn _1(self) -> &'a mut W {
138 self.variant(OADFLT_A::_1)
139 }
140}
141#[doc = "Field `OAHLD` reader - GTIOCnA Pin Output Setting at the Start/Stop Count"]
142pub type OAHLD_R = crate::BitReader<OAHLD_A>;
143#[doc = "GTIOCnA Pin Output Setting at the Start/Stop Count\n\nValue on reset: 0"]
144#[derive(Clone, Copy, Debug, PartialEq, Eq)]
145pub enum OAHLD_A {
146 #[doc = "0: The GTIOCnA pin output level at the start or stop of counting depends on the register setting"]
147 _0 = 0,
148 #[doc = "1: The GTIOCnA pin output level is retained at the start or stop of counting"]
149 _1 = 1,
150}
151impl From<OAHLD_A> for bool {
152 #[inline(always)]
153 fn from(variant: OAHLD_A) -> Self {
154 variant as u8 != 0
155 }
156}
157impl OAHLD_R {
158 #[doc = "Get enumerated values variant"]
159 #[inline(always)]
160 pub fn variant(&self) -> OAHLD_A {
161 match self.bits {
162 false => OAHLD_A::_0,
163 true => OAHLD_A::_1,
164 }
165 }
166 #[doc = "Checks if the value of the field is `_0`"]
167 #[inline(always)]
168 pub fn is_0(&self) -> bool {
169 *self == OAHLD_A::_0
170 }
171 #[doc = "Checks if the value of the field is `_1`"]
172 #[inline(always)]
173 pub fn is_1(&self) -> bool {
174 *self == OAHLD_A::_1
175 }
176}
177#[doc = "Field `OAHLD` writer - GTIOCnA Pin Output Setting at the Start/Stop Count"]
178pub type OAHLD_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTIOR_SPEC, OAHLD_A, O>;
179impl<'a, const O: u8> OAHLD_W<'a, O> {
180 #[doc = "The GTIOCnA pin output level at the start or stop of counting depends on the register setting"]
181 #[inline(always)]
182 pub fn _0(self) -> &'a mut W {
183 self.variant(OAHLD_A::_0)
184 }
185 #[doc = "The GTIOCnA pin output level is retained at the start or stop of counting"]
186 #[inline(always)]
187 pub fn _1(self) -> &'a mut W {
188 self.variant(OAHLD_A::_1)
189 }
190}
191#[doc = "Field `OAE` reader - GTIOCnA Pin Output Enable"]
192pub type OAE_R = crate::BitReader<OAE_A>;
193#[doc = "GTIOCnA Pin Output Enable\n\nValue on reset: 0"]
194#[derive(Clone, Copy, Debug, PartialEq, Eq)]
195pub enum OAE_A {
196 #[doc = "0: Output is disabled"]
197 _0 = 0,
198 #[doc = "1: Output is enabled"]
199 _1 = 1,
200}
201impl From<OAE_A> for bool {
202 #[inline(always)]
203 fn from(variant: OAE_A) -> Self {
204 variant as u8 != 0
205 }
206}
207impl OAE_R {
208 #[doc = "Get enumerated values variant"]
209 #[inline(always)]
210 pub fn variant(&self) -> OAE_A {
211 match self.bits {
212 false => OAE_A::_0,
213 true => OAE_A::_1,
214 }
215 }
216 #[doc = "Checks if the value of the field is `_0`"]
217 #[inline(always)]
218 pub fn is_0(&self) -> bool {
219 *self == OAE_A::_0
220 }
221 #[doc = "Checks if the value of the field is `_1`"]
222 #[inline(always)]
223 pub fn is_1(&self) -> bool {
224 *self == OAE_A::_1
225 }
226}
227#[doc = "Field `OAE` writer - GTIOCnA Pin Output Enable"]
228pub type OAE_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTIOR_SPEC, OAE_A, O>;
229impl<'a, const O: u8> OAE_W<'a, O> {
230 #[doc = "Output is disabled"]
231 #[inline(always)]
232 pub fn _0(self) -> &'a mut W {
233 self.variant(OAE_A::_0)
234 }
235 #[doc = "Output is enabled"]
236 #[inline(always)]
237 pub fn _1(self) -> &'a mut W {
238 self.variant(OAE_A::_1)
239 }
240}
241#[doc = "Field `OADF` reader - GTIOCnA Pin Disable Value Setting"]
242pub type OADF_R = crate::FieldReader<u8, OADF_A>;
243#[doc = "GTIOCnA Pin Disable Value Setting\n\nValue on reset: 0"]
244#[derive(Clone, Copy, Debug, PartialEq, Eq)]
245#[repr(u8)]
246pub enum OADF_A {
247 #[doc = "0: None of the below options are specified"]
248 _00 = 0,
249 #[doc = "1: GTIOCnA pin is set to Hi-Z in response to controlling the output negation"]
250 _01 = 1,
251 #[doc = "2: GTIOCnA pin is set to 0 in response to controlling the output negation"]
252 _10 = 2,
253 #[doc = "3: GTIOCnA pin is set to 1 in response to controlling the output negation"]
254 _11 = 3,
255}
256impl From<OADF_A> for u8 {
257 #[inline(always)]
258 fn from(variant: OADF_A) -> Self {
259 variant as _
260 }
261}
262impl OADF_R {
263 #[doc = "Get enumerated values variant"]
264 #[inline(always)]
265 pub fn variant(&self) -> OADF_A {
266 match self.bits {
267 0 => OADF_A::_00,
268 1 => OADF_A::_01,
269 2 => OADF_A::_10,
270 3 => OADF_A::_11,
271 _ => unreachable!(),
272 }
273 }
274 #[doc = "Checks if the value of the field is `_00`"]
275 #[inline(always)]
276 pub fn is_00(&self) -> bool {
277 *self == OADF_A::_00
278 }
279 #[doc = "Checks if the value of the field is `_01`"]
280 #[inline(always)]
281 pub fn is_01(&self) -> bool {
282 *self == OADF_A::_01
283 }
284 #[doc = "Checks if the value of the field is `_10`"]
285 #[inline(always)]
286 pub fn is_10(&self) -> bool {
287 *self == OADF_A::_10
288 }
289 #[doc = "Checks if the value of the field is `_11`"]
290 #[inline(always)]
291 pub fn is_11(&self) -> bool {
292 *self == OADF_A::_11
293 }
294}
295#[doc = "Field `OADF` writer - GTIOCnA Pin Disable Value Setting"]
296pub type OADF_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, GTIOR_SPEC, u8, OADF_A, 2, O>;
297impl<'a, const O: u8> OADF_W<'a, O> {
298 #[doc = "None of the below options are specified"]
299 #[inline(always)]
300 pub fn _00(self) -> &'a mut W {
301 self.variant(OADF_A::_00)
302 }
303 #[doc = "GTIOCnA pin is set to Hi-Z in response to controlling the output negation"]
304 #[inline(always)]
305 pub fn _01(self) -> &'a mut W {
306 self.variant(OADF_A::_01)
307 }
308 #[doc = "GTIOCnA pin is set to 0 in response to controlling the output negation"]
309 #[inline(always)]
310 pub fn _10(self) -> &'a mut W {
311 self.variant(OADF_A::_10)
312 }
313 #[doc = "GTIOCnA pin is set to 1 in response to controlling the output negation"]
314 #[inline(always)]
315 pub fn _11(self) -> &'a mut W {
316 self.variant(OADF_A::_11)
317 }
318}
319#[doc = "Field `OAEOCD` reader - GTCCRA Compare Match Cycle End Output Invalidate"]
320pub type OAEOCD_R = crate::BitReader<OAEOCD_A>;
321#[doc = "GTCCRA Compare Match Cycle End Output Invalidate\n\nValue on reset: 0"]
322#[derive(Clone, Copy, Debug, PartialEq, Eq)]
323pub enum OAEOCD_A {
324 #[doc = "0: Validate GTIOA\\[3:2\\]
325setting"]
326 _0 = 0,
327 #[doc = "1: Invalidate GTIOA\\[3:2\\]
328setting (GTIOCnA pin output is retained)"]
329 _1 = 1,
330}
331impl From<OAEOCD_A> for bool {
332 #[inline(always)]
333 fn from(variant: OAEOCD_A) -> Self {
334 variant as u8 != 0
335 }
336}
337impl OAEOCD_R {
338 #[doc = "Get enumerated values variant"]
339 #[inline(always)]
340 pub fn variant(&self) -> OAEOCD_A {
341 match self.bits {
342 false => OAEOCD_A::_0,
343 true => OAEOCD_A::_1,
344 }
345 }
346 #[doc = "Checks if the value of the field is `_0`"]
347 #[inline(always)]
348 pub fn is_0(&self) -> bool {
349 *self == OAEOCD_A::_0
350 }
351 #[doc = "Checks if the value of the field is `_1`"]
352 #[inline(always)]
353 pub fn is_1(&self) -> bool {
354 *self == OAEOCD_A::_1
355 }
356}
357#[doc = "Field `OAEOCD` writer - GTCCRA Compare Match Cycle End Output Invalidate"]
358pub type OAEOCD_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTIOR_SPEC, OAEOCD_A, O>;
359impl<'a, const O: u8> OAEOCD_W<'a, O> {
360 #[doc = "Validate GTIOA\\[3:2\\]
361setting"]
362 #[inline(always)]
363 pub fn _0(self) -> &'a mut W {
364 self.variant(OAEOCD_A::_0)
365 }
366 #[doc = "Invalidate GTIOA\\[3:2\\]
367setting (GTIOCnA pin output is retained)"]
368 #[inline(always)]
369 pub fn _1(self) -> &'a mut W {
370 self.variant(OAEOCD_A::_1)
371 }
372}
373#[doc = "Field `PSYE` reader - PWM Synchronous output Enable"]
374pub type PSYE_R = crate::BitReader<PSYE_A>;
375#[doc = "PWM Synchronous output Enable\n\nValue on reset: 0"]
376#[derive(Clone, Copy, Debug, PartialEq, Eq)]
377pub enum PSYE_A {
378 #[doc = "0: Disable GTCPPOm pin output"]
379 _0 = 0,
380 #[doc = "1: Enable GTCPPOm pin output"]
381 _1 = 1,
382}
383impl From<PSYE_A> for bool {
384 #[inline(always)]
385 fn from(variant: PSYE_A) -> Self {
386 variant as u8 != 0
387 }
388}
389impl PSYE_R {
390 #[doc = "Get enumerated values variant"]
391 #[inline(always)]
392 pub fn variant(&self) -> PSYE_A {
393 match self.bits {
394 false => PSYE_A::_0,
395 true => PSYE_A::_1,
396 }
397 }
398 #[doc = "Checks if the value of the field is `_0`"]
399 #[inline(always)]
400 pub fn is_0(&self) -> bool {
401 *self == PSYE_A::_0
402 }
403 #[doc = "Checks if the value of the field is `_1`"]
404 #[inline(always)]
405 pub fn is_1(&self) -> bool {
406 *self == PSYE_A::_1
407 }
408}
409#[doc = "Field `PSYE` writer - PWM Synchronous output Enable"]
410pub type PSYE_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTIOR_SPEC, PSYE_A, O>;
411impl<'a, const O: u8> PSYE_W<'a, O> {
412 #[doc = "Disable GTCPPOm pin output"]
413 #[inline(always)]
414 pub fn _0(self) -> &'a mut W {
415 self.variant(PSYE_A::_0)
416 }
417 #[doc = "Enable GTCPPOm pin output"]
418 #[inline(always)]
419 pub fn _1(self) -> &'a mut W {
420 self.variant(PSYE_A::_1)
421 }
422}
423#[doc = "Field `NFAEN` reader - Noise Filter A Enable"]
424pub type NFAEN_R = crate::BitReader<NFAEN_A>;
425#[doc = "Noise Filter A Enable\n\nValue on reset: 0"]
426#[derive(Clone, Copy, Debug, PartialEq, Eq)]
427pub enum NFAEN_A {
428 #[doc = "0: The noise filter for the GTIOCnA pin is disabled"]
429 _0 = 0,
430 #[doc = "1: The noise filter for the GTIOCnA pin is enabled"]
431 _1 = 1,
432}
433impl From<NFAEN_A> for bool {
434 #[inline(always)]
435 fn from(variant: NFAEN_A) -> Self {
436 variant as u8 != 0
437 }
438}
439impl NFAEN_R {
440 #[doc = "Get enumerated values variant"]
441 #[inline(always)]
442 pub fn variant(&self) -> NFAEN_A {
443 match self.bits {
444 false => NFAEN_A::_0,
445 true => NFAEN_A::_1,
446 }
447 }
448 #[doc = "Checks if the value of the field is `_0`"]
449 #[inline(always)]
450 pub fn is_0(&self) -> bool {
451 *self == NFAEN_A::_0
452 }
453 #[doc = "Checks if the value of the field is `_1`"]
454 #[inline(always)]
455 pub fn is_1(&self) -> bool {
456 *self == NFAEN_A::_1
457 }
458}
459#[doc = "Field `NFAEN` writer - Noise Filter A Enable"]
460pub type NFAEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTIOR_SPEC, NFAEN_A, O>;
461impl<'a, const O: u8> NFAEN_W<'a, O> {
462 #[doc = "The noise filter for the GTIOCnA pin is disabled"]
463 #[inline(always)]
464 pub fn _0(self) -> &'a mut W {
465 self.variant(NFAEN_A::_0)
466 }
467 #[doc = "The noise filter for the GTIOCnA pin is enabled"]
468 #[inline(always)]
469 pub fn _1(self) -> &'a mut W {
470 self.variant(NFAEN_A::_1)
471 }
472}
473#[doc = "Field `NFCSA` reader - Noise Filter A Sampling Clock Select"]
474pub type NFCSA_R = crate::FieldReader<u8, NFCSA_A>;
475#[doc = "Noise Filter A Sampling Clock Select\n\nValue on reset: 0"]
476#[derive(Clone, Copy, Debug, PartialEq, Eq)]
477#[repr(u8)]
478pub enum NFCSA_A {
479 #[doc = "0: GTCLK/1"]
480 _00 = 0,
481 #[doc = "1: GTCLK/4"]
482 _01 = 1,
483 #[doc = "2: GTCLK/16"]
484 _10 = 2,
485 #[doc = "3: GTCLK/64"]
486 _11 = 3,
487}
488impl From<NFCSA_A> for u8 {
489 #[inline(always)]
490 fn from(variant: NFCSA_A) -> Self {
491 variant as _
492 }
493}
494impl NFCSA_R {
495 #[doc = "Get enumerated values variant"]
496 #[inline(always)]
497 pub fn variant(&self) -> NFCSA_A {
498 match self.bits {
499 0 => NFCSA_A::_00,
500 1 => NFCSA_A::_01,
501 2 => NFCSA_A::_10,
502 3 => NFCSA_A::_11,
503 _ => unreachable!(),
504 }
505 }
506 #[doc = "Checks if the value of the field is `_00`"]
507 #[inline(always)]
508 pub fn is_00(&self) -> bool {
509 *self == NFCSA_A::_00
510 }
511 #[doc = "Checks if the value of the field is `_01`"]
512 #[inline(always)]
513 pub fn is_01(&self) -> bool {
514 *self == NFCSA_A::_01
515 }
516 #[doc = "Checks if the value of the field is `_10`"]
517 #[inline(always)]
518 pub fn is_10(&self) -> bool {
519 *self == NFCSA_A::_10
520 }
521 #[doc = "Checks if the value of the field is `_11`"]
522 #[inline(always)]
523 pub fn is_11(&self) -> bool {
524 *self == NFCSA_A::_11
525 }
526}
527#[doc = "Field `NFCSA` writer - Noise Filter A Sampling Clock Select"]
528pub type NFCSA_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, GTIOR_SPEC, u8, NFCSA_A, 2, O>;
529impl<'a, const O: u8> NFCSA_W<'a, O> {
530 #[doc = "GTCLK/1"]
531 #[inline(always)]
532 pub fn _00(self) -> &'a mut W {
533 self.variant(NFCSA_A::_00)
534 }
535 #[doc = "GTCLK/4"]
536 #[inline(always)]
537 pub fn _01(self) -> &'a mut W {
538 self.variant(NFCSA_A::_01)
539 }
540 #[doc = "GTCLK/16"]
541 #[inline(always)]
542 pub fn _10(self) -> &'a mut W {
543 self.variant(NFCSA_A::_10)
544 }
545 #[doc = "GTCLK/64"]
546 #[inline(always)]
547 pub fn _11(self) -> &'a mut W {
548 self.variant(NFCSA_A::_11)
549 }
550}
551#[doc = "Field `GTIOB` reader - GTIOCnB Pin Function Select"]
552pub type GTIOB_R = crate::FieldReader<u8, u8>;
553#[doc = "Field `GTIOB` writer - GTIOCnB Pin Function Select"]
554pub type GTIOB_W<'a, const O: u8> = crate::FieldWriter<'a, u32, GTIOR_SPEC, u8, u8, 5, O>;
555#[doc = "Field `OBDFLT` reader - GTIOCnB Pin Output Value Setting at the Count Stop"]
556pub type OBDFLT_R = crate::BitReader<OBDFLT_A>;
557#[doc = "GTIOCnB Pin Output Value Setting at the Count Stop\n\nValue on reset: 0"]
558#[derive(Clone, Copy, Debug, PartialEq, Eq)]
559pub enum OBDFLT_A {
560 #[doc = "0: The GTIOCnB pin outputs low when counting stops"]
561 _0 = 0,
562 #[doc = "1: The GTIOCnB pin outputs high when counting stops"]
563 _1 = 1,
564}
565impl From<OBDFLT_A> for bool {
566 #[inline(always)]
567 fn from(variant: OBDFLT_A) -> Self {
568 variant as u8 != 0
569 }
570}
571impl OBDFLT_R {
572 #[doc = "Get enumerated values variant"]
573 #[inline(always)]
574 pub fn variant(&self) -> OBDFLT_A {
575 match self.bits {
576 false => OBDFLT_A::_0,
577 true => OBDFLT_A::_1,
578 }
579 }
580 #[doc = "Checks if the value of the field is `_0`"]
581 #[inline(always)]
582 pub fn is_0(&self) -> bool {
583 *self == OBDFLT_A::_0
584 }
585 #[doc = "Checks if the value of the field is `_1`"]
586 #[inline(always)]
587 pub fn is_1(&self) -> bool {
588 *self == OBDFLT_A::_1
589 }
590}
591#[doc = "Field `OBDFLT` writer - GTIOCnB Pin Output Value Setting at the Count Stop"]
592pub type OBDFLT_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTIOR_SPEC, OBDFLT_A, O>;
593impl<'a, const O: u8> OBDFLT_W<'a, O> {
594 #[doc = "The GTIOCnB pin outputs low when counting stops"]
595 #[inline(always)]
596 pub fn _0(self) -> &'a mut W {
597 self.variant(OBDFLT_A::_0)
598 }
599 #[doc = "The GTIOCnB pin outputs high when counting stops"]
600 #[inline(always)]
601 pub fn _1(self) -> &'a mut W {
602 self.variant(OBDFLT_A::_1)
603 }
604}
605#[doc = "Field `OBHLD` reader - GTIOCnB Pin Output Setting at the Start/Stop Count"]
606pub type OBHLD_R = crate::BitReader<OBHLD_A>;
607#[doc = "GTIOCnB Pin Output Setting at the Start/Stop Count\n\nValue on reset: 0"]
608#[derive(Clone, Copy, Debug, PartialEq, Eq)]
609pub enum OBHLD_A {
610 #[doc = "0: The GTIOCnB pin output level at the start/stop of counting depends on the register setting"]
611 _0 = 0,
612 #[doc = "1: The GTIOCnB pin output level is retained at the start/stop of counting"]
613 _1 = 1,
614}
615impl From<OBHLD_A> for bool {
616 #[inline(always)]
617 fn from(variant: OBHLD_A) -> Self {
618 variant as u8 != 0
619 }
620}
621impl OBHLD_R {
622 #[doc = "Get enumerated values variant"]
623 #[inline(always)]
624 pub fn variant(&self) -> OBHLD_A {
625 match self.bits {
626 false => OBHLD_A::_0,
627 true => OBHLD_A::_1,
628 }
629 }
630 #[doc = "Checks if the value of the field is `_0`"]
631 #[inline(always)]
632 pub fn is_0(&self) -> bool {
633 *self == OBHLD_A::_0
634 }
635 #[doc = "Checks if the value of the field is `_1`"]
636 #[inline(always)]
637 pub fn is_1(&self) -> bool {
638 *self == OBHLD_A::_1
639 }
640}
641#[doc = "Field `OBHLD` writer - GTIOCnB Pin Output Setting at the Start/Stop Count"]
642pub type OBHLD_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTIOR_SPEC, OBHLD_A, O>;
643impl<'a, const O: u8> OBHLD_W<'a, O> {
644 #[doc = "The GTIOCnB pin output level at the start/stop of counting depends on the register setting"]
645 #[inline(always)]
646 pub fn _0(self) -> &'a mut W {
647 self.variant(OBHLD_A::_0)
648 }
649 #[doc = "The GTIOCnB pin output level is retained at the start/stop of counting"]
650 #[inline(always)]
651 pub fn _1(self) -> &'a mut W {
652 self.variant(OBHLD_A::_1)
653 }
654}
655#[doc = "Field `OBE` reader - GTIOCnB Pin Output Enable"]
656pub type OBE_R = crate::BitReader<OBE_A>;
657#[doc = "GTIOCnB Pin Output Enable\n\nValue on reset: 0"]
658#[derive(Clone, Copy, Debug, PartialEq, Eq)]
659pub enum OBE_A {
660 #[doc = "0: Output is disabled"]
661 _0 = 0,
662 #[doc = "1: Output is enabled"]
663 _1 = 1,
664}
665impl From<OBE_A> for bool {
666 #[inline(always)]
667 fn from(variant: OBE_A) -> Self {
668 variant as u8 != 0
669 }
670}
671impl OBE_R {
672 #[doc = "Get enumerated values variant"]
673 #[inline(always)]
674 pub fn variant(&self) -> OBE_A {
675 match self.bits {
676 false => OBE_A::_0,
677 true => OBE_A::_1,
678 }
679 }
680 #[doc = "Checks if the value of the field is `_0`"]
681 #[inline(always)]
682 pub fn is_0(&self) -> bool {
683 *self == OBE_A::_0
684 }
685 #[doc = "Checks if the value of the field is `_1`"]
686 #[inline(always)]
687 pub fn is_1(&self) -> bool {
688 *self == OBE_A::_1
689 }
690}
691#[doc = "Field `OBE` writer - GTIOCnB Pin Output Enable"]
692pub type OBE_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTIOR_SPEC, OBE_A, O>;
693impl<'a, const O: u8> OBE_W<'a, O> {
694 #[doc = "Output is disabled"]
695 #[inline(always)]
696 pub fn _0(self) -> &'a mut W {
697 self.variant(OBE_A::_0)
698 }
699 #[doc = "Output is enabled"]
700 #[inline(always)]
701 pub fn _1(self) -> &'a mut W {
702 self.variant(OBE_A::_1)
703 }
704}
705#[doc = "Field `OBDF` reader - GTIOCnB Pin Disable Value Setting"]
706pub type OBDF_R = crate::FieldReader<u8, OBDF_A>;
707#[doc = "GTIOCnB Pin Disable Value Setting\n\nValue on reset: 0"]
708#[derive(Clone, Copy, Debug, PartialEq, Eq)]
709#[repr(u8)]
710pub enum OBDF_A {
711 #[doc = "0: None of the below options are specified"]
712 _00 = 0,
713 #[doc = "1: GTIOCnB pin is set to Hi-Z in response to controlling the output negation"]
714 _01 = 1,
715 #[doc = "2: GTIOCnB pin is set to 0 in response to controlling the output negation"]
716 _10 = 2,
717 #[doc = "3: GTIOCnB pin is set to 1 in response to controlling the output negation"]
718 _11 = 3,
719}
720impl From<OBDF_A> for u8 {
721 #[inline(always)]
722 fn from(variant: OBDF_A) -> Self {
723 variant as _
724 }
725}
726impl OBDF_R {
727 #[doc = "Get enumerated values variant"]
728 #[inline(always)]
729 pub fn variant(&self) -> OBDF_A {
730 match self.bits {
731 0 => OBDF_A::_00,
732 1 => OBDF_A::_01,
733 2 => OBDF_A::_10,
734 3 => OBDF_A::_11,
735 _ => unreachable!(),
736 }
737 }
738 #[doc = "Checks if the value of the field is `_00`"]
739 #[inline(always)]
740 pub fn is_00(&self) -> bool {
741 *self == OBDF_A::_00
742 }
743 #[doc = "Checks if the value of the field is `_01`"]
744 #[inline(always)]
745 pub fn is_01(&self) -> bool {
746 *self == OBDF_A::_01
747 }
748 #[doc = "Checks if the value of the field is `_10`"]
749 #[inline(always)]
750 pub fn is_10(&self) -> bool {
751 *self == OBDF_A::_10
752 }
753 #[doc = "Checks if the value of the field is `_11`"]
754 #[inline(always)]
755 pub fn is_11(&self) -> bool {
756 *self == OBDF_A::_11
757 }
758}
759#[doc = "Field `OBDF` writer - GTIOCnB Pin Disable Value Setting"]
760pub type OBDF_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, GTIOR_SPEC, u8, OBDF_A, 2, O>;
761impl<'a, const O: u8> OBDF_W<'a, O> {
762 #[doc = "None of the below options are specified"]
763 #[inline(always)]
764 pub fn _00(self) -> &'a mut W {
765 self.variant(OBDF_A::_00)
766 }
767 #[doc = "GTIOCnB pin is set to Hi-Z in response to controlling the output negation"]
768 #[inline(always)]
769 pub fn _01(self) -> &'a mut W {
770 self.variant(OBDF_A::_01)
771 }
772 #[doc = "GTIOCnB pin is set to 0 in response to controlling the output negation"]
773 #[inline(always)]
774 pub fn _10(self) -> &'a mut W {
775 self.variant(OBDF_A::_10)
776 }
777 #[doc = "GTIOCnB pin is set to 1 in response to controlling the output negation"]
778 #[inline(always)]
779 pub fn _11(self) -> &'a mut W {
780 self.variant(OBDF_A::_11)
781 }
782}
783#[doc = "Field `OBEOCD` reader - GTCCRB Compare Match Cycle End Output Invalidate"]
784pub type OBEOCD_R = crate::BitReader<OBEOCD_A>;
785#[doc = "GTCCRB Compare Match Cycle End Output Invalidate\n\nValue on reset: 0"]
786#[derive(Clone, Copy, Debug, PartialEq, Eq)]
787pub enum OBEOCD_A {
788 #[doc = "0: When Saw-wave PWM mode 1, validate GTIOB\\[3:2\\]
789setting When Saw-wave PWM mode 2, validate GTIOA\\[3:2\\]
790setting"]
791 _0 = 0,
792 #[doc = "1: When Saw-wave PWM mode 1, invalidate GTIOB\\[3:2\\]
793setting (GTIOCnB pin output is retained) When Saw-wave PWM mode 2, invalidate GTIOA\\[3:2\\]
794setting (GTIOCnA pin output is retained)"]
795 _1 = 1,
796}
797impl From<OBEOCD_A> for bool {
798 #[inline(always)]
799 fn from(variant: OBEOCD_A) -> Self {
800 variant as u8 != 0
801 }
802}
803impl OBEOCD_R {
804 #[doc = "Get enumerated values variant"]
805 #[inline(always)]
806 pub fn variant(&self) -> OBEOCD_A {
807 match self.bits {
808 false => OBEOCD_A::_0,
809 true => OBEOCD_A::_1,
810 }
811 }
812 #[doc = "Checks if the value of the field is `_0`"]
813 #[inline(always)]
814 pub fn is_0(&self) -> bool {
815 *self == OBEOCD_A::_0
816 }
817 #[doc = "Checks if the value of the field is `_1`"]
818 #[inline(always)]
819 pub fn is_1(&self) -> bool {
820 *self == OBEOCD_A::_1
821 }
822}
823#[doc = "Field `OBEOCD` writer - GTCCRB Compare Match Cycle End Output Invalidate"]
824pub type OBEOCD_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTIOR_SPEC, OBEOCD_A, O>;
825impl<'a, const O: u8> OBEOCD_W<'a, O> {
826 #[doc = "When Saw-wave PWM mode 1, validate GTIOB\\[3:2\\]
827setting When Saw-wave PWM mode 2, validate GTIOA\\[3:2\\]
828setting"]
829 #[inline(always)]
830 pub fn _0(self) -> &'a mut W {
831 self.variant(OBEOCD_A::_0)
832 }
833 #[doc = "When Saw-wave PWM mode 1, invalidate GTIOB\\[3:2\\]
834setting (GTIOCnB pin output is retained) When Saw-wave PWM mode 2, invalidate GTIOA\\[3:2\\]
835setting (GTIOCnA pin output is retained)"]
836 #[inline(always)]
837 pub fn _1(self) -> &'a mut W {
838 self.variant(OBEOCD_A::_1)
839 }
840}
841#[doc = "Field `NFBEN` reader - Noise Filter B Enable"]
842pub type NFBEN_R = crate::BitReader<NFBEN_A>;
843#[doc = "Noise Filter B Enable\n\nValue on reset: 0"]
844#[derive(Clone, Copy, Debug, PartialEq, Eq)]
845pub enum NFBEN_A {
846 #[doc = "0: The noise filter for the GTIOCnB pin is disabled"]
847 _0 = 0,
848 #[doc = "1: The noise filter for the GTIOCnB pin is enabled"]
849 _1 = 1,
850}
851impl From<NFBEN_A> for bool {
852 #[inline(always)]
853 fn from(variant: NFBEN_A) -> Self {
854 variant as u8 != 0
855 }
856}
857impl NFBEN_R {
858 #[doc = "Get enumerated values variant"]
859 #[inline(always)]
860 pub fn variant(&self) -> NFBEN_A {
861 match self.bits {
862 false => NFBEN_A::_0,
863 true => NFBEN_A::_1,
864 }
865 }
866 #[doc = "Checks if the value of the field is `_0`"]
867 #[inline(always)]
868 pub fn is_0(&self) -> bool {
869 *self == NFBEN_A::_0
870 }
871 #[doc = "Checks if the value of the field is `_1`"]
872 #[inline(always)]
873 pub fn is_1(&self) -> bool {
874 *self == NFBEN_A::_1
875 }
876}
877#[doc = "Field `NFBEN` writer - Noise Filter B Enable"]
878pub type NFBEN_W<'a, const O: u8> = crate::BitWriter<'a, u32, GTIOR_SPEC, NFBEN_A, O>;
879impl<'a, const O: u8> NFBEN_W<'a, O> {
880 #[doc = "The noise filter for the GTIOCnB pin is disabled"]
881 #[inline(always)]
882 pub fn _0(self) -> &'a mut W {
883 self.variant(NFBEN_A::_0)
884 }
885 #[doc = "The noise filter for the GTIOCnB pin is enabled"]
886 #[inline(always)]
887 pub fn _1(self) -> &'a mut W {
888 self.variant(NFBEN_A::_1)
889 }
890}
891#[doc = "Field `NFCSB` reader - Noise Filter B Sampling Clock Select"]
892pub type NFCSB_R = crate::FieldReader<u8, NFCSB_A>;
893#[doc = "Noise Filter B Sampling Clock Select\n\nValue on reset: 0"]
894#[derive(Clone, Copy, Debug, PartialEq, Eq)]
895#[repr(u8)]
896pub enum NFCSB_A {
897 #[doc = "0: GTCLK/1"]
898 _00 = 0,
899 #[doc = "1: GTCLK/4"]
900 _01 = 1,
901 #[doc = "2: GTCLK/16"]
902 _10 = 2,
903 #[doc = "3: GTCLK/64"]
904 _11 = 3,
905}
906impl From<NFCSB_A> for u8 {
907 #[inline(always)]
908 fn from(variant: NFCSB_A) -> Self {
909 variant as _
910 }
911}
912impl NFCSB_R {
913 #[doc = "Get enumerated values variant"]
914 #[inline(always)]
915 pub fn variant(&self) -> NFCSB_A {
916 match self.bits {
917 0 => NFCSB_A::_00,
918 1 => NFCSB_A::_01,
919 2 => NFCSB_A::_10,
920 3 => NFCSB_A::_11,
921 _ => unreachable!(),
922 }
923 }
924 #[doc = "Checks if the value of the field is `_00`"]
925 #[inline(always)]
926 pub fn is_00(&self) -> bool {
927 *self == NFCSB_A::_00
928 }
929 #[doc = "Checks if the value of the field is `_01`"]
930 #[inline(always)]
931 pub fn is_01(&self) -> bool {
932 *self == NFCSB_A::_01
933 }
934 #[doc = "Checks if the value of the field is `_10`"]
935 #[inline(always)]
936 pub fn is_10(&self) -> bool {
937 *self == NFCSB_A::_10
938 }
939 #[doc = "Checks if the value of the field is `_11`"]
940 #[inline(always)]
941 pub fn is_11(&self) -> bool {
942 *self == NFCSB_A::_11
943 }
944}
945#[doc = "Field `NFCSB` writer - Noise Filter B Sampling Clock Select"]
946pub type NFCSB_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, GTIOR_SPEC, u8, NFCSB_A, 2, O>;
947impl<'a, const O: u8> NFCSB_W<'a, O> {
948 #[doc = "GTCLK/1"]
949 #[inline(always)]
950 pub fn _00(self) -> &'a mut W {
951 self.variant(NFCSB_A::_00)
952 }
953 #[doc = "GTCLK/4"]
954 #[inline(always)]
955 pub fn _01(self) -> &'a mut W {
956 self.variant(NFCSB_A::_01)
957 }
958 #[doc = "GTCLK/16"]
959 #[inline(always)]
960 pub fn _10(self) -> &'a mut W {
961 self.variant(NFCSB_A::_10)
962 }
963 #[doc = "GTCLK/64"]
964 #[inline(always)]
965 pub fn _11(self) -> &'a mut W {
966 self.variant(NFCSB_A::_11)
967 }
968}
969impl R {
970 #[doc = "Bits 0:4 - GTIOCnA Pin Function Select"]
971 #[inline(always)]
972 pub fn gtioa(&self) -> GTIOA_R {
973 GTIOA_R::new((self.bits & 0x1f) as u8)
974 }
975 #[doc = "Bit 5 - Complementary PWM Mode Initial Output at Synchronous Clear Disable"]
976 #[inline(always)]
977 pub fn cpscir(&self) -> CPSCIR_R {
978 CPSCIR_R::new(((self.bits >> 5) & 1) != 0)
979 }
980 #[doc = "Bit 6 - GTIOCnA Pin Output Value Setting at the Count Stop"]
981 #[inline(always)]
982 pub fn oadflt(&self) -> OADFLT_R {
983 OADFLT_R::new(((self.bits >> 6) & 1) != 0)
984 }
985 #[doc = "Bit 7 - GTIOCnA Pin Output Setting at the Start/Stop Count"]
986 #[inline(always)]
987 pub fn oahld(&self) -> OAHLD_R {
988 OAHLD_R::new(((self.bits >> 7) & 1) != 0)
989 }
990 #[doc = "Bit 8 - GTIOCnA Pin Output Enable"]
991 #[inline(always)]
992 pub fn oae(&self) -> OAE_R {
993 OAE_R::new(((self.bits >> 8) & 1) != 0)
994 }
995 #[doc = "Bits 9:10 - GTIOCnA Pin Disable Value Setting"]
996 #[inline(always)]
997 pub fn oadf(&self) -> OADF_R {
998 OADF_R::new(((self.bits >> 9) & 3) as u8)
999 }
1000 #[doc = "Bit 11 - GTCCRA Compare Match Cycle End Output Invalidate"]
1001 #[inline(always)]
1002 pub fn oaeocd(&self) -> OAEOCD_R {
1003 OAEOCD_R::new(((self.bits >> 11) & 1) != 0)
1004 }
1005 #[doc = "Bit 12 - PWM Synchronous output Enable"]
1006 #[inline(always)]
1007 pub fn psye(&self) -> PSYE_R {
1008 PSYE_R::new(((self.bits >> 12) & 1) != 0)
1009 }
1010 #[doc = "Bit 13 - Noise Filter A Enable"]
1011 #[inline(always)]
1012 pub fn nfaen(&self) -> NFAEN_R {
1013 NFAEN_R::new(((self.bits >> 13) & 1) != 0)
1014 }
1015 #[doc = "Bits 14:15 - Noise Filter A Sampling Clock Select"]
1016 #[inline(always)]
1017 pub fn nfcsa(&self) -> NFCSA_R {
1018 NFCSA_R::new(((self.bits >> 14) & 3) as u8)
1019 }
1020 #[doc = "Bits 16:20 - GTIOCnB Pin Function Select"]
1021 #[inline(always)]
1022 pub fn gtiob(&self) -> GTIOB_R {
1023 GTIOB_R::new(((self.bits >> 16) & 0x1f) as u8)
1024 }
1025 #[doc = "Bit 22 - GTIOCnB Pin Output Value Setting at the Count Stop"]
1026 #[inline(always)]
1027 pub fn obdflt(&self) -> OBDFLT_R {
1028 OBDFLT_R::new(((self.bits >> 22) & 1) != 0)
1029 }
1030 #[doc = "Bit 23 - GTIOCnB Pin Output Setting at the Start/Stop Count"]
1031 #[inline(always)]
1032 pub fn obhld(&self) -> OBHLD_R {
1033 OBHLD_R::new(((self.bits >> 23) & 1) != 0)
1034 }
1035 #[doc = "Bit 24 - GTIOCnB Pin Output Enable"]
1036 #[inline(always)]
1037 pub fn obe(&self) -> OBE_R {
1038 OBE_R::new(((self.bits >> 24) & 1) != 0)
1039 }
1040 #[doc = "Bits 25:26 - GTIOCnB Pin Disable Value Setting"]
1041 #[inline(always)]
1042 pub fn obdf(&self) -> OBDF_R {
1043 OBDF_R::new(((self.bits >> 25) & 3) as u8)
1044 }
1045 #[doc = "Bit 27 - GTCCRB Compare Match Cycle End Output Invalidate"]
1046 #[inline(always)]
1047 pub fn obeocd(&self) -> OBEOCD_R {
1048 OBEOCD_R::new(((self.bits >> 27) & 1) != 0)
1049 }
1050 #[doc = "Bit 29 - Noise Filter B Enable"]
1051 #[inline(always)]
1052 pub fn nfben(&self) -> NFBEN_R {
1053 NFBEN_R::new(((self.bits >> 29) & 1) != 0)
1054 }
1055 #[doc = "Bits 30:31 - Noise Filter B Sampling Clock Select"]
1056 #[inline(always)]
1057 pub fn nfcsb(&self) -> NFCSB_R {
1058 NFCSB_R::new(((self.bits >> 30) & 3) as u8)
1059 }
1060}
1061impl W {
1062 #[doc = "Bits 0:4 - GTIOCnA Pin Function Select"]
1063 #[inline(always)]
1064 #[must_use]
1065 pub fn gtioa(&mut self) -> GTIOA_W<0> {
1066 GTIOA_W::new(self)
1067 }
1068 #[doc = "Bit 5 - Complementary PWM Mode Initial Output at Synchronous Clear Disable"]
1069 #[inline(always)]
1070 #[must_use]
1071 pub fn cpscir(&mut self) -> CPSCIR_W<5> {
1072 CPSCIR_W::new(self)
1073 }
1074 #[doc = "Bit 6 - GTIOCnA Pin Output Value Setting at the Count Stop"]
1075 #[inline(always)]
1076 #[must_use]
1077 pub fn oadflt(&mut self) -> OADFLT_W<6> {
1078 OADFLT_W::new(self)
1079 }
1080 #[doc = "Bit 7 - GTIOCnA Pin Output Setting at the Start/Stop Count"]
1081 #[inline(always)]
1082 #[must_use]
1083 pub fn oahld(&mut self) -> OAHLD_W<7> {
1084 OAHLD_W::new(self)
1085 }
1086 #[doc = "Bit 8 - GTIOCnA Pin Output Enable"]
1087 #[inline(always)]
1088 #[must_use]
1089 pub fn oae(&mut self) -> OAE_W<8> {
1090 OAE_W::new(self)
1091 }
1092 #[doc = "Bits 9:10 - GTIOCnA Pin Disable Value Setting"]
1093 #[inline(always)]
1094 #[must_use]
1095 pub fn oadf(&mut self) -> OADF_W<9> {
1096 OADF_W::new(self)
1097 }
1098 #[doc = "Bit 11 - GTCCRA Compare Match Cycle End Output Invalidate"]
1099 #[inline(always)]
1100 #[must_use]
1101 pub fn oaeocd(&mut self) -> OAEOCD_W<11> {
1102 OAEOCD_W::new(self)
1103 }
1104 #[doc = "Bit 12 - PWM Synchronous output Enable"]
1105 #[inline(always)]
1106 #[must_use]
1107 pub fn psye(&mut self) -> PSYE_W<12> {
1108 PSYE_W::new(self)
1109 }
1110 #[doc = "Bit 13 - Noise Filter A Enable"]
1111 #[inline(always)]
1112 #[must_use]
1113 pub fn nfaen(&mut self) -> NFAEN_W<13> {
1114 NFAEN_W::new(self)
1115 }
1116 #[doc = "Bits 14:15 - Noise Filter A Sampling Clock Select"]
1117 #[inline(always)]
1118 #[must_use]
1119 pub fn nfcsa(&mut self) -> NFCSA_W<14> {
1120 NFCSA_W::new(self)
1121 }
1122 #[doc = "Bits 16:20 - GTIOCnB Pin Function Select"]
1123 #[inline(always)]
1124 #[must_use]
1125 pub fn gtiob(&mut self) -> GTIOB_W<16> {
1126 GTIOB_W::new(self)
1127 }
1128 #[doc = "Bit 22 - GTIOCnB Pin Output Value Setting at the Count Stop"]
1129 #[inline(always)]
1130 #[must_use]
1131 pub fn obdflt(&mut self) -> OBDFLT_W<22> {
1132 OBDFLT_W::new(self)
1133 }
1134 #[doc = "Bit 23 - GTIOCnB Pin Output Setting at the Start/Stop Count"]
1135 #[inline(always)]
1136 #[must_use]
1137 pub fn obhld(&mut self) -> OBHLD_W<23> {
1138 OBHLD_W::new(self)
1139 }
1140 #[doc = "Bit 24 - GTIOCnB Pin Output Enable"]
1141 #[inline(always)]
1142 #[must_use]
1143 pub fn obe(&mut self) -> OBE_W<24> {
1144 OBE_W::new(self)
1145 }
1146 #[doc = "Bits 25:26 - GTIOCnB Pin Disable Value Setting"]
1147 #[inline(always)]
1148 #[must_use]
1149 pub fn obdf(&mut self) -> OBDF_W<25> {
1150 OBDF_W::new(self)
1151 }
1152 #[doc = "Bit 27 - GTCCRB Compare Match Cycle End Output Invalidate"]
1153 #[inline(always)]
1154 #[must_use]
1155 pub fn obeocd(&mut self) -> OBEOCD_W<27> {
1156 OBEOCD_W::new(self)
1157 }
1158 #[doc = "Bit 29 - Noise Filter B Enable"]
1159 #[inline(always)]
1160 #[must_use]
1161 pub fn nfben(&mut self) -> NFBEN_W<29> {
1162 NFBEN_W::new(self)
1163 }
1164 #[doc = "Bits 30:31 - Noise Filter B Sampling Clock Select"]
1165 #[inline(always)]
1166 #[must_use]
1167 pub fn nfcsb(&mut self) -> NFCSB_W<30> {
1168 NFCSB_W::new(self)
1169 }
1170 #[doc = "Writes raw bits to the register."]
1171 #[inline(always)]
1172 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1173 self.0.bits(bits);
1174 self
1175 }
1176}
1177#[doc = "General PWM Timer I/O Control Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [gtior](index.html) module"]
1178pub struct GTIOR_SPEC;
1179impl crate::RegisterSpec for GTIOR_SPEC {
1180 type Ux = u32;
1181}
1182#[doc = "`read()` method returns [gtior::R](R) reader structure"]
1183impl crate::Readable for GTIOR_SPEC {
1184 type Reader = R;
1185}
1186#[doc = "`write(|w| ..)` method takes [gtior::W](W) writer structure"]
1187impl crate::Writable for GTIOR_SPEC {
1188 type Writer = W;
1189 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
1190 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
1191}
1192#[doc = "`reset()` method sets GTIOR to value 0"]
1193impl crate::Resettable for GTIOR_SPEC {
1194 const RESET_VALUE: Self::Ux = 0;
1195}