1#![allow(clippy::identity_op)]
21#![allow(clippy::module_inception)]
22#![allow(clippy::derivable_impls)]
23#[allow(unused_imports)]
24use crate::common::sealed;
25#[allow(unused_imports)]
26use crate::common::*;
27#[doc = r"Port Output Enable Module for GPT"]
28unsafe impl ::core::marker::Send for super::Poeg {}
29unsafe impl ::core::marker::Sync for super::Poeg {}
30impl super::Poeg {
31 #[allow(unused)]
32 #[inline(always)]
33 pub(crate) const fn _svd2pac_as_ptr(&self) -> *mut u8 {
34 self.ptr
35 }
36
37 #[doc = "POEG Group A Setting Register"]
38 #[inline(always)]
39 pub const fn poegga(
40 &self,
41 ) -> &'static crate::common::Reg<self::Poegga_SPEC, crate::common::RW> {
42 unsafe {
43 crate::common::Reg::<self::Poegga_SPEC, crate::common::RW>::from_ptr(
44 self._svd2pac_as_ptr().add(0usize),
45 )
46 }
47 }
48
49 #[doc = "POEG Group B Setting Register"]
50 #[inline(always)]
51 pub const fn poeggb(
52 &self,
53 ) -> &'static crate::common::Reg<self::Poeggb_SPEC, crate::common::RW> {
54 unsafe {
55 crate::common::Reg::<self::Poeggb_SPEC, crate::common::RW>::from_ptr(
56 self._svd2pac_as_ptr().add(256usize),
57 )
58 }
59 }
60}
61#[doc(hidden)]
62#[derive(Copy, Clone, Eq, PartialEq)]
63pub struct Poegga_SPEC;
64impl crate::sealed::RegSpec for Poegga_SPEC {
65 type DataType = u32;
66}
67
68#[doc = "POEG Group A Setting Register"]
69pub type Poegga = crate::RegValueT<Poegga_SPEC>;
70
71impl Poegga {
72 #[doc = "Port Input Detection Flag"]
73 #[inline(always)]
74 pub fn pidf(
75 self,
76 ) -> crate::common::RegisterField<
77 0,
78 0x1,
79 1,
80 0,
81 poegga::Pidf,
82 poegga::Pidf,
83 Poegga_SPEC,
84 crate::common::RW,
85 > {
86 crate::common::RegisterField::<
87 0,
88 0x1,
89 1,
90 0,
91 poegga::Pidf,
92 poegga::Pidf,
93 Poegga_SPEC,
94 crate::common::RW,
95 >::from_register(self, 0)
96 }
97
98 #[doc = "Detection Flag for GPT Output-Disable Request"]
99 #[inline(always)]
100 pub fn iocf(
101 self,
102 ) -> crate::common::RegisterField<
103 1,
104 0x1,
105 1,
106 0,
107 poegga::Iocf,
108 poegga::Iocf,
109 Poegga_SPEC,
110 crate::common::RW,
111 > {
112 crate::common::RegisterField::<
113 1,
114 0x1,
115 1,
116 0,
117 poegga::Iocf,
118 poegga::Iocf,
119 Poegga_SPEC,
120 crate::common::RW,
121 >::from_register(self, 0)
122 }
123
124 #[doc = "Oscillation Stop Detection Flag"]
125 #[inline(always)]
126 pub fn ostpf(
127 self,
128 ) -> crate::common::RegisterField<
129 2,
130 0x1,
131 1,
132 0,
133 poegga::Ostpf,
134 poegga::Ostpf,
135 Poegga_SPEC,
136 crate::common::RW,
137 > {
138 crate::common::RegisterField::<
139 2,
140 0x1,
141 1,
142 0,
143 poegga::Ostpf,
144 poegga::Ostpf,
145 Poegga_SPEC,
146 crate::common::RW,
147 >::from_register(self, 0)
148 }
149
150 #[doc = "Software Stop Flag"]
151 #[inline(always)]
152 pub fn ssf(
153 self,
154 ) -> crate::common::RegisterField<
155 3,
156 0x1,
157 1,
158 0,
159 poegga::Ssf,
160 poegga::Ssf,
161 Poegga_SPEC,
162 crate::common::RW,
163 > {
164 crate::common::RegisterField::<
165 3,
166 0x1,
167 1,
168 0,
169 poegga::Ssf,
170 poegga::Ssf,
171 Poegga_SPEC,
172 crate::common::RW,
173 >::from_register(self, 0)
174 }
175
176 #[doc = "Port Input Detection Enable"]
177 #[inline(always)]
178 pub fn pide(
179 self,
180 ) -> crate::common::RegisterField<
181 4,
182 0x1,
183 1,
184 0,
185 poegga::Pide,
186 poegga::Pide,
187 Poegga_SPEC,
188 crate::common::RW,
189 > {
190 crate::common::RegisterField::<
191 4,
192 0x1,
193 1,
194 0,
195 poegga::Pide,
196 poegga::Pide,
197 Poegga_SPEC,
198 crate::common::RW,
199 >::from_register(self, 0)
200 }
201
202 #[doc = "Enable for GPT Output-Disable Request"]
203 #[inline(always)]
204 pub fn ioce(
205 self,
206 ) -> crate::common::RegisterField<
207 5,
208 0x1,
209 1,
210 0,
211 poegga::Ioce,
212 poegga::Ioce,
213 Poegga_SPEC,
214 crate::common::RW,
215 > {
216 crate::common::RegisterField::<
217 5,
218 0x1,
219 1,
220 0,
221 poegga::Ioce,
222 poegga::Ioce,
223 Poegga_SPEC,
224 crate::common::RW,
225 >::from_register(self, 0)
226 }
227
228 #[doc = "Oscillation Stop Detection Enable"]
229 #[inline(always)]
230 pub fn ostpe(
231 self,
232 ) -> crate::common::RegisterField<
233 6,
234 0x1,
235 1,
236 0,
237 poegga::Ostpe,
238 poegga::Ostpe,
239 Poegga_SPEC,
240 crate::common::RW,
241 > {
242 crate::common::RegisterField::<
243 6,
244 0x1,
245 1,
246 0,
247 poegga::Ostpe,
248 poegga::Ostpe,
249 Poegga_SPEC,
250 crate::common::RW,
251 >::from_register(self, 0)
252 }
253
254 #[doc = "GTETRGn Input Status Flag"]
255 #[inline(always)]
256 pub fn st(
257 self,
258 ) -> crate::common::RegisterField<
259 16,
260 0x1,
261 1,
262 0,
263 poegga::St,
264 poegga::St,
265 Poegga_SPEC,
266 crate::common::R,
267 > {
268 crate::common::RegisterField::<
269 16,
270 0x1,
271 1,
272 0,
273 poegga::St,
274 poegga::St,
275 Poegga_SPEC,
276 crate::common::R,
277 >::from_register(self, 0)
278 }
279
280 #[doc = "GTETRGn Input Reverse"]
281 #[inline(always)]
282 pub fn inv(
283 self,
284 ) -> crate::common::RegisterField<
285 28,
286 0x1,
287 1,
288 0,
289 poegga::Inv,
290 poegga::Inv,
291 Poegga_SPEC,
292 crate::common::RW,
293 > {
294 crate::common::RegisterField::<
295 28,
296 0x1,
297 1,
298 0,
299 poegga::Inv,
300 poegga::Inv,
301 Poegga_SPEC,
302 crate::common::RW,
303 >::from_register(self, 0)
304 }
305
306 #[doc = "Noise Filter Enable"]
307 #[inline(always)]
308 pub fn nfen(
309 self,
310 ) -> crate::common::RegisterField<
311 29,
312 0x1,
313 1,
314 0,
315 poegga::Nfen,
316 poegga::Nfen,
317 Poegga_SPEC,
318 crate::common::RW,
319 > {
320 crate::common::RegisterField::<
321 29,
322 0x1,
323 1,
324 0,
325 poegga::Nfen,
326 poegga::Nfen,
327 Poegga_SPEC,
328 crate::common::RW,
329 >::from_register(self, 0)
330 }
331
332 #[doc = "Noise Filter Clock Select"]
333 #[inline(always)]
334 pub fn nfcs(
335 self,
336 ) -> crate::common::RegisterField<
337 30,
338 0x3,
339 1,
340 0,
341 poegga::Nfcs,
342 poegga::Nfcs,
343 Poegga_SPEC,
344 crate::common::RW,
345 > {
346 crate::common::RegisterField::<
347 30,
348 0x3,
349 1,
350 0,
351 poegga::Nfcs,
352 poegga::Nfcs,
353 Poegga_SPEC,
354 crate::common::RW,
355 >::from_register(self, 0)
356 }
357}
358impl ::core::default::Default for Poegga {
359 #[inline(always)]
360 fn default() -> Poegga {
361 <crate::RegValueT<Poegga_SPEC> as RegisterValue<_>>::new(0)
362 }
363}
364pub mod poegga {
365
366 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
367 pub struct Pidf_SPEC;
368 pub type Pidf = crate::EnumBitfieldStruct<u8, Pidf_SPEC>;
369 impl Pidf {
370 #[doc = "No output-disable request from the GTETRGn pin occurred"]
371 pub const _0: Self = Self::new(0);
372
373 #[doc = "Output-disable request from the GTETRGn pin occurred."]
374 pub const _1: Self = Self::new(1);
375 }
376 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
377 pub struct Iocf_SPEC;
378 pub type Iocf = crate::EnumBitfieldStruct<u8, Iocf_SPEC>;
379 impl Iocf {
380 #[doc = "No output-disable request from GPT occurred."]
381 pub const _0: Self = Self::new(0);
382
383 #[doc = "Output-disable request from GPT occurred."]
384 pub const _1: Self = Self::new(1);
385 }
386 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
387 pub struct Ostpf_SPEC;
388 pub type Ostpf = crate::EnumBitfieldStruct<u8, Ostpf_SPEC>;
389 impl Ostpf {
390 #[doc = "No output-disable request from oscillation stop detection occurred"]
391 pub const _0: Self = Self::new(0);
392
393 #[doc = "Output-disable request from oscillation stop detection occurred"]
394 pub const _1: Self = Self::new(1);
395 }
396 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
397 pub struct Ssf_SPEC;
398 pub type Ssf = crate::EnumBitfieldStruct<u8, Ssf_SPEC>;
399 impl Ssf {
400 #[doc = "No output-disable request from software occurred"]
401 pub const _0: Self = Self::new(0);
402
403 #[doc = "Output-disable request from software occurred"]
404 pub const _1: Self = Self::new(1);
405 }
406 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
407 pub struct Pide_SPEC;
408 pub type Pide = crate::EnumBitfieldStruct<u8, Pide_SPEC>;
409 impl Pide {
410 #[doc = "Disable output-disable requests from the GTETRGn pins"]
411 pub const _0: Self = Self::new(0);
412
413 #[doc = "Enable output-disable requests from the GTETRGn pins"]
414 pub const _1: Self = Self::new(1);
415 }
416 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
417 pub struct Ioce_SPEC;
418 pub type Ioce = crate::EnumBitfieldStruct<u8, Ioce_SPEC>;
419 impl Ioce {
420 #[doc = "Disable output-disable requests from GPT"]
421 pub const _0: Self = Self::new(0);
422
423 #[doc = "Enable output-disable requests from GPT"]
424 pub const _1: Self = Self::new(1);
425 }
426 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
427 pub struct Ostpe_SPEC;
428 pub type Ostpe = crate::EnumBitfieldStruct<u8, Ostpe_SPEC>;
429 impl Ostpe {
430 #[doc = "Disable output-disable requests from oscillation stop detection"]
431 pub const _0: Self = Self::new(0);
432
433 #[doc = "Enable output-disable requests from oscillation stop detection"]
434 pub const _1: Self = Self::new(1);
435 }
436 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
437 pub struct St_SPEC;
438 pub type St = crate::EnumBitfieldStruct<u8, St_SPEC>;
439 impl St {
440 #[doc = "GTETRGn input after filtering was 0"]
441 pub const _0: Self = Self::new(0);
442
443 #[doc = "GTETRGn input after filtering was 1"]
444 pub const _1: Self = Self::new(1);
445 }
446 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
447 pub struct Inv_SPEC;
448 pub type Inv = crate::EnumBitfieldStruct<u8, Inv_SPEC>;
449 impl Inv {
450 #[doc = "Input GTETRGn as-is"]
451 pub const _0: Self = Self::new(0);
452
453 #[doc = "Input GTETRGn in reverse"]
454 pub const _1: Self = Self::new(1);
455 }
456 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
457 pub struct Nfen_SPEC;
458 pub type Nfen = crate::EnumBitfieldStruct<u8, Nfen_SPEC>;
459 impl Nfen {
460 #[doc = "Disable noise filtering"]
461 pub const _0: Self = Self::new(0);
462
463 #[doc = "Enable noise filtering"]
464 pub const _1: Self = Self::new(1);
465 }
466 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
467 pub struct Nfcs_SPEC;
468 pub type Nfcs = crate::EnumBitfieldStruct<u8, Nfcs_SPEC>;
469 impl Nfcs {
470 #[doc = "Sample GTETRGn pin input level three times every PCLKB"]
471 pub const _00: Self = Self::new(0);
472
473 #[doc = "Sample GTETRGn pin input level three times every PCLKB/8"]
474 pub const _01: Self = Self::new(1);
475
476 #[doc = "Sample GTETRGn pin input level three times every PCLKB/32"]
477 pub const _10: Self = Self::new(2);
478
479 #[doc = "Sample GTETRGn pin input level three times every PCLKB/128"]
480 pub const _11: Self = Self::new(3);
481 }
482}
483#[doc(hidden)]
484#[derive(Copy, Clone, Eq, PartialEq)]
485pub struct Poeggb_SPEC;
486impl crate::sealed::RegSpec for Poeggb_SPEC {
487 type DataType = u32;
488}
489
490#[doc = "POEG Group B Setting Register"]
491pub type Poeggb = crate::RegValueT<Poeggb_SPEC>;
492
493impl Poeggb {
494 #[doc = "Port Input Detection Flag"]
495 #[inline(always)]
496 pub fn pidf(
497 self,
498 ) -> crate::common::RegisterField<
499 0,
500 0x1,
501 1,
502 0,
503 poeggb::Pidf,
504 poeggb::Pidf,
505 Poeggb_SPEC,
506 crate::common::RW,
507 > {
508 crate::common::RegisterField::<
509 0,
510 0x1,
511 1,
512 0,
513 poeggb::Pidf,
514 poeggb::Pidf,
515 Poeggb_SPEC,
516 crate::common::RW,
517 >::from_register(self, 0)
518 }
519
520 #[doc = "Detection Flag for GPT Output-Disable Request"]
521 #[inline(always)]
522 pub fn iocf(
523 self,
524 ) -> crate::common::RegisterField<
525 1,
526 0x1,
527 1,
528 0,
529 poeggb::Iocf,
530 poeggb::Iocf,
531 Poeggb_SPEC,
532 crate::common::RW,
533 > {
534 crate::common::RegisterField::<
535 1,
536 0x1,
537 1,
538 0,
539 poeggb::Iocf,
540 poeggb::Iocf,
541 Poeggb_SPEC,
542 crate::common::RW,
543 >::from_register(self, 0)
544 }
545
546 #[doc = "Oscillation Stop Detection Flag"]
547 #[inline(always)]
548 pub fn ostpf(
549 self,
550 ) -> crate::common::RegisterField<
551 2,
552 0x1,
553 1,
554 0,
555 poeggb::Ostpf,
556 poeggb::Ostpf,
557 Poeggb_SPEC,
558 crate::common::RW,
559 > {
560 crate::common::RegisterField::<
561 2,
562 0x1,
563 1,
564 0,
565 poeggb::Ostpf,
566 poeggb::Ostpf,
567 Poeggb_SPEC,
568 crate::common::RW,
569 >::from_register(self, 0)
570 }
571
572 #[doc = "Software Stop Flag"]
573 #[inline(always)]
574 pub fn ssf(
575 self,
576 ) -> crate::common::RegisterField<
577 3,
578 0x1,
579 1,
580 0,
581 poeggb::Ssf,
582 poeggb::Ssf,
583 Poeggb_SPEC,
584 crate::common::RW,
585 > {
586 crate::common::RegisterField::<
587 3,
588 0x1,
589 1,
590 0,
591 poeggb::Ssf,
592 poeggb::Ssf,
593 Poeggb_SPEC,
594 crate::common::RW,
595 >::from_register(self, 0)
596 }
597
598 #[doc = "Port Input Detection Enable"]
599 #[inline(always)]
600 pub fn pide(
601 self,
602 ) -> crate::common::RegisterField<
603 4,
604 0x1,
605 1,
606 0,
607 poeggb::Pide,
608 poeggb::Pide,
609 Poeggb_SPEC,
610 crate::common::RW,
611 > {
612 crate::common::RegisterField::<
613 4,
614 0x1,
615 1,
616 0,
617 poeggb::Pide,
618 poeggb::Pide,
619 Poeggb_SPEC,
620 crate::common::RW,
621 >::from_register(self, 0)
622 }
623
624 #[doc = "Enable for GPT Output-Disable Request"]
625 #[inline(always)]
626 pub fn ioce(
627 self,
628 ) -> crate::common::RegisterField<
629 5,
630 0x1,
631 1,
632 0,
633 poeggb::Ioce,
634 poeggb::Ioce,
635 Poeggb_SPEC,
636 crate::common::RW,
637 > {
638 crate::common::RegisterField::<
639 5,
640 0x1,
641 1,
642 0,
643 poeggb::Ioce,
644 poeggb::Ioce,
645 Poeggb_SPEC,
646 crate::common::RW,
647 >::from_register(self, 0)
648 }
649
650 #[doc = "Oscillation Stop Detection Enable"]
651 #[inline(always)]
652 pub fn ostpe(
653 self,
654 ) -> crate::common::RegisterField<
655 6,
656 0x1,
657 1,
658 0,
659 poeggb::Ostpe,
660 poeggb::Ostpe,
661 Poeggb_SPEC,
662 crate::common::RW,
663 > {
664 crate::common::RegisterField::<
665 6,
666 0x1,
667 1,
668 0,
669 poeggb::Ostpe,
670 poeggb::Ostpe,
671 Poeggb_SPEC,
672 crate::common::RW,
673 >::from_register(self, 0)
674 }
675
676 #[doc = "GTETRGn Input Status Flag"]
677 #[inline(always)]
678 pub fn st(
679 self,
680 ) -> crate::common::RegisterField<
681 16,
682 0x1,
683 1,
684 0,
685 poeggb::St,
686 poeggb::St,
687 Poeggb_SPEC,
688 crate::common::R,
689 > {
690 crate::common::RegisterField::<
691 16,
692 0x1,
693 1,
694 0,
695 poeggb::St,
696 poeggb::St,
697 Poeggb_SPEC,
698 crate::common::R,
699 >::from_register(self, 0)
700 }
701
702 #[doc = "GTETRGn Input Reverse"]
703 #[inline(always)]
704 pub fn inv(
705 self,
706 ) -> crate::common::RegisterField<
707 28,
708 0x1,
709 1,
710 0,
711 poeggb::Inv,
712 poeggb::Inv,
713 Poeggb_SPEC,
714 crate::common::RW,
715 > {
716 crate::common::RegisterField::<
717 28,
718 0x1,
719 1,
720 0,
721 poeggb::Inv,
722 poeggb::Inv,
723 Poeggb_SPEC,
724 crate::common::RW,
725 >::from_register(self, 0)
726 }
727
728 #[doc = "Noise Filter Enable"]
729 #[inline(always)]
730 pub fn nfen(
731 self,
732 ) -> crate::common::RegisterField<
733 29,
734 0x1,
735 1,
736 0,
737 poeggb::Nfen,
738 poeggb::Nfen,
739 Poeggb_SPEC,
740 crate::common::RW,
741 > {
742 crate::common::RegisterField::<
743 29,
744 0x1,
745 1,
746 0,
747 poeggb::Nfen,
748 poeggb::Nfen,
749 Poeggb_SPEC,
750 crate::common::RW,
751 >::from_register(self, 0)
752 }
753
754 #[doc = "Noise Filter Clock Select"]
755 #[inline(always)]
756 pub fn nfcs(
757 self,
758 ) -> crate::common::RegisterField<
759 30,
760 0x3,
761 1,
762 0,
763 poeggb::Nfcs,
764 poeggb::Nfcs,
765 Poeggb_SPEC,
766 crate::common::RW,
767 > {
768 crate::common::RegisterField::<
769 30,
770 0x3,
771 1,
772 0,
773 poeggb::Nfcs,
774 poeggb::Nfcs,
775 Poeggb_SPEC,
776 crate::common::RW,
777 >::from_register(self, 0)
778 }
779}
780impl ::core::default::Default for Poeggb {
781 #[inline(always)]
782 fn default() -> Poeggb {
783 <crate::RegValueT<Poeggb_SPEC> as RegisterValue<_>>::new(0)
784 }
785}
786pub mod poeggb {
787
788 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
789 pub struct Pidf_SPEC;
790 pub type Pidf = crate::EnumBitfieldStruct<u8, Pidf_SPEC>;
791 impl Pidf {
792 #[doc = "No output-disable request from the GTETRGn pin occurred"]
793 pub const _0: Self = Self::new(0);
794
795 #[doc = "Output-disable request from the GTETRGn pin occurred."]
796 pub const _1: Self = Self::new(1);
797 }
798 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
799 pub struct Iocf_SPEC;
800 pub type Iocf = crate::EnumBitfieldStruct<u8, Iocf_SPEC>;
801 impl Iocf {
802 #[doc = "No output-disable request from GPT occurred."]
803 pub const _0: Self = Self::new(0);
804
805 #[doc = "Output-disable request from GPT occurred."]
806 pub const _1: Self = Self::new(1);
807 }
808 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
809 pub struct Ostpf_SPEC;
810 pub type Ostpf = crate::EnumBitfieldStruct<u8, Ostpf_SPEC>;
811 impl Ostpf {
812 #[doc = "No output-disable request from oscillation stop detection occurred"]
813 pub const _0: Self = Self::new(0);
814
815 #[doc = "Output-disable request from oscillation stop detection occurred"]
816 pub const _1: Self = Self::new(1);
817 }
818 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
819 pub struct Ssf_SPEC;
820 pub type Ssf = crate::EnumBitfieldStruct<u8, Ssf_SPEC>;
821 impl Ssf {
822 #[doc = "No output-disable request from software occurred"]
823 pub const _0: Self = Self::new(0);
824
825 #[doc = "Output-disable request from software occurred"]
826 pub const _1: Self = Self::new(1);
827 }
828 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
829 pub struct Pide_SPEC;
830 pub type Pide = crate::EnumBitfieldStruct<u8, Pide_SPEC>;
831 impl Pide {
832 #[doc = "Disable output-disable requests from the GTETRGn pins"]
833 pub const _0: Self = Self::new(0);
834
835 #[doc = "Enable output-disable requests from the GTETRGn pins"]
836 pub const _1: Self = Self::new(1);
837 }
838 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
839 pub struct Ioce_SPEC;
840 pub type Ioce = crate::EnumBitfieldStruct<u8, Ioce_SPEC>;
841 impl Ioce {
842 #[doc = "Disable output-disable requests from GPT"]
843 pub const _0: Self = Self::new(0);
844
845 #[doc = "Enable output-disable requests from GPT"]
846 pub const _1: Self = Self::new(1);
847 }
848 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
849 pub struct Ostpe_SPEC;
850 pub type Ostpe = crate::EnumBitfieldStruct<u8, Ostpe_SPEC>;
851 impl Ostpe {
852 #[doc = "Disable output-disable requests from oscillation stop detection"]
853 pub const _0: Self = Self::new(0);
854
855 #[doc = "Enable output-disable requests from oscillation stop detection"]
856 pub const _1: Self = Self::new(1);
857 }
858 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
859 pub struct St_SPEC;
860 pub type St = crate::EnumBitfieldStruct<u8, St_SPEC>;
861 impl St {
862 #[doc = "GTETRGn input after filtering was 0"]
863 pub const _0: Self = Self::new(0);
864
865 #[doc = "GTETRGn input after filtering was 1"]
866 pub const _1: Self = Self::new(1);
867 }
868 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
869 pub struct Inv_SPEC;
870 pub type Inv = crate::EnumBitfieldStruct<u8, Inv_SPEC>;
871 impl Inv {
872 #[doc = "Input GTETRGn as-is"]
873 pub const _0: Self = Self::new(0);
874
875 #[doc = "Input GTETRGn in reverse"]
876 pub const _1: Self = Self::new(1);
877 }
878 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
879 pub struct Nfen_SPEC;
880 pub type Nfen = crate::EnumBitfieldStruct<u8, Nfen_SPEC>;
881 impl Nfen {
882 #[doc = "Disable noise filtering"]
883 pub const _0: Self = Self::new(0);
884
885 #[doc = "Enable noise filtering"]
886 pub const _1: Self = Self::new(1);
887 }
888 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
889 pub struct Nfcs_SPEC;
890 pub type Nfcs = crate::EnumBitfieldStruct<u8, Nfcs_SPEC>;
891 impl Nfcs {
892 #[doc = "Sample GTETRGn pin input level three times every PCLKB"]
893 pub const _00: Self = Self::new(0);
894
895 #[doc = "Sample GTETRGn pin input level three times every PCLKB/8"]
896 pub const _01: Self = Self::new(1);
897
898 #[doc = "Sample GTETRGn pin input level three times every PCLKB/32"]
899 pub const _10: Self = Self::new(2);
900
901 #[doc = "Sample GTETRGn pin input level three times every PCLKB/128"]
902 pub const _11: Self = Self::new(3);
903 }
904}