1pub type R = crate::R<CR1rs>;
3pub type W = crate::W<CR1rs>;
5#[cfg_attr(feature = "defmt", derive(defmt::Format))]
9#[derive(Clone, Copy, Debug, PartialEq, Eq)]
10pub enum DFEN {
11 Disabled = 0,
13 Enabled = 1,
15}
16impl From<DFEN> for bool {
17 #[inline(always)]
18 fn from(variant: DFEN) -> Self {
19 variant as u8 != 0
20 }
21}
22pub type DFEN_R = crate::BitReader<DFEN>;
24impl DFEN_R {
25 #[inline(always)]
27 pub const fn variant(&self) -> DFEN {
28 match self.bits {
29 false => DFEN::Disabled,
30 true => DFEN::Enabled,
31 }
32 }
33 #[inline(always)]
35 pub fn is_disabled(&self) -> bool {
36 *self == DFEN::Disabled
37 }
38 #[inline(always)]
40 pub fn is_enabled(&self) -> bool {
41 *self == DFEN::Enabled
42 }
43}
44pub type DFEN_W<'a, REG> = crate::BitWriter<'a, REG, DFEN>;
46impl<'a, REG> DFEN_W<'a, REG>
47where
48 REG: crate::Writable + crate::RegisterSpec,
49{
50 #[inline(always)]
52 pub fn disabled(self) -> &'a mut crate::W<REG> {
53 self.variant(DFEN::Disabled)
54 }
55 #[inline(always)]
57 pub fn enabled(self) -> &'a mut crate::W<REG> {
58 self.variant(DFEN::Enabled)
59 }
60}
61#[cfg_attr(feature = "defmt", derive(defmt::Format))]
65#[derive(Clone, Copy, Debug, PartialEq, Eq)]
66pub enum JSWSTARTW {
67 Start = 1,
69}
70impl From<JSWSTARTW> for bool {
71 #[inline(always)]
72 fn from(variant: JSWSTARTW) -> Self {
73 variant as u8 != 0
74 }
75}
76pub type JSWSTART_R = crate::BitReader<JSWSTARTW>;
78impl JSWSTART_R {
79 #[inline(always)]
81 pub const fn variant(&self) -> Option<JSWSTARTW> {
82 match self.bits {
83 true => Some(JSWSTARTW::Start),
84 _ => None,
85 }
86 }
87 #[inline(always)]
89 pub fn is_start(&self) -> bool {
90 *self == JSWSTARTW::Start
91 }
92}
93pub type JSWSTART_W<'a, REG> = crate::BitWriter<'a, REG, JSWSTARTW>;
95impl<'a, REG> JSWSTART_W<'a, REG>
96where
97 REG: crate::Writable + crate::RegisterSpec,
98{
99 #[inline(always)]
101 pub fn start(self) -> &'a mut crate::W<REG> {
102 self.variant(JSWSTARTW::Start)
103 }
104}
105#[cfg_attr(feature = "defmt", derive(defmt::Format))]
109#[derive(Clone, Copy, Debug, PartialEq, Eq)]
110pub enum JSYNC {
111 Disabled = 0,
113 Enabled = 1,
115}
116impl From<JSYNC> for bool {
117 #[inline(always)]
118 fn from(variant: JSYNC) -> Self {
119 variant as u8 != 0
120 }
121}
122pub type JSYNC_R = crate::BitReader<JSYNC>;
124impl JSYNC_R {
125 #[inline(always)]
127 pub const fn variant(&self) -> JSYNC {
128 match self.bits {
129 false => JSYNC::Disabled,
130 true => JSYNC::Enabled,
131 }
132 }
133 #[inline(always)]
135 pub fn is_disabled(&self) -> bool {
136 *self == JSYNC::Disabled
137 }
138 #[inline(always)]
140 pub fn is_enabled(&self) -> bool {
141 *self == JSYNC::Enabled
142 }
143}
144pub type JSYNC_W<'a, REG> = crate::BitWriter<'a, REG, JSYNC>;
146impl<'a, REG> JSYNC_W<'a, REG>
147where
148 REG: crate::Writable + crate::RegisterSpec,
149{
150 #[inline(always)]
152 pub fn disabled(self) -> &'a mut crate::W<REG> {
153 self.variant(JSYNC::Disabled)
154 }
155 #[inline(always)]
157 pub fn enabled(self) -> &'a mut crate::W<REG> {
158 self.variant(JSYNC::Enabled)
159 }
160}
161#[cfg_attr(feature = "defmt", derive(defmt::Format))]
165#[derive(Clone, Copy, Debug, PartialEq, Eq)]
166pub enum JSCAN {
167 Single = 0,
169 Series = 1,
171}
172impl From<JSCAN> for bool {
173 #[inline(always)]
174 fn from(variant: JSCAN) -> Self {
175 variant as u8 != 0
176 }
177}
178pub type JSCAN_R = crate::BitReader<JSCAN>;
180impl JSCAN_R {
181 #[inline(always)]
183 pub const fn variant(&self) -> JSCAN {
184 match self.bits {
185 false => JSCAN::Single,
186 true => JSCAN::Series,
187 }
188 }
189 #[inline(always)]
191 pub fn is_single(&self) -> bool {
192 *self == JSCAN::Single
193 }
194 #[inline(always)]
196 pub fn is_series(&self) -> bool {
197 *self == JSCAN::Series
198 }
199}
200pub type JSCAN_W<'a, REG> = crate::BitWriter<'a, REG, JSCAN>;
202impl<'a, REG> JSCAN_W<'a, REG>
203where
204 REG: crate::Writable + crate::RegisterSpec,
205{
206 #[inline(always)]
208 pub fn single(self) -> &'a mut crate::W<REG> {
209 self.variant(JSCAN::Single)
210 }
211 #[inline(always)]
213 pub fn series(self) -> &'a mut crate::W<REG> {
214 self.variant(JSCAN::Series)
215 }
216}
217#[cfg_attr(feature = "defmt", derive(defmt::Format))]
221#[derive(Clone, Copy, Debug, PartialEq, Eq)]
222pub enum JDMAEN {
223 Disabled = 0,
225 Enabled = 1,
227}
228impl From<JDMAEN> for bool {
229 #[inline(always)]
230 fn from(variant: JDMAEN) -> Self {
231 variant as u8 != 0
232 }
233}
234pub type JDMAEN_R = crate::BitReader<JDMAEN>;
236impl JDMAEN_R {
237 #[inline(always)]
239 pub const fn variant(&self) -> JDMAEN {
240 match self.bits {
241 false => JDMAEN::Disabled,
242 true => JDMAEN::Enabled,
243 }
244 }
245 #[inline(always)]
247 pub fn is_disabled(&self) -> bool {
248 *self == JDMAEN::Disabled
249 }
250 #[inline(always)]
252 pub fn is_enabled(&self) -> bool {
253 *self == JDMAEN::Enabled
254 }
255}
256pub type JDMAEN_W<'a, REG> = crate::BitWriter<'a, REG, JDMAEN>;
258impl<'a, REG> JDMAEN_W<'a, REG>
259where
260 REG: crate::Writable + crate::RegisterSpec,
261{
262 #[inline(always)]
264 pub fn disabled(self) -> &'a mut crate::W<REG> {
265 self.variant(JDMAEN::Disabled)
266 }
267 #[inline(always)]
269 pub fn enabled(self) -> &'a mut crate::W<REG> {
270 self.variant(JDMAEN::Enabled)
271 }
272}
273pub type JEXTSEL_R = crate::FieldReader;
275pub type JEXTSEL_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
277#[cfg_attr(feature = "defmt", derive(defmt::Format))]
281#[derive(Clone, Copy, Debug, PartialEq, Eq)]
282#[repr(u8)]
283pub enum JEXTEN {
284 Disabled = 0,
286 RisingEdge = 1,
288 FallingEdge = 2,
290 BothEdges = 3,
292}
293impl From<JEXTEN> for u8 {
294 #[inline(always)]
295 fn from(variant: JEXTEN) -> Self {
296 variant as _
297 }
298}
299impl crate::FieldSpec for JEXTEN {
300 type Ux = u8;
301}
302impl crate::IsEnum for JEXTEN {}
303pub type JEXTEN_R = crate::FieldReader<JEXTEN>;
305impl JEXTEN_R {
306 #[inline(always)]
308 pub const fn variant(&self) -> JEXTEN {
309 match self.bits {
310 0 => JEXTEN::Disabled,
311 1 => JEXTEN::RisingEdge,
312 2 => JEXTEN::FallingEdge,
313 3 => JEXTEN::BothEdges,
314 _ => unreachable!(),
315 }
316 }
317 #[inline(always)]
319 pub fn is_disabled(&self) -> bool {
320 *self == JEXTEN::Disabled
321 }
322 #[inline(always)]
324 pub fn is_rising_edge(&self) -> bool {
325 *self == JEXTEN::RisingEdge
326 }
327 #[inline(always)]
329 pub fn is_falling_edge(&self) -> bool {
330 *self == JEXTEN::FallingEdge
331 }
332 #[inline(always)]
334 pub fn is_both_edges(&self) -> bool {
335 *self == JEXTEN::BothEdges
336 }
337}
338pub type JEXTEN_W<'a, REG> = crate::FieldWriter<'a, REG, 2, JEXTEN, crate::Safe>;
340impl<'a, REG> JEXTEN_W<'a, REG>
341where
342 REG: crate::Writable + crate::RegisterSpec,
343 REG::Ux: From<u8>,
344{
345 #[inline(always)]
347 pub fn disabled(self) -> &'a mut crate::W<REG> {
348 self.variant(JEXTEN::Disabled)
349 }
350 #[inline(always)]
352 pub fn rising_edge(self) -> &'a mut crate::W<REG> {
353 self.variant(JEXTEN::RisingEdge)
354 }
355 #[inline(always)]
357 pub fn falling_edge(self) -> &'a mut crate::W<REG> {
358 self.variant(JEXTEN::FallingEdge)
359 }
360 #[inline(always)]
362 pub fn both_edges(self) -> &'a mut crate::W<REG> {
363 self.variant(JEXTEN::BothEdges)
364 }
365}
366#[cfg_attr(feature = "defmt", derive(defmt::Format))]
370#[derive(Clone, Copy, Debug, PartialEq, Eq)]
371pub enum RSWSTARTW {
372 Start = 1,
374}
375impl From<RSWSTARTW> for bool {
376 #[inline(always)]
377 fn from(variant: RSWSTARTW) -> Self {
378 variant as u8 != 0
379 }
380}
381pub type RSWSTART_R = crate::BitReader<RSWSTARTW>;
383impl RSWSTART_R {
384 #[inline(always)]
386 pub const fn variant(&self) -> Option<RSWSTARTW> {
387 match self.bits {
388 true => Some(RSWSTARTW::Start),
389 _ => None,
390 }
391 }
392 #[inline(always)]
394 pub fn is_start(&self) -> bool {
395 *self == RSWSTARTW::Start
396 }
397}
398pub type RSWSTART_W<'a, REG> = crate::BitWriter<'a, REG, RSWSTARTW>;
400impl<'a, REG> RSWSTART_W<'a, REG>
401where
402 REG: crate::Writable + crate::RegisterSpec,
403{
404 #[inline(always)]
406 pub fn start(self) -> &'a mut crate::W<REG> {
407 self.variant(RSWSTARTW::Start)
408 }
409}
410#[cfg_attr(feature = "defmt", derive(defmt::Format))]
414#[derive(Clone, Copy, Debug, PartialEq, Eq)]
415pub enum RCONT {
416 Once = 0,
418 Continuous = 1,
420}
421impl From<RCONT> for bool {
422 #[inline(always)]
423 fn from(variant: RCONT) -> Self {
424 variant as u8 != 0
425 }
426}
427pub type RCONT_R = crate::BitReader<RCONT>;
429impl RCONT_R {
430 #[inline(always)]
432 pub const fn variant(&self) -> RCONT {
433 match self.bits {
434 false => RCONT::Once,
435 true => RCONT::Continuous,
436 }
437 }
438 #[inline(always)]
440 pub fn is_once(&self) -> bool {
441 *self == RCONT::Once
442 }
443 #[inline(always)]
445 pub fn is_continuous(&self) -> bool {
446 *self == RCONT::Continuous
447 }
448}
449pub type RCONT_W<'a, REG> = crate::BitWriter<'a, REG, RCONT>;
451impl<'a, REG> RCONT_W<'a, REG>
452where
453 REG: crate::Writable + crate::RegisterSpec,
454{
455 #[inline(always)]
457 pub fn once(self) -> &'a mut crate::W<REG> {
458 self.variant(RCONT::Once)
459 }
460 #[inline(always)]
462 pub fn continuous(self) -> &'a mut crate::W<REG> {
463 self.variant(RCONT::Continuous)
464 }
465}
466#[cfg_attr(feature = "defmt", derive(defmt::Format))]
470#[derive(Clone, Copy, Debug, PartialEq, Eq)]
471pub enum RSYNC {
472 NoLaunch = 0,
474 Launch = 1,
476}
477impl From<RSYNC> for bool {
478 #[inline(always)]
479 fn from(variant: RSYNC) -> Self {
480 variant as u8 != 0
481 }
482}
483pub type RSYNC_R = crate::BitReader<RSYNC>;
485impl RSYNC_R {
486 #[inline(always)]
488 pub const fn variant(&self) -> RSYNC {
489 match self.bits {
490 false => RSYNC::NoLaunch,
491 true => RSYNC::Launch,
492 }
493 }
494 #[inline(always)]
496 pub fn is_no_launch(&self) -> bool {
497 *self == RSYNC::NoLaunch
498 }
499 #[inline(always)]
501 pub fn is_launch(&self) -> bool {
502 *self == RSYNC::Launch
503 }
504}
505pub type RSYNC_W<'a, REG> = crate::BitWriter<'a, REG, RSYNC>;
507impl<'a, REG> RSYNC_W<'a, REG>
508where
509 REG: crate::Writable + crate::RegisterSpec,
510{
511 #[inline(always)]
513 pub fn no_launch(self) -> &'a mut crate::W<REG> {
514 self.variant(RSYNC::NoLaunch)
515 }
516 #[inline(always)]
518 pub fn launch(self) -> &'a mut crate::W<REG> {
519 self.variant(RSYNC::Launch)
520 }
521}
522#[cfg_attr(feature = "defmt", derive(defmt::Format))]
526#[derive(Clone, Copy, Debug, PartialEq, Eq)]
527pub enum RDMAEN {
528 Disabled = 0,
530 Enabled = 1,
532}
533impl From<RDMAEN> for bool {
534 #[inline(always)]
535 fn from(variant: RDMAEN) -> Self {
536 variant as u8 != 0
537 }
538}
539pub type RDMAEN_R = crate::BitReader<RDMAEN>;
541impl RDMAEN_R {
542 #[inline(always)]
544 pub const fn variant(&self) -> RDMAEN {
545 match self.bits {
546 false => RDMAEN::Disabled,
547 true => RDMAEN::Enabled,
548 }
549 }
550 #[inline(always)]
552 pub fn is_disabled(&self) -> bool {
553 *self == RDMAEN::Disabled
554 }
555 #[inline(always)]
557 pub fn is_enabled(&self) -> bool {
558 *self == RDMAEN::Enabled
559 }
560}
561pub type RDMAEN_W<'a, REG> = crate::BitWriter<'a, REG, RDMAEN>;
563impl<'a, REG> RDMAEN_W<'a, REG>
564where
565 REG: crate::Writable + crate::RegisterSpec,
566{
567 #[inline(always)]
569 pub fn disabled(self) -> &'a mut crate::W<REG> {
570 self.variant(RDMAEN::Disabled)
571 }
572 #[inline(always)]
574 pub fn enabled(self) -> &'a mut crate::W<REG> {
575 self.variant(RDMAEN::Enabled)
576 }
577}
578#[cfg_attr(feature = "defmt", derive(defmt::Format))]
582#[derive(Clone, Copy, Debug, PartialEq, Eq)]
583#[repr(u8)]
584pub enum RCH {
585 Channel0 = 0,
587 Channel1 = 1,
589 Channel2 = 2,
591 Channel3 = 3,
593 Channel4 = 4,
595 Channel5 = 5,
597 Channel6 = 6,
599 Channel7 = 7,
601}
602impl From<RCH> for u8 {
603 #[inline(always)]
604 fn from(variant: RCH) -> Self {
605 variant as _
606 }
607}
608impl crate::FieldSpec for RCH {
609 type Ux = u8;
610}
611impl crate::IsEnum for RCH {}
612pub type RCH_R = crate::FieldReader<RCH>;
614impl RCH_R {
615 #[inline(always)]
617 pub const fn variant(&self) -> RCH {
618 match self.bits {
619 0 => RCH::Channel0,
620 1 => RCH::Channel1,
621 2 => RCH::Channel2,
622 3 => RCH::Channel3,
623 4 => RCH::Channel4,
624 5 => RCH::Channel5,
625 6 => RCH::Channel6,
626 7 => RCH::Channel7,
627 _ => unreachable!(),
628 }
629 }
630 #[inline(always)]
632 pub fn is_channel0(&self) -> bool {
633 *self == RCH::Channel0
634 }
635 #[inline(always)]
637 pub fn is_channel1(&self) -> bool {
638 *self == RCH::Channel1
639 }
640 #[inline(always)]
642 pub fn is_channel2(&self) -> bool {
643 *self == RCH::Channel2
644 }
645 #[inline(always)]
647 pub fn is_channel3(&self) -> bool {
648 *self == RCH::Channel3
649 }
650 #[inline(always)]
652 pub fn is_channel4(&self) -> bool {
653 *self == RCH::Channel4
654 }
655 #[inline(always)]
657 pub fn is_channel5(&self) -> bool {
658 *self == RCH::Channel5
659 }
660 #[inline(always)]
662 pub fn is_channel6(&self) -> bool {
663 *self == RCH::Channel6
664 }
665 #[inline(always)]
667 pub fn is_channel7(&self) -> bool {
668 *self == RCH::Channel7
669 }
670}
671pub type RCH_W<'a, REG> = crate::FieldWriter<'a, REG, 3, RCH, crate::Safe>;
673impl<'a, REG> RCH_W<'a, REG>
674where
675 REG: crate::Writable + crate::RegisterSpec,
676 REG::Ux: From<u8>,
677{
678 #[inline(always)]
680 pub fn channel0(self) -> &'a mut crate::W<REG> {
681 self.variant(RCH::Channel0)
682 }
683 #[inline(always)]
685 pub fn channel1(self) -> &'a mut crate::W<REG> {
686 self.variant(RCH::Channel1)
687 }
688 #[inline(always)]
690 pub fn channel2(self) -> &'a mut crate::W<REG> {
691 self.variant(RCH::Channel2)
692 }
693 #[inline(always)]
695 pub fn channel3(self) -> &'a mut crate::W<REG> {
696 self.variant(RCH::Channel3)
697 }
698 #[inline(always)]
700 pub fn channel4(self) -> &'a mut crate::W<REG> {
701 self.variant(RCH::Channel4)
702 }
703 #[inline(always)]
705 pub fn channel5(self) -> &'a mut crate::W<REG> {
706 self.variant(RCH::Channel5)
707 }
708 #[inline(always)]
710 pub fn channel6(self) -> &'a mut crate::W<REG> {
711 self.variant(RCH::Channel6)
712 }
713 #[inline(always)]
715 pub fn channel7(self) -> &'a mut crate::W<REG> {
716 self.variant(RCH::Channel7)
717 }
718}
719#[cfg_attr(feature = "defmt", derive(defmt::Format))]
723#[derive(Clone, Copy, Debug, PartialEq, Eq)]
724pub enum FAST {
725 Disabled = 0,
727 Enabled = 1,
729}
730impl From<FAST> for bool {
731 #[inline(always)]
732 fn from(variant: FAST) -> Self {
733 variant as u8 != 0
734 }
735}
736pub type FAST_R = crate::BitReader<FAST>;
738impl FAST_R {
739 #[inline(always)]
741 pub const fn variant(&self) -> FAST {
742 match self.bits {
743 false => FAST::Disabled,
744 true => FAST::Enabled,
745 }
746 }
747 #[inline(always)]
749 pub fn is_disabled(&self) -> bool {
750 *self == FAST::Disabled
751 }
752 #[inline(always)]
754 pub fn is_enabled(&self) -> bool {
755 *self == FAST::Enabled
756 }
757}
758pub type FAST_W<'a, REG> = crate::BitWriter<'a, REG, FAST>;
760impl<'a, REG> FAST_W<'a, REG>
761where
762 REG: crate::Writable + crate::RegisterSpec,
763{
764 #[inline(always)]
766 pub fn disabled(self) -> &'a mut crate::W<REG> {
767 self.variant(FAST::Disabled)
768 }
769 #[inline(always)]
771 pub fn enabled(self) -> &'a mut crate::W<REG> {
772 self.variant(FAST::Enabled)
773 }
774}
775#[cfg_attr(feature = "defmt", derive(defmt::Format))]
779#[derive(Clone, Copy, Debug, PartialEq, Eq)]
780pub enum AWFSEL {
781 Output = 0,
783 Transceiver = 1,
785}
786impl From<AWFSEL> for bool {
787 #[inline(always)]
788 fn from(variant: AWFSEL) -> Self {
789 variant as u8 != 0
790 }
791}
792pub type AWFSEL_R = crate::BitReader<AWFSEL>;
794impl AWFSEL_R {
795 #[inline(always)]
797 pub const fn variant(&self) -> AWFSEL {
798 match self.bits {
799 false => AWFSEL::Output,
800 true => AWFSEL::Transceiver,
801 }
802 }
803 #[inline(always)]
805 pub fn is_output(&self) -> bool {
806 *self == AWFSEL::Output
807 }
808 #[inline(always)]
810 pub fn is_transceiver(&self) -> bool {
811 *self == AWFSEL::Transceiver
812 }
813}
814pub type AWFSEL_W<'a, REG> = crate::BitWriter<'a, REG, AWFSEL>;
816impl<'a, REG> AWFSEL_W<'a, REG>
817where
818 REG: crate::Writable + crate::RegisterSpec,
819{
820 #[inline(always)]
822 pub fn output(self) -> &'a mut crate::W<REG> {
823 self.variant(AWFSEL::Output)
824 }
825 #[inline(always)]
827 pub fn transceiver(self) -> &'a mut crate::W<REG> {
828 self.variant(AWFSEL::Transceiver)
829 }
830}
831impl R {
832 #[inline(always)]
834 pub fn dfen(&self) -> DFEN_R {
835 DFEN_R::new((self.bits & 1) != 0)
836 }
837 #[inline(always)]
839 pub fn jswstart(&self) -> JSWSTART_R {
840 JSWSTART_R::new(((self.bits >> 1) & 1) != 0)
841 }
842 #[inline(always)]
844 pub fn jsync(&self) -> JSYNC_R {
845 JSYNC_R::new(((self.bits >> 3) & 1) != 0)
846 }
847 #[inline(always)]
849 pub fn jscan(&self) -> JSCAN_R {
850 JSCAN_R::new(((self.bits >> 4) & 1) != 0)
851 }
852 #[inline(always)]
854 pub fn jdmaen(&self) -> JDMAEN_R {
855 JDMAEN_R::new(((self.bits >> 5) & 1) != 0)
856 }
857 #[inline(always)]
859 pub fn jextsel(&self) -> JEXTSEL_R {
860 JEXTSEL_R::new(((self.bits >> 8) & 7) as u8)
861 }
862 #[inline(always)]
864 pub fn jexten(&self) -> JEXTEN_R {
865 JEXTEN_R::new(((self.bits >> 13) & 3) as u8)
866 }
867 #[inline(always)]
869 pub fn rswstart(&self) -> RSWSTART_R {
870 RSWSTART_R::new(((self.bits >> 17) & 1) != 0)
871 }
872 #[inline(always)]
874 pub fn rcont(&self) -> RCONT_R {
875 RCONT_R::new(((self.bits >> 18) & 1) != 0)
876 }
877 #[inline(always)]
879 pub fn rsync(&self) -> RSYNC_R {
880 RSYNC_R::new(((self.bits >> 19) & 1) != 0)
881 }
882 #[inline(always)]
884 pub fn rdmaen(&self) -> RDMAEN_R {
885 RDMAEN_R::new(((self.bits >> 21) & 1) != 0)
886 }
887 #[inline(always)]
889 pub fn rch(&self) -> RCH_R {
890 RCH_R::new(((self.bits >> 24) & 7) as u8)
891 }
892 #[inline(always)]
894 pub fn fast(&self) -> FAST_R {
895 FAST_R::new(((self.bits >> 29) & 1) != 0)
896 }
897 #[inline(always)]
899 pub fn awfsel(&self) -> AWFSEL_R {
900 AWFSEL_R::new(((self.bits >> 30) & 1) != 0)
901 }
902}
903impl core::fmt::Debug for R {
904 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
905 f.debug_struct("CR1")
906 .field("awfsel", &self.awfsel())
907 .field("fast", &self.fast())
908 .field("rch", &self.rch())
909 .field("rdmaen", &self.rdmaen())
910 .field("rsync", &self.rsync())
911 .field("rcont", &self.rcont())
912 .field("rswstart", &self.rswstart())
913 .field("jexten", &self.jexten())
914 .field("jextsel", &self.jextsel())
915 .field("jdmaen", &self.jdmaen())
916 .field("jscan", &self.jscan())
917 .field("jsync", &self.jsync())
918 .field("jswstart", &self.jswstart())
919 .field("dfen", &self.dfen())
920 .finish()
921 }
922}
923impl W {
924 #[inline(always)]
926 pub fn dfen(&mut self) -> DFEN_W<CR1rs> {
927 DFEN_W::new(self, 0)
928 }
929 #[inline(always)]
931 pub fn jswstart(&mut self) -> JSWSTART_W<CR1rs> {
932 JSWSTART_W::new(self, 1)
933 }
934 #[inline(always)]
936 pub fn jsync(&mut self) -> JSYNC_W<CR1rs> {
937 JSYNC_W::new(self, 3)
938 }
939 #[inline(always)]
941 pub fn jscan(&mut self) -> JSCAN_W<CR1rs> {
942 JSCAN_W::new(self, 4)
943 }
944 #[inline(always)]
946 pub fn jdmaen(&mut self) -> JDMAEN_W<CR1rs> {
947 JDMAEN_W::new(self, 5)
948 }
949 #[inline(always)]
951 pub fn jextsel(&mut self) -> JEXTSEL_W<CR1rs> {
952 JEXTSEL_W::new(self, 8)
953 }
954 #[inline(always)]
956 pub fn jexten(&mut self) -> JEXTEN_W<CR1rs> {
957 JEXTEN_W::new(self, 13)
958 }
959 #[inline(always)]
961 pub fn rswstart(&mut self) -> RSWSTART_W<CR1rs> {
962 RSWSTART_W::new(self, 17)
963 }
964 #[inline(always)]
966 pub fn rcont(&mut self) -> RCONT_W<CR1rs> {
967 RCONT_W::new(self, 18)
968 }
969 #[inline(always)]
971 pub fn rsync(&mut self) -> RSYNC_W<CR1rs> {
972 RSYNC_W::new(self, 19)
973 }
974 #[inline(always)]
976 pub fn rdmaen(&mut self) -> RDMAEN_W<CR1rs> {
977 RDMAEN_W::new(self, 21)
978 }
979 #[inline(always)]
981 pub fn rch(&mut self) -> RCH_W<CR1rs> {
982 RCH_W::new(self, 24)
983 }
984 #[inline(always)]
986 pub fn fast(&mut self) -> FAST_W<CR1rs> {
987 FAST_W::new(self, 29)
988 }
989 #[inline(always)]
991 pub fn awfsel(&mut self) -> AWFSEL_W<CR1rs> {
992 AWFSEL_W::new(self, 30)
993 }
994}
995pub struct CR1rs;
999impl crate::RegisterSpec for CR1rs {
1000 type Ux = u32;
1001}
1002impl crate::Readable for CR1rs {}
1004impl crate::Writable for CR1rs {
1006 type Safety = crate::Unsafe;
1007}
1008impl crate::Resettable for CR1rs {}