cc13x0_pac 0.10.3

Peripheral Access Crate for TI's cc13x0 microcontroller
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
#[doc = "Register `MODCLKEN0` reader"]
pub type R = crate::R<Modclken0Spec>;
#[doc = "Register `MODCLKEN0` writer"]
pub type W = crate::W<Modclken0Spec>;
#[doc = "0:0\\]
Enables (1) or disables (0) clock for AUX_SMPH.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Smph {
    #[doc = "1: System CPU has requested clock for SMPH"]
    En = 1,
    #[doc = "0: System CPU has not requested clock for SMPH"]
    Dis = 0,
}
impl From<Smph> for bool {
    #[inline(always)]
    fn from(variant: Smph) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `SMPH` reader - 0:0\\]
Enables (1) or disables (0) clock for AUX_SMPH."]
pub type SmphR = crate::BitReader<Smph>;
impl SmphR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Smph {
        match self.bits {
            true => Smph::En,
            false => Smph::Dis,
        }
    }
    #[doc = "System CPU has requested clock for SMPH"]
    #[inline(always)]
    pub fn is_en(&self) -> bool {
        *self == Smph::En
    }
    #[doc = "System CPU has not requested clock for SMPH"]
    #[inline(always)]
    pub fn is_dis(&self) -> bool {
        *self == Smph::Dis
    }
}
#[doc = "Field `SMPH` writer - 0:0\\]
Enables (1) or disables (0) clock for AUX_SMPH."]
pub type SmphW<'a, REG> = crate::BitWriter<'a, REG, Smph>;
impl<'a, REG> SmphW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "System CPU has requested clock for SMPH"]
    #[inline(always)]
    pub fn en(self) -> &'a mut crate::W<REG> {
        self.variant(Smph::En)
    }
    #[doc = "System CPU has not requested clock for SMPH"]
    #[inline(always)]
    pub fn dis(self) -> &'a mut crate::W<REG> {
        self.variant(Smph::Dis)
    }
}
#[doc = "1:1\\]
Enables (1) or disables (0) clock for AUX_AIODIO0.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Aiodio0 {
    #[doc = "1: System CPU has requested clock for AIODIO0"]
    En = 1,
    #[doc = "0: System CPU has not requested clock for AIODIO0"]
    Dis = 0,
}
impl From<Aiodio0> for bool {
    #[inline(always)]
    fn from(variant: Aiodio0) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `AIODIO0` reader - 1:1\\]
Enables (1) or disables (0) clock for AUX_AIODIO0."]
pub type Aiodio0R = crate::BitReader<Aiodio0>;
impl Aiodio0R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Aiodio0 {
        match self.bits {
            true => Aiodio0::En,
            false => Aiodio0::Dis,
        }
    }
    #[doc = "System CPU has requested clock for AIODIO0"]
    #[inline(always)]
    pub fn is_en(&self) -> bool {
        *self == Aiodio0::En
    }
    #[doc = "System CPU has not requested clock for AIODIO0"]
    #[inline(always)]
    pub fn is_dis(&self) -> bool {
        *self == Aiodio0::Dis
    }
}
#[doc = "Field `AIODIO0` writer - 1:1\\]
Enables (1) or disables (0) clock for AUX_AIODIO0."]
pub type Aiodio0W<'a, REG> = crate::BitWriter<'a, REG, Aiodio0>;
impl<'a, REG> Aiodio0W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "System CPU has requested clock for AIODIO0"]
    #[inline(always)]
    pub fn en(self) -> &'a mut crate::W<REG> {
        self.variant(Aiodio0::En)
    }
    #[doc = "System CPU has not requested clock for AIODIO0"]
    #[inline(always)]
    pub fn dis(self) -> &'a mut crate::W<REG> {
        self.variant(Aiodio0::Dis)
    }
}
#[doc = "2:2\\]
Enables (1) or disables (0) clock for AUX_AIODIO1.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Aiodio1 {
    #[doc = "1: System CPU has requested clock for AIODIO1"]
    En = 1,
    #[doc = "0: System CPU has not requested clock for AIODIO1"]
    Dis = 0,
}
impl From<Aiodio1> for bool {
    #[inline(always)]
    fn from(variant: Aiodio1) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `AIODIO1` reader - 2:2\\]
Enables (1) or disables (0) clock for AUX_AIODIO1."]
pub type Aiodio1R = crate::BitReader<Aiodio1>;
impl Aiodio1R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Aiodio1 {
        match self.bits {
            true => Aiodio1::En,
            false => Aiodio1::Dis,
        }
    }
    #[doc = "System CPU has requested clock for AIODIO1"]
    #[inline(always)]
    pub fn is_en(&self) -> bool {
        *self == Aiodio1::En
    }
    #[doc = "System CPU has not requested clock for AIODIO1"]
    #[inline(always)]
    pub fn is_dis(&self) -> bool {
        *self == Aiodio1::Dis
    }
}
#[doc = "Field `AIODIO1` writer - 2:2\\]
Enables (1) or disables (0) clock for AUX_AIODIO1."]
pub type Aiodio1W<'a, REG> = crate::BitWriter<'a, REG, Aiodio1>;
impl<'a, REG> Aiodio1W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "System CPU has requested clock for AIODIO1"]
    #[inline(always)]
    pub fn en(self) -> &'a mut crate::W<REG> {
        self.variant(Aiodio1::En)
    }
    #[doc = "System CPU has not requested clock for AIODIO1"]
    #[inline(always)]
    pub fn dis(self) -> &'a mut crate::W<REG> {
        self.variant(Aiodio1::Dis)
    }
}
#[doc = "3:3\\]
Enables (1) or disables (0) clock for AUX_TIMER.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Timer {
    #[doc = "1: System CPU has requested clock for TIMER"]
    En = 1,
    #[doc = "0: System CPU has not requested clock for TIMER"]
    Dis = 0,
}
impl From<Timer> for bool {
    #[inline(always)]
    fn from(variant: Timer) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TIMER` reader - 3:3\\]
Enables (1) or disables (0) clock for AUX_TIMER."]
pub type TimerR = crate::BitReader<Timer>;
impl TimerR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Timer {
        match self.bits {
            true => Timer::En,
            false => Timer::Dis,
        }
    }
    #[doc = "System CPU has requested clock for TIMER"]
    #[inline(always)]
    pub fn is_en(&self) -> bool {
        *self == Timer::En
    }
    #[doc = "System CPU has not requested clock for TIMER"]
    #[inline(always)]
    pub fn is_dis(&self) -> bool {
        *self == Timer::Dis
    }
}
#[doc = "Field `TIMER` writer - 3:3\\]
Enables (1) or disables (0) clock for AUX_TIMER."]
pub type TimerW<'a, REG> = crate::BitWriter<'a, REG, Timer>;
impl<'a, REG> TimerW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "System CPU has requested clock for TIMER"]
    #[inline(always)]
    pub fn en(self) -> &'a mut crate::W<REG> {
        self.variant(Timer::En)
    }
    #[doc = "System CPU has not requested clock for TIMER"]
    #[inline(always)]
    pub fn dis(self) -> &'a mut crate::W<REG> {
        self.variant(Timer::Dis)
    }
}
#[doc = "4:4\\]
Enables (1) or disables (0) clock for AUX_ANAIF. Note that the ADC internal clock must be requested separately using ADCCLKCTL.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Anaif {
    #[doc = "1: System CPU has requested clock for ANAIF"]
    En = 1,
    #[doc = "0: System CPU has not requested clock for ANAIF"]
    Dis = 0,
}
impl From<Anaif> for bool {
    #[inline(always)]
    fn from(variant: Anaif) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `ANAIF` reader - 4:4\\]
Enables (1) or disables (0) clock for AUX_ANAIF. Note that the ADC internal clock must be requested separately using ADCCLKCTL."]
pub type AnaifR = crate::BitReader<Anaif>;
impl AnaifR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Anaif {
        match self.bits {
            true => Anaif::En,
            false => Anaif::Dis,
        }
    }
    #[doc = "System CPU has requested clock for ANAIF"]
    #[inline(always)]
    pub fn is_en(&self) -> bool {
        *self == Anaif::En
    }
    #[doc = "System CPU has not requested clock for ANAIF"]
    #[inline(always)]
    pub fn is_dis(&self) -> bool {
        *self == Anaif::Dis
    }
}
#[doc = "Field `ANAIF` writer - 4:4\\]
Enables (1) or disables (0) clock for AUX_ANAIF. Note that the ADC internal clock must be requested separately using ADCCLKCTL."]
pub type AnaifW<'a, REG> = crate::BitWriter<'a, REG, Anaif>;
impl<'a, REG> AnaifW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "System CPU has requested clock for ANAIF"]
    #[inline(always)]
    pub fn en(self) -> &'a mut crate::W<REG> {
        self.variant(Anaif::En)
    }
    #[doc = "System CPU has not requested clock for ANAIF"]
    #[inline(always)]
    pub fn dis(self) -> &'a mut crate::W<REG> {
        self.variant(Anaif::Dis)
    }
}
#[doc = "5:5\\]
Enables (1) or disables (0) clock for AUX_TDCIF. Note that the TDC counter and reference clock sources must be requested separately using TDCCLKCTL and REFCLKCTL, respectively.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tdc {
    #[doc = "1: System CPU has requested clock for TDC"]
    En = 1,
    #[doc = "0: System CPU has not requested clock for TDC"]
    Dis = 0,
}
impl From<Tdc> for bool {
    #[inline(always)]
    fn from(variant: Tdc) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TDC` reader - 5:5\\]
Enables (1) or disables (0) clock for AUX_TDCIF. Note that the TDC counter and reference clock sources must be requested separately using TDCCLKCTL and REFCLKCTL, respectively."]
pub type TdcR = crate::BitReader<Tdc>;
impl TdcR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tdc {
        match self.bits {
            true => Tdc::En,
            false => Tdc::Dis,
        }
    }
    #[doc = "System CPU has requested clock for TDC"]
    #[inline(always)]
    pub fn is_en(&self) -> bool {
        *self == Tdc::En
    }
    #[doc = "System CPU has not requested clock for TDC"]
    #[inline(always)]
    pub fn is_dis(&self) -> bool {
        *self == Tdc::Dis
    }
}
#[doc = "Field `TDC` writer - 5:5\\]
Enables (1) or disables (0) clock for AUX_TDCIF. Note that the TDC counter and reference clock sources must be requested separately using TDCCLKCTL and REFCLKCTL, respectively."]
pub type TdcW<'a, REG> = crate::BitWriter<'a, REG, Tdc>;
impl<'a, REG> TdcW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "System CPU has requested clock for TDC"]
    #[inline(always)]
    pub fn en(self) -> &'a mut crate::W<REG> {
        self.variant(Tdc::En)
    }
    #[doc = "System CPU has not requested clock for TDC"]
    #[inline(always)]
    pub fn dis(self) -> &'a mut crate::W<REG> {
        self.variant(Tdc::Dis)
    }
}
#[doc = "6:6\\]
Enables (1) or disables (0) clock for AUX_DDI0_OSC.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum AuxDdi0Osc {
    #[doc = "1: System CPU has requested clock for AUX_DDI0_OSC"]
    En = 1,
    #[doc = "0: System CPU has not requested clock for AUX_DDI0_OSC"]
    Dis = 0,
}
impl From<AuxDdi0Osc> for bool {
    #[inline(always)]
    fn from(variant: AuxDdi0Osc) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `AUX_DDI0_OSC` reader - 6:6\\]
Enables (1) or disables (0) clock for AUX_DDI0_OSC."]
pub type AuxDdi0OscR = crate::BitReader<AuxDdi0Osc>;
impl AuxDdi0OscR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> AuxDdi0Osc {
        match self.bits {
            true => AuxDdi0Osc::En,
            false => AuxDdi0Osc::Dis,
        }
    }
    #[doc = "System CPU has requested clock for AUX_DDI0_OSC"]
    #[inline(always)]
    pub fn is_en(&self) -> bool {
        *self == AuxDdi0Osc::En
    }
    #[doc = "System CPU has not requested clock for AUX_DDI0_OSC"]
    #[inline(always)]
    pub fn is_dis(&self) -> bool {
        *self == AuxDdi0Osc::Dis
    }
}
#[doc = "Field `AUX_DDI0_OSC` writer - 6:6\\]
Enables (1) or disables (0) clock for AUX_DDI0_OSC."]
pub type AuxDdi0OscW<'a, REG> = crate::BitWriter<'a, REG, AuxDdi0Osc>;
impl<'a, REG> AuxDdi0OscW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "System CPU has requested clock for AUX_DDI0_OSC"]
    #[inline(always)]
    pub fn en(self) -> &'a mut crate::W<REG> {
        self.variant(AuxDdi0Osc::En)
    }
    #[doc = "System CPU has not requested clock for AUX_DDI0_OSC"]
    #[inline(always)]
    pub fn dis(self) -> &'a mut crate::W<REG> {
        self.variant(AuxDdi0Osc::Dis)
    }
}
#[doc = "7:7\\]
Enables (1) or disables (0) clock for AUX_ADI4.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum AuxAdi4 {
    #[doc = "1: System CPU has requested clock for AUX_ADI4"]
    En = 1,
    #[doc = "0: System CPU has not requested clock for AUX_ADI4"]
    Dis = 0,
}
impl From<AuxAdi4> for bool {
    #[inline(always)]
    fn from(variant: AuxAdi4) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `AUX_ADI4` reader - 7:7\\]
Enables (1) or disables (0) clock for AUX_ADI4."]
pub type AuxAdi4R = crate::BitReader<AuxAdi4>;
impl AuxAdi4R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> AuxAdi4 {
        match self.bits {
            true => AuxAdi4::En,
            false => AuxAdi4::Dis,
        }
    }
    #[doc = "System CPU has requested clock for AUX_ADI4"]
    #[inline(always)]
    pub fn is_en(&self) -> bool {
        *self == AuxAdi4::En
    }
    #[doc = "System CPU has not requested clock for AUX_ADI4"]
    #[inline(always)]
    pub fn is_dis(&self) -> bool {
        *self == AuxAdi4::Dis
    }
}
#[doc = "Field `AUX_ADI4` writer - 7:7\\]
Enables (1) or disables (0) clock for AUX_ADI4."]
pub type AuxAdi4W<'a, REG> = crate::BitWriter<'a, REG, AuxAdi4>;
impl<'a, REG> AuxAdi4W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "System CPU has requested clock for AUX_ADI4"]
    #[inline(always)]
    pub fn en(self) -> &'a mut crate::W<REG> {
        self.variant(AuxAdi4::En)
    }
    #[doc = "System CPU has not requested clock for AUX_ADI4"]
    #[inline(always)]
    pub fn dis(self) -> &'a mut crate::W<REG> {
        self.variant(AuxAdi4::Dis)
    }
}
impl R {
    #[doc = "Bit 0 - 0:0\\]
Enables (1) or disables (0) clock for AUX_SMPH."]
    #[inline(always)]
    pub fn smph(&self) -> SmphR {
        SmphR::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - 1:1\\]
Enables (1) or disables (0) clock for AUX_AIODIO0."]
    #[inline(always)]
    pub fn aiodio0(&self) -> Aiodio0R {
        Aiodio0R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - 2:2\\]
Enables (1) or disables (0) clock for AUX_AIODIO1."]
    #[inline(always)]
    pub fn aiodio1(&self) -> Aiodio1R {
        Aiodio1R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - 3:3\\]
Enables (1) or disables (0) clock for AUX_TIMER."]
    #[inline(always)]
    pub fn timer(&self) -> TimerR {
        TimerR::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - 4:4\\]
Enables (1) or disables (0) clock for AUX_ANAIF. Note that the ADC internal clock must be requested separately using ADCCLKCTL."]
    #[inline(always)]
    pub fn anaif(&self) -> AnaifR {
        AnaifR::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - 5:5\\]
Enables (1) or disables (0) clock for AUX_TDCIF. Note that the TDC counter and reference clock sources must be requested separately using TDCCLKCTL and REFCLKCTL, respectively."]
    #[inline(always)]
    pub fn tdc(&self) -> TdcR {
        TdcR::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - 6:6\\]
Enables (1) or disables (0) clock for AUX_DDI0_OSC."]
    #[inline(always)]
    pub fn aux_ddi0_osc(&self) -> AuxDdi0OscR {
        AuxDdi0OscR::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - 7:7\\]
Enables (1) or disables (0) clock for AUX_ADI4."]
    #[inline(always)]
    pub fn aux_adi4(&self) -> AuxAdi4R {
        AuxAdi4R::new(((self.bits >> 7) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - 0:0\\]
Enables (1) or disables (0) clock for AUX_SMPH."]
    #[inline(always)]
    #[must_use]
    pub fn smph(&mut self) -> SmphW<Modclken0Spec> {
        SmphW::new(self, 0)
    }
    #[doc = "Bit 1 - 1:1\\]
Enables (1) or disables (0) clock for AUX_AIODIO0."]
    #[inline(always)]
    #[must_use]
    pub fn aiodio0(&mut self) -> Aiodio0W<Modclken0Spec> {
        Aiodio0W::new(self, 1)
    }
    #[doc = "Bit 2 - 2:2\\]
Enables (1) or disables (0) clock for AUX_AIODIO1."]
    #[inline(always)]
    #[must_use]
    pub fn aiodio1(&mut self) -> Aiodio1W<Modclken0Spec> {
        Aiodio1W::new(self, 2)
    }
    #[doc = "Bit 3 - 3:3\\]
Enables (1) or disables (0) clock for AUX_TIMER."]
    #[inline(always)]
    #[must_use]
    pub fn timer(&mut self) -> TimerW<Modclken0Spec> {
        TimerW::new(self, 3)
    }
    #[doc = "Bit 4 - 4:4\\]
Enables (1) or disables (0) clock for AUX_ANAIF. Note that the ADC internal clock must be requested separately using ADCCLKCTL."]
    #[inline(always)]
    #[must_use]
    pub fn anaif(&mut self) -> AnaifW<Modclken0Spec> {
        AnaifW::new(self, 4)
    }
    #[doc = "Bit 5 - 5:5\\]
Enables (1) or disables (0) clock for AUX_TDCIF. Note that the TDC counter and reference clock sources must be requested separately using TDCCLKCTL and REFCLKCTL, respectively."]
    #[inline(always)]
    #[must_use]
    pub fn tdc(&mut self) -> TdcW<Modclken0Spec> {
        TdcW::new(self, 5)
    }
    #[doc = "Bit 6 - 6:6\\]
Enables (1) or disables (0) clock for AUX_DDI0_OSC."]
    #[inline(always)]
    #[must_use]
    pub fn aux_ddi0_osc(&mut self) -> AuxDdi0OscW<Modclken0Spec> {
        AuxDdi0OscW::new(self, 6)
    }
    #[doc = "Bit 7 - 7:7\\]
Enables (1) or disables (0) clock for AUX_ADI4."]
    #[inline(always)]
    #[must_use]
    pub fn aux_adi4(&mut self) -> AuxAdi4W<Modclken0Spec> {
        AuxAdi4W::new(self, 7)
    }
}
#[doc = "Module Clock Enable Clock enable for each module in the AUX domain For use by the system CPU The settings in this register are OR'ed with the corresponding settings in MODCLKEN1. This allows the system CPU and AUX_SCE to request clocks independently. Settings take effect immediately.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`modclken0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`modclken0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Modclken0Spec;
impl crate::RegisterSpec for Modclken0Spec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`modclken0::R`](R) reader structure"]
impl crate::Readable for Modclken0Spec {}
#[doc = "`write(|w| ..)` method takes [`modclken0::W`](W) writer structure"]
impl crate::Writable for Modclken0Spec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets MODCLKEN0 to value 0"]
impl crate::Resettable for Modclken0Spec {
    const RESET_VALUE: u32 = 0;
}