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
#[doc = "Register `lcd_lvds_ana%s` reader"]
pub struct R(crate::R<LCD_LVDS_ANA_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<LCD_LVDS_ANA_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<LCD_LVDS_ANA_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<LCD_LVDS_ANA_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `lcd_lvds_ana%s` writer"]
pub struct W(crate::W<LCD_LVDS_ANA_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<LCD_LVDS_ANA_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<LCD_LVDS_ANA_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<LCD_LVDS_ANA_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `lvds_plr` reader - LVDS data channel \\[3:0\\] direction."]
pub type LVDS_PLR_R = crate::FieldReader<u8, u8>;
#[doc = "Field `lvds_plr` writer - LVDS data channel \\[3:0\\] direction."]
pub type LVDS_PLR_W<'a, const O: u8> = crate::FieldWriter<'a, u32, LCD_LVDS_ANA_SPEC, u8, u8, 4, O>;
#[doc = "Field `lvds_plrc` reader - LVDS clock channel direction."]
pub type LVDS_PLRC_R = crate::BitReader<LVDS_PLRC_A>;
#[doc = "LVDS clock channel direction.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum LVDS_PLRC_A {
    #[doc = "0: Normal"]
    NORMAL = 0,
    #[doc = "1: Reverse"]
    REVERSE = 1,
}
impl From<LVDS_PLRC_A> for bool {
    #[inline(always)]
    fn from(variant: LVDS_PLRC_A) -> Self {
        variant as u8 != 0
    }
}
impl LVDS_PLRC_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> LVDS_PLRC_A {
        match self.bits {
            false => LVDS_PLRC_A::NORMAL,
            true => LVDS_PLRC_A::REVERSE,
        }
    }
    #[doc = "Checks if the value of the field is `NORMAL`"]
    #[inline(always)]
    pub fn is_normal(&self) -> bool {
        *self == LVDS_PLRC_A::NORMAL
    }
    #[doc = "Checks if the value of the field is `REVERSE`"]
    #[inline(always)]
    pub fn is_reverse(&self) -> bool {
        *self == LVDS_PLRC_A::REVERSE
    }
}
#[doc = "Field `lvds_plrc` writer - LVDS clock channel direction."]
pub type LVDS_PLRC_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, LCD_LVDS_ANA_SPEC, LVDS_PLRC_A, O>;
impl<'a, const O: u8> LVDS_PLRC_W<'a, O> {
    #[doc = "Normal"]
    #[inline(always)]
    pub fn normal(self) -> &'a mut W {
        self.variant(LVDS_PLRC_A::NORMAL)
    }
    #[doc = "Reverse"]
    #[inline(always)]
    pub fn reverse(self) -> &'a mut W {
        self.variant(LVDS_PLRC_A::REVERSE)
    }
}
#[doc = "Field `lvds_r` reader - Adjust current flowing through R of R to change the common signals amplitude."]
pub type LVDS_R_R = crate::FieldReader<u8, LVDS_R_A>;
#[doc = "Adjust current flowing through R of R to change the common signals amplitude.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum LVDS_R_A {
    #[doc = "0: 0.925 V"]
    _0_925_V = 0,
    #[doc = "1: 0.950 V"]
    _0_950_V = 1,
    #[doc = "2: 0.975 V"]
    _0_975_V = 2,
    #[doc = "3: 1.000 V"]
    _1_000_V = 3,
    #[doc = "4: 1.025 V"]
    _1_025_V = 4,
    #[doc = "5: 1.050 V"]
    _1_050_V = 5,
    #[doc = "6: 1.075 V"]
    _1_075_V = 6,
    #[doc = "7: 1.100 V"]
    _1_100_V = 7,
}
impl From<LVDS_R_A> for u8 {
    #[inline(always)]
    fn from(variant: LVDS_R_A) -> Self {
        variant as _
    }
}
impl LVDS_R_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> LVDS_R_A {
        match self.bits {
            0 => LVDS_R_A::_0_925_V,
            1 => LVDS_R_A::_0_950_V,
            2 => LVDS_R_A::_0_975_V,
            3 => LVDS_R_A::_1_000_V,
            4 => LVDS_R_A::_1_025_V,
            5 => LVDS_R_A::_1_050_V,
            6 => LVDS_R_A::_1_075_V,
            7 => LVDS_R_A::_1_100_V,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `_0_925_V`"]
    #[inline(always)]
    pub fn is_0_925_v(&self) -> bool {
        *self == LVDS_R_A::_0_925_V
    }
    #[doc = "Checks if the value of the field is `_0_950_V`"]
    #[inline(always)]
    pub fn is_0_950_v(&self) -> bool {
        *self == LVDS_R_A::_0_950_V
    }
    #[doc = "Checks if the value of the field is `_0_975_V`"]
    #[inline(always)]
    pub fn is_0_975_v(&self) -> bool {
        *self == LVDS_R_A::_0_975_V
    }
    #[doc = "Checks if the value of the field is `_1_000_V`"]
    #[inline(always)]
    pub fn is_1_000_v(&self) -> bool {
        *self == LVDS_R_A::_1_000_V
    }
    #[doc = "Checks if the value of the field is `_1_025_V`"]
    #[inline(always)]
    pub fn is_1_025_v(&self) -> bool {
        *self == LVDS_R_A::_1_025_V
    }
    #[doc = "Checks if the value of the field is `_1_050_V`"]
    #[inline(always)]
    pub fn is_1_050_v(&self) -> bool {
        *self == LVDS_R_A::_1_050_V
    }
    #[doc = "Checks if the value of the field is `_1_075_V`"]
    #[inline(always)]
    pub fn is_1_075_v(&self) -> bool {
        *self == LVDS_R_A::_1_075_V
    }
    #[doc = "Checks if the value of the field is `_1_100_V`"]
    #[inline(always)]
    pub fn is_1_100_v(&self) -> bool {
        *self == LVDS_R_A::_1_100_V
    }
}
#[doc = "Field `lvds_r` writer - Adjust current flowing through R of R to change the common signals amplitude."]
pub type LVDS_R_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, LCD_LVDS_ANA_SPEC, u8, LVDS_R_A, 3, O>;
impl<'a, const O: u8> LVDS_R_W<'a, O> {
    #[doc = "0.925 V"]
    #[inline(always)]
    pub fn _0_925_v(self) -> &'a mut W {
        self.variant(LVDS_R_A::_0_925_V)
    }
    #[doc = "0.950 V"]
    #[inline(always)]
    pub fn _0_950_v(self) -> &'a mut W {
        self.variant(LVDS_R_A::_0_950_V)
    }
    #[doc = "0.975 V"]
    #[inline(always)]
    pub fn _0_975_v(self) -> &'a mut W {
        self.variant(LVDS_R_A::_0_975_V)
    }
    #[doc = "1.000 V"]
    #[inline(always)]
    pub fn _1_000_v(self) -> &'a mut W {
        self.variant(LVDS_R_A::_1_000_V)
    }
    #[doc = "1.025 V"]
    #[inline(always)]
    pub fn _1_025_v(self) -> &'a mut W {
        self.variant(LVDS_R_A::_1_025_V)
    }
    #[doc = "1.050 V"]
    #[inline(always)]
    pub fn _1_050_v(self) -> &'a mut W {
        self.variant(LVDS_R_A::_1_050_V)
    }
    #[doc = "1.075 V"]
    #[inline(always)]
    pub fn _1_075_v(self) -> &'a mut W {
        self.variant(LVDS_R_A::_1_075_V)
    }
    #[doc = "1.100 V"]
    #[inline(always)]
    pub fn _1_100_v(self) -> &'a mut W {
        self.variant(LVDS_R_A::_1_100_V)
    }
}
#[doc = "Field `lvds_den` reader - Choose data output or PLL test clock output in LVDS_tx."]
pub type LVDS_DEN_R = crate::FieldReader<u8, u8>;
#[doc = "Field `lvds_den` writer - Choose data output or PLL test clock output in LVDS_tx."]
pub type LVDS_DEN_W<'a, const O: u8> = crate::FieldWriter<'a, u32, LCD_LVDS_ANA_SPEC, u8, u8, 4, O>;
#[doc = "Field `lvds_denc` reader - Choose data output or PLL test clock output in LVDS_tx."]
pub type LVDS_DENC_R = crate::BitReader<bool>;
#[doc = "Field `lvds_denc` writer - Choose data output or PLL test clock output in LVDS_tx."]
pub type LVDS_DENC_W<'a, const O: u8> = crate::BitWriter<'a, u32, LCD_LVDS_ANA_SPEC, bool, O>;
#[doc = "Field `lvds_c` reader - Adjust current flowing through Rload of Rx to change the differential signals amplitude."]
pub type LVDS_C_R = crate::FieldReader<u8, LVDS_C_A>;
#[doc = "Adjust current flowing through Rload of Rx to change the differential signals amplitude.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum LVDS_C_A {
    #[doc = "0: 216 mV"]
    _216MV = 0,
    #[doc = "1: 252 mV"]
    _252MV = 1,
    #[doc = "2: 276 mV"]
    _276MV = 2,
    #[doc = "3: 312 mV"]
    _312MV = 3,
    #[doc = "4: 336 mV"]
    _336MV = 4,
    #[doc = "5: 372 mV"]
    _372MV = 5,
    #[doc = "6: 395 mV"]
    _395MV = 6,
    #[doc = "7: 432 mV"]
    _432MV = 7,
}
impl From<LVDS_C_A> for u8 {
    #[inline(always)]
    fn from(variant: LVDS_C_A) -> Self {
        variant as _
    }
}
impl LVDS_C_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> LVDS_C_A {
        match self.bits {
            0 => LVDS_C_A::_216MV,
            1 => LVDS_C_A::_252MV,
            2 => LVDS_C_A::_276MV,
            3 => LVDS_C_A::_312MV,
            4 => LVDS_C_A::_336MV,
            5 => LVDS_C_A::_372MV,
            6 => LVDS_C_A::_395MV,
            7 => LVDS_C_A::_432MV,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `_216MV`"]
    #[inline(always)]
    pub fn is_216mv(&self) -> bool {
        *self == LVDS_C_A::_216MV
    }
    #[doc = "Checks if the value of the field is `_252MV`"]
    #[inline(always)]
    pub fn is_252mv(&self) -> bool {
        *self == LVDS_C_A::_252MV
    }
    #[doc = "Checks if the value of the field is `_276MV`"]
    #[inline(always)]
    pub fn is_276mv(&self) -> bool {
        *self == LVDS_C_A::_276MV
    }
    #[doc = "Checks if the value of the field is `_312MV`"]
    #[inline(always)]
    pub fn is_312mv(&self) -> bool {
        *self == LVDS_C_A::_312MV
    }
    #[doc = "Checks if the value of the field is `_336MV`"]
    #[inline(always)]
    pub fn is_336mv(&self) -> bool {
        *self == LVDS_C_A::_336MV
    }
    #[doc = "Checks if the value of the field is `_372MV`"]
    #[inline(always)]
    pub fn is_372mv(&self) -> bool {
        *self == LVDS_C_A::_372MV
    }
    #[doc = "Checks if the value of the field is `_395MV`"]
    #[inline(always)]
    pub fn is_395mv(&self) -> bool {
        *self == LVDS_C_A::_395MV
    }
    #[doc = "Checks if the value of the field is `_432MV`"]
    #[inline(always)]
    pub fn is_432mv(&self) -> bool {
        *self == LVDS_C_A::_432MV
    }
}
#[doc = "Field `lvds_c` writer - Adjust current flowing through Rload of Rx to change the differential signals amplitude."]
pub type LVDS_C_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, LCD_LVDS_ANA_SPEC, u8, LVDS_C_A, 3, O>;
impl<'a, const O: u8> LVDS_C_W<'a, O> {
    #[doc = "216 mV"]
    #[inline(always)]
    pub fn _216mv(self) -> &'a mut W {
        self.variant(LVDS_C_A::_216MV)
    }
    #[doc = "252 mV"]
    #[inline(always)]
    pub fn _252mv(self) -> &'a mut W {
        self.variant(LVDS_C_A::_252MV)
    }
    #[doc = "276 mV"]
    #[inline(always)]
    pub fn _276mv(self) -> &'a mut W {
        self.variant(LVDS_C_A::_276MV)
    }
    #[doc = "312 mV"]
    #[inline(always)]
    pub fn _312mv(self) -> &'a mut W {
        self.variant(LVDS_C_A::_312MV)
    }
    #[doc = "336 mV"]
    #[inline(always)]
    pub fn _336mv(self) -> &'a mut W {
        self.variant(LVDS_C_A::_336MV)
    }
    #[doc = "372 mV"]
    #[inline(always)]
    pub fn _372mv(self) -> &'a mut W {
        self.variant(LVDS_C_A::_372MV)
    }
    #[doc = "395 mV"]
    #[inline(always)]
    pub fn _395mv(self) -> &'a mut W {
        self.variant(LVDS_C_A::_395MV)
    }
    #[doc = "432 mV"]
    #[inline(always)]
    pub fn _432mv(self) -> &'a mut W {
        self.variant(LVDS_C_A::_432MV)
    }
}
#[doc = "Field `lvds_hpren_drv` reader - Enable data channel\\[3:0\\] drive"]
pub type LVDS_HPREN_DRV_R = crate::FieldReader<u8, u8>;
#[doc = "Field `lvds_hpren_drv` writer - Enable data channel\\[3:0\\] drive"]
pub type LVDS_HPREN_DRV_W<'a, const O: u8> =
    crate::FieldWriter<'a, u32, LCD_LVDS_ANA_SPEC, u8, u8, 4, O>;
#[doc = "Field `lvds_hpren_drvc` reader - Enable clock channel drive"]
pub type LVDS_HPREN_DRVC_R = crate::BitReader<LVDS_HPREN_DRVC_A>;
#[doc = "Enable clock channel drive\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum LVDS_HPREN_DRVC_A {
    #[doc = "0: Disable"]
    DISABLE = 0,
    #[doc = "1: Enable"]
    ENABLE = 1,
}
impl From<LVDS_HPREN_DRVC_A> for bool {
    #[inline(always)]
    fn from(variant: LVDS_HPREN_DRVC_A) -> Self {
        variant as u8 != 0
    }
}
impl LVDS_HPREN_DRVC_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> LVDS_HPREN_DRVC_A {
        match self.bits {
            false => LVDS_HPREN_DRVC_A::DISABLE,
            true => LVDS_HPREN_DRVC_A::ENABLE,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLE`"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == LVDS_HPREN_DRVC_A::DISABLE
    }
    #[doc = "Checks if the value of the field is `ENABLE`"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == LVDS_HPREN_DRVC_A::ENABLE
    }
}
#[doc = "Field `lvds_hpren_drvc` writer - Enable clock channel drive"]
pub type LVDS_HPREN_DRVC_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, LCD_LVDS_ANA_SPEC, LVDS_HPREN_DRVC_A, O>;
impl<'a, const O: u8> LVDS_HPREN_DRVC_W<'a, O> {
    #[doc = "Disable"]
    #[inline(always)]
    pub fn disable(self) -> &'a mut W {
        self.variant(LVDS_HPREN_DRVC_A::DISABLE)
    }
    #[doc = "Enable"]
    #[inline(always)]
    pub fn enable(self) -> &'a mut W {
        self.variant(LVDS_HPREN_DRVC_A::ENABLE)
    }
}
#[doc = "Field `en_24m` reader - Enable the 24M clock"]
pub type EN_24M_R = crate::BitReader<bool>;
#[doc = "Field `en_24m` writer - Enable the 24M clock"]
pub type EN_24M_W<'a, const O: u8> = crate::BitWriter<'a, u32, LCD_LVDS_ANA_SPEC, bool, O>;
#[doc = "Field `en_lvds` reader - Enable LVDS"]
pub type EN_LVDS_R = crate::BitReader<bool>;
#[doc = "Field `en_lvds` writer - Enable LVDS"]
pub type EN_LVDS_W<'a, const O: u8> = crate::BitWriter<'a, u32, LCD_LVDS_ANA_SPEC, bool, O>;
#[doc = "Field `lvds_en_mb` reader - Enable the bias circuit of the LVDS_Ana module."]
pub type LVDS_EN_MB_R = crate::BitReader<LVDS_EN_MB_A>;
#[doc = "Enable the bias circuit of the LVDS_Ana module.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum LVDS_EN_MB_A {
    #[doc = "0: Disable"]
    DISABLE = 0,
    #[doc = "1: Enable"]
    ENABLE = 1,
}
impl From<LVDS_EN_MB_A> for bool {
    #[inline(always)]
    fn from(variant: LVDS_EN_MB_A) -> Self {
        variant as u8 != 0
    }
}
impl LVDS_EN_MB_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> LVDS_EN_MB_A {
        match self.bits {
            false => LVDS_EN_MB_A::DISABLE,
            true => LVDS_EN_MB_A::ENABLE,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLE`"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == LVDS_EN_MB_A::DISABLE
    }
    #[doc = "Checks if the value of the field is `ENABLE`"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == LVDS_EN_MB_A::ENABLE
    }
}
#[doc = "Field `lvds_en_mb` writer - Enable the bias circuit of the LVDS_Ana module."]
pub type LVDS_EN_MB_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, LCD_LVDS_ANA_SPEC, LVDS_EN_MB_A, O>;
impl<'a, const O: u8> LVDS_EN_MB_W<'a, O> {
    #[doc = "Disable"]
    #[inline(always)]
    pub fn disable(self) -> &'a mut W {
        self.variant(LVDS_EN_MB_A::DISABLE)
    }
    #[doc = "Enable"]
    #[inline(always)]
    pub fn enable(self) -> &'a mut W {
        self.variant(LVDS_EN_MB_A::ENABLE)
    }
}
impl R {
    #[doc = "Bits 0:3 - LVDS data channel \\[3:0\\] direction."]
    #[inline(always)]
    pub fn lvds_plr(&self) -> LVDS_PLR_R {
        LVDS_PLR_R::new((self.bits & 0x0f) as u8)
    }
    #[doc = "Bit 4 - LVDS clock channel direction."]
    #[inline(always)]
    pub fn lvds_plrc(&self) -> LVDS_PLRC_R {
        LVDS_PLRC_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bits 8:10 - Adjust current flowing through R of R to change the common signals amplitude."]
    #[inline(always)]
    pub fn lvds_r(&self) -> LVDS_R_R {
        LVDS_R_R::new(((self.bits >> 8) & 7) as u8)
    }
    #[doc = "Bits 12:15 - Choose data output or PLL test clock output in LVDS_tx."]
    #[inline(always)]
    pub fn lvds_den(&self) -> LVDS_DEN_R {
        LVDS_DEN_R::new(((self.bits >> 12) & 0x0f) as u8)
    }
    #[doc = "Bit 16 - Choose data output or PLL test clock output in LVDS_tx."]
    #[inline(always)]
    pub fn lvds_denc(&self) -> LVDS_DENC_R {
        LVDS_DENC_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bits 17:19 - Adjust current flowing through Rload of Rx to change the differential signals amplitude."]
    #[inline(always)]
    pub fn lvds_c(&self) -> LVDS_C_R {
        LVDS_C_R::new(((self.bits >> 17) & 7) as u8)
    }
    #[doc = "Bits 20:23 - Enable data channel\\[3:0\\] drive"]
    #[inline(always)]
    pub fn lvds_hpren_drv(&self) -> LVDS_HPREN_DRV_R {
        LVDS_HPREN_DRV_R::new(((self.bits >> 20) & 0x0f) as u8)
    }
    #[doc = "Bit 24 - Enable clock channel drive"]
    #[inline(always)]
    pub fn lvds_hpren_drvc(&self) -> LVDS_HPREN_DRVC_R {
        LVDS_HPREN_DRVC_R::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Bit 28 - Enable the 24M clock"]
    #[inline(always)]
    pub fn en_24m(&self) -> EN_24M_R {
        EN_24M_R::new(((self.bits >> 28) & 1) != 0)
    }
    #[doc = "Bit 29 - Enable LVDS"]
    #[inline(always)]
    pub fn en_lvds(&self) -> EN_LVDS_R {
        EN_LVDS_R::new(((self.bits >> 29) & 1) != 0)
    }
    #[doc = "Bit 31 - Enable the bias circuit of the LVDS_Ana module."]
    #[inline(always)]
    pub fn lvds_en_mb(&self) -> LVDS_EN_MB_R {
        LVDS_EN_MB_R::new(((self.bits >> 31) & 1) != 0)
    }
}
impl W {
    #[doc = "Bits 0:3 - LVDS data channel \\[3:0\\] direction."]
    #[inline(always)]
    #[must_use]
    pub fn lvds_plr(&mut self) -> LVDS_PLR_W<0> {
        LVDS_PLR_W::new(self)
    }
    #[doc = "Bit 4 - LVDS clock channel direction."]
    #[inline(always)]
    #[must_use]
    pub fn lvds_plrc(&mut self) -> LVDS_PLRC_W<4> {
        LVDS_PLRC_W::new(self)
    }
    #[doc = "Bits 8:10 - Adjust current flowing through R of R to change the common signals amplitude."]
    #[inline(always)]
    #[must_use]
    pub fn lvds_r(&mut self) -> LVDS_R_W<8> {
        LVDS_R_W::new(self)
    }
    #[doc = "Bits 12:15 - Choose data output or PLL test clock output in LVDS_tx."]
    #[inline(always)]
    #[must_use]
    pub fn lvds_den(&mut self) -> LVDS_DEN_W<12> {
        LVDS_DEN_W::new(self)
    }
    #[doc = "Bit 16 - Choose data output or PLL test clock output in LVDS_tx."]
    #[inline(always)]
    #[must_use]
    pub fn lvds_denc(&mut self) -> LVDS_DENC_W<16> {
        LVDS_DENC_W::new(self)
    }
    #[doc = "Bits 17:19 - Adjust current flowing through Rload of Rx to change the differential signals amplitude."]
    #[inline(always)]
    #[must_use]
    pub fn lvds_c(&mut self) -> LVDS_C_W<17> {
        LVDS_C_W::new(self)
    }
    #[doc = "Bits 20:23 - Enable data channel\\[3:0\\] drive"]
    #[inline(always)]
    #[must_use]
    pub fn lvds_hpren_drv(&mut self) -> LVDS_HPREN_DRV_W<20> {
        LVDS_HPREN_DRV_W::new(self)
    }
    #[doc = "Bit 24 - Enable clock channel drive"]
    #[inline(always)]
    #[must_use]
    pub fn lvds_hpren_drvc(&mut self) -> LVDS_HPREN_DRVC_W<24> {
        LVDS_HPREN_DRVC_W::new(self)
    }
    #[doc = "Bit 28 - Enable the 24M clock"]
    #[inline(always)]
    #[must_use]
    pub fn en_24m(&mut self) -> EN_24M_W<28> {
        EN_24M_W::new(self)
    }
    #[doc = "Bit 29 - Enable LVDS"]
    #[inline(always)]
    #[must_use]
    pub fn en_lvds(&mut self) -> EN_LVDS_W<29> {
        EN_LVDS_W::new(self)
    }
    #[doc = "Bit 31 - Enable the bias circuit of the LVDS_Ana module."]
    #[inline(always)]
    #[must_use]
    pub fn lvds_en_mb(&mut self) -> LVDS_EN_MB_W<31> {
        LVDS_EN_MB_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 = "LCD LVDS Analog Register \\[i\\]\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 [lcd_lvds_ana](index.html) module"]
pub struct LCD_LVDS_ANA_SPEC;
impl crate::RegisterSpec for LCD_LVDS_ANA_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [lcd_lvds_ana::R](R) reader structure"]
impl crate::Readable for LCD_LVDS_ANA_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [lcd_lvds_ana::W](W) writer structure"]
impl crate::Writable for LCD_LVDS_ANA_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 lcd_lvds_ana%s to value 0"]
impl crate::Resettable for LCD_LVDS_ANA_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}