efm32pg1b-pac 0.4.3

Peripheral access API for Silicon Labs EFM32PG1B microcontrollers
Documentation
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
///Register `CTRL` reader
pub type R = crate::R<CTRLrs>;
///Register `CTRL` writer
pub type W = crate::W<CTRLrs>;
///Field `SYNC` reader - USART Synchronous Mode
pub type SyncR = crate::BitReader;
///Field `SYNC` writer - USART Synchronous Mode
pub type SyncW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `LOOPBK` reader - Loopback Enable
pub type LoopbkR = crate::BitReader;
///Field `LOOPBK` writer - Loopback Enable
pub type LoopbkW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `CCEN` reader - Collision Check Enable
pub type CcenR = crate::BitReader;
///Field `CCEN` writer - Collision Check Enable
pub type CcenW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `MPM` reader - Multi-Processor Mode
pub type MpmR = crate::BitReader;
///Field `MPM` writer - Multi-Processor Mode
pub type MpmW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `MPAB` reader - Multi-Processor Address-Bit
pub type MpabR = crate::BitReader;
///Field `MPAB` writer - Multi-Processor Address-Bit
pub type MpabW<'a, REG> = crate::BitWriter<'a, REG>;
///Oversampling
///
///Value on reset: 0
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum OVS {
    ///0: Regular UART mode with 16X oversampling in asynchronous mode
    X16 = 0,
    ///1: Double speed with 8X oversampling in asynchronous mode
    X8 = 1,
    ///2: 6X oversampling in asynchronous mode
    X6 = 2,
    ///3: Quadruple speed with 4X oversampling in asynchronous mode
    X4 = 3,
}
impl From<OVS> for u8 {
    #[inline(always)]
    fn from(variant: OVS) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for OVS {
    type Ux = u8;
}
impl crate::IsEnum for OVS {}
///Field `OVS` reader - Oversampling
pub type OvsR = crate::FieldReader<OVS>;
impl OvsR {
    ///Get enumerated values variant
    #[inline(always)]
    pub const fn variant(&self) -> OVS {
        match self.bits {
            0 => OVS::X16,
            1 => OVS::X8,
            2 => OVS::X6,
            3 => OVS::X4,
            _ => unreachable!(),
        }
    }
    ///Regular UART mode with 16X oversampling in asynchronous mode
    #[inline(always)]
    pub fn is_x16(&self) -> bool {
        *self == OVS::X16
    }
    ///Double speed with 8X oversampling in asynchronous mode
    #[inline(always)]
    pub fn is_x8(&self) -> bool {
        *self == OVS::X8
    }
    ///6X oversampling in asynchronous mode
    #[inline(always)]
    pub fn is_x6(&self) -> bool {
        *self == OVS::X6
    }
    ///Quadruple speed with 4X oversampling in asynchronous mode
    #[inline(always)]
    pub fn is_x4(&self) -> bool {
        *self == OVS::X4
    }
}
///Field `OVS` writer - Oversampling
pub type OvsW<'a, REG> = crate::FieldWriter<'a, REG, 2, OVS, crate::Safe>;
impl<'a, REG> OvsW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    ///Regular UART mode with 16X oversampling in asynchronous mode
    #[inline(always)]
    pub fn x16(self) -> &'a mut crate::W<REG> {
        self.variant(OVS::X16)
    }
    ///Double speed with 8X oversampling in asynchronous mode
    #[inline(always)]
    pub fn x8(self) -> &'a mut crate::W<REG> {
        self.variant(OVS::X8)
    }
    ///6X oversampling in asynchronous mode
    #[inline(always)]
    pub fn x6(self) -> &'a mut crate::W<REG> {
        self.variant(OVS::X6)
    }
    ///Quadruple speed with 4X oversampling in asynchronous mode
    #[inline(always)]
    pub fn x4(self) -> &'a mut crate::W<REG> {
        self.variant(OVS::X4)
    }
}
///Field `CLKPOL` reader - Clock Polarity
pub type ClkpolR = crate::BitReader;
///Field `CLKPOL` writer - Clock Polarity
pub type ClkpolW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `CLKPHA` reader - Clock Edge for Setup/Sample
pub type ClkphaR = crate::BitReader;
///Field `CLKPHA` writer - Clock Edge for Setup/Sample
pub type ClkphaW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `MSBF` reader - Most Significant Bit First
pub type MsbfR = crate::BitReader;
///Field `MSBF` writer - Most Significant Bit First
pub type MsbfW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `CSMA` reader - Action on Slave-Select in Master Mode
pub type CsmaR = crate::BitReader;
///Field `CSMA` writer - Action on Slave-Select in Master Mode
pub type CsmaW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TXBIL` reader - TX Buffer Interrupt Level
pub type TxbilR = crate::BitReader;
///Field `TXBIL` writer - TX Buffer Interrupt Level
pub type TxbilW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `RXINV` reader - Receiver Input Invert
pub type RxinvR = crate::BitReader;
///Field `RXINV` writer - Receiver Input Invert
pub type RxinvW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TXINV` reader - Transmitter Output Invert
pub type TxinvR = crate::BitReader;
///Field `TXINV` writer - Transmitter Output Invert
pub type TxinvW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `CSINV` reader - Chip Select Invert
pub type CsinvR = crate::BitReader;
///Field `CSINV` writer - Chip Select Invert
pub type CsinvW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `AUTOCS` reader - Automatic Chip Select
pub type AutocsR = crate::BitReader;
///Field `AUTOCS` writer - Automatic Chip Select
pub type AutocsW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `AUTOTRI` reader - Automatic TX Tristate
pub type AutotriR = crate::BitReader;
///Field `AUTOTRI` writer - Automatic TX Tristate
pub type AutotriW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SCMODE` reader - SmartCard Mode
pub type ScmodeR = crate::BitReader;
///Field `SCMODE` writer - SmartCard Mode
pub type ScmodeW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SCRETRANS` reader - SmartCard Retransmit
pub type ScretransR = crate::BitReader;
///Field `SCRETRANS` writer - SmartCard Retransmit
pub type ScretransW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SKIPPERRF` reader - Skip Parity Error Frames
pub type SkipperrfR = crate::BitReader;
///Field `SKIPPERRF` writer - Skip Parity Error Frames
pub type SkipperrfW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `BIT8DV` reader - Bit 8 Default Value
pub type Bit8dvR = crate::BitReader;
///Field `BIT8DV` writer - Bit 8 Default Value
pub type Bit8dvW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ERRSDMA` reader - Halt DMA on Error
pub type ErrsdmaR = crate::BitReader;
///Field `ERRSDMA` writer - Halt DMA on Error
pub type ErrsdmaW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ERRSRX` reader - Disable RX on Error
pub type ErrsrxR = crate::BitReader;
///Field `ERRSRX` writer - Disable RX on Error
pub type ErrsrxW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ERRSTX` reader - Disable TX on Error
pub type ErrstxR = crate::BitReader;
///Field `ERRSTX` writer - Disable TX on Error
pub type ErrstxW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SSSEARLY` reader - Synchronous Slave Setup Early
pub type SssearlyR = crate::BitReader;
///Field `SSSEARLY` writer - Synchronous Slave Setup Early
pub type SssearlyW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `BYTESWAP` reader - Byteswap in Double Accesses
pub type ByteswapR = crate::BitReader;
///Field `BYTESWAP` writer - Byteswap in Double Accesses
pub type ByteswapW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `AUTOTX` reader - Always Transmit When RX Not Full
pub type AutotxR = crate::BitReader;
///Field `AUTOTX` writer - Always Transmit When RX Not Full
pub type AutotxW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `MVDIS` reader - Majority Vote Disable
pub type MvdisR = crate::BitReader;
///Field `MVDIS` writer - Majority Vote Disable
pub type MvdisW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SMSDELAY` reader - Synchronous Master Sample Delay
pub type SmsdelayR = crate::BitReader;
///Field `SMSDELAY` writer - Synchronous Master Sample Delay
pub type SmsdelayW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    ///Bit 0 - USART Synchronous Mode
    #[inline(always)]
    pub fn sync(&self) -> SyncR {
        SyncR::new((self.bits & 1) != 0)
    }
    ///Bit 1 - Loopback Enable
    #[inline(always)]
    pub fn loopbk(&self) -> LoopbkR {
        LoopbkR::new(((self.bits >> 1) & 1) != 0)
    }
    ///Bit 2 - Collision Check Enable
    #[inline(always)]
    pub fn ccen(&self) -> CcenR {
        CcenR::new(((self.bits >> 2) & 1) != 0)
    }
    ///Bit 3 - Multi-Processor Mode
    #[inline(always)]
    pub fn mpm(&self) -> MpmR {
        MpmR::new(((self.bits >> 3) & 1) != 0)
    }
    ///Bit 4 - Multi-Processor Address-Bit
    #[inline(always)]
    pub fn mpab(&self) -> MpabR {
        MpabR::new(((self.bits >> 4) & 1) != 0)
    }
    ///Bits 5:6 - Oversampling
    #[inline(always)]
    pub fn ovs(&self) -> OvsR {
        OvsR::new(((self.bits >> 5) & 3) as u8)
    }
    ///Bit 8 - Clock Polarity
    #[inline(always)]
    pub fn clkpol(&self) -> ClkpolR {
        ClkpolR::new(((self.bits >> 8) & 1) != 0)
    }
    ///Bit 9 - Clock Edge for Setup/Sample
    #[inline(always)]
    pub fn clkpha(&self) -> ClkphaR {
        ClkphaR::new(((self.bits >> 9) & 1) != 0)
    }
    ///Bit 10 - Most Significant Bit First
    #[inline(always)]
    pub fn msbf(&self) -> MsbfR {
        MsbfR::new(((self.bits >> 10) & 1) != 0)
    }
    ///Bit 11 - Action on Slave-Select in Master Mode
    #[inline(always)]
    pub fn csma(&self) -> CsmaR {
        CsmaR::new(((self.bits >> 11) & 1) != 0)
    }
    ///Bit 12 - TX Buffer Interrupt Level
    #[inline(always)]
    pub fn txbil(&self) -> TxbilR {
        TxbilR::new(((self.bits >> 12) & 1) != 0)
    }
    ///Bit 13 - Receiver Input Invert
    #[inline(always)]
    pub fn rxinv(&self) -> RxinvR {
        RxinvR::new(((self.bits >> 13) & 1) != 0)
    }
    ///Bit 14 - Transmitter Output Invert
    #[inline(always)]
    pub fn txinv(&self) -> TxinvR {
        TxinvR::new(((self.bits >> 14) & 1) != 0)
    }
    ///Bit 15 - Chip Select Invert
    #[inline(always)]
    pub fn csinv(&self) -> CsinvR {
        CsinvR::new(((self.bits >> 15) & 1) != 0)
    }
    ///Bit 16 - Automatic Chip Select
    #[inline(always)]
    pub fn autocs(&self) -> AutocsR {
        AutocsR::new(((self.bits >> 16) & 1) != 0)
    }
    ///Bit 17 - Automatic TX Tristate
    #[inline(always)]
    pub fn autotri(&self) -> AutotriR {
        AutotriR::new(((self.bits >> 17) & 1) != 0)
    }
    ///Bit 18 - SmartCard Mode
    #[inline(always)]
    pub fn scmode(&self) -> ScmodeR {
        ScmodeR::new(((self.bits >> 18) & 1) != 0)
    }
    ///Bit 19 - SmartCard Retransmit
    #[inline(always)]
    pub fn scretrans(&self) -> ScretransR {
        ScretransR::new(((self.bits >> 19) & 1) != 0)
    }
    ///Bit 20 - Skip Parity Error Frames
    #[inline(always)]
    pub fn skipperrf(&self) -> SkipperrfR {
        SkipperrfR::new(((self.bits >> 20) & 1) != 0)
    }
    ///Bit 21 - Bit 8 Default Value
    #[inline(always)]
    pub fn bit8dv(&self) -> Bit8dvR {
        Bit8dvR::new(((self.bits >> 21) & 1) != 0)
    }
    ///Bit 22 - Halt DMA on Error
    #[inline(always)]
    pub fn errsdma(&self) -> ErrsdmaR {
        ErrsdmaR::new(((self.bits >> 22) & 1) != 0)
    }
    ///Bit 23 - Disable RX on Error
    #[inline(always)]
    pub fn errsrx(&self) -> ErrsrxR {
        ErrsrxR::new(((self.bits >> 23) & 1) != 0)
    }
    ///Bit 24 - Disable TX on Error
    #[inline(always)]
    pub fn errstx(&self) -> ErrstxR {
        ErrstxR::new(((self.bits >> 24) & 1) != 0)
    }
    ///Bit 25 - Synchronous Slave Setup Early
    #[inline(always)]
    pub fn sssearly(&self) -> SssearlyR {
        SssearlyR::new(((self.bits >> 25) & 1) != 0)
    }
    ///Bit 28 - Byteswap in Double Accesses
    #[inline(always)]
    pub fn byteswap(&self) -> ByteswapR {
        ByteswapR::new(((self.bits >> 28) & 1) != 0)
    }
    ///Bit 29 - Always Transmit When RX Not Full
    #[inline(always)]
    pub fn autotx(&self) -> AutotxR {
        AutotxR::new(((self.bits >> 29) & 1) != 0)
    }
    ///Bit 30 - Majority Vote Disable
    #[inline(always)]
    pub fn mvdis(&self) -> MvdisR {
        MvdisR::new(((self.bits >> 30) & 1) != 0)
    }
    ///Bit 31 - Synchronous Master Sample Delay
    #[inline(always)]
    pub fn smsdelay(&self) -> SmsdelayR {
        SmsdelayR::new(((self.bits >> 31) & 1) != 0)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("CTRL")
            .field("sync", &self.sync())
            .field("loopbk", &self.loopbk())
            .field("ccen", &self.ccen())
            .field("mpm", &self.mpm())
            .field("mpab", &self.mpab())
            .field("ovs", &self.ovs())
            .field("clkpol", &self.clkpol())
            .field("clkpha", &self.clkpha())
            .field("msbf", &self.msbf())
            .field("csma", &self.csma())
            .field("txbil", &self.txbil())
            .field("rxinv", &self.rxinv())
            .field("txinv", &self.txinv())
            .field("csinv", &self.csinv())
            .field("autocs", &self.autocs())
            .field("autotri", &self.autotri())
            .field("scmode", &self.scmode())
            .field("scretrans", &self.scretrans())
            .field("skipperrf", &self.skipperrf())
            .field("bit8dv", &self.bit8dv())
            .field("errsdma", &self.errsdma())
            .field("errsrx", &self.errsrx())
            .field("errstx", &self.errstx())
            .field("sssearly", &self.sssearly())
            .field("byteswap", &self.byteswap())
            .field("autotx", &self.autotx())
            .field("mvdis", &self.mvdis())
            .field("smsdelay", &self.smsdelay())
            .finish()
    }
}
impl W {
    ///Bit 0 - USART Synchronous Mode
    #[inline(always)]
    pub fn sync(&mut self) -> SyncW<'_, CTRLrs> {
        SyncW::new(self, 0)
    }
    ///Bit 1 - Loopback Enable
    #[inline(always)]
    pub fn loopbk(&mut self) -> LoopbkW<'_, CTRLrs> {
        LoopbkW::new(self, 1)
    }
    ///Bit 2 - Collision Check Enable
    #[inline(always)]
    pub fn ccen(&mut self) -> CcenW<'_, CTRLrs> {
        CcenW::new(self, 2)
    }
    ///Bit 3 - Multi-Processor Mode
    #[inline(always)]
    pub fn mpm(&mut self) -> MpmW<'_, CTRLrs> {
        MpmW::new(self, 3)
    }
    ///Bit 4 - Multi-Processor Address-Bit
    #[inline(always)]
    pub fn mpab(&mut self) -> MpabW<'_, CTRLrs> {
        MpabW::new(self, 4)
    }
    ///Bits 5:6 - Oversampling
    #[inline(always)]
    pub fn ovs(&mut self) -> OvsW<'_, CTRLrs> {
        OvsW::new(self, 5)
    }
    ///Bit 8 - Clock Polarity
    #[inline(always)]
    pub fn clkpol(&mut self) -> ClkpolW<'_, CTRLrs> {
        ClkpolW::new(self, 8)
    }
    ///Bit 9 - Clock Edge for Setup/Sample
    #[inline(always)]
    pub fn clkpha(&mut self) -> ClkphaW<'_, CTRLrs> {
        ClkphaW::new(self, 9)
    }
    ///Bit 10 - Most Significant Bit First
    #[inline(always)]
    pub fn msbf(&mut self) -> MsbfW<'_, CTRLrs> {
        MsbfW::new(self, 10)
    }
    ///Bit 11 - Action on Slave-Select in Master Mode
    #[inline(always)]
    pub fn csma(&mut self) -> CsmaW<'_, CTRLrs> {
        CsmaW::new(self, 11)
    }
    ///Bit 12 - TX Buffer Interrupt Level
    #[inline(always)]
    pub fn txbil(&mut self) -> TxbilW<'_, CTRLrs> {
        TxbilW::new(self, 12)
    }
    ///Bit 13 - Receiver Input Invert
    #[inline(always)]
    pub fn rxinv(&mut self) -> RxinvW<'_, CTRLrs> {
        RxinvW::new(self, 13)
    }
    ///Bit 14 - Transmitter Output Invert
    #[inline(always)]
    pub fn txinv(&mut self) -> TxinvW<'_, CTRLrs> {
        TxinvW::new(self, 14)
    }
    ///Bit 15 - Chip Select Invert
    #[inline(always)]
    pub fn csinv(&mut self) -> CsinvW<'_, CTRLrs> {
        CsinvW::new(self, 15)
    }
    ///Bit 16 - Automatic Chip Select
    #[inline(always)]
    pub fn autocs(&mut self) -> AutocsW<'_, CTRLrs> {
        AutocsW::new(self, 16)
    }
    ///Bit 17 - Automatic TX Tristate
    #[inline(always)]
    pub fn autotri(&mut self) -> AutotriW<'_, CTRLrs> {
        AutotriW::new(self, 17)
    }
    ///Bit 18 - SmartCard Mode
    #[inline(always)]
    pub fn scmode(&mut self) -> ScmodeW<'_, CTRLrs> {
        ScmodeW::new(self, 18)
    }
    ///Bit 19 - SmartCard Retransmit
    #[inline(always)]
    pub fn scretrans(&mut self) -> ScretransW<'_, CTRLrs> {
        ScretransW::new(self, 19)
    }
    ///Bit 20 - Skip Parity Error Frames
    #[inline(always)]
    pub fn skipperrf(&mut self) -> SkipperrfW<'_, CTRLrs> {
        SkipperrfW::new(self, 20)
    }
    ///Bit 21 - Bit 8 Default Value
    #[inline(always)]
    pub fn bit8dv(&mut self) -> Bit8dvW<'_, CTRLrs> {
        Bit8dvW::new(self, 21)
    }
    ///Bit 22 - Halt DMA on Error
    #[inline(always)]
    pub fn errsdma(&mut self) -> ErrsdmaW<'_, CTRLrs> {
        ErrsdmaW::new(self, 22)
    }
    ///Bit 23 - Disable RX on Error
    #[inline(always)]
    pub fn errsrx(&mut self) -> ErrsrxW<'_, CTRLrs> {
        ErrsrxW::new(self, 23)
    }
    ///Bit 24 - Disable TX on Error
    #[inline(always)]
    pub fn errstx(&mut self) -> ErrstxW<'_, CTRLrs> {
        ErrstxW::new(self, 24)
    }
    ///Bit 25 - Synchronous Slave Setup Early
    #[inline(always)]
    pub fn sssearly(&mut self) -> SssearlyW<'_, CTRLrs> {
        SssearlyW::new(self, 25)
    }
    ///Bit 28 - Byteswap in Double Accesses
    #[inline(always)]
    pub fn byteswap(&mut self) -> ByteswapW<'_, CTRLrs> {
        ByteswapW::new(self, 28)
    }
    ///Bit 29 - Always Transmit When RX Not Full
    #[inline(always)]
    pub fn autotx(&mut self) -> AutotxW<'_, CTRLrs> {
        AutotxW::new(self, 29)
    }
    ///Bit 30 - Majority Vote Disable
    #[inline(always)]
    pub fn mvdis(&mut self) -> MvdisW<'_, CTRLrs> {
        MvdisW::new(self, 30)
    }
    ///Bit 31 - Synchronous Master Sample Delay
    #[inline(always)]
    pub fn smsdelay(&mut self) -> SmsdelayW<'_, CTRLrs> {
        SmsdelayW::new(self, 31)
    }
}
///Control Register
///
///You can [`read`](crate::Reg::read) this register and get [`ctrl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
pub struct CTRLrs;
impl crate::RegisterSpec for CTRLrs {
    type Ux = u32;
}
///`read()` method returns [`ctrl::R`](R) reader structure
impl crate::Readable for CTRLrs {}
///`write(|w| ..)` method takes [`ctrl::W`](W) writer structure
impl crate::Writable for CTRLrs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets CTRL to value 0
impl crate::Resettable for CTRLrs {}