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
#[doc = "Register `PSSCTL0` reader"]
pub struct R(crate::R<PSSCTL0_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<PSSCTL0_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<PSSCTL0_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<PSSCTL0_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `PSSCTL0` writer"]
pub struct W(crate::W<PSSCTL0_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<PSSCTL0_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<PSSCTL0_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<PSSCTL0_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "SVSM high-side off\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SVSMHOFF_A {
    #[doc = "0: The SVSMH is on"]
    SVSMHOFF_0 = 0,
    #[doc = "1: The SVSMH is off"]
    SVSMHOFF_1 = 1,
}
impl From<SVSMHOFF_A> for bool {
    #[inline(always)]
    fn from(variant: SVSMHOFF_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `SVSMHOFF` reader - SVSM high-side off"]
pub type SVSMHOFF_R = crate::BitReader<SVSMHOFF_A>;
impl SVSMHOFF_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> SVSMHOFF_A {
        match self.bits {
            false => SVSMHOFF_A::SVSMHOFF_0,
            true => SVSMHOFF_A::SVSMHOFF_1,
        }
    }
    #[doc = "Checks if the value of the field is `SVSMHOFF_0`"]
    #[inline(always)]
    pub fn is_svsmhoff_0(&self) -> bool {
        *self == SVSMHOFF_A::SVSMHOFF_0
    }
    #[doc = "Checks if the value of the field is `SVSMHOFF_1`"]
    #[inline(always)]
    pub fn is_svsmhoff_1(&self) -> bool {
        *self == SVSMHOFF_A::SVSMHOFF_1
    }
}
#[doc = "Field `SVSMHOFF` writer - SVSM high-side off"]
pub type SVSMHOFF_W<'a, const O: u8> = crate::BitWriter<'a, u32, PSSCTL0_SPEC, SVSMHOFF_A, O>;
impl<'a, const O: u8> SVSMHOFF_W<'a, O> {
    #[doc = "The SVSMH is on"]
    #[inline(always)]
    pub fn svsmhoff_0(self) -> &'a mut W {
        self.variant(SVSMHOFF_A::SVSMHOFF_0)
    }
    #[doc = "The SVSMH is off"]
    #[inline(always)]
    pub fn svsmhoff_1(self) -> &'a mut W {
        self.variant(SVSMHOFF_A::SVSMHOFF_1)
    }
}
#[doc = "SVSM high-side low power normal performance mode\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SVSMHLP_A {
    #[doc = "0: Full performance mode. See the device-specific data sheet for response times."]
    SVSMHLP_0 = 0,
    #[doc = "1: Low power normal performance mode in LPM3, LPM4, and LPMx.5, full performance in all other modes. See the device-specific data sheet for response times."]
    SVSMHLP_1 = 1,
}
impl From<SVSMHLP_A> for bool {
    #[inline(always)]
    fn from(variant: SVSMHLP_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `SVSMHLP` reader - SVSM high-side low power normal performance mode"]
pub type SVSMHLP_R = crate::BitReader<SVSMHLP_A>;
impl SVSMHLP_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> SVSMHLP_A {
        match self.bits {
            false => SVSMHLP_A::SVSMHLP_0,
            true => SVSMHLP_A::SVSMHLP_1,
        }
    }
    #[doc = "Checks if the value of the field is `SVSMHLP_0`"]
    #[inline(always)]
    pub fn is_svsmhlp_0(&self) -> bool {
        *self == SVSMHLP_A::SVSMHLP_0
    }
    #[doc = "Checks if the value of the field is `SVSMHLP_1`"]
    #[inline(always)]
    pub fn is_svsmhlp_1(&self) -> bool {
        *self == SVSMHLP_A::SVSMHLP_1
    }
}
#[doc = "Field `SVSMHLP` writer - SVSM high-side low power normal performance mode"]
pub type SVSMHLP_W<'a, const O: u8> = crate::BitWriter<'a, u32, PSSCTL0_SPEC, SVSMHLP_A, O>;
impl<'a, const O: u8> SVSMHLP_W<'a, O> {
    #[doc = "Full performance mode. See the device-specific data sheet for response times."]
    #[inline(always)]
    pub fn svsmhlp_0(self) -> &'a mut W {
        self.variant(SVSMHLP_A::SVSMHLP_0)
    }
    #[doc = "Low power normal performance mode in LPM3, LPM4, and LPMx.5, full performance in all other modes. See the device-specific data sheet for response times."]
    #[inline(always)]
    pub fn svsmhlp_1(self) -> &'a mut W {
        self.variant(SVSMHLP_A::SVSMHLP_1)
    }
}
#[doc = "Supply supervisor or monitor selection for the high-side\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SVSMHS_A {
    #[doc = "0: Configure as SVSH"]
    SVSMHS_0 = 0,
    #[doc = "1: Configure as SVMH"]
    SVSMHS_1 = 1,
}
impl From<SVSMHS_A> for bool {
    #[inline(always)]
    fn from(variant: SVSMHS_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `SVSMHS` reader - Supply supervisor or monitor selection for the high-side"]
pub type SVSMHS_R = crate::BitReader<SVSMHS_A>;
impl SVSMHS_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> SVSMHS_A {
        match self.bits {
            false => SVSMHS_A::SVSMHS_0,
            true => SVSMHS_A::SVSMHS_1,
        }
    }
    #[doc = "Checks if the value of the field is `SVSMHS_0`"]
    #[inline(always)]
    pub fn is_svsmhs_0(&self) -> bool {
        *self == SVSMHS_A::SVSMHS_0
    }
    #[doc = "Checks if the value of the field is `SVSMHS_1`"]
    #[inline(always)]
    pub fn is_svsmhs_1(&self) -> bool {
        *self == SVSMHS_A::SVSMHS_1
    }
}
#[doc = "Field `SVSMHS` writer - Supply supervisor or monitor selection for the high-side"]
pub type SVSMHS_W<'a, const O: u8> = crate::BitWriter<'a, u32, PSSCTL0_SPEC, SVSMHS_A, O>;
impl<'a, const O: u8> SVSMHS_W<'a, O> {
    #[doc = "Configure as SVSH"]
    #[inline(always)]
    pub fn svsmhs_0(self) -> &'a mut W {
        self.variant(SVSMHS_A::SVSMHS_0)
    }
    #[doc = "Configure as SVMH"]
    #[inline(always)]
    pub fn svsmhs_1(self) -> &'a mut W {
        self.variant(SVSMHS_A::SVSMHS_1)
    }
}
#[doc = "Field `SVSMHTH` reader - SVSM high-side reset voltage level"]
pub type SVSMHTH_R = crate::FieldReader<u8, u8>;
#[doc = "Field `SVSMHTH` writer - SVSM high-side reset voltage level"]
pub type SVSMHTH_W<'a, const O: u8> = crate::FieldWriter<'a, u32, PSSCTL0_SPEC, u8, u8, 3, O>;
#[doc = "SVSM high-side output enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SVMHOE_A {
    #[doc = "0: SVSMHIFG bit is not output"]
    SVMHOE_0 = 0,
    #[doc = "1: SVSMHIFG bit is output to the device SVMHOUT pin. The device-specific port logic must be configured accordingly"]
    SVMHOE_1 = 1,
}
impl From<SVMHOE_A> for bool {
    #[inline(always)]
    fn from(variant: SVMHOE_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `SVMHOE` reader - SVSM high-side output enable"]
pub type SVMHOE_R = crate::BitReader<SVMHOE_A>;
impl SVMHOE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> SVMHOE_A {
        match self.bits {
            false => SVMHOE_A::SVMHOE_0,
            true => SVMHOE_A::SVMHOE_1,
        }
    }
    #[doc = "Checks if the value of the field is `SVMHOE_0`"]
    #[inline(always)]
    pub fn is_svmhoe_0(&self) -> bool {
        *self == SVMHOE_A::SVMHOE_0
    }
    #[doc = "Checks if the value of the field is `SVMHOE_1`"]
    #[inline(always)]
    pub fn is_svmhoe_1(&self) -> bool {
        *self == SVMHOE_A::SVMHOE_1
    }
}
#[doc = "Field `SVMHOE` writer - SVSM high-side output enable"]
pub type SVMHOE_W<'a, const O: u8> = crate::BitWriter<'a, u32, PSSCTL0_SPEC, SVMHOE_A, O>;
impl<'a, const O: u8> SVMHOE_W<'a, O> {
    #[doc = "SVSMHIFG bit is not output"]
    #[inline(always)]
    pub fn svmhoe_0(self) -> &'a mut W {
        self.variant(SVMHOE_A::SVMHOE_0)
    }
    #[doc = "SVSMHIFG bit is output to the device SVMHOUT pin. The device-specific port logic must be configured accordingly"]
    #[inline(always)]
    pub fn svmhoe_1(self) -> &'a mut W {
        self.variant(SVMHOE_A::SVMHOE_1)
    }
}
#[doc = "SVMHOUT pin polarity active low\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SVMHOUTPOLAL_A {
    #[doc = "0: SVMHOUT is active high. An error condition is signaled by a 1 at the SVMHOUT pin"]
    SVMHOUTPOLAL_0 = 0,
    #[doc = "1: SVMHOUT is active low. An error condition is signaled by a 0 at the SVMHOUT pin"]
    SVMHOUTPOLAL_1 = 1,
}
impl From<SVMHOUTPOLAL_A> for bool {
    #[inline(always)]
    fn from(variant: SVMHOUTPOLAL_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `SVMHOUTPOLAL` reader - SVMHOUT pin polarity active low"]
pub type SVMHOUTPOLAL_R = crate::BitReader<SVMHOUTPOLAL_A>;
impl SVMHOUTPOLAL_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> SVMHOUTPOLAL_A {
        match self.bits {
            false => SVMHOUTPOLAL_A::SVMHOUTPOLAL_0,
            true => SVMHOUTPOLAL_A::SVMHOUTPOLAL_1,
        }
    }
    #[doc = "Checks if the value of the field is `SVMHOUTPOLAL_0`"]
    #[inline(always)]
    pub fn is_svmhoutpolal_0(&self) -> bool {
        *self == SVMHOUTPOLAL_A::SVMHOUTPOLAL_0
    }
    #[doc = "Checks if the value of the field is `SVMHOUTPOLAL_1`"]
    #[inline(always)]
    pub fn is_svmhoutpolal_1(&self) -> bool {
        *self == SVMHOUTPOLAL_A::SVMHOUTPOLAL_1
    }
}
#[doc = "Field `SVMHOUTPOLAL` writer - SVMHOUT pin polarity active low"]
pub type SVMHOUTPOLAL_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, PSSCTL0_SPEC, SVMHOUTPOLAL_A, O>;
impl<'a, const O: u8> SVMHOUTPOLAL_W<'a, O> {
    #[doc = "SVMHOUT is active high. An error condition is signaled by a 1 at the SVMHOUT pin"]
    #[inline(always)]
    pub fn svmhoutpolal_0(self) -> &'a mut W {
        self.variant(SVMHOUTPOLAL_A::SVMHOUTPOLAL_0)
    }
    #[doc = "SVMHOUT is active low. An error condition is signaled by a 0 at the SVMHOUT pin"]
    #[inline(always)]
    pub fn svmhoutpolal_1(self) -> &'a mut W {
        self.variant(SVMHOUTPOLAL_A::SVMHOUTPOLAL_1)
    }
}
#[doc = "Force DC-DC regulator operation\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DCDC_FORCE_A {
    #[doc = "0: DC-DC regulator operation not forced. Automatic fail-safe mechanism switches the core voltage regulator from DC-DC to LDO when the supply voltage falls below the minimum supply voltage necessary for DC-DC operation."]
    DCDC_FORCE_0 = 0,
    #[doc = "1: DC-DC regulator operation forced. Automatic fail-safe mechanism is disabled and device continues to operate out of DC-DC regulator."]
    DCDC_FORCE_1 = 1,
}
impl From<DCDC_FORCE_A> for bool {
    #[inline(always)]
    fn from(variant: DCDC_FORCE_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `DCDC_FORCE` reader - Force DC-DC regulator operation"]
pub type DCDC_FORCE_R = crate::BitReader<DCDC_FORCE_A>;
impl DCDC_FORCE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> DCDC_FORCE_A {
        match self.bits {
            false => DCDC_FORCE_A::DCDC_FORCE_0,
            true => DCDC_FORCE_A::DCDC_FORCE_1,
        }
    }
    #[doc = "Checks if the value of the field is `DCDC_FORCE_0`"]
    #[inline(always)]
    pub fn is_dcdc_force_0(&self) -> bool {
        *self == DCDC_FORCE_A::DCDC_FORCE_0
    }
    #[doc = "Checks if the value of the field is `DCDC_FORCE_1`"]
    #[inline(always)]
    pub fn is_dcdc_force_1(&self) -> bool {
        *self == DCDC_FORCE_A::DCDC_FORCE_1
    }
}
#[doc = "Field `DCDC_FORCE` writer - Force DC-DC regulator operation"]
pub type DCDC_FORCE_W<'a, const O: u8> = crate::BitWriter<'a, u32, PSSCTL0_SPEC, DCDC_FORCE_A, O>;
impl<'a, const O: u8> DCDC_FORCE_W<'a, O> {
    #[doc = "DC-DC regulator operation not forced. Automatic fail-safe mechanism switches the core voltage regulator from DC-DC to LDO when the supply voltage falls below the minimum supply voltage necessary for DC-DC operation."]
    #[inline(always)]
    pub fn dcdc_force_0(self) -> &'a mut W {
        self.variant(DCDC_FORCE_A::DCDC_FORCE_0)
    }
    #[doc = "DC-DC regulator operation forced. Automatic fail-safe mechanism is disabled and device continues to operate out of DC-DC regulator."]
    #[inline(always)]
    pub fn dcdc_force_1(self) -> &'a mut W {
        self.variant(DCDC_FORCE_A::DCDC_FORCE_1)
    }
}
#[doc = "Controls core voltage level transition time\n\nValue on reset: 2"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum VCORETRAN_A {
    #[doc = "0: 32 s / 100 mV"]
    VCORETRAN_0 = 0,
    #[doc = "1: 64 s / 100 mV"]
    VCORETRAN_1 = 1,
    #[doc = "2: 128 s / 100 mV (default)"]
    VCORETRAN_2 = 2,
    #[doc = "3: 256 s / 100 mV"]
    VCORETRAN_3 = 3,
}
impl From<VCORETRAN_A> for u8 {
    #[inline(always)]
    fn from(variant: VCORETRAN_A) -> Self {
        variant as _
    }
}
#[doc = "Field `VCORETRAN` reader - Controls core voltage level transition time"]
pub type VCORETRAN_R = crate::FieldReader<u8, VCORETRAN_A>;
impl VCORETRAN_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> VCORETRAN_A {
        match self.bits {
            0 => VCORETRAN_A::VCORETRAN_0,
            1 => VCORETRAN_A::VCORETRAN_1,
            2 => VCORETRAN_A::VCORETRAN_2,
            3 => VCORETRAN_A::VCORETRAN_3,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `VCORETRAN_0`"]
    #[inline(always)]
    pub fn is_vcoretran_0(&self) -> bool {
        *self == VCORETRAN_A::VCORETRAN_0
    }
    #[doc = "Checks if the value of the field is `VCORETRAN_1`"]
    #[inline(always)]
    pub fn is_vcoretran_1(&self) -> bool {
        *self == VCORETRAN_A::VCORETRAN_1
    }
    #[doc = "Checks if the value of the field is `VCORETRAN_2`"]
    #[inline(always)]
    pub fn is_vcoretran_2(&self) -> bool {
        *self == VCORETRAN_A::VCORETRAN_2
    }
    #[doc = "Checks if the value of the field is `VCORETRAN_3`"]
    #[inline(always)]
    pub fn is_vcoretran_3(&self) -> bool {
        *self == VCORETRAN_A::VCORETRAN_3
    }
}
#[doc = "Field `VCORETRAN` writer - Controls core voltage level transition time"]
pub type VCORETRAN_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, PSSCTL0_SPEC, u8, VCORETRAN_A, 2, O>;
impl<'a, const O: u8> VCORETRAN_W<'a, O> {
    #[doc = "32 s / 100 mV"]
    #[inline(always)]
    pub fn vcoretran_0(self) -> &'a mut W {
        self.variant(VCORETRAN_A::VCORETRAN_0)
    }
    #[doc = "64 s / 100 mV"]
    #[inline(always)]
    pub fn vcoretran_1(self) -> &'a mut W {
        self.variant(VCORETRAN_A::VCORETRAN_1)
    }
    #[doc = "128 s / 100 mV (default)"]
    #[inline(always)]
    pub fn vcoretran_2(self) -> &'a mut W {
        self.variant(VCORETRAN_A::VCORETRAN_2)
    }
    #[doc = "256 s / 100 mV"]
    #[inline(always)]
    pub fn vcoretran_3(self) -> &'a mut W {
        self.variant(VCORETRAN_A::VCORETRAN_3)
    }
}
impl R {
    #[doc = "Bit 0 - SVSM high-side off"]
    #[inline(always)]
    pub fn svsmhoff(&self) -> SVSMHOFF_R {
        SVSMHOFF_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - SVSM high-side low power normal performance mode"]
    #[inline(always)]
    pub fn svsmhlp(&self) -> SVSMHLP_R {
        SVSMHLP_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Supply supervisor or monitor selection for the high-side"]
    #[inline(always)]
    pub fn svsmhs(&self) -> SVSMHS_R {
        SVSMHS_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bits 3:5 - SVSM high-side reset voltage level"]
    #[inline(always)]
    pub fn svsmhth(&self) -> SVSMHTH_R {
        SVSMHTH_R::new(((self.bits >> 3) & 7) as u8)
    }
    #[doc = "Bit 6 - SVSM high-side output enable"]
    #[inline(always)]
    pub fn svmhoe(&self) -> SVMHOE_R {
        SVMHOE_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - SVMHOUT pin polarity active low"]
    #[inline(always)]
    pub fn svmhoutpolal(&self) -> SVMHOUTPOLAL_R {
        SVMHOUTPOLAL_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 10 - Force DC-DC regulator operation"]
    #[inline(always)]
    pub fn dcdc_force(&self) -> DCDC_FORCE_R {
        DCDC_FORCE_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bits 12:13 - Controls core voltage level transition time"]
    #[inline(always)]
    pub fn vcoretran(&self) -> VCORETRAN_R {
        VCORETRAN_R::new(((self.bits >> 12) & 3) as u8)
    }
}
impl W {
    #[doc = "Bit 0 - SVSM high-side off"]
    #[inline(always)]
    pub fn svsmhoff(&mut self) -> SVSMHOFF_W<0> {
        SVSMHOFF_W::new(self)
    }
    #[doc = "Bit 1 - SVSM high-side low power normal performance mode"]
    #[inline(always)]
    pub fn svsmhlp(&mut self) -> SVSMHLP_W<1> {
        SVSMHLP_W::new(self)
    }
    #[doc = "Bit 2 - Supply supervisor or monitor selection for the high-side"]
    #[inline(always)]
    pub fn svsmhs(&mut self) -> SVSMHS_W<2> {
        SVSMHS_W::new(self)
    }
    #[doc = "Bits 3:5 - SVSM high-side reset voltage level"]
    #[inline(always)]
    pub fn svsmhth(&mut self) -> SVSMHTH_W<3> {
        SVSMHTH_W::new(self)
    }
    #[doc = "Bit 6 - SVSM high-side output enable"]
    #[inline(always)]
    pub fn svmhoe(&mut self) -> SVMHOE_W<6> {
        SVMHOE_W::new(self)
    }
    #[doc = "Bit 7 - SVMHOUT pin polarity active low"]
    #[inline(always)]
    pub fn svmhoutpolal(&mut self) -> SVMHOUTPOLAL_W<7> {
        SVMHOUTPOLAL_W::new(self)
    }
    #[doc = "Bit 10 - Force DC-DC regulator operation"]
    #[inline(always)]
    pub fn dcdc_force(&mut self) -> DCDC_FORCE_W<10> {
        DCDC_FORCE_W::new(self)
    }
    #[doc = "Bits 12:13 - Controls core voltage level transition time"]
    #[inline(always)]
    pub fn vcoretran(&mut self) -> VCORETRAN_W<12> {
        VCORETRAN_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 = "Control 0 Register\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 [pssctl0](index.html) module"]
pub struct PSSCTL0_SPEC;
impl crate::RegisterSpec for PSSCTL0_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [pssctl0::R](R) reader structure"]
impl crate::Readable for PSSCTL0_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [pssctl0::W](W) writer structure"]
impl crate::Writable for PSSCTL0_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets PSSCTL0 to value 0x2000"]
impl crate::Resettable for PSSCTL0_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0x2000
    }
}