1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
#[doc = "Register `tve_configuration` reader"]
pub struct R(crate::R<TVE_CONFIGURATION_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<TVE_CONFIGURATION_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<TVE_CONFIGURATION_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<TVE_CONFIGURATION_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `tve_configuration` writer"]
pub struct W(crate::W<TVE_CONFIGURATION_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<TVE_CONFIGURATION_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<TVE_CONFIGURATION_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<TVE_CONFIGURATION_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `tvmode_select` reader - TVMode_Select\n\nNote: Changing this register value will cause some relative register setting to relative value."]
pub type TVMODE_SELECT_R = crate::FieldReader<u8, TVMODE_SELECT_A>;
#[doc = "TVMode_Select\n\nNote: Changing this register value will cause some relative register setting to relative value.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum TVMODE_SELECT_A {
    #[doc = "0: NTSC"]
    NTSC = 0,
    #[doc = "1: PAL"]
    PAL = 1,
}
impl From<TVMODE_SELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: TVMODE_SELECT_A) -> Self {
        variant as _
    }
}
impl TVMODE_SELECT_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> Option<TVMODE_SELECT_A> {
        match self.bits {
            0 => Some(TVMODE_SELECT_A::NTSC),
            1 => Some(TVMODE_SELECT_A::PAL),
            _ => None,
        }
    }
    #[doc = "Checks if the value of the field is `NTSC`"]
    #[inline(always)]
    pub fn is_ntsc(&self) -> bool {
        *self == TVMODE_SELECT_A::NTSC
    }
    #[doc = "Checks if the value of the field is `PAL`"]
    #[inline(always)]
    pub fn is_pal(&self) -> bool {
        *self == TVMODE_SELECT_A::PAL
    }
}
#[doc = "Field `tvmode_select` writer - TVMode_Select\n\nNote: Changing this register value will cause some relative register setting to relative value."]
pub type TVMODE_SELECT_W<'a, const O: u8> =
    crate::FieldWriter<'a, u32, TVE_CONFIGURATION_SPEC, u8, TVMODE_SELECT_A, 4, O>;
impl<'a, const O: u8> TVMODE_SELECT_W<'a, O> {
    #[doc = "NTSC"]
    #[inline(always)]
    pub fn ntsc(self) -> &'a mut W {
        self.variant(TVMODE_SELECT_A::NTSC)
    }
    #[doc = "PAL"]
    #[inline(always)]
    pub fn pal(self) -> &'a mut W {
        self.variant(TVMODE_SELECT_A::PAL)
    }
}
#[doc = "Field `mode_1080i_1250line_sel` reader - Mode_1080i_1250Line_Sel"]
pub type MODE_1080I_1250LINE_SEL_R = crate::BitReader<MODE_1080I_1250LINE_SEL_A>;
#[doc = "Mode_1080i_1250Line_Sel\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum MODE_1080I_1250LINE_SEL_A {
    #[doc = "0: 1125 Line mode"]
    _1125 = 0,
    #[doc = "1: 1250 Line mode"]
    _1250 = 1,
}
impl From<MODE_1080I_1250LINE_SEL_A> for bool {
    #[inline(always)]
    fn from(variant: MODE_1080I_1250LINE_SEL_A) -> Self {
        variant as u8 != 0
    }
}
impl MODE_1080I_1250LINE_SEL_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> MODE_1080I_1250LINE_SEL_A {
        match self.bits {
            false => MODE_1080I_1250LINE_SEL_A::_1125,
            true => MODE_1080I_1250LINE_SEL_A::_1250,
        }
    }
    #[doc = "Checks if the value of the field is `_1125`"]
    #[inline(always)]
    pub fn is_1125(&self) -> bool {
        *self == MODE_1080I_1250LINE_SEL_A::_1125
    }
    #[doc = "Checks if the value of the field is `_1250`"]
    #[inline(always)]
    pub fn is_1250(&self) -> bool {
        *self == MODE_1080I_1250LINE_SEL_A::_1250
    }
}
#[doc = "Field `mode_1080i_1250line_sel` writer - Mode_1080i_1250Line_Sel"]
pub type MODE_1080I_1250LINE_SEL_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, TVE_CONFIGURATION_SPEC, MODE_1080I_1250LINE_SEL_A, O>;
impl<'a, const O: u8> MODE_1080I_1250LINE_SEL_W<'a, O> {
    #[doc = "1125 Line mode"]
    #[inline(always)]
    pub fn _1125(self) -> &'a mut W {
        self.variant(MODE_1080I_1250LINE_SEL_A::_1125)
    }
    #[doc = "1250 Line mode"]
    #[inline(always)]
    pub fn _1250(self) -> &'a mut W {
        self.variant(MODE_1080I_1250LINE_SEL_A::_1250)
    }
}
#[doc = "Field `color_bar_mode` reader - Standard Color bar input selection\n\nThis bit selects whether the Video Encoder video data input is replaced by an internal standard color bar generator or not."]
pub type COLOR_BAR_MODE_R = crate::BitReader<COLOR_BAR_MODE_A>;
#[doc = "Standard Color bar input selection\n\nThis bit selects whether the Video Encoder video data input is replaced by an internal standard color bar generator or not.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum COLOR_BAR_MODE_A {
    #[doc = "0: The Video Encoder input is coming from the Display Engineer"]
    D_ISPLAY_E_NGINEER = 0,
    #[doc = "1: The Video Encoder input is coming from an internal standard color bar generator."]
    I_NTERNAL_GENERATOR = 1,
}
impl From<COLOR_BAR_MODE_A> for bool {
    #[inline(always)]
    fn from(variant: COLOR_BAR_MODE_A) -> Self {
        variant as u8 != 0
    }
}
impl COLOR_BAR_MODE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> COLOR_BAR_MODE_A {
        match self.bits {
            false => COLOR_BAR_MODE_A::D_ISPLAY_E_NGINEER,
            true => COLOR_BAR_MODE_A::I_NTERNAL_GENERATOR,
        }
    }
    #[doc = "Checks if the value of the field is `D_ISPLAY_E_NGINEER`"]
    #[inline(always)]
    pub fn is_d_isplay_e_ngineer(&self) -> bool {
        *self == COLOR_BAR_MODE_A::D_ISPLAY_E_NGINEER
    }
    #[doc = "Checks if the value of the field is `I_NTERNAL_GENERATOR`"]
    #[inline(always)]
    pub fn is_i_nternal_generator(&self) -> bool {
        *self == COLOR_BAR_MODE_A::I_NTERNAL_GENERATOR
    }
}
#[doc = "Field `color_bar_mode` writer - Standard Color bar input selection\n\nThis bit selects whether the Video Encoder video data input is replaced by an internal standard color bar generator or not."]
pub type COLOR_BAR_MODE_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, TVE_CONFIGURATION_SPEC, COLOR_BAR_MODE_A, O>;
impl<'a, const O: u8> COLOR_BAR_MODE_W<'a, O> {
    #[doc = "The Video Encoder input is coming from the Display Engineer"]
    #[inline(always)]
    pub fn d_isplay_e_ngineer(self) -> &'a mut W {
        self.variant(COLOR_BAR_MODE_A::D_ISPLAY_E_NGINEER)
    }
    #[doc = "The Video Encoder input is coming from an internal standard color bar generator."]
    #[inline(always)]
    pub fn i_nternal_generator(self) -> &'a mut W {
        self.variant(COLOR_BAR_MODE_A::I_NTERNAL_GENERATOR)
    }
}
#[doc = "Field `color_bar_type` reader - "]
pub type COLOR_BAR_TYPE_R = crate::BitReader<COLOR_BAR_TYPE_A>;
#[doc = "\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum COLOR_BAR_TYPE_A {
    #[doc = "0: 75/7.5/75/7.5 (NTSC), 100/0/75/0(PAL)"]
    _75 = 0,
    #[doc = "1: 100/7.5/100/7.5(NTSC), 100/0/100/0(PAL)"]
    _100 = 1,
}
impl From<COLOR_BAR_TYPE_A> for bool {
    #[inline(always)]
    fn from(variant: COLOR_BAR_TYPE_A) -> Self {
        variant as u8 != 0
    }
}
impl COLOR_BAR_TYPE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> COLOR_BAR_TYPE_A {
        match self.bits {
            false => COLOR_BAR_TYPE_A::_75,
            true => COLOR_BAR_TYPE_A::_100,
        }
    }
    #[doc = "Checks if the value of the field is `_75`"]
    #[inline(always)]
    pub fn is_75(&self) -> bool {
        *self == COLOR_BAR_TYPE_A::_75
    }
    #[doc = "Checks if the value of the field is `_100`"]
    #[inline(always)]
    pub fn is_100(&self) -> bool {
        *self == COLOR_BAR_TYPE_A::_100
    }
}
#[doc = "Field `color_bar_type` writer - "]
pub type COLOR_BAR_TYPE_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, TVE_CONFIGURATION_SPEC, COLOR_BAR_TYPE_A, O>;
impl<'a, const O: u8> COLOR_BAR_TYPE_W<'a, O> {
    #[doc = "75/7.5/75/7.5 (NTSC), 100/0/75/0(PAL)"]
    #[inline(always)]
    pub fn _75(self) -> &'a mut W {
        self.variant(COLOR_BAR_TYPE_A::_75)
    }
    #[doc = "100/7.5/100/7.5(NTSC), 100/0/100/0(PAL)"]
    #[inline(always)]
    pub fn _100(self) -> &'a mut W {
        self.variant(COLOR_BAR_TYPE_A::_100)
    }
}
#[doc = "Field `cvbs_en` reader - Composite video enables selection\n\nThis bit selects whether the composite video output (CVBS) is enabled or disabled."]
pub type CVBS_EN_R = crate::BitReader<CVBS_EN_A>;
#[doc = "Composite video enables selection\n\nThis bit selects whether the composite video output (CVBS) is enabled or disabled.\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CVBS_EN_A {
    #[doc = "0: Composite video is disabled, Only Y/C is enabled"]
    DISABLED = 0,
    #[doc = "1: Composite video is enabled., CVBS and Y/C are enabled"]
    ENABLED = 1,
}
impl From<CVBS_EN_A> for bool {
    #[inline(always)]
    fn from(variant: CVBS_EN_A) -> Self {
        variant as u8 != 0
    }
}
impl CVBS_EN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> CVBS_EN_A {
        match self.bits {
            false => CVBS_EN_A::DISABLED,
            true => CVBS_EN_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == CVBS_EN_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == CVBS_EN_A::ENABLED
    }
}
#[doc = "Field `cvbs_en` writer - Composite video enables selection\n\nThis bit selects whether the composite video output (CVBS) is enabled or disabled."]
pub type CVBS_EN_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, TVE_CONFIGURATION_SPEC, CVBS_EN_A, O>;
impl<'a, const O: u8> CVBS_EN_W<'a, O> {
    #[doc = "Composite video is disabled, Only Y/C is enabled"]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut W {
        self.variant(CVBS_EN_A::DISABLED)
    }
    #[doc = "Composite video is enabled., CVBS and Y/C are enabled"]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut W {
        self.variant(CVBS_EN_A::ENABLED)
    }
}
#[doc = "Field `yc_en` reader - S-port Video enable Selection.\n\nThis bit selects whether the S-port(Y/C) video output is enabled or disabled."]
pub type YC_EN_R = crate::BitReader<YC_EN_A>;
#[doc = "S-port Video enable Selection.\n\nThis bit selects whether the S-port(Y/C) video output is enabled or disabled.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum YC_EN_A {
    #[doc = "0: Y/C is disable"]
    Y_C = 0,
}
impl From<YC_EN_A> for bool {
    #[inline(always)]
    fn from(variant: YC_EN_A) -> Self {
        variant as u8 != 0
    }
}
impl YC_EN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> Option<YC_EN_A> {
        match self.bits {
            false => Some(YC_EN_A::Y_C),
            _ => None,
        }
    }
    #[doc = "Checks if the value of the field is `Y_C`"]
    #[inline(always)]
    pub fn is_y_c(&self) -> bool {
        *self == YC_EN_A::Y_C
    }
}
#[doc = "Field `yc_en` writer - S-port Video enable Selection.\n\nThis bit selects whether the S-port(Y/C) video output is enabled or disabled."]
pub type YC_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, TVE_CONFIGURATION_SPEC, YC_EN_A, O>;
impl<'a, const O: u8> YC_EN_W<'a, O> {
    #[doc = "Y/C is disable"]
    #[inline(always)]
    pub fn y_c(self) -> &'a mut W {
        self.variant(YC_EN_A::Y_C)
    }
}
#[doc = "Field `yuv_rgb_output_en` reader - "]
pub type YUV_RGB_OUTPUT_EN_R = crate::BitReader<YUV_RGB_OUTPUT_EN_A>;
#[doc = "\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum YUV_RGB_OUTPUT_EN_A {
    #[doc = "0: CVBS"]
    CVBS = 0,
}
impl From<YUV_RGB_OUTPUT_EN_A> for bool {
    #[inline(always)]
    fn from(variant: YUV_RGB_OUTPUT_EN_A) -> Self {
        variant as u8 != 0
    }
}
impl YUV_RGB_OUTPUT_EN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> Option<YUV_RGB_OUTPUT_EN_A> {
        match self.bits {
            false => Some(YUV_RGB_OUTPUT_EN_A::CVBS),
            _ => None,
        }
    }
    #[doc = "Checks if the value of the field is `CVBS`"]
    #[inline(always)]
    pub fn is_cvbs(&self) -> bool {
        *self == YUV_RGB_OUTPUT_EN_A::CVBS
    }
}
#[doc = "Field `yuv_rgb_output_en` writer - "]
pub type YUV_RGB_OUTPUT_EN_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, TVE_CONFIGURATION_SPEC, YUV_RGB_OUTPUT_EN_A, O>;
impl<'a, const O: u8> YUV_RGB_OUTPUT_EN_W<'a, O> {
    #[doc = "CVBS"]
    #[inline(always)]
    pub fn cvbs(self) -> &'a mut W {
        self.variant(YUV_RGB_OUTPUT_EN_A::CVBS)
    }
}
#[doc = "Field `input_chroma_data_sampling_rate_sel` reader - "]
pub type INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_R =
    crate::BitReader<INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_A>;
#[doc = "\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_A {
    #[doc = "0: 4:4:4"]
    _4_4_4 = 0,
    #[doc = "1: 4:2:2"]
    _4_2_2 = 1,
}
impl From<INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_A> for bool {
    #[inline(always)]
    fn from(variant: INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_A) -> Self {
        variant as u8 != 0
    }
}
impl INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_A {
        match self.bits {
            false => INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_A::_4_4_4,
            true => INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_A::_4_2_2,
        }
    }
    #[doc = "Checks if the value of the field is `_4_4_4`"]
    #[inline(always)]
    pub fn is_4_4_4(&self) -> bool {
        *self == INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_A::_4_4_4
    }
    #[doc = "Checks if the value of the field is `_4_2_2`"]
    #[inline(always)]
    pub fn is_4_2_2(&self) -> bool {
        *self == INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_A::_4_2_2
    }
}
#[doc = "Field `input_chroma_data_sampling_rate_sel` writer - "]
pub type INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, TVE_CONFIGURATION_SPEC, INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_A, O>;
impl<'a, const O: u8> INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_W<'a, O> {
    #[doc = "4:4:4"]
    #[inline(always)]
    pub fn _4_4_4(self) -> &'a mut W {
        self.variant(INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_A::_4_4_4)
    }
    #[doc = "4:2:2"]
    #[inline(always)]
    pub fn _4_2_2(self) -> &'a mut W {
        self.variant(INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_A::_4_2_2)
    }
}
#[doc = "Field `cb_cr_seq_for_422_mode` reader - Cb_Cr_Seq_For_422_Mode"]
pub type CB_CR_SEQ_FOR_422_MODE_R = crate::BitReader<CB_CR_SEQ_FOR_422_MODE_A>;
#[doc = "Cb_Cr_Seq_For_422_Mode\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CB_CR_SEQ_FOR_422_MODE_A {
    #[doc = "0: Cb first"]
    C_B = 0,
    #[doc = "1: Cr first"]
    C_R = 1,
}
impl From<CB_CR_SEQ_FOR_422_MODE_A> for bool {
    #[inline(always)]
    fn from(variant: CB_CR_SEQ_FOR_422_MODE_A) -> Self {
        variant as u8 != 0
    }
}
impl CB_CR_SEQ_FOR_422_MODE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> CB_CR_SEQ_FOR_422_MODE_A {
        match self.bits {
            false => CB_CR_SEQ_FOR_422_MODE_A::C_B,
            true => CB_CR_SEQ_FOR_422_MODE_A::C_R,
        }
    }
    #[doc = "Checks if the value of the field is `C_B`"]
    #[inline(always)]
    pub fn is_c_b(&self) -> bool {
        *self == CB_CR_SEQ_FOR_422_MODE_A::C_B
    }
    #[doc = "Checks if the value of the field is `C_R`"]
    #[inline(always)]
    pub fn is_c_r(&self) -> bool {
        *self == CB_CR_SEQ_FOR_422_MODE_A::C_R
    }
}
#[doc = "Field `cb_cr_seq_for_422_mode` writer - Cb_Cr_Seq_For_422_Mode"]
pub type CB_CR_SEQ_FOR_422_MODE_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, TVE_CONFIGURATION_SPEC, CB_CR_SEQ_FOR_422_MODE_A, O>;
impl<'a, const O: u8> CB_CR_SEQ_FOR_422_MODE_W<'a, O> {
    #[doc = "Cb first"]
    #[inline(always)]
    pub fn c_b(self) -> &'a mut W {
        self.variant(CB_CR_SEQ_FOR_422_MODE_A::C_B)
    }
    #[doc = "Cr first"]
    #[inline(always)]
    pub fn c_r(self) -> &'a mut W {
        self.variant(CB_CR_SEQ_FOR_422_MODE_A::C_R)
    }
}
#[doc = "Field `core_control_logic_clock_sel` reader - "]
pub type CORE_CONTROL_LOGIC_CLOCK_SEL_R = crate::BitReader<CORE_CONTROL_LOGIC_CLOCK_SEL_A>;
#[doc = "\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CORE_CONTROL_LOGIC_CLOCK_SEL_A {
    #[doc = "0: Using 27 MHz clock or 74.25 MHz clock depend on CCU setting"]
    _27M_74_25M = 0,
    #[doc = "1: Using 54 MHz clock or 148.5 MHz clock depend on CCU setting"]
    _54M_148_5M = 1,
}
impl From<CORE_CONTROL_LOGIC_CLOCK_SEL_A> for bool {
    #[inline(always)]
    fn from(variant: CORE_CONTROL_LOGIC_CLOCK_SEL_A) -> Self {
        variant as u8 != 0
    }
}
impl CORE_CONTROL_LOGIC_CLOCK_SEL_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> CORE_CONTROL_LOGIC_CLOCK_SEL_A {
        match self.bits {
            false => CORE_CONTROL_LOGIC_CLOCK_SEL_A::_27M_74_25M,
            true => CORE_CONTROL_LOGIC_CLOCK_SEL_A::_54M_148_5M,
        }
    }
    #[doc = "Checks if the value of the field is `_27M_74_25M`"]
    #[inline(always)]
    pub fn is_27m_74_25m(&self) -> bool {
        *self == CORE_CONTROL_LOGIC_CLOCK_SEL_A::_27M_74_25M
    }
    #[doc = "Checks if the value of the field is `_54M_148_5M`"]
    #[inline(always)]
    pub fn is_54m_148_5m(&self) -> bool {
        *self == CORE_CONTROL_LOGIC_CLOCK_SEL_A::_54M_148_5M
    }
}
#[doc = "Field `core_control_logic_clock_sel` writer - "]
pub type CORE_CONTROL_LOGIC_CLOCK_SEL_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, TVE_CONFIGURATION_SPEC, CORE_CONTROL_LOGIC_CLOCK_SEL_A, O>;
impl<'a, const O: u8> CORE_CONTROL_LOGIC_CLOCK_SEL_W<'a, O> {
    #[doc = "Using 27 MHz clock or 74.25 MHz clock depend on CCU setting"]
    #[inline(always)]
    pub fn _27m_74_25m(self) -> &'a mut W {
        self.variant(CORE_CONTROL_LOGIC_CLOCK_SEL_A::_27M_74_25M)
    }
    #[doc = "Using 54 MHz clock or 148.5 MHz clock depend on CCU setting"]
    #[inline(always)]
    pub fn _54m_148_5m(self) -> &'a mut W {
        self.variant(CORE_CONTROL_LOGIC_CLOCK_SEL_A::_54M_148_5M)
    }
}
#[doc = "Field `core_datapath_logic_clock_sel` reader - "]
pub type CORE_DATAPATH_LOGIC_CLOCK_SEL_R = crate::BitReader<CORE_DATAPATH_LOGIC_CLOCK_SEL_A>;
#[doc = "\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CORE_DATAPATH_LOGIC_CLOCK_SEL_A {
    #[doc = "0: Using 27 MHz clock or 74.25 MHz clock depend on CCU setting"]
    _27M_74_25M = 0,
    #[doc = "1: Using 54 MHz clock or 148.5 MHz clock depend on CCU setting"]
    _54M_148_5M = 1,
}
impl From<CORE_DATAPATH_LOGIC_CLOCK_SEL_A> for bool {
    #[inline(always)]
    fn from(variant: CORE_DATAPATH_LOGIC_CLOCK_SEL_A) -> Self {
        variant as u8 != 0
    }
}
impl CORE_DATAPATH_LOGIC_CLOCK_SEL_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> CORE_DATAPATH_LOGIC_CLOCK_SEL_A {
        match self.bits {
            false => CORE_DATAPATH_LOGIC_CLOCK_SEL_A::_27M_74_25M,
            true => CORE_DATAPATH_LOGIC_CLOCK_SEL_A::_54M_148_5M,
        }
    }
    #[doc = "Checks if the value of the field is `_27M_74_25M`"]
    #[inline(always)]
    pub fn is_27m_74_25m(&self) -> bool {
        *self == CORE_DATAPATH_LOGIC_CLOCK_SEL_A::_27M_74_25M
    }
    #[doc = "Checks if the value of the field is `_54M_148_5M`"]
    #[inline(always)]
    pub fn is_54m_148_5m(&self) -> bool {
        *self == CORE_DATAPATH_LOGIC_CLOCK_SEL_A::_54M_148_5M
    }
}
#[doc = "Field `core_datapath_logic_clock_sel` writer - "]
pub type CORE_DATAPATH_LOGIC_CLOCK_SEL_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, TVE_CONFIGURATION_SPEC, CORE_DATAPATH_LOGIC_CLOCK_SEL_A, O>;
impl<'a, const O: u8> CORE_DATAPATH_LOGIC_CLOCK_SEL_W<'a, O> {
    #[doc = "Using 27 MHz clock or 74.25 MHz clock depend on CCU setting"]
    #[inline(always)]
    pub fn _27m_74_25m(self) -> &'a mut W {
        self.variant(CORE_DATAPATH_LOGIC_CLOCK_SEL_A::_27M_74_25M)
    }
    #[doc = "Using 54 MHz clock or 148.5 MHz clock depend on CCU setting"]
    #[inline(always)]
    pub fn _54m_148_5m(self) -> &'a mut W {
        self.variant(CORE_DATAPATH_LOGIC_CLOCK_SEL_A::_54M_148_5M)
    }
}
#[doc = "Field `dac_control_logic_clock_sel` reader - "]
pub type DAC_CONTROL_LOGIC_CLOCK_SEL_R = crate::BitReader<DAC_CONTROL_LOGIC_CLOCK_SEL_A>;
#[doc = "\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum DAC_CONTROL_LOGIC_CLOCK_SEL_A {
    #[doc = "0: Using 27 MHz clock or 74.25 MHz clock depend on CCU setting"]
    _27M_74_25M = 0,
    #[doc = "1: Using 54 MHz clock or 148.5 MHz clock depend on CCU setting"]
    _54M_148_5M = 1,
}
impl From<DAC_CONTROL_LOGIC_CLOCK_SEL_A> for bool {
    #[inline(always)]
    fn from(variant: DAC_CONTROL_LOGIC_CLOCK_SEL_A) -> Self {
        variant as u8 != 0
    }
}
impl DAC_CONTROL_LOGIC_CLOCK_SEL_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> DAC_CONTROL_LOGIC_CLOCK_SEL_A {
        match self.bits {
            false => DAC_CONTROL_LOGIC_CLOCK_SEL_A::_27M_74_25M,
            true => DAC_CONTROL_LOGIC_CLOCK_SEL_A::_54M_148_5M,
        }
    }
    #[doc = "Checks if the value of the field is `_27M_74_25M`"]
    #[inline(always)]
    pub fn is_27m_74_25m(&self) -> bool {
        *self == DAC_CONTROL_LOGIC_CLOCK_SEL_A::_27M_74_25M
    }
    #[doc = "Checks if the value of the field is `_54M_148_5M`"]
    #[inline(always)]
    pub fn is_54m_148_5m(&self) -> bool {
        *self == DAC_CONTROL_LOGIC_CLOCK_SEL_A::_54M_148_5M
    }
}
#[doc = "Field `dac_control_logic_clock_sel` writer - "]
pub type DAC_CONTROL_LOGIC_CLOCK_SEL_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, TVE_CONFIGURATION_SPEC, DAC_CONTROL_LOGIC_CLOCK_SEL_A, O>;
impl<'a, const O: u8> DAC_CONTROL_LOGIC_CLOCK_SEL_W<'a, O> {
    #[doc = "Using 27 MHz clock or 74.25 MHz clock depend on CCU setting"]
    #[inline(always)]
    pub fn _27m_74_25m(self) -> &'a mut W {
        self.variant(DAC_CONTROL_LOGIC_CLOCK_SEL_A::_27M_74_25M)
    }
    #[doc = "Using 54 MHz clock or 148.5 MHz clock depend on CCU setting"]
    #[inline(always)]
    pub fn _54m_148_5m(self) -> &'a mut W {
        self.variant(DAC_CONTROL_LOGIC_CLOCK_SEL_A::_54M_148_5M)
    }
}
#[doc = "Field `dac_src_sel` reader - "]
pub type DAC_SRC_SEL_R = crate::FieldReader<u8, DAC_SRC_SEL_A>;
#[doc = "\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum DAC_SRC_SEL_A {
    #[doc = "0: TV Encoder"]
    TVE = 0,
    #[doc = "1: LCD controller, override all other TV encoder setting, the DAC clock can from LCD controller."]
    LCD_CONTROLLER = 1,
    #[doc = "2: DAC test mode, DAC using DAC clock"]
    DAC_TEST = 2,
    #[doc = "3: DAC test mode, DAC using AHB clock"]
    DAC_TEST_AHB = 3,
}
impl From<DAC_SRC_SEL_A> for u8 {
    #[inline(always)]
    fn from(variant: DAC_SRC_SEL_A) -> Self {
        variant as _
    }
}
impl DAC_SRC_SEL_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> DAC_SRC_SEL_A {
        match self.bits {
            0 => DAC_SRC_SEL_A::TVE,
            1 => DAC_SRC_SEL_A::LCD_CONTROLLER,
            2 => DAC_SRC_SEL_A::DAC_TEST,
            3 => DAC_SRC_SEL_A::DAC_TEST_AHB,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `TVE`"]
    #[inline(always)]
    pub fn is_tve(&self) -> bool {
        *self == DAC_SRC_SEL_A::TVE
    }
    #[doc = "Checks if the value of the field is `LCD_CONTROLLER`"]
    #[inline(always)]
    pub fn is_lcd_controller(&self) -> bool {
        *self == DAC_SRC_SEL_A::LCD_CONTROLLER
    }
    #[doc = "Checks if the value of the field is `DAC_TEST`"]
    #[inline(always)]
    pub fn is_dac_test(&self) -> bool {
        *self == DAC_SRC_SEL_A::DAC_TEST
    }
    #[doc = "Checks if the value of the field is `DAC_TEST_AHB`"]
    #[inline(always)]
    pub fn is_dac_test_ahb(&self) -> bool {
        *self == DAC_SRC_SEL_A::DAC_TEST_AHB
    }
}
#[doc = "Field `dac_src_sel` writer - "]
pub type DAC_SRC_SEL_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, TVE_CONFIGURATION_SPEC, u8, DAC_SRC_SEL_A, 2, O>;
impl<'a, const O: u8> DAC_SRC_SEL_W<'a, O> {
    #[doc = "TV Encoder"]
    #[inline(always)]
    pub fn tve(self) -> &'a mut W {
        self.variant(DAC_SRC_SEL_A::TVE)
    }
    #[doc = "LCD controller, override all other TV encoder setting, the DAC clock can from LCD controller."]
    #[inline(always)]
    pub fn lcd_controller(self) -> &'a mut W {
        self.variant(DAC_SRC_SEL_A::LCD_CONTROLLER)
    }
    #[doc = "DAC test mode, DAC using DAC clock"]
    #[inline(always)]
    pub fn dac_test(self) -> &'a mut W {
        self.variant(DAC_SRC_SEL_A::DAC_TEST)
    }
    #[doc = "DAC test mode, DAC using AHB clock"]
    #[inline(always)]
    pub fn dac_test_ahb(self) -> &'a mut W {
        self.variant(DAC_SRC_SEL_A::DAC_TEST_AHB)
    }
}
#[doc = "Field `bypass_tv` reader - "]
pub type BYPASS_TV_R = crate::BitReader<BYPASS_TV_A>;
#[doc = "\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BYPASS_TV_A {
    #[doc = "0: Disable"]
    DISABLE = 0,
    #[doc = "1: Enable"]
    ENABLE = 1,
}
impl From<BYPASS_TV_A> for bool {
    #[inline(always)]
    fn from(variant: BYPASS_TV_A) -> Self {
        variant as u8 != 0
    }
}
impl BYPASS_TV_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> BYPASS_TV_A {
        match self.bits {
            false => BYPASS_TV_A::DISABLE,
            true => BYPASS_TV_A::ENABLE,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLE`"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == BYPASS_TV_A::DISABLE
    }
    #[doc = "Checks if the value of the field is `ENABLE`"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == BYPASS_TV_A::ENABLE
    }
}
#[doc = "Field `bypass_tv` writer - "]
pub type BYPASS_TV_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, TVE_CONFIGURATION_SPEC, BYPASS_TV_A, O>;
impl<'a, const O: u8> BYPASS_TV_W<'a, O> {
    #[doc = "Disable"]
    #[inline(always)]
    pub fn disable(self) -> &'a mut W {
        self.variant(BYPASS_TV_A::DISABLE)
    }
    #[doc = "Enable"]
    #[inline(always)]
    pub fn enable(self) -> &'a mut W {
        self.variant(BYPASS_TV_A::ENABLE)
    }
}
impl R {
    #[doc = "Bits 0:3 - TVMode_Select\n\nNote: Changing this register value will cause some relative register setting to relative value."]
    #[inline(always)]
    pub fn tvmode_select(&self) -> TVMODE_SELECT_R {
        TVMODE_SELECT_R::new((self.bits & 0x0f) as u8)
    }
    #[doc = "Bit 4 - Mode_1080i_1250Line_Sel"]
    #[inline(always)]
    pub fn mode_1080i_1250line_sel(&self) -> MODE_1080I_1250LINE_SEL_R {
        MODE_1080I_1250LINE_SEL_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 8 - Standard Color bar input selection\n\nThis bit selects whether the Video Encoder video data input is replaced by an internal standard color bar generator or not."]
    #[inline(always)]
    pub fn color_bar_mode(&self) -> COLOR_BAR_MODE_R {
        COLOR_BAR_MODE_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9"]
    #[inline(always)]
    pub fn color_bar_type(&self) -> COLOR_BAR_TYPE_R {
        COLOR_BAR_TYPE_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 16 - Composite video enables selection\n\nThis bit selects whether the composite video output (CVBS) is enabled or disabled."]
    #[inline(always)]
    pub fn cvbs_en(&self) -> CVBS_EN_R {
        CVBS_EN_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - S-port Video enable Selection.\n\nThis bit selects whether the S-port(Y/C) video output is enabled or disabled."]
    #[inline(always)]
    pub fn yc_en(&self) -> YC_EN_R {
        YC_EN_R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18"]
    #[inline(always)]
    pub fn yuv_rgb_output_en(&self) -> YUV_RGB_OUTPUT_EN_R {
        YUV_RGB_OUTPUT_EN_R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 19"]
    #[inline(always)]
    pub fn input_chroma_data_sampling_rate_sel(&self) -> INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_R {
        INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_R::new(((self.bits >> 19) & 1) != 0)
    }
    #[doc = "Bit 20 - Cb_Cr_Seq_For_422_Mode"]
    #[inline(always)]
    pub fn cb_cr_seq_for_422_mode(&self) -> CB_CR_SEQ_FOR_422_MODE_R {
        CB_CR_SEQ_FOR_422_MODE_R::new(((self.bits >> 20) & 1) != 0)
    }
    #[doc = "Bit 24"]
    #[inline(always)]
    pub fn core_control_logic_clock_sel(&self) -> CORE_CONTROL_LOGIC_CLOCK_SEL_R {
        CORE_CONTROL_LOGIC_CLOCK_SEL_R::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Bit 25"]
    #[inline(always)]
    pub fn core_datapath_logic_clock_sel(&self) -> CORE_DATAPATH_LOGIC_CLOCK_SEL_R {
        CORE_DATAPATH_LOGIC_CLOCK_SEL_R::new(((self.bits >> 25) & 1) != 0)
    }
    #[doc = "Bit 26"]
    #[inline(always)]
    pub fn dac_control_logic_clock_sel(&self) -> DAC_CONTROL_LOGIC_CLOCK_SEL_R {
        DAC_CONTROL_LOGIC_CLOCK_SEL_R::new(((self.bits >> 26) & 1) != 0)
    }
    #[doc = "Bits 27:28"]
    #[inline(always)]
    pub fn dac_src_sel(&self) -> DAC_SRC_SEL_R {
        DAC_SRC_SEL_R::new(((self.bits >> 27) & 3) as u8)
    }
    #[doc = "Bit 29"]
    #[inline(always)]
    pub fn bypass_tv(&self) -> BYPASS_TV_R {
        BYPASS_TV_R::new(((self.bits >> 29) & 1) != 0)
    }
}
impl W {
    #[doc = "Bits 0:3 - TVMode_Select\n\nNote: Changing this register value will cause some relative register setting to relative value."]
    #[inline(always)]
    #[must_use]
    pub fn tvmode_select(&mut self) -> TVMODE_SELECT_W<0> {
        TVMODE_SELECT_W::new(self)
    }
    #[doc = "Bit 4 - Mode_1080i_1250Line_Sel"]
    #[inline(always)]
    #[must_use]
    pub fn mode_1080i_1250line_sel(&mut self) -> MODE_1080I_1250LINE_SEL_W<4> {
        MODE_1080I_1250LINE_SEL_W::new(self)
    }
    #[doc = "Bit 8 - Standard Color bar input selection\n\nThis bit selects whether the Video Encoder video data input is replaced by an internal standard color bar generator or not."]
    #[inline(always)]
    #[must_use]
    pub fn color_bar_mode(&mut self) -> COLOR_BAR_MODE_W<8> {
        COLOR_BAR_MODE_W::new(self)
    }
    #[doc = "Bit 9"]
    #[inline(always)]
    #[must_use]
    pub fn color_bar_type(&mut self) -> COLOR_BAR_TYPE_W<9> {
        COLOR_BAR_TYPE_W::new(self)
    }
    #[doc = "Bit 16 - Composite video enables selection\n\nThis bit selects whether the composite video output (CVBS) is enabled or disabled."]
    #[inline(always)]
    #[must_use]
    pub fn cvbs_en(&mut self) -> CVBS_EN_W<16> {
        CVBS_EN_W::new(self)
    }
    #[doc = "Bit 17 - S-port Video enable Selection.\n\nThis bit selects whether the S-port(Y/C) video output is enabled or disabled."]
    #[inline(always)]
    #[must_use]
    pub fn yc_en(&mut self) -> YC_EN_W<17> {
        YC_EN_W::new(self)
    }
    #[doc = "Bit 18"]
    #[inline(always)]
    #[must_use]
    pub fn yuv_rgb_output_en(&mut self) -> YUV_RGB_OUTPUT_EN_W<18> {
        YUV_RGB_OUTPUT_EN_W::new(self)
    }
    #[doc = "Bit 19"]
    #[inline(always)]
    #[must_use]
    pub fn input_chroma_data_sampling_rate_sel(
        &mut self,
    ) -> INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_W<19> {
        INPUT_CHROMA_DATA_SAMPLING_RATE_SEL_W::new(self)
    }
    #[doc = "Bit 20 - Cb_Cr_Seq_For_422_Mode"]
    #[inline(always)]
    #[must_use]
    pub fn cb_cr_seq_for_422_mode(&mut self) -> CB_CR_SEQ_FOR_422_MODE_W<20> {
        CB_CR_SEQ_FOR_422_MODE_W::new(self)
    }
    #[doc = "Bit 24"]
    #[inline(always)]
    #[must_use]
    pub fn core_control_logic_clock_sel(&mut self) -> CORE_CONTROL_LOGIC_CLOCK_SEL_W<24> {
        CORE_CONTROL_LOGIC_CLOCK_SEL_W::new(self)
    }
    #[doc = "Bit 25"]
    #[inline(always)]
    #[must_use]
    pub fn core_datapath_logic_clock_sel(&mut self) -> CORE_DATAPATH_LOGIC_CLOCK_SEL_W<25> {
        CORE_DATAPATH_LOGIC_CLOCK_SEL_W::new(self)
    }
    #[doc = "Bit 26"]
    #[inline(always)]
    #[must_use]
    pub fn dac_control_logic_clock_sel(&mut self) -> DAC_CONTROL_LOGIC_CLOCK_SEL_W<26> {
        DAC_CONTROL_LOGIC_CLOCK_SEL_W::new(self)
    }
    #[doc = "Bits 27:28"]
    #[inline(always)]
    #[must_use]
    pub fn dac_src_sel(&mut self) -> DAC_SRC_SEL_W<27> {
        DAC_SRC_SEL_W::new(self)
    }
    #[doc = "Bit 29"]
    #[inline(always)]
    #[must_use]
    pub fn bypass_tv(&mut self) -> BYPASS_TV_W<29> {
        BYPASS_TV_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "TV Encoder Configuration 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 [tve_configuration](index.html) module"]
pub struct TVE_CONFIGURATION_SPEC;
impl crate::RegisterSpec for TVE_CONFIGURATION_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [tve_configuration::R](R) reader structure"]
impl crate::Readable for TVE_CONFIGURATION_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [tve_configuration::W](W) writer structure"]
impl crate::Writable for TVE_CONFIGURATION_SPEC {
    type Writer = W;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets tve_configuration to value 0x0001_0000"]
impl crate::Resettable for TVE_CONFIGURATION_SPEC {
    const RESET_VALUE: Self::Ux = 0x0001_0000;
}