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
#[doc = "Register `pg_cfg2` reader"]
pub struct R(crate::R<PG_CFG2_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<PG_CFG2_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<PG_CFG2_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<PG_CFG2_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `pg_cfg2` writer"]
pub struct W(crate::W<PG_CFG2_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<PG_CFG2_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<PG_CFG2_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<PG_CFG2_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `pg16_select` reader - PG16 Select"]
pub type PG16_SELECT_R = crate::FieldReader<u8, PG16_SELECT_A>;
#[doc = "PG16 Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum PG16_SELECT_A {
    #[doc = "0: `0`"]
    INPUT = 0,
    #[doc = "2: `10`"]
    IR_RX = 2,
    #[doc = "4: `100`"]
    PWM5 = 4,
    #[doc = "6: `110`"]
    OWA_IN = 6,
    #[doc = "14: `1110`"]
    PG_EINT16 = 14,
    #[doc = "1: `1`"]
    OUTPUT = 1,
    #[doc = "3: `11`"]
    TCON_TRIG = 3,
    #[doc = "5: `101`"]
    CLK_FANOUT2 = 5,
    #[doc = "7: `111`"]
    LEDC_DO = 7,
    #[doc = "15: `1111`"]
    IO_DISABLE = 15,
}
impl From<PG16_SELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: PG16_SELECT_A) -> Self {
        variant as _
    }
}
impl PG16_SELECT_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> Option<PG16_SELECT_A> {
        match self.bits {
            0 => Some(PG16_SELECT_A::INPUT),
            2 => Some(PG16_SELECT_A::IR_RX),
            4 => Some(PG16_SELECT_A::PWM5),
            6 => Some(PG16_SELECT_A::OWA_IN),
            14 => Some(PG16_SELECT_A::PG_EINT16),
            1 => Some(PG16_SELECT_A::OUTPUT),
            3 => Some(PG16_SELECT_A::TCON_TRIG),
            5 => Some(PG16_SELECT_A::CLK_FANOUT2),
            7 => Some(PG16_SELECT_A::LEDC_DO),
            15 => Some(PG16_SELECT_A::IO_DISABLE),
            _ => None,
        }
    }
    #[doc = "Checks if the value of the field is `INPUT`"]
    #[inline(always)]
    pub fn is_input(&self) -> bool {
        *self == PG16_SELECT_A::INPUT
    }
    #[doc = "Checks if the value of the field is `IR_RX`"]
    #[inline(always)]
    pub fn is_ir_rx(&self) -> bool {
        *self == PG16_SELECT_A::IR_RX
    }
    #[doc = "Checks if the value of the field is `PWM5`"]
    #[inline(always)]
    pub fn is_pwm5(&self) -> bool {
        *self == PG16_SELECT_A::PWM5
    }
    #[doc = "Checks if the value of the field is `OWA_IN`"]
    #[inline(always)]
    pub fn is_owa_in(&self) -> bool {
        *self == PG16_SELECT_A::OWA_IN
    }
    #[doc = "Checks if the value of the field is `PG_EINT16`"]
    #[inline(always)]
    pub fn is_pg_eint16(&self) -> bool {
        *self == PG16_SELECT_A::PG_EINT16
    }
    #[doc = "Checks if the value of the field is `OUTPUT`"]
    #[inline(always)]
    pub fn is_output(&self) -> bool {
        *self == PG16_SELECT_A::OUTPUT
    }
    #[doc = "Checks if the value of the field is `TCON_TRIG`"]
    #[inline(always)]
    pub fn is_tcon_trig(&self) -> bool {
        *self == PG16_SELECT_A::TCON_TRIG
    }
    #[doc = "Checks if the value of the field is `CLK_FANOUT2`"]
    #[inline(always)]
    pub fn is_clk_fanout2(&self) -> bool {
        *self == PG16_SELECT_A::CLK_FANOUT2
    }
    #[doc = "Checks if the value of the field is `LEDC_DO`"]
    #[inline(always)]
    pub fn is_ledc_do(&self) -> bool {
        *self == PG16_SELECT_A::LEDC_DO
    }
    #[doc = "Checks if the value of the field is `IO_DISABLE`"]
    #[inline(always)]
    pub fn is_io_disable(&self) -> bool {
        *self == PG16_SELECT_A::IO_DISABLE
    }
}
#[doc = "Field `pg16_select` writer - PG16 Select"]
pub type PG16_SELECT_W<'a, const O: u8> =
    crate::FieldWriter<'a, u32, PG_CFG2_SPEC, u8, PG16_SELECT_A, 4, O>;
impl<'a, const O: u8> PG16_SELECT_W<'a, O> {
    #[doc = "`0`"]
    #[inline(always)]
    pub fn input(self) -> &'a mut W {
        self.variant(PG16_SELECT_A::INPUT)
    }
    #[doc = "`10`"]
    #[inline(always)]
    pub fn ir_rx(self) -> &'a mut W {
        self.variant(PG16_SELECT_A::IR_RX)
    }
    #[doc = "`100`"]
    #[inline(always)]
    pub fn pwm5(self) -> &'a mut W {
        self.variant(PG16_SELECT_A::PWM5)
    }
    #[doc = "`110`"]
    #[inline(always)]
    pub fn owa_in(self) -> &'a mut W {
        self.variant(PG16_SELECT_A::OWA_IN)
    }
    #[doc = "`1110`"]
    #[inline(always)]
    pub fn pg_eint16(self) -> &'a mut W {
        self.variant(PG16_SELECT_A::PG_EINT16)
    }
    #[doc = "`1`"]
    #[inline(always)]
    pub fn output(self) -> &'a mut W {
        self.variant(PG16_SELECT_A::OUTPUT)
    }
    #[doc = "`11`"]
    #[inline(always)]
    pub fn tcon_trig(self) -> &'a mut W {
        self.variant(PG16_SELECT_A::TCON_TRIG)
    }
    #[doc = "`101`"]
    #[inline(always)]
    pub fn clk_fanout2(self) -> &'a mut W {
        self.variant(PG16_SELECT_A::CLK_FANOUT2)
    }
    #[doc = "`111`"]
    #[inline(always)]
    pub fn ledc_do(self) -> &'a mut W {
        self.variant(PG16_SELECT_A::LEDC_DO)
    }
    #[doc = "`1111`"]
    #[inline(always)]
    pub fn io_disable(self) -> &'a mut W {
        self.variant(PG16_SELECT_A::IO_DISABLE)
    }
}
#[doc = "Field `pg17_select` reader - PG17 Select"]
pub type PG17_SELECT_R = crate::FieldReader<u8, PG17_SELECT_A>;
#[doc = "PG17 Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum PG17_SELECT_A {
    #[doc = "0: `0`"]
    INPUT = 0,
    #[doc = "2: `10`"]
    UART2_TX = 2,
    #[doc = "4: `100`"]
    PWM7 = 4,
    #[doc = "6: `110`"]
    IR_TX = 6,
    #[doc = "14: `1110`"]
    PG_EINT17 = 14,
    #[doc = "1: `1`"]
    OUTPUT = 1,
    #[doc = "3: `11`"]
    TWI3_SCK = 3,
    #[doc = "5: `101`"]
    CLK_FANOUT0 = 5,
    #[doc = "7: `111`"]
    UART0_TX = 7,
    #[doc = "15: `1111`"]
    IO_DISABLE = 15,
}
impl From<PG17_SELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: PG17_SELECT_A) -> Self {
        variant as _
    }
}
impl PG17_SELECT_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> Option<PG17_SELECT_A> {
        match self.bits {
            0 => Some(PG17_SELECT_A::INPUT),
            2 => Some(PG17_SELECT_A::UART2_TX),
            4 => Some(PG17_SELECT_A::PWM7),
            6 => Some(PG17_SELECT_A::IR_TX),
            14 => Some(PG17_SELECT_A::PG_EINT17),
            1 => Some(PG17_SELECT_A::OUTPUT),
            3 => Some(PG17_SELECT_A::TWI3_SCK),
            5 => Some(PG17_SELECT_A::CLK_FANOUT0),
            7 => Some(PG17_SELECT_A::UART0_TX),
            15 => Some(PG17_SELECT_A::IO_DISABLE),
            _ => None,
        }
    }
    #[doc = "Checks if the value of the field is `INPUT`"]
    #[inline(always)]
    pub fn is_input(&self) -> bool {
        *self == PG17_SELECT_A::INPUT
    }
    #[doc = "Checks if the value of the field is `UART2_TX`"]
    #[inline(always)]
    pub fn is_uart2_tx(&self) -> bool {
        *self == PG17_SELECT_A::UART2_TX
    }
    #[doc = "Checks if the value of the field is `PWM7`"]
    #[inline(always)]
    pub fn is_pwm7(&self) -> bool {
        *self == PG17_SELECT_A::PWM7
    }
    #[doc = "Checks if the value of the field is `IR_TX`"]
    #[inline(always)]
    pub fn is_ir_tx(&self) -> bool {
        *self == PG17_SELECT_A::IR_TX
    }
    #[doc = "Checks if the value of the field is `PG_EINT17`"]
    #[inline(always)]
    pub fn is_pg_eint17(&self) -> bool {
        *self == PG17_SELECT_A::PG_EINT17
    }
    #[doc = "Checks if the value of the field is `OUTPUT`"]
    #[inline(always)]
    pub fn is_output(&self) -> bool {
        *self == PG17_SELECT_A::OUTPUT
    }
    #[doc = "Checks if the value of the field is `TWI3_SCK`"]
    #[inline(always)]
    pub fn is_twi3_sck(&self) -> bool {
        *self == PG17_SELECT_A::TWI3_SCK
    }
    #[doc = "Checks if the value of the field is `CLK_FANOUT0`"]
    #[inline(always)]
    pub fn is_clk_fanout0(&self) -> bool {
        *self == PG17_SELECT_A::CLK_FANOUT0
    }
    #[doc = "Checks if the value of the field is `UART0_TX`"]
    #[inline(always)]
    pub fn is_uart0_tx(&self) -> bool {
        *self == PG17_SELECT_A::UART0_TX
    }
    #[doc = "Checks if the value of the field is `IO_DISABLE`"]
    #[inline(always)]
    pub fn is_io_disable(&self) -> bool {
        *self == PG17_SELECT_A::IO_DISABLE
    }
}
#[doc = "Field `pg17_select` writer - PG17 Select"]
pub type PG17_SELECT_W<'a, const O: u8> =
    crate::FieldWriter<'a, u32, PG_CFG2_SPEC, u8, PG17_SELECT_A, 4, O>;
impl<'a, const O: u8> PG17_SELECT_W<'a, O> {
    #[doc = "`0`"]
    #[inline(always)]
    pub fn input(self) -> &'a mut W {
        self.variant(PG17_SELECT_A::INPUT)
    }
    #[doc = "`10`"]
    #[inline(always)]
    pub fn uart2_tx(self) -> &'a mut W {
        self.variant(PG17_SELECT_A::UART2_TX)
    }
    #[doc = "`100`"]
    #[inline(always)]
    pub fn pwm7(self) -> &'a mut W {
        self.variant(PG17_SELECT_A::PWM7)
    }
    #[doc = "`110`"]
    #[inline(always)]
    pub fn ir_tx(self) -> &'a mut W {
        self.variant(PG17_SELECT_A::IR_TX)
    }
    #[doc = "`1110`"]
    #[inline(always)]
    pub fn pg_eint17(self) -> &'a mut W {
        self.variant(PG17_SELECT_A::PG_EINT17)
    }
    #[doc = "`1`"]
    #[inline(always)]
    pub fn output(self) -> &'a mut W {
        self.variant(PG17_SELECT_A::OUTPUT)
    }
    #[doc = "`11`"]
    #[inline(always)]
    pub fn twi3_sck(self) -> &'a mut W {
        self.variant(PG17_SELECT_A::TWI3_SCK)
    }
    #[doc = "`101`"]
    #[inline(always)]
    pub fn clk_fanout0(self) -> &'a mut W {
        self.variant(PG17_SELECT_A::CLK_FANOUT0)
    }
    #[doc = "`111`"]
    #[inline(always)]
    pub fn uart0_tx(self) -> &'a mut W {
        self.variant(PG17_SELECT_A::UART0_TX)
    }
    #[doc = "`1111`"]
    #[inline(always)]
    pub fn io_disable(self) -> &'a mut W {
        self.variant(PG17_SELECT_A::IO_DISABLE)
    }
}
#[doc = "Field `pg18_select` reader - PG18 Select"]
pub type PG18_SELECT_R = crate::FieldReader<u8, PG18_SELECT_A>;
#[doc = "PG18 Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum PG18_SELECT_A {
    #[doc = "0: `0`"]
    INPUT = 0,
    #[doc = "2: `10`"]
    UART2_RX = 2,
    #[doc = "4: `100`"]
    PWM6 = 4,
    #[doc = "6: `110`"]
    OWA_OUT = 6,
    #[doc = "14: `1110`"]
    PG_EINT18 = 14,
    #[doc = "1: `1`"]
    OUTPUT = 1,
    #[doc = "3: `11`"]
    TWI3_SDA = 3,
    #[doc = "5: `101`"]
    CLK_FANOUT1 = 5,
    #[doc = "7: `111`"]
    UART0_RX = 7,
    #[doc = "15: `1111`"]
    IO_DISABLE = 15,
}
impl From<PG18_SELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: PG18_SELECT_A) -> Self {
        variant as _
    }
}
impl PG18_SELECT_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> Option<PG18_SELECT_A> {
        match self.bits {
            0 => Some(PG18_SELECT_A::INPUT),
            2 => Some(PG18_SELECT_A::UART2_RX),
            4 => Some(PG18_SELECT_A::PWM6),
            6 => Some(PG18_SELECT_A::OWA_OUT),
            14 => Some(PG18_SELECT_A::PG_EINT18),
            1 => Some(PG18_SELECT_A::OUTPUT),
            3 => Some(PG18_SELECT_A::TWI3_SDA),
            5 => Some(PG18_SELECT_A::CLK_FANOUT1),
            7 => Some(PG18_SELECT_A::UART0_RX),
            15 => Some(PG18_SELECT_A::IO_DISABLE),
            _ => None,
        }
    }
    #[doc = "Checks if the value of the field is `INPUT`"]
    #[inline(always)]
    pub fn is_input(&self) -> bool {
        *self == PG18_SELECT_A::INPUT
    }
    #[doc = "Checks if the value of the field is `UART2_RX`"]
    #[inline(always)]
    pub fn is_uart2_rx(&self) -> bool {
        *self == PG18_SELECT_A::UART2_RX
    }
    #[doc = "Checks if the value of the field is `PWM6`"]
    #[inline(always)]
    pub fn is_pwm6(&self) -> bool {
        *self == PG18_SELECT_A::PWM6
    }
    #[doc = "Checks if the value of the field is `OWA_OUT`"]
    #[inline(always)]
    pub fn is_owa_out(&self) -> bool {
        *self == PG18_SELECT_A::OWA_OUT
    }
    #[doc = "Checks if the value of the field is `PG_EINT18`"]
    #[inline(always)]
    pub fn is_pg_eint18(&self) -> bool {
        *self == PG18_SELECT_A::PG_EINT18
    }
    #[doc = "Checks if the value of the field is `OUTPUT`"]
    #[inline(always)]
    pub fn is_output(&self) -> bool {
        *self == PG18_SELECT_A::OUTPUT
    }
    #[doc = "Checks if the value of the field is `TWI3_SDA`"]
    #[inline(always)]
    pub fn is_twi3_sda(&self) -> bool {
        *self == PG18_SELECT_A::TWI3_SDA
    }
    #[doc = "Checks if the value of the field is `CLK_FANOUT1`"]
    #[inline(always)]
    pub fn is_clk_fanout1(&self) -> bool {
        *self == PG18_SELECT_A::CLK_FANOUT1
    }
    #[doc = "Checks if the value of the field is `UART0_RX`"]
    #[inline(always)]
    pub fn is_uart0_rx(&self) -> bool {
        *self == PG18_SELECT_A::UART0_RX
    }
    #[doc = "Checks if the value of the field is `IO_DISABLE`"]
    #[inline(always)]
    pub fn is_io_disable(&self) -> bool {
        *self == PG18_SELECT_A::IO_DISABLE
    }
}
#[doc = "Field `pg18_select` writer - PG18 Select"]
pub type PG18_SELECT_W<'a, const O: u8> =
    crate::FieldWriter<'a, u32, PG_CFG2_SPEC, u8, PG18_SELECT_A, 4, O>;
impl<'a, const O: u8> PG18_SELECT_W<'a, O> {
    #[doc = "`0`"]
    #[inline(always)]
    pub fn input(self) -> &'a mut W {
        self.variant(PG18_SELECT_A::INPUT)
    }
    #[doc = "`10`"]
    #[inline(always)]
    pub fn uart2_rx(self) -> &'a mut W {
        self.variant(PG18_SELECT_A::UART2_RX)
    }
    #[doc = "`100`"]
    #[inline(always)]
    pub fn pwm6(self) -> &'a mut W {
        self.variant(PG18_SELECT_A::PWM6)
    }
    #[doc = "`110`"]
    #[inline(always)]
    pub fn owa_out(self) -> &'a mut W {
        self.variant(PG18_SELECT_A::OWA_OUT)
    }
    #[doc = "`1110`"]
    #[inline(always)]
    pub fn pg_eint18(self) -> &'a mut W {
        self.variant(PG18_SELECT_A::PG_EINT18)
    }
    #[doc = "`1`"]
    #[inline(always)]
    pub fn output(self) -> &'a mut W {
        self.variant(PG18_SELECT_A::OUTPUT)
    }
    #[doc = "`11`"]
    #[inline(always)]
    pub fn twi3_sda(self) -> &'a mut W {
        self.variant(PG18_SELECT_A::TWI3_SDA)
    }
    #[doc = "`101`"]
    #[inline(always)]
    pub fn clk_fanout1(self) -> &'a mut W {
        self.variant(PG18_SELECT_A::CLK_FANOUT1)
    }
    #[doc = "`111`"]
    #[inline(always)]
    pub fn uart0_rx(self) -> &'a mut W {
        self.variant(PG18_SELECT_A::UART0_RX)
    }
    #[doc = "`1111`"]
    #[inline(always)]
    pub fn io_disable(self) -> &'a mut W {
        self.variant(PG18_SELECT_A::IO_DISABLE)
    }
}
impl R {
    #[doc = "Bits 0:3 - PG16 Select"]
    #[inline(always)]
    pub fn pg16_select(&self) -> PG16_SELECT_R {
        PG16_SELECT_R::new((self.bits & 0x0f) as u8)
    }
    #[doc = "Bits 4:7 - PG17 Select"]
    #[inline(always)]
    pub fn pg17_select(&self) -> PG17_SELECT_R {
        PG17_SELECT_R::new(((self.bits >> 4) & 0x0f) as u8)
    }
    #[doc = "Bits 8:11 - PG18 Select"]
    #[inline(always)]
    pub fn pg18_select(&self) -> PG18_SELECT_R {
        PG18_SELECT_R::new(((self.bits >> 8) & 0x0f) as u8)
    }
}
impl W {
    #[doc = "Bits 0:3 - PG16 Select"]
    #[inline(always)]
    #[must_use]
    pub fn pg16_select(&mut self) -> PG16_SELECT_W<0> {
        PG16_SELECT_W::new(self)
    }
    #[doc = "Bits 4:7 - PG17 Select"]
    #[inline(always)]
    #[must_use]
    pub fn pg17_select(&mut self) -> PG17_SELECT_W<4> {
        PG17_SELECT_W::new(self)
    }
    #[doc = "Bits 8:11 - PG18 Select"]
    #[inline(always)]
    #[must_use]
    pub fn pg18_select(&mut self) -> PG18_SELECT_W<8> {
        PG18_SELECT_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 = "PG Configure Register 2\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 [pg_cfg2](index.html) module"]
pub struct PG_CFG2_SPEC;
impl crate::RegisterSpec for PG_CFG2_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [pg_cfg2::R](R) reader structure"]
impl crate::Readable for PG_CFG2_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [pg_cfg2::W](W) writer structure"]
impl crate::Writable for PG_CFG2_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 pg_cfg2 to value 0"]
impl crate::Resettable for PG_CFG2_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}