efm32pg23-pac 0.1.1

Peripheral access API for EFM32PG23 MCU (generated using svd2rust)
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
#[doc = "Register `XTALCFG` reader"]
pub struct R(crate::R<XTALCFG_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<XTALCFG_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<XTALCFG_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<XTALCFG_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `XTALCFG` writer"]
pub struct W(crate::W<XTALCFG_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<XTALCFG_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<XTALCFG_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<XTALCFG_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `COREBIASSTARTUPI` reader - Intermediate Startup Core Bias Current"]
pub type COREBIASSTARTUPI_R = crate::FieldReader<u8, u8>;
#[doc = "Field `COREBIASSTARTUPI` writer - Intermediate Startup Core Bias Current"]
pub type COREBIASSTARTUPI_W<'a> = crate::FieldWriter<'a, u32, XTALCFG_SPEC, u8, u8, 6, 0>;
#[doc = "Field `COREBIASSTARTUP` reader - Startup Core Bias Current"]
pub type COREBIASSTARTUP_R = crate::FieldReader<u8, u8>;
#[doc = "Field `COREBIASSTARTUP` writer - Startup Core Bias Current"]
pub type COREBIASSTARTUP_W<'a> = crate::FieldWriter<'a, u32, XTALCFG_SPEC, u8, u8, 6, 6>;
#[doc = "Field `CTUNEXISTARTUP` reader - Startup Tuning Capacitance on XI"]
pub type CTUNEXISTARTUP_R = crate::FieldReader<u8, u8>;
#[doc = "Field `CTUNEXISTARTUP` writer - Startup Tuning Capacitance on XI"]
pub type CTUNEXISTARTUP_W<'a> = crate::FieldWriter<'a, u32, XTALCFG_SPEC, u8, u8, 4, 12>;
#[doc = "Field `CTUNEXOSTARTUP` reader - Startup Tuning Capacitance on XO"]
pub type CTUNEXOSTARTUP_R = crate::FieldReader<u8, u8>;
#[doc = "Field `CTUNEXOSTARTUP` writer - Startup Tuning Capacitance on XO"]
pub type CTUNEXOSTARTUP_W<'a> = crate::FieldWriter<'a, u32, XTALCFG_SPEC, u8, u8, 4, 16>;
#[doc = "Steady State Timeout\n\nValue on reset: 11"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum TIMEOUTSTEADY_A {
    #[doc = "0: The steady state timeout is set to 16 us minimum. The maximum can be +40%."]
    T4US = 0,
    #[doc = "1: The steady state timeout is set to 41 us minimum. The maximum can be +40%."]
    T16US = 1,
    #[doc = "2: The steady state timeout is set to 83 us minimum. The maximum can be +40%."]
    T41US = 2,
    #[doc = "3: The steady state timeout is set to 125 us minimum. The maximum can be +40%."]
    T83US = 3,
    #[doc = "4: The steady state timeout is set to 166 us minimum. The maximum can be +40%."]
    T125US = 4,
    #[doc = "5: The steady state timeout is set to 208 us minimum. The maximum can be +40%."]
    T166US = 5,
    #[doc = "6: The steady state timeout is set to 250 us minimum. The maximum can be +40%."]
    T208US = 6,
    #[doc = "7: The steady state timeout is set to 333 us minimum. The maximum can be +40%."]
    T250US = 7,
    #[doc = "8: The steady state timeout is set to 416 us minimum. The maximum can be +40%."]
    T333US = 8,
    #[doc = "9: The steady state timeout is set to 500 us minimum. The maximum can be +40%."]
    T416US = 9,
    #[doc = "10: The steady state timeout is set to 666 us minimum. The maximum can be +40%."]
    T500US = 10,
    #[doc = "11: The steady state timeout is set to 833 us minimum. The maximum can be +40%."]
    T666US = 11,
    #[doc = "12: The steady state timeout is set to 1666 us minimum. The maximum can be +40%."]
    T833US = 12,
    #[doc = "13: The steady state timeout is set to 2500 us minimum. The maximum can be +40%."]
    T1666US = 13,
    #[doc = "14: The steady state timeout is set to 4166 us minimum. The maximum can be +40%."]
    T2500US = 14,
    #[doc = "15: The steady state timeout is set to 7500 us minimum. The maximum can be +40%."]
    T4166US = 15,
}
impl From<TIMEOUTSTEADY_A> for u8 {
    #[inline(always)]
    fn from(variant: TIMEOUTSTEADY_A) -> Self {
        variant as _
    }
}
#[doc = "Field `TIMEOUTSTEADY` reader - Steady State Timeout"]
pub type TIMEOUTSTEADY_R = crate::FieldReader<u8, TIMEOUTSTEADY_A>;
impl TIMEOUTSTEADY_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> TIMEOUTSTEADY_A {
        match self.bits {
            0 => TIMEOUTSTEADY_A::T4US,
            1 => TIMEOUTSTEADY_A::T16US,
            2 => TIMEOUTSTEADY_A::T41US,
            3 => TIMEOUTSTEADY_A::T83US,
            4 => TIMEOUTSTEADY_A::T125US,
            5 => TIMEOUTSTEADY_A::T166US,
            6 => TIMEOUTSTEADY_A::T208US,
            7 => TIMEOUTSTEADY_A::T250US,
            8 => TIMEOUTSTEADY_A::T333US,
            9 => TIMEOUTSTEADY_A::T416US,
            10 => TIMEOUTSTEADY_A::T500US,
            11 => TIMEOUTSTEADY_A::T666US,
            12 => TIMEOUTSTEADY_A::T833US,
            13 => TIMEOUTSTEADY_A::T1666US,
            14 => TIMEOUTSTEADY_A::T2500US,
            15 => TIMEOUTSTEADY_A::T4166US,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `T4US`"]
    #[inline(always)]
    pub fn is_t4us(&self) -> bool {
        *self == TIMEOUTSTEADY_A::T4US
    }
    #[doc = "Checks if the value of the field is `T16US`"]
    #[inline(always)]
    pub fn is_t16us(&self) -> bool {
        *self == TIMEOUTSTEADY_A::T16US
    }
    #[doc = "Checks if the value of the field is `T41US`"]
    #[inline(always)]
    pub fn is_t41us(&self) -> bool {
        *self == TIMEOUTSTEADY_A::T41US
    }
    #[doc = "Checks if the value of the field is `T83US`"]
    #[inline(always)]
    pub fn is_t83us(&self) -> bool {
        *self == TIMEOUTSTEADY_A::T83US
    }
    #[doc = "Checks if the value of the field is `T125US`"]
    #[inline(always)]
    pub fn is_t125us(&self) -> bool {
        *self == TIMEOUTSTEADY_A::T125US
    }
    #[doc = "Checks if the value of the field is `T166US`"]
    #[inline(always)]
    pub fn is_t166us(&self) -> bool {
        *self == TIMEOUTSTEADY_A::T166US
    }
    #[doc = "Checks if the value of the field is `T208US`"]
    #[inline(always)]
    pub fn is_t208us(&self) -> bool {
        *self == TIMEOUTSTEADY_A::T208US
    }
    #[doc = "Checks if the value of the field is `T250US`"]
    #[inline(always)]
    pub fn is_t250us(&self) -> bool {
        *self == TIMEOUTSTEADY_A::T250US
    }
    #[doc = "Checks if the value of the field is `T333US`"]
    #[inline(always)]
    pub fn is_t333us(&self) -> bool {
        *self == TIMEOUTSTEADY_A::T333US
    }
    #[doc = "Checks if the value of the field is `T416US`"]
    #[inline(always)]
    pub fn is_t416us(&self) -> bool {
        *self == TIMEOUTSTEADY_A::T416US
    }
    #[doc = "Checks if the value of the field is `T500US`"]
    #[inline(always)]
    pub fn is_t500us(&self) -> bool {
        *self == TIMEOUTSTEADY_A::T500US
    }
    #[doc = "Checks if the value of the field is `T666US`"]
    #[inline(always)]
    pub fn is_t666us(&self) -> bool {
        *self == TIMEOUTSTEADY_A::T666US
    }
    #[doc = "Checks if the value of the field is `T833US`"]
    #[inline(always)]
    pub fn is_t833us(&self) -> bool {
        *self == TIMEOUTSTEADY_A::T833US
    }
    #[doc = "Checks if the value of the field is `T1666US`"]
    #[inline(always)]
    pub fn is_t1666us(&self) -> bool {
        *self == TIMEOUTSTEADY_A::T1666US
    }
    #[doc = "Checks if the value of the field is `T2500US`"]
    #[inline(always)]
    pub fn is_t2500us(&self) -> bool {
        *self == TIMEOUTSTEADY_A::T2500US
    }
    #[doc = "Checks if the value of the field is `T4166US`"]
    #[inline(always)]
    pub fn is_t4166us(&self) -> bool {
        *self == TIMEOUTSTEADY_A::T4166US
    }
}
#[doc = "Field `TIMEOUTSTEADY` writer - Steady State Timeout"]
pub type TIMEOUTSTEADY_W<'a> =
    crate::FieldWriterSafe<'a, u32, XTALCFG_SPEC, u8, TIMEOUTSTEADY_A, 4, 20>;
impl<'a> TIMEOUTSTEADY_W<'a> {
    #[doc = "The steady state timeout is set to 16 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t4us(self) -> &'a mut W {
        self.variant(TIMEOUTSTEADY_A::T4US)
    }
    #[doc = "The steady state timeout is set to 41 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t16us(self) -> &'a mut W {
        self.variant(TIMEOUTSTEADY_A::T16US)
    }
    #[doc = "The steady state timeout is set to 83 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t41us(self) -> &'a mut W {
        self.variant(TIMEOUTSTEADY_A::T41US)
    }
    #[doc = "The steady state timeout is set to 125 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t83us(self) -> &'a mut W {
        self.variant(TIMEOUTSTEADY_A::T83US)
    }
    #[doc = "The steady state timeout is set to 166 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t125us(self) -> &'a mut W {
        self.variant(TIMEOUTSTEADY_A::T125US)
    }
    #[doc = "The steady state timeout is set to 208 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t166us(self) -> &'a mut W {
        self.variant(TIMEOUTSTEADY_A::T166US)
    }
    #[doc = "The steady state timeout is set to 250 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t208us(self) -> &'a mut W {
        self.variant(TIMEOUTSTEADY_A::T208US)
    }
    #[doc = "The steady state timeout is set to 333 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t250us(self) -> &'a mut W {
        self.variant(TIMEOUTSTEADY_A::T250US)
    }
    #[doc = "The steady state timeout is set to 416 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t333us(self) -> &'a mut W {
        self.variant(TIMEOUTSTEADY_A::T333US)
    }
    #[doc = "The steady state timeout is set to 500 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t416us(self) -> &'a mut W {
        self.variant(TIMEOUTSTEADY_A::T416US)
    }
    #[doc = "The steady state timeout is set to 666 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t500us(self) -> &'a mut W {
        self.variant(TIMEOUTSTEADY_A::T500US)
    }
    #[doc = "The steady state timeout is set to 833 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t666us(self) -> &'a mut W {
        self.variant(TIMEOUTSTEADY_A::T666US)
    }
    #[doc = "The steady state timeout is set to 1666 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t833us(self) -> &'a mut W {
        self.variant(TIMEOUTSTEADY_A::T833US)
    }
    #[doc = "The steady state timeout is set to 2500 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t1666us(self) -> &'a mut W {
        self.variant(TIMEOUTSTEADY_A::T1666US)
    }
    #[doc = "The steady state timeout is set to 4166 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t2500us(self) -> &'a mut W {
        self.variant(TIMEOUTSTEADY_A::T2500US)
    }
    #[doc = "The steady state timeout is set to 7500 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t4166us(self) -> &'a mut W {
        self.variant(TIMEOUTSTEADY_A::T4166US)
    }
}
#[doc = "Core Bias LSB Change Timeout\n\nValue on reset: 11"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum TIMEOUTCBLSB_A {
    #[doc = "0: The core bias LSB change timeout is set to 8 us minimum. The maximum can be +40%."]
    T8US = 0,
    #[doc = "1: The core bias LSB change timeout is set to 20 us minimum. The maximum can be +40%."]
    T20US = 1,
    #[doc = "2: The core bias LSB change timeout is set to 41 us minimum. The maximum can be +40%."]
    T41US = 2,
    #[doc = "3: The core bias LSB change timeout is set to 62 us minimum. The maximum can be +40%."]
    T62US = 3,
    #[doc = "4: The core bias LSB change timeout is set to 83 us minimum. The maximum can be +40%."]
    T83US = 4,
    #[doc = "5: The core bias LSB change timeout is set to 104 us minimum. The maximum can be +40%."]
    T104US = 5,
    #[doc = "6: The core bias LSB change timeout is set to 125 us minimum. The maximum can be +40%."]
    T125US = 6,
    #[doc = "7: The core bias LSB change timeout is set to 166 us minimum. The maximum can be +40%."]
    T166US = 7,
    #[doc = "8: The core bias LSB change timeout is set to 208 us minimum. The maximum can be +40%."]
    T208US = 8,
    #[doc = "9: The core bias LSB change timeout is set to 250 us minimum. The maximum can be +40%."]
    T250US = 9,
    #[doc = "10: The core bias LSB change timeout is set to 333 us minimum. The maximum can be +40%."]
    T333US = 10,
    #[doc = "11: The core bias LSB change timeout is set to 416 us minimum. The maximum can be +40%."]
    T416US = 11,
    #[doc = "12: The core bias LSB change timeout is set to 833 us minimum. The maximum can be +40%."]
    T833US = 12,
    #[doc = "13: The core bias LSB change timeout is set to 1250 us minimum. The maximum can be +40%."]
    T1250US = 13,
    #[doc = "14: The core bias LSB change timeout is set to 2083 us minimum. The maximum can be +40%."]
    T2083US = 14,
    #[doc = "15: The core bias LSB change timeout is set to 3750 us minimum. The maximum can be +40%."]
    T3750US = 15,
}
impl From<TIMEOUTCBLSB_A> for u8 {
    #[inline(always)]
    fn from(variant: TIMEOUTCBLSB_A) -> Self {
        variant as _
    }
}
#[doc = "Field `TIMEOUTCBLSB` reader - Core Bias LSB Change Timeout"]
pub type TIMEOUTCBLSB_R = crate::FieldReader<u8, TIMEOUTCBLSB_A>;
impl TIMEOUTCBLSB_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> TIMEOUTCBLSB_A {
        match self.bits {
            0 => TIMEOUTCBLSB_A::T8US,
            1 => TIMEOUTCBLSB_A::T20US,
            2 => TIMEOUTCBLSB_A::T41US,
            3 => TIMEOUTCBLSB_A::T62US,
            4 => TIMEOUTCBLSB_A::T83US,
            5 => TIMEOUTCBLSB_A::T104US,
            6 => TIMEOUTCBLSB_A::T125US,
            7 => TIMEOUTCBLSB_A::T166US,
            8 => TIMEOUTCBLSB_A::T208US,
            9 => TIMEOUTCBLSB_A::T250US,
            10 => TIMEOUTCBLSB_A::T333US,
            11 => TIMEOUTCBLSB_A::T416US,
            12 => TIMEOUTCBLSB_A::T833US,
            13 => TIMEOUTCBLSB_A::T1250US,
            14 => TIMEOUTCBLSB_A::T2083US,
            15 => TIMEOUTCBLSB_A::T3750US,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `T8US`"]
    #[inline(always)]
    pub fn is_t8us(&self) -> bool {
        *self == TIMEOUTCBLSB_A::T8US
    }
    #[doc = "Checks if the value of the field is `T20US`"]
    #[inline(always)]
    pub fn is_t20us(&self) -> bool {
        *self == TIMEOUTCBLSB_A::T20US
    }
    #[doc = "Checks if the value of the field is `T41US`"]
    #[inline(always)]
    pub fn is_t41us(&self) -> bool {
        *self == TIMEOUTCBLSB_A::T41US
    }
    #[doc = "Checks if the value of the field is `T62US`"]
    #[inline(always)]
    pub fn is_t62us(&self) -> bool {
        *self == TIMEOUTCBLSB_A::T62US
    }
    #[doc = "Checks if the value of the field is `T83US`"]
    #[inline(always)]
    pub fn is_t83us(&self) -> bool {
        *self == TIMEOUTCBLSB_A::T83US
    }
    #[doc = "Checks if the value of the field is `T104US`"]
    #[inline(always)]
    pub fn is_t104us(&self) -> bool {
        *self == TIMEOUTCBLSB_A::T104US
    }
    #[doc = "Checks if the value of the field is `T125US`"]
    #[inline(always)]
    pub fn is_t125us(&self) -> bool {
        *self == TIMEOUTCBLSB_A::T125US
    }
    #[doc = "Checks if the value of the field is `T166US`"]
    #[inline(always)]
    pub fn is_t166us(&self) -> bool {
        *self == TIMEOUTCBLSB_A::T166US
    }
    #[doc = "Checks if the value of the field is `T208US`"]
    #[inline(always)]
    pub fn is_t208us(&self) -> bool {
        *self == TIMEOUTCBLSB_A::T208US
    }
    #[doc = "Checks if the value of the field is `T250US`"]
    #[inline(always)]
    pub fn is_t250us(&self) -> bool {
        *self == TIMEOUTCBLSB_A::T250US
    }
    #[doc = "Checks if the value of the field is `T333US`"]
    #[inline(always)]
    pub fn is_t333us(&self) -> bool {
        *self == TIMEOUTCBLSB_A::T333US
    }
    #[doc = "Checks if the value of the field is `T416US`"]
    #[inline(always)]
    pub fn is_t416us(&self) -> bool {
        *self == TIMEOUTCBLSB_A::T416US
    }
    #[doc = "Checks if the value of the field is `T833US`"]
    #[inline(always)]
    pub fn is_t833us(&self) -> bool {
        *self == TIMEOUTCBLSB_A::T833US
    }
    #[doc = "Checks if the value of the field is `T1250US`"]
    #[inline(always)]
    pub fn is_t1250us(&self) -> bool {
        *self == TIMEOUTCBLSB_A::T1250US
    }
    #[doc = "Checks if the value of the field is `T2083US`"]
    #[inline(always)]
    pub fn is_t2083us(&self) -> bool {
        *self == TIMEOUTCBLSB_A::T2083US
    }
    #[doc = "Checks if the value of the field is `T3750US`"]
    #[inline(always)]
    pub fn is_t3750us(&self) -> bool {
        *self == TIMEOUTCBLSB_A::T3750US
    }
}
#[doc = "Field `TIMEOUTCBLSB` writer - Core Bias LSB Change Timeout"]
pub type TIMEOUTCBLSB_W<'a> =
    crate::FieldWriterSafe<'a, u32, XTALCFG_SPEC, u8, TIMEOUTCBLSB_A, 4, 24>;
impl<'a> TIMEOUTCBLSB_W<'a> {
    #[doc = "The core bias LSB change timeout is set to 8 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t8us(self) -> &'a mut W {
        self.variant(TIMEOUTCBLSB_A::T8US)
    }
    #[doc = "The core bias LSB change timeout is set to 20 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t20us(self) -> &'a mut W {
        self.variant(TIMEOUTCBLSB_A::T20US)
    }
    #[doc = "The core bias LSB change timeout is set to 41 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t41us(self) -> &'a mut W {
        self.variant(TIMEOUTCBLSB_A::T41US)
    }
    #[doc = "The core bias LSB change timeout is set to 62 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t62us(self) -> &'a mut W {
        self.variant(TIMEOUTCBLSB_A::T62US)
    }
    #[doc = "The core bias LSB change timeout is set to 83 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t83us(self) -> &'a mut W {
        self.variant(TIMEOUTCBLSB_A::T83US)
    }
    #[doc = "The core bias LSB change timeout is set to 104 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t104us(self) -> &'a mut W {
        self.variant(TIMEOUTCBLSB_A::T104US)
    }
    #[doc = "The core bias LSB change timeout is set to 125 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t125us(self) -> &'a mut W {
        self.variant(TIMEOUTCBLSB_A::T125US)
    }
    #[doc = "The core bias LSB change timeout is set to 166 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t166us(self) -> &'a mut W {
        self.variant(TIMEOUTCBLSB_A::T166US)
    }
    #[doc = "The core bias LSB change timeout is set to 208 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t208us(self) -> &'a mut W {
        self.variant(TIMEOUTCBLSB_A::T208US)
    }
    #[doc = "The core bias LSB change timeout is set to 250 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t250us(self) -> &'a mut W {
        self.variant(TIMEOUTCBLSB_A::T250US)
    }
    #[doc = "The core bias LSB change timeout is set to 333 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t333us(self) -> &'a mut W {
        self.variant(TIMEOUTCBLSB_A::T333US)
    }
    #[doc = "The core bias LSB change timeout is set to 416 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t416us(self) -> &'a mut W {
        self.variant(TIMEOUTCBLSB_A::T416US)
    }
    #[doc = "The core bias LSB change timeout is set to 833 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t833us(self) -> &'a mut W {
        self.variant(TIMEOUTCBLSB_A::T833US)
    }
    #[doc = "The core bias LSB change timeout is set to 1250 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t1250us(self) -> &'a mut W {
        self.variant(TIMEOUTCBLSB_A::T1250US)
    }
    #[doc = "The core bias LSB change timeout is set to 2083 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t2083us(self) -> &'a mut W {
        self.variant(TIMEOUTCBLSB_A::T2083US)
    }
    #[doc = "The core bias LSB change timeout is set to 3750 us minimum. The maximum can be +40%."]
    #[inline(always)]
    pub fn t3750us(self) -> &'a mut W {
        self.variant(TIMEOUTCBLSB_A::T3750US)
    }
}
impl R {
    #[doc = "Bits 0:5 - Intermediate Startup Core Bias Current"]
    #[inline(always)]
    pub fn corebiasstartupi(&self) -> COREBIASSTARTUPI_R {
        COREBIASSTARTUPI_R::new((self.bits & 0x3f) as u8)
    }
    #[doc = "Bits 6:11 - Startup Core Bias Current"]
    #[inline(always)]
    pub fn corebiasstartup(&self) -> COREBIASSTARTUP_R {
        COREBIASSTARTUP_R::new(((self.bits >> 6) & 0x3f) as u8)
    }
    #[doc = "Bits 12:15 - Startup Tuning Capacitance on XI"]
    #[inline(always)]
    pub fn ctunexistartup(&self) -> CTUNEXISTARTUP_R {
        CTUNEXISTARTUP_R::new(((self.bits >> 12) & 0x0f) as u8)
    }
    #[doc = "Bits 16:19 - Startup Tuning Capacitance on XO"]
    #[inline(always)]
    pub fn ctunexostartup(&self) -> CTUNEXOSTARTUP_R {
        CTUNEXOSTARTUP_R::new(((self.bits >> 16) & 0x0f) as u8)
    }
    #[doc = "Bits 20:23 - Steady State Timeout"]
    #[inline(always)]
    pub fn timeoutsteady(&self) -> TIMEOUTSTEADY_R {
        TIMEOUTSTEADY_R::new(((self.bits >> 20) & 0x0f) as u8)
    }
    #[doc = "Bits 24:27 - Core Bias LSB Change Timeout"]
    #[inline(always)]
    pub fn timeoutcblsb(&self) -> TIMEOUTCBLSB_R {
        TIMEOUTCBLSB_R::new(((self.bits >> 24) & 0x0f) as u8)
    }
}
impl W {
    #[doc = "Bits 0:5 - Intermediate Startup Core Bias Current"]
    #[inline(always)]
    pub fn corebiasstartupi(&mut self) -> COREBIASSTARTUPI_W {
        COREBIASSTARTUPI_W::new(self)
    }
    #[doc = "Bits 6:11 - Startup Core Bias Current"]
    #[inline(always)]
    pub fn corebiasstartup(&mut self) -> COREBIASSTARTUP_W {
        COREBIASSTARTUP_W::new(self)
    }
    #[doc = "Bits 12:15 - Startup Tuning Capacitance on XI"]
    #[inline(always)]
    pub fn ctunexistartup(&mut self) -> CTUNEXISTARTUP_W {
        CTUNEXISTARTUP_W::new(self)
    }
    #[doc = "Bits 16:19 - Startup Tuning Capacitance on XO"]
    #[inline(always)]
    pub fn ctunexostartup(&mut self) -> CTUNEXOSTARTUP_W {
        CTUNEXOSTARTUP_W::new(self)
    }
    #[doc = "Bits 20:23 - Steady State Timeout"]
    #[inline(always)]
    pub fn timeoutsteady(&mut self) -> TIMEOUTSTEADY_W {
        TIMEOUTSTEADY_W::new(self)
    }
    #[doc = "Bits 24:27 - Core Bias LSB Change Timeout"]
    #[inline(always)]
    pub fn timeoutcblsb(&mut self) -> TIMEOUTCBLSB_W {
        TIMEOUTCBLSB_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 = "No Description\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 [xtalcfg](index.html) module"]
pub struct XTALCFG_SPEC;
impl crate::RegisterSpec for XTALCFG_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [xtalcfg::R](R) reader structure"]
impl crate::Readable for XTALCFG_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [xtalcfg::W](W) writer structure"]
impl crate::Writable for XTALCFG_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets XTALCFG to value 0x0bb0_0820"]
impl crate::Resettable for XTALCFG_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0x0bb0_0820
    }
}