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
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
#[repr(C)]
#[derive(Debug)]
///Register block
pub struct RegisterBlock {
    ctrl: Ctrl,
    _reserved1: [u8; 0x0c],
    hfrcoctrl: Hfrcoctrl,
    _reserved2: [u8; 0x04],
    auxhfrcoctrl: Auxhfrcoctrl,
    _reserved3: [u8; 0x04],
    lfrcoctrl: Lfrcoctrl,
    hfxoctrl: Hfxoctrl,
    hfxoctrl1: Hfxoctrl1,
    hfxostartupctrl: Hfxostartupctrl,
    hfxosteadystatectrl: Hfxosteadystatectrl,
    hfxotimeoutctrl: Hfxotimeoutctrl,
    lfxoctrl: Lfxoctrl,
    ulfrcoctrl: Ulfrcoctrl,
    _reserved11: [u8; 0x10],
    calctrl: Calctrl,
    calcnt: Calcnt,
    _reserved13: [u8; 0x08],
    oscencmd: Oscencmd,
    cmd: Cmd,
    _reserved15: [u8; 0x08],
    dbgclksel: Dbgclksel,
    hfclksel: Hfclksel,
    _reserved17: [u8; 0x08],
    lfaclksel: Lfaclksel,
    lfbclksel: Lfbclksel,
    lfeclksel: Lfeclksel,
    _reserved20: [u8; 0x04],
    status: Status,
    hfclkstatus: Hfclkstatus,
    _reserved22: [u8; 0x04],
    hfxotrimstatus: Hfxotrimstatus,
    if_: If,
    ifs: Ifs,
    ifc: Ifc,
    ien: Ien,
    hfbusclken0: Hfbusclken0,
    _reserved28: [u8; 0x0c],
    hfperclken0: Hfperclken0,
    _reserved29: [u8; 0x1c],
    lfaclken0: Lfaclken0,
    _reserved30: [u8; 0x04],
    lfbclken0: Lfbclken0,
    _reserved31: [u8; 0x04],
    lfeclken0: Lfeclken0,
    _reserved32: [u8; 0x0c],
    hfpresc: Hfpresc,
    _reserved33: [u8; 0x04],
    hfcorepresc: Hfcorepresc,
    hfperpresc: Hfperpresc,
    _reserved35: [u8; 0x04],
    hfexppresc: Hfexppresc,
    _reserved36: [u8; 0x08],
    lfapresc0: Lfapresc0,
    _reserved37: [u8; 0x04],
    lfbpresc0: Lfbpresc0,
    _reserved38: [u8; 0x04],
    lfepresc0: Lfepresc0,
    _reserved39: [u8; 0x0c],
    syncbusy: Syncbusy,
    freeze: Freeze,
    _reserved41: [u8; 0x08],
    pcntctrl: Pcntctrl,
    _reserved42: [u8; 0x08],
    adcctrl: Adcctrl,
    _reserved43: [u8; 0x10],
    routepen: Routepen,
    routeloc0: Routeloc0,
    _reserved45: [u8; 0x08],
    lock: Lock,
}
impl RegisterBlock {
    ///0x00 - CMU Control Register
    #[inline(always)]
    pub const fn ctrl(&self) -> &Ctrl {
        &self.ctrl
    }
    ///0x10 - HFRCO Control Register
    #[inline(always)]
    pub const fn hfrcoctrl(&self) -> &Hfrcoctrl {
        &self.hfrcoctrl
    }
    ///0x18 - AUXHFRCO Control Register
    #[inline(always)]
    pub const fn auxhfrcoctrl(&self) -> &Auxhfrcoctrl {
        &self.auxhfrcoctrl
    }
    ///0x20 - LFRCO Control Register
    #[inline(always)]
    pub const fn lfrcoctrl(&self) -> &Lfrcoctrl {
        &self.lfrcoctrl
    }
    ///0x24 - HFXO Control Register
    #[inline(always)]
    pub const fn hfxoctrl(&self) -> &Hfxoctrl {
        &self.hfxoctrl
    }
    ///0x28 - HFXO Control 1
    #[inline(always)]
    pub const fn hfxoctrl1(&self) -> &Hfxoctrl1 {
        &self.hfxoctrl1
    }
    ///0x2c - HFXO Startup Control
    #[inline(always)]
    pub const fn hfxostartupctrl(&self) -> &Hfxostartupctrl {
        &self.hfxostartupctrl
    }
    ///0x30 - HFXO Steady State Control
    #[inline(always)]
    pub const fn hfxosteadystatectrl(&self) -> &Hfxosteadystatectrl {
        &self.hfxosteadystatectrl
    }
    ///0x34 - HFXO Timeout Control
    #[inline(always)]
    pub const fn hfxotimeoutctrl(&self) -> &Hfxotimeoutctrl {
        &self.hfxotimeoutctrl
    }
    ///0x38 - LFXO Control Register
    #[inline(always)]
    pub const fn lfxoctrl(&self) -> &Lfxoctrl {
        &self.lfxoctrl
    }
    ///0x3c - ULFRCO Control Register
    #[inline(always)]
    pub const fn ulfrcoctrl(&self) -> &Ulfrcoctrl {
        &self.ulfrcoctrl
    }
    ///0x50 - Calibration Control Register
    #[inline(always)]
    pub const fn calctrl(&self) -> &Calctrl {
        &self.calctrl
    }
    ///0x54 - Calibration Counter Register
    #[inline(always)]
    pub const fn calcnt(&self) -> &Calcnt {
        &self.calcnt
    }
    ///0x60 - Oscillator Enable/Disable Command Register
    #[inline(always)]
    pub const fn oscencmd(&self) -> &Oscencmd {
        &self.oscencmd
    }
    ///0x64 - Command Register
    #[inline(always)]
    pub const fn cmd(&self) -> &Cmd {
        &self.cmd
    }
    ///0x70 - Debug Trace Clock Select
    #[inline(always)]
    pub const fn dbgclksel(&self) -> &Dbgclksel {
        &self.dbgclksel
    }
    ///0x74 - High Frequency Clock Select Command Register
    #[inline(always)]
    pub const fn hfclksel(&self) -> &Hfclksel {
        &self.hfclksel
    }
    ///0x80 - Low Frequency A Clock Select Register
    #[inline(always)]
    pub const fn lfaclksel(&self) -> &Lfaclksel {
        &self.lfaclksel
    }
    ///0x84 - Low Frequency B Clock Select Register
    #[inline(always)]
    pub const fn lfbclksel(&self) -> &Lfbclksel {
        &self.lfbclksel
    }
    ///0x88 - Low Frequency E Clock Select Register
    #[inline(always)]
    pub const fn lfeclksel(&self) -> &Lfeclksel {
        &self.lfeclksel
    }
    ///0x90 - Status Register
    #[inline(always)]
    pub const fn status(&self) -> &Status {
        &self.status
    }
    ///0x94 - HFCLK Status Register
    #[inline(always)]
    pub const fn hfclkstatus(&self) -> &Hfclkstatus {
        &self.hfclkstatus
    }
    ///0x9c - HFXO Trim Status
    #[inline(always)]
    pub const fn hfxotrimstatus(&self) -> &Hfxotrimstatus {
        &self.hfxotrimstatus
    }
    ///0xa0 - Interrupt Flag Register
    #[inline(always)]
    pub const fn if_(&self) -> &If {
        &self.if_
    }
    ///0xa4 - Interrupt Flag Set Register
    #[inline(always)]
    pub const fn ifs(&self) -> &Ifs {
        &self.ifs
    }
    ///0xa8 - Interrupt Flag Clear Register
    #[inline(always)]
    pub const fn ifc(&self) -> &Ifc {
        &self.ifc
    }
    ///0xac - Interrupt Enable Register
    #[inline(always)]
    pub const fn ien(&self) -> &Ien {
        &self.ien
    }
    ///0xb0 - High Frequency Bus Clock Enable Register 0
    #[inline(always)]
    pub const fn hfbusclken0(&self) -> &Hfbusclken0 {
        &self.hfbusclken0
    }
    ///0xc0 - High Frequency Peripheral Clock Enable Register 0
    #[inline(always)]
    pub const fn hfperclken0(&self) -> &Hfperclken0 {
        &self.hfperclken0
    }
    ///0xe0 - Low Frequency a Clock Enable Register 0 (Async Reg)
    #[inline(always)]
    pub const fn lfaclken0(&self) -> &Lfaclken0 {
        &self.lfaclken0
    }
    ///0xe8 - Low Frequency B Clock Enable Register 0 (Async Reg)
    #[inline(always)]
    pub const fn lfbclken0(&self) -> &Lfbclken0 {
        &self.lfbclken0
    }
    ///0xf0 - Low Frequency E Clock Enable Register 0 (Async Reg)
    #[inline(always)]
    pub const fn lfeclken0(&self) -> &Lfeclken0 {
        &self.lfeclken0
    }
    ///0x100 - High Frequency Clock Prescaler Register
    #[inline(always)]
    pub const fn hfpresc(&self) -> &Hfpresc {
        &self.hfpresc
    }
    ///0x108 - High Frequency Core Clock Prescaler Register
    #[inline(always)]
    pub const fn hfcorepresc(&self) -> &Hfcorepresc {
        &self.hfcorepresc
    }
    ///0x10c - High Frequency Peripheral Clock Prescaler Register
    #[inline(always)]
    pub const fn hfperpresc(&self) -> &Hfperpresc {
        &self.hfperpresc
    }
    ///0x114 - High Frequency Export Clock Prescaler Register
    #[inline(always)]
    pub const fn hfexppresc(&self) -> &Hfexppresc {
        &self.hfexppresc
    }
    ///0x120 - Low Frequency a Prescaler Register 0 (Async Reg)
    #[inline(always)]
    pub const fn lfapresc0(&self) -> &Lfapresc0 {
        &self.lfapresc0
    }
    ///0x128 - Low Frequency B Prescaler Register 0 (Async Reg)
    #[inline(always)]
    pub const fn lfbpresc0(&self) -> &Lfbpresc0 {
        &self.lfbpresc0
    }
    ///0x130 - Low Frequency E Prescaler Register 0 (Async Reg)
    #[inline(always)]
    pub const fn lfepresc0(&self) -> &Lfepresc0 {
        &self.lfepresc0
    }
    ///0x140 - Synchronization Busy Register
    #[inline(always)]
    pub const fn syncbusy(&self) -> &Syncbusy {
        &self.syncbusy
    }
    ///0x144 - Freeze Register
    #[inline(always)]
    pub const fn freeze(&self) -> &Freeze {
        &self.freeze
    }
    ///0x150 - PCNT Control Register
    #[inline(always)]
    pub const fn pcntctrl(&self) -> &Pcntctrl {
        &self.pcntctrl
    }
    ///0x15c - ADC Control Register
    #[inline(always)]
    pub const fn adcctrl(&self) -> &Adcctrl {
        &self.adcctrl
    }
    ///0x170 - I/O Routing Pin Enable Register
    #[inline(always)]
    pub const fn routepen(&self) -> &Routepen {
        &self.routepen
    }
    ///0x174 - I/O Routing Location Register
    #[inline(always)]
    pub const fn routeloc0(&self) -> &Routeloc0 {
        &self.routeloc0
    }
    ///0x180 - Configuration Lock Register
    #[inline(always)]
    pub const fn lock(&self) -> &Lock {
        &self.lock
    }
}
///CTRL (rw) register accessor: CMU Control Register
///
///You can [`read`](crate::Reg::read) this register and get [`ctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@ctrl`] module
#[doc(alias = "CTRL")]
pub type Ctrl = crate::Reg<ctrl::CTRLrs>;
///CMU Control Register
pub mod ctrl;
///HFRCOCTRL (rw) register accessor: HFRCO Control Register
///
///You can [`read`](crate::Reg::read) this register and get [`hfrcoctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hfrcoctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@hfrcoctrl`] module
#[doc(alias = "HFRCOCTRL")]
pub type Hfrcoctrl = crate::Reg<hfrcoctrl::HFRCOCTRLrs>;
///HFRCO Control Register
pub mod hfrcoctrl;
pub use hfrcoctrl as auxhfrcoctrl;
pub use Hfrcoctrl as Auxhfrcoctrl;
///LFRCOCTRL (rw) register accessor: LFRCO Control Register
///
///You can [`read`](crate::Reg::read) this register and get [`lfrcoctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lfrcoctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@lfrcoctrl`] module
#[doc(alias = "LFRCOCTRL")]
pub type Lfrcoctrl = crate::Reg<lfrcoctrl::LFRCOCTRLrs>;
///LFRCO Control Register
pub mod lfrcoctrl;
///HFXOCTRL (rw) register accessor: HFXO Control Register
///
///You can [`read`](crate::Reg::read) this register and get [`hfxoctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hfxoctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@hfxoctrl`] module
#[doc(alias = "HFXOCTRL")]
pub type Hfxoctrl = crate::Reg<hfxoctrl::HFXOCTRLrs>;
///HFXO Control Register
pub mod hfxoctrl;
///HFXOCTRL1 (rw) register accessor: HFXO Control 1
///
///You can [`read`](crate::Reg::read) this register and get [`hfxoctrl1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hfxoctrl1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@hfxoctrl1`] module
#[doc(alias = "HFXOCTRL1")]
pub type Hfxoctrl1 = crate::Reg<hfxoctrl1::HFXOCTRL1rs>;
///HFXO Control 1
pub mod hfxoctrl1;
///HFXOSTARTUPCTRL (rw) register accessor: HFXO Startup Control
///
///You can [`read`](crate::Reg::read) this register and get [`hfxostartupctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hfxostartupctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@hfxostartupctrl`] module
#[doc(alias = "HFXOSTARTUPCTRL")]
pub type Hfxostartupctrl = crate::Reg<hfxostartupctrl::HFXOSTARTUPCTRLrs>;
///HFXO Startup Control
pub mod hfxostartupctrl;
///HFXOSTEADYSTATECTRL (rw) register accessor: HFXO Steady State Control
///
///You can [`read`](crate::Reg::read) this register and get [`hfxosteadystatectrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hfxosteadystatectrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@hfxosteadystatectrl`] module
#[doc(alias = "HFXOSTEADYSTATECTRL")]
pub type Hfxosteadystatectrl = crate::Reg<hfxosteadystatectrl::HFXOSTEADYSTATECTRLrs>;
///HFXO Steady State Control
pub mod hfxosteadystatectrl;
///HFXOTIMEOUTCTRL (rw) register accessor: HFXO Timeout Control
///
///You can [`read`](crate::Reg::read) this register and get [`hfxotimeoutctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hfxotimeoutctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@hfxotimeoutctrl`] module
#[doc(alias = "HFXOTIMEOUTCTRL")]
pub type Hfxotimeoutctrl = crate::Reg<hfxotimeoutctrl::HFXOTIMEOUTCTRLrs>;
///HFXO Timeout Control
pub mod hfxotimeoutctrl;
///LFXOCTRL (rw) register accessor: LFXO Control Register
///
///You can [`read`](crate::Reg::read) this register and get [`lfxoctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lfxoctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@lfxoctrl`] module
#[doc(alias = "LFXOCTRL")]
pub type Lfxoctrl = crate::Reg<lfxoctrl::LFXOCTRLrs>;
///LFXO Control Register
pub mod lfxoctrl;
///ULFRCOCTRL (rw) register accessor: ULFRCO Control Register
///
///You can [`read`](crate::Reg::read) this register and get [`ulfrcoctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ulfrcoctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@ulfrcoctrl`] module
#[doc(alias = "ULFRCOCTRL")]
pub type Ulfrcoctrl = crate::Reg<ulfrcoctrl::ULFRCOCTRLrs>;
///ULFRCO Control Register
pub mod ulfrcoctrl;
///CALCTRL (rw) register accessor: Calibration Control Register
///
///You can [`read`](crate::Reg::read) this register and get [`calctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`calctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@calctrl`] module
#[doc(alias = "CALCTRL")]
pub type Calctrl = crate::Reg<calctrl::CALCTRLrs>;
///Calibration Control Register
pub mod calctrl;
///CALCNT (rw) register accessor: Calibration Counter Register
///
///You can [`read`](crate::Reg::read) this register and get [`calcnt::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`calcnt::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@calcnt`] module
#[doc(alias = "CALCNT")]
pub type Calcnt = crate::Reg<calcnt::CALCNTrs>;
///Calibration Counter Register
pub mod calcnt;
///OSCENCMD (w) register accessor: Oscillator Enable/Disable Command Register
///
///You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`oscencmd::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@oscencmd`] module
#[doc(alias = "OSCENCMD")]
pub type Oscencmd = crate::Reg<oscencmd::OSCENCMDrs>;
///Oscillator Enable/Disable Command Register
pub mod oscencmd;
///CMD (w) register accessor: Command Register
///
///You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmd::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@cmd`] module
#[doc(alias = "CMD")]
pub type Cmd = crate::Reg<cmd::CMDrs>;
///Command Register
pub mod cmd;
///DBGCLKSEL (rw) register accessor: Debug Trace Clock Select
///
///You can [`read`](crate::Reg::read) this register and get [`dbgclksel::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dbgclksel::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@dbgclksel`] module
#[doc(alias = "DBGCLKSEL")]
pub type Dbgclksel = crate::Reg<dbgclksel::DBGCLKSELrs>;
///Debug Trace Clock Select
pub mod dbgclksel;
///HFCLKSEL (w) register accessor: High Frequency Clock Select Command Register
///
///You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hfclksel::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@hfclksel`] module
#[doc(alias = "HFCLKSEL")]
pub type Hfclksel = crate::Reg<hfclksel::HFCLKSELrs>;
///High Frequency Clock Select Command Register
pub mod hfclksel;
///LFACLKSEL (rw) register accessor: Low Frequency A Clock Select Register
///
///You can [`read`](crate::Reg::read) this register and get [`lfaclksel::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lfaclksel::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@lfaclksel`] module
#[doc(alias = "LFACLKSEL")]
pub type Lfaclksel = crate::Reg<lfaclksel::LFACLKSELrs>;
///Low Frequency A Clock Select Register
pub mod lfaclksel;
///LFBCLKSEL (rw) register accessor: Low Frequency B Clock Select Register
///
///You can [`read`](crate::Reg::read) this register and get [`lfbclksel::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lfbclksel::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@lfbclksel`] module
#[doc(alias = "LFBCLKSEL")]
pub type Lfbclksel = crate::Reg<lfbclksel::LFBCLKSELrs>;
///Low Frequency B Clock Select Register
pub mod lfbclksel;
///LFECLKSEL (rw) register accessor: Low Frequency E Clock Select Register
///
///You can [`read`](crate::Reg::read) this register and get [`lfeclksel::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lfeclksel::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@lfeclksel`] module
#[doc(alias = "LFECLKSEL")]
pub type Lfeclksel = crate::Reg<lfeclksel::LFECLKSELrs>;
///Low Frequency E Clock Select Register
pub mod lfeclksel;
///STATUS (r) register accessor: Status Register
///
///You can [`read`](crate::Reg::read) this register and get [`status::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@status`] module
#[doc(alias = "STATUS")]
pub type Status = crate::Reg<status::STATUSrs>;
///Status Register
pub mod status;
///HFCLKSTATUS (r) register accessor: HFCLK Status Register
///
///You can [`read`](crate::Reg::read) this register and get [`hfclkstatus::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@hfclkstatus`] module
#[doc(alias = "HFCLKSTATUS")]
pub type Hfclkstatus = crate::Reg<hfclkstatus::HFCLKSTATUSrs>;
///HFCLK Status Register
pub mod hfclkstatus;
///HFXOTRIMSTATUS (r) register accessor: HFXO Trim Status
///
///You can [`read`](crate::Reg::read) this register and get [`hfxotrimstatus::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@hfxotrimstatus`] module
#[doc(alias = "HFXOTRIMSTATUS")]
pub type Hfxotrimstatus = crate::Reg<hfxotrimstatus::HFXOTRIMSTATUSrs>;
///HFXO Trim Status
pub mod hfxotrimstatus;
///IF (r) register accessor: Interrupt Flag Register
///
///You can [`read`](crate::Reg::read) this register and get [`if_::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@if_`] module
#[doc(alias = "IF")]
pub type If = crate::Reg<if_::IFrs>;
///Interrupt Flag Register
pub mod if_;
///IFS (w) register accessor: Interrupt Flag Set Register
///
///You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ifs::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@ifs`] module
#[doc(alias = "IFS")]
pub type Ifs = crate::Reg<ifs::IFSrs>;
///Interrupt Flag Set Register
pub mod ifs;
///IFC (w) register accessor: Interrupt Flag Clear Register
///
///You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ifc::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@ifc`] module
#[doc(alias = "IFC")]
pub type Ifc = crate::Reg<ifc::IFCrs>;
///Interrupt Flag Clear Register
pub mod ifc;
///IEN (rw) register accessor: Interrupt Enable Register
///
///You can [`read`](crate::Reg::read) this register and get [`ien::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ien::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@ien`] module
#[doc(alias = "IEN")]
pub type Ien = crate::Reg<ien::IENrs>;
///Interrupt Enable Register
pub mod ien;
///HFBUSCLKEN0 (rw) register accessor: High Frequency Bus Clock Enable Register 0
///
///You can [`read`](crate::Reg::read) this register and get [`hfbusclken0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hfbusclken0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@hfbusclken0`] module
#[doc(alias = "HFBUSCLKEN0")]
pub type Hfbusclken0 = crate::Reg<hfbusclken0::HFBUSCLKEN0rs>;
///High Frequency Bus Clock Enable Register 0
pub mod hfbusclken0;
///HFPERCLKEN0 (rw) register accessor: High Frequency Peripheral Clock Enable Register 0
///
///You can [`read`](crate::Reg::read) this register and get [`hfperclken0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hfperclken0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@hfperclken0`] module
#[doc(alias = "HFPERCLKEN0")]
pub type Hfperclken0 = crate::Reg<hfperclken0::HFPERCLKEN0rs>;
///High Frequency Peripheral Clock Enable Register 0
pub mod hfperclken0;
///LFACLKEN0 (rw) register accessor: Low Frequency a Clock Enable Register 0 (Async Reg)
///
///You can [`read`](crate::Reg::read) this register and get [`lfaclken0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lfaclken0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@lfaclken0`] module
#[doc(alias = "LFACLKEN0")]
pub type Lfaclken0 = crate::Reg<lfaclken0::LFACLKEN0rs>;
///Low Frequency a Clock Enable Register 0 (Async Reg)
pub mod lfaclken0;
///LFBCLKEN0 (rw) register accessor: Low Frequency B Clock Enable Register 0 (Async Reg)
///
///You can [`read`](crate::Reg::read) this register and get [`lfbclken0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lfbclken0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@lfbclken0`] module
#[doc(alias = "LFBCLKEN0")]
pub type Lfbclken0 = crate::Reg<lfbclken0::LFBCLKEN0rs>;
///Low Frequency B Clock Enable Register 0 (Async Reg)
pub mod lfbclken0;
///LFECLKEN0 (rw) register accessor: Low Frequency E Clock Enable Register 0 (Async Reg)
///
///You can [`read`](crate::Reg::read) this register and get [`lfeclken0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lfeclken0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@lfeclken0`] module
#[doc(alias = "LFECLKEN0")]
pub type Lfeclken0 = crate::Reg<lfeclken0::LFECLKEN0rs>;
///Low Frequency E Clock Enable Register 0 (Async Reg)
pub mod lfeclken0;
///HFPRESC (rw) register accessor: High Frequency Clock Prescaler Register
///
///You can [`read`](crate::Reg::read) this register and get [`hfpresc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hfpresc::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@hfpresc`] module
#[doc(alias = "HFPRESC")]
pub type Hfpresc = crate::Reg<hfpresc::HFPRESCrs>;
///High Frequency Clock Prescaler Register
pub mod hfpresc;
///HFCOREPRESC (rw) register accessor: High Frequency Core Clock Prescaler Register
///
///You can [`read`](crate::Reg::read) this register and get [`hfcorepresc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hfcorepresc::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@hfcorepresc`] module
#[doc(alias = "HFCOREPRESC")]
pub type Hfcorepresc = crate::Reg<hfcorepresc::HFCOREPRESCrs>;
///High Frequency Core Clock Prescaler Register
pub mod hfcorepresc;
///HFPERPRESC (rw) register accessor: High Frequency Peripheral Clock Prescaler Register
///
///You can [`read`](crate::Reg::read) this register and get [`hfperpresc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hfperpresc::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@hfperpresc`] module
#[doc(alias = "HFPERPRESC")]
pub type Hfperpresc = crate::Reg<hfperpresc::HFPERPRESCrs>;
///High Frequency Peripheral Clock Prescaler Register
pub mod hfperpresc;
///HFEXPPRESC (rw) register accessor: High Frequency Export Clock Prescaler Register
///
///You can [`read`](crate::Reg::read) this register and get [`hfexppresc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hfexppresc::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@hfexppresc`] module
#[doc(alias = "HFEXPPRESC")]
pub type Hfexppresc = crate::Reg<hfexppresc::HFEXPPRESCrs>;
///High Frequency Export Clock Prescaler Register
pub mod hfexppresc;
///LFAPRESC0 (rw) register accessor: Low Frequency a Prescaler Register 0 (Async Reg)
///
///You can [`read`](crate::Reg::read) this register and get [`lfapresc0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lfapresc0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@lfapresc0`] module
#[doc(alias = "LFAPRESC0")]
pub type Lfapresc0 = crate::Reg<lfapresc0::LFAPRESC0rs>;
///Low Frequency a Prescaler Register 0 (Async Reg)
pub mod lfapresc0;
///LFBPRESC0 (rw) register accessor: Low Frequency B Prescaler Register 0 (Async Reg)
///
///You can [`read`](crate::Reg::read) this register and get [`lfbpresc0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lfbpresc0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@lfbpresc0`] module
#[doc(alias = "LFBPRESC0")]
pub type Lfbpresc0 = crate::Reg<lfbpresc0::LFBPRESC0rs>;
///Low Frequency B Prescaler Register 0 (Async Reg)
pub mod lfbpresc0;
///LFEPRESC0 (rw) register accessor: Low Frequency E Prescaler Register 0 (Async Reg)
///
///You can [`read`](crate::Reg::read) this register and get [`lfepresc0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lfepresc0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@lfepresc0`] module
#[doc(alias = "LFEPRESC0")]
pub type Lfepresc0 = crate::Reg<lfepresc0::LFEPRESC0rs>;
///Low Frequency E Prescaler Register 0 (Async Reg)
pub mod lfepresc0;
///SYNCBUSY (r) register accessor: Synchronization Busy Register
///
///You can [`read`](crate::Reg::read) this register and get [`syncbusy::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@syncbusy`] module
#[doc(alias = "SYNCBUSY")]
pub type Syncbusy = crate::Reg<syncbusy::SYNCBUSYrs>;
///Synchronization Busy Register
pub mod syncbusy;
///FREEZE (rw) register accessor: Freeze Register
///
///You can [`read`](crate::Reg::read) this register and get [`freeze::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`freeze::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@freeze`] module
#[doc(alias = "FREEZE")]
pub type Freeze = crate::Reg<freeze::FREEZErs>;
///Freeze Register
pub mod freeze;
///PCNTCTRL (rw) register accessor: PCNT Control Register
///
///You can [`read`](crate::Reg::read) this register and get [`pcntctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pcntctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@pcntctrl`] module
#[doc(alias = "PCNTCTRL")]
pub type Pcntctrl = crate::Reg<pcntctrl::PCNTCTRLrs>;
///PCNT Control Register
pub mod pcntctrl;
///ADCCTRL (rw) register accessor: ADC Control Register
///
///You can [`read`](crate::Reg::read) this register and get [`adcctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`adcctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@adcctrl`] module
#[doc(alias = "ADCCTRL")]
pub type Adcctrl = crate::Reg<adcctrl::ADCCTRLrs>;
///ADC Control Register
pub mod adcctrl;
///ROUTEPEN (rw) register accessor: I/O Routing Pin Enable Register
///
///You can [`read`](crate::Reg::read) this register and get [`routepen::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`routepen::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@routepen`] module
#[doc(alias = "ROUTEPEN")]
pub type Routepen = crate::Reg<routepen::ROUTEPENrs>;
///I/O Routing Pin Enable Register
pub mod routepen;
///ROUTELOC0 (rw) register accessor: I/O Routing Location Register
///
///You can [`read`](crate::Reg::read) this register and get [`routeloc0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`routeloc0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@routeloc0`] module
#[doc(alias = "ROUTELOC0")]
pub type Routeloc0 = crate::Reg<routeloc0::ROUTELOC0rs>;
///I/O Routing Location Register
pub mod routeloc0;
///LOCK (rw) register accessor: Configuration Lock Register
///
///You can [`read`](crate::Reg::read) this register and get [`lock::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lock::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///For information about available fields see [`mod@lock`] module
#[doc(alias = "LOCK")]
pub type Lock = crate::Reg<lock::LOCKrs>;
///Configuration Lock Register
pub mod lock;