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
#[doc = "Register `power` reader"]
pub struct R(crate::R<POWER_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<POWER_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<POWER_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<POWER_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `power` writer"]
pub struct W(crate::W<POWER_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<POWER_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<POWER_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<POWER_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `bg_trim` reader - BG Output Voltage Trimming\n\nOnly low 6-bit is used. The BG output voltage range is from 0.7 V to 1.208 V"]
pub type BG_TRIM_R = crate::FieldReader<u8, u8>;
#[doc = "Field `bg_trim` writer - BG Output Voltage Trimming\n\nOnly low 6-bit is used. The BG output voltage range is from 0.7 V to 1.208 V"]
pub type BG_TRIM_W<'a, const O: u8> = crate::FieldWriter<'a, u32, POWER_SPEC, u8, u8, 8, O>;
#[doc = "Field `hpldo_output_voltage` reader - HPLDO Output Voltage Control"]
pub type HPLDO_OUTPUT_VOLTAGE_R = crate::FieldReader<u8, HPLDO_OUTPUT_VOLTAGE_A>;
#[doc = "HPLDO Output Voltage Control\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum HPLDO_OUTPUT_VOLTAGE_A {
    #[doc = "0: `0`"]
    V165 = 0,
    #[doc = "1: `1`"]
    V170 = 1,
    #[doc = "2: `10`"]
    V175 = 2,
    #[doc = "3: `11`"]
    V180 = 3,
    #[doc = "4: `100`"]
    V185 = 4,
    #[doc = "5: `101`"]
    V190 = 5,
    #[doc = "6: `110`"]
    V195 = 6,
    #[doc = "7: `111`"]
    V200 = 7,
}
impl From<HPLDO_OUTPUT_VOLTAGE_A> for u8 {
    #[inline(always)]
    fn from(variant: HPLDO_OUTPUT_VOLTAGE_A) -> Self {
        variant as _
    }
}
impl HPLDO_OUTPUT_VOLTAGE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> HPLDO_OUTPUT_VOLTAGE_A {
        match self.bits {
            0 => HPLDO_OUTPUT_VOLTAGE_A::V165,
            1 => HPLDO_OUTPUT_VOLTAGE_A::V170,
            2 => HPLDO_OUTPUT_VOLTAGE_A::V175,
            3 => HPLDO_OUTPUT_VOLTAGE_A::V180,
            4 => HPLDO_OUTPUT_VOLTAGE_A::V185,
            5 => HPLDO_OUTPUT_VOLTAGE_A::V190,
            6 => HPLDO_OUTPUT_VOLTAGE_A::V195,
            7 => HPLDO_OUTPUT_VOLTAGE_A::V200,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `V165`"]
    #[inline(always)]
    pub fn is_v165(&self) -> bool {
        *self == HPLDO_OUTPUT_VOLTAGE_A::V165
    }
    #[doc = "Checks if the value of the field is `V170`"]
    #[inline(always)]
    pub fn is_v170(&self) -> bool {
        *self == HPLDO_OUTPUT_VOLTAGE_A::V170
    }
    #[doc = "Checks if the value of the field is `V175`"]
    #[inline(always)]
    pub fn is_v175(&self) -> bool {
        *self == HPLDO_OUTPUT_VOLTAGE_A::V175
    }
    #[doc = "Checks if the value of the field is `V180`"]
    #[inline(always)]
    pub fn is_v180(&self) -> bool {
        *self == HPLDO_OUTPUT_VOLTAGE_A::V180
    }
    #[doc = "Checks if the value of the field is `V185`"]
    #[inline(always)]
    pub fn is_v185(&self) -> bool {
        *self == HPLDO_OUTPUT_VOLTAGE_A::V185
    }
    #[doc = "Checks if the value of the field is `V190`"]
    #[inline(always)]
    pub fn is_v190(&self) -> bool {
        *self == HPLDO_OUTPUT_VOLTAGE_A::V190
    }
    #[doc = "Checks if the value of the field is `V195`"]
    #[inline(always)]
    pub fn is_v195(&self) -> bool {
        *self == HPLDO_OUTPUT_VOLTAGE_A::V195
    }
    #[doc = "Checks if the value of the field is `V200`"]
    #[inline(always)]
    pub fn is_v200(&self) -> bool {
        *self == HPLDO_OUTPUT_VOLTAGE_A::V200
    }
}
#[doc = "Field `hpldo_output_voltage` writer - HPLDO Output Voltage Control"]
pub type HPLDO_OUTPUT_VOLTAGE_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, POWER_SPEC, u8, HPLDO_OUTPUT_VOLTAGE_A, 3, O>;
impl<'a, const O: u8> HPLDO_OUTPUT_VOLTAGE_W<'a, O> {
    #[doc = "`0`"]
    #[inline(always)]
    pub fn v165(self) -> &'a mut W {
        self.variant(HPLDO_OUTPUT_VOLTAGE_A::V165)
    }
    #[doc = "`1`"]
    #[inline(always)]
    pub fn v170(self) -> &'a mut W {
        self.variant(HPLDO_OUTPUT_VOLTAGE_A::V170)
    }
    #[doc = "`10`"]
    #[inline(always)]
    pub fn v175(self) -> &'a mut W {
        self.variant(HPLDO_OUTPUT_VOLTAGE_A::V175)
    }
    #[doc = "`11`"]
    #[inline(always)]
    pub fn v180(self) -> &'a mut W {
        self.variant(HPLDO_OUTPUT_VOLTAGE_A::V180)
    }
    #[doc = "`100`"]
    #[inline(always)]
    pub fn v185(self) -> &'a mut W {
        self.variant(HPLDO_OUTPUT_VOLTAGE_A::V185)
    }
    #[doc = "`101`"]
    #[inline(always)]
    pub fn v190(self) -> &'a mut W {
        self.variant(HPLDO_OUTPUT_VOLTAGE_A::V190)
    }
    #[doc = "`110`"]
    #[inline(always)]
    pub fn v195(self) -> &'a mut W {
        self.variant(HPLDO_OUTPUT_VOLTAGE_A::V195)
    }
    #[doc = "`111`"]
    #[inline(always)]
    pub fn v200(self) -> &'a mut W {
        self.variant(HPLDO_OUTPUT_VOLTAGE_A::V200)
    }
}
#[doc = "Field `aldo_output_voltage` reader - ALDO Output Voltage Control"]
pub type ALDO_OUTPUT_VOLTAGE_R = crate::FieldReader<u8, ALDO_OUTPUT_VOLTAGE_A>;
#[doc = "ALDO Output Voltage Control\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum ALDO_OUTPUT_VOLTAGE_A {
    #[doc = "0: `0`"]
    V165 = 0,
    #[doc = "1: `1`"]
    V170 = 1,
    #[doc = "2: `10`"]
    V175 = 2,
    #[doc = "3: `11`"]
    V180 = 3,
    #[doc = "4: `100`"]
    V185 = 4,
    #[doc = "5: `101`"]
    V190 = 5,
    #[doc = "6: `110`"]
    V195 = 6,
    #[doc = "7: `111`"]
    V200 = 7,
}
impl From<ALDO_OUTPUT_VOLTAGE_A> for u8 {
    #[inline(always)]
    fn from(variant: ALDO_OUTPUT_VOLTAGE_A) -> Self {
        variant as _
    }
}
impl ALDO_OUTPUT_VOLTAGE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ALDO_OUTPUT_VOLTAGE_A {
        match self.bits {
            0 => ALDO_OUTPUT_VOLTAGE_A::V165,
            1 => ALDO_OUTPUT_VOLTAGE_A::V170,
            2 => ALDO_OUTPUT_VOLTAGE_A::V175,
            3 => ALDO_OUTPUT_VOLTAGE_A::V180,
            4 => ALDO_OUTPUT_VOLTAGE_A::V185,
            5 => ALDO_OUTPUT_VOLTAGE_A::V190,
            6 => ALDO_OUTPUT_VOLTAGE_A::V195,
            7 => ALDO_OUTPUT_VOLTAGE_A::V200,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `V165`"]
    #[inline(always)]
    pub fn is_v165(&self) -> bool {
        *self == ALDO_OUTPUT_VOLTAGE_A::V165
    }
    #[doc = "Checks if the value of the field is `V170`"]
    #[inline(always)]
    pub fn is_v170(&self) -> bool {
        *self == ALDO_OUTPUT_VOLTAGE_A::V170
    }
    #[doc = "Checks if the value of the field is `V175`"]
    #[inline(always)]
    pub fn is_v175(&self) -> bool {
        *self == ALDO_OUTPUT_VOLTAGE_A::V175
    }
    #[doc = "Checks if the value of the field is `V180`"]
    #[inline(always)]
    pub fn is_v180(&self) -> bool {
        *self == ALDO_OUTPUT_VOLTAGE_A::V180
    }
    #[doc = "Checks if the value of the field is `V185`"]
    #[inline(always)]
    pub fn is_v185(&self) -> bool {
        *self == ALDO_OUTPUT_VOLTAGE_A::V185
    }
    #[doc = "Checks if the value of the field is `V190`"]
    #[inline(always)]
    pub fn is_v190(&self) -> bool {
        *self == ALDO_OUTPUT_VOLTAGE_A::V190
    }
    #[doc = "Checks if the value of the field is `V195`"]
    #[inline(always)]
    pub fn is_v195(&self) -> bool {
        *self == ALDO_OUTPUT_VOLTAGE_A::V195
    }
    #[doc = "Checks if the value of the field is `V200`"]
    #[inline(always)]
    pub fn is_v200(&self) -> bool {
        *self == ALDO_OUTPUT_VOLTAGE_A::V200
    }
}
#[doc = "Field `aldo_output_voltage` writer - ALDO Output Voltage Control"]
pub type ALDO_OUTPUT_VOLTAGE_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, POWER_SPEC, u8, ALDO_OUTPUT_VOLTAGE_A, 3, O>;
impl<'a, const O: u8> ALDO_OUTPUT_VOLTAGE_W<'a, O> {
    #[doc = "`0`"]
    #[inline(always)]
    pub fn v165(self) -> &'a mut W {
        self.variant(ALDO_OUTPUT_VOLTAGE_A::V165)
    }
    #[doc = "`1`"]
    #[inline(always)]
    pub fn v170(self) -> &'a mut W {
        self.variant(ALDO_OUTPUT_VOLTAGE_A::V170)
    }
    #[doc = "`10`"]
    #[inline(always)]
    pub fn v175(self) -> &'a mut W {
        self.variant(ALDO_OUTPUT_VOLTAGE_A::V175)
    }
    #[doc = "`11`"]
    #[inline(always)]
    pub fn v180(self) -> &'a mut W {
        self.variant(ALDO_OUTPUT_VOLTAGE_A::V180)
    }
    #[doc = "`100`"]
    #[inline(always)]
    pub fn v185(self) -> &'a mut W {
        self.variant(ALDO_OUTPUT_VOLTAGE_A::V185)
    }
    #[doc = "`101`"]
    #[inline(always)]
    pub fn v190(self) -> &'a mut W {
        self.variant(ALDO_OUTPUT_VOLTAGE_A::V190)
    }
    #[doc = "`110`"]
    #[inline(always)]
    pub fn v195(self) -> &'a mut W {
        self.variant(ALDO_OUTPUT_VOLTAGE_A::V195)
    }
    #[doc = "`111`"]
    #[inline(always)]
    pub fn v200(self) -> &'a mut W {
        self.variant(ALDO_OUTPUT_VOLTAGE_A::V200)
    }
}
#[doc = "Field `avccpor` reader - AVCCPOR Monitor"]
pub type AVCCPOR_R = crate::BitReader<bool>;
#[doc = "Field `var1speedup_further_ctrl` reader - VRA1 Speedup Down Further Control In Adda Analog"]
pub type VAR1SPEEDUP_FURTHER_CTRL_R = crate::BitReader<VAR1SPEEDUP_FURTHER_CTRL_A>;
#[doc = "VRA1 Speedup Down Further Control In Adda Analog\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum VAR1SPEEDUP_FURTHER_CTRL_A {
    #[doc = "0: `0`"]
    DIGITAL = 0,
    #[doc = "1: `1`"]
    MANUAL = 1,
}
impl From<VAR1SPEEDUP_FURTHER_CTRL_A> for bool {
    #[inline(always)]
    fn from(variant: VAR1SPEEDUP_FURTHER_CTRL_A) -> Self {
        variant as u8 != 0
    }
}
impl VAR1SPEEDUP_FURTHER_CTRL_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> VAR1SPEEDUP_FURTHER_CTRL_A {
        match self.bits {
            false => VAR1SPEEDUP_FURTHER_CTRL_A::DIGITAL,
            true => VAR1SPEEDUP_FURTHER_CTRL_A::MANUAL,
        }
    }
    #[doc = "Checks if the value of the field is `DIGITAL`"]
    #[inline(always)]
    pub fn is_digital(&self) -> bool {
        *self == VAR1SPEEDUP_FURTHER_CTRL_A::DIGITAL
    }
    #[doc = "Checks if the value of the field is `MANUAL`"]
    #[inline(always)]
    pub fn is_manual(&self) -> bool {
        *self == VAR1SPEEDUP_FURTHER_CTRL_A::MANUAL
    }
}
#[doc = "Field `var1speedup_further_ctrl` writer - VRA1 Speedup Down Further Control In Adda Analog"]
pub type VAR1SPEEDUP_FURTHER_CTRL_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, POWER_SPEC, VAR1SPEEDUP_FURTHER_CTRL_A, O>;
impl<'a, const O: u8> VAR1SPEEDUP_FURTHER_CTRL_W<'a, O> {
    #[doc = "`0`"]
    #[inline(always)]
    pub fn digital(self) -> &'a mut W {
        self.variant(VAR1SPEEDUP_FURTHER_CTRL_A::DIGITAL)
    }
    #[doc = "`1`"]
    #[inline(always)]
    pub fn manual(self) -> &'a mut W {
        self.variant(VAR1SPEEDUP_FURTHER_CTRL_A::MANUAL)
    }
}
#[doc = "Field `hpldo_en` reader - HPLDO Enable"]
pub type HPLDO_EN_R = crate::BitReader<HPLDO_EN_A>;
#[doc = "HPLDO Enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum HPLDO_EN_A {
    #[doc = "0: `0`"]
    DISABLE = 0,
    #[doc = "1: `1`"]
    ENABLE = 1,
}
impl From<HPLDO_EN_A> for bool {
    #[inline(always)]
    fn from(variant: HPLDO_EN_A) -> Self {
        variant as u8 != 0
    }
}
impl HPLDO_EN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> HPLDO_EN_A {
        match self.bits {
            false => HPLDO_EN_A::DISABLE,
            true => HPLDO_EN_A::ENABLE,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLE`"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == HPLDO_EN_A::DISABLE
    }
    #[doc = "Checks if the value of the field is `ENABLE`"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == HPLDO_EN_A::ENABLE
    }
}
#[doc = "Field `hpldo_en` writer - HPLDO Enable"]
pub type HPLDO_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWER_SPEC, HPLDO_EN_A, O>;
impl<'a, const O: u8> HPLDO_EN_W<'a, O> {
    #[doc = "`0`"]
    #[inline(always)]
    pub fn disable(self) -> &'a mut W {
        self.variant(HPLDO_EN_A::DISABLE)
    }
    #[doc = "`1`"]
    #[inline(always)]
    pub fn enable(self) -> &'a mut W {
        self.variant(HPLDO_EN_A::ENABLE)
    }
}
#[doc = "Field `aldo_en` reader - ALDO Enable"]
pub type ALDO_EN_R = crate::BitReader<ALDO_EN_A>;
#[doc = "ALDO Enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ALDO_EN_A {
    #[doc = "0: `0`"]
    DISABLE = 0,
    #[doc = "1: `1`"]
    ENABLE = 1,
}
impl From<ALDO_EN_A> for bool {
    #[inline(always)]
    fn from(variant: ALDO_EN_A) -> Self {
        variant as u8 != 0
    }
}
impl ALDO_EN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ALDO_EN_A {
        match self.bits {
            false => ALDO_EN_A::DISABLE,
            true => ALDO_EN_A::ENABLE,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLE`"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == ALDO_EN_A::DISABLE
    }
    #[doc = "Checks if the value of the field is `ENABLE`"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == ALDO_EN_A::ENABLE
    }
}
#[doc = "Field `aldo_en` writer - ALDO Enable"]
pub type ALDO_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWER_SPEC, ALDO_EN_A, O>;
impl<'a, const O: u8> ALDO_EN_W<'a, O> {
    #[doc = "`0`"]
    #[inline(always)]
    pub fn disable(self) -> &'a mut W {
        self.variant(ALDO_EN_A::DISABLE)
    }
    #[doc = "`1`"]
    #[inline(always)]
    pub fn enable(self) -> &'a mut W {
        self.variant(ALDO_EN_A::ENABLE)
    }
}
impl R {
    #[doc = "Bits 0:7 - BG Output Voltage Trimming\n\nOnly low 6-bit is used. The BG output voltage range is from 0.7 V to 1.208 V"]
    #[inline(always)]
    pub fn bg_trim(&self) -> BG_TRIM_R {
        BG_TRIM_R::new((self.bits & 0xff) as u8)
    }
    #[doc = "Bits 8:10 - HPLDO Output Voltage Control"]
    #[inline(always)]
    pub fn hpldo_output_voltage(&self) -> HPLDO_OUTPUT_VOLTAGE_R {
        HPLDO_OUTPUT_VOLTAGE_R::new(((self.bits >> 8) & 7) as u8)
    }
    #[doc = "Bits 12:14 - ALDO Output Voltage Control"]
    #[inline(always)]
    pub fn aldo_output_voltage(&self) -> ALDO_OUTPUT_VOLTAGE_R {
        ALDO_OUTPUT_VOLTAGE_R::new(((self.bits >> 12) & 7) as u8)
    }
    #[doc = "Bit 16 - AVCCPOR Monitor"]
    #[inline(always)]
    pub fn avccpor(&self) -> AVCCPOR_R {
        AVCCPOR_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 29 - VRA1 Speedup Down Further Control In Adda Analog"]
    #[inline(always)]
    pub fn var1speedup_further_ctrl(&self) -> VAR1SPEEDUP_FURTHER_CTRL_R {
        VAR1SPEEDUP_FURTHER_CTRL_R::new(((self.bits >> 29) & 1) != 0)
    }
    #[doc = "Bit 30 - HPLDO Enable"]
    #[inline(always)]
    pub fn hpldo_en(&self) -> HPLDO_EN_R {
        HPLDO_EN_R::new(((self.bits >> 30) & 1) != 0)
    }
    #[doc = "Bit 31 - ALDO Enable"]
    #[inline(always)]
    pub fn aldo_en(&self) -> ALDO_EN_R {
        ALDO_EN_R::new(((self.bits >> 31) & 1) != 0)
    }
}
impl W {
    #[doc = "Bits 0:7 - BG Output Voltage Trimming\n\nOnly low 6-bit is used. The BG output voltage range is from 0.7 V to 1.208 V"]
    #[inline(always)]
    #[must_use]
    pub fn bg_trim(&mut self) -> BG_TRIM_W<0> {
        BG_TRIM_W::new(self)
    }
    #[doc = "Bits 8:10 - HPLDO Output Voltage Control"]
    #[inline(always)]
    #[must_use]
    pub fn hpldo_output_voltage(&mut self) -> HPLDO_OUTPUT_VOLTAGE_W<8> {
        HPLDO_OUTPUT_VOLTAGE_W::new(self)
    }
    #[doc = "Bits 12:14 - ALDO Output Voltage Control"]
    #[inline(always)]
    #[must_use]
    pub fn aldo_output_voltage(&mut self) -> ALDO_OUTPUT_VOLTAGE_W<12> {
        ALDO_OUTPUT_VOLTAGE_W::new(self)
    }
    #[doc = "Bit 29 - VRA1 Speedup Down Further Control In Adda Analog"]
    #[inline(always)]
    #[must_use]
    pub fn var1speedup_further_ctrl(&mut self) -> VAR1SPEEDUP_FURTHER_CTRL_W<29> {
        VAR1SPEEDUP_FURTHER_CTRL_W::new(self)
    }
    #[doc = "Bit 30 - HPLDO Enable"]
    #[inline(always)]
    #[must_use]
    pub fn hpldo_en(&mut self) -> HPLDO_EN_W<30> {
        HPLDO_EN_W::new(self)
    }
    #[doc = "Bit 31 - ALDO Enable"]
    #[inline(always)]
    #[must_use]
    pub fn aldo_en(&mut self) -> ALDO_EN_W<31> {
        ALDO_EN_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 = "POWER Analog Control Register\n\nThe register is not controlled by the clock and reset of Audio Codec, only controlled by the clock and reset of system bus.\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 [power](index.html) module"]
pub struct POWER_SPEC;
impl crate::RegisterSpec for POWER_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [power::R](R) reader structure"]
impl crate::Readable for POWER_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [power::W](W) writer structure"]
impl crate::Writable for POWER_SPEC {
    type Writer = W;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets power to value 0"]
impl crate::Resettable for POWER_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}