mcxa-pac 0.3.0

Peripheral Access Crate for MCXA256 devices
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
715
716
#[doc = "Register `STATUS` reader"]
pub type R = crate::R<StatusSpec>;
#[doc = "Test Fail, 1-Bit Run, Sampling 0s.\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tf1br0 {
    #[doc = "0: The 1-Bit Run, Sampling 0s Test has passed"]
    Disable = 0,
    #[doc = "1: The 1-Bit Run, Sampling 0s Test has failed"]
    Enable = 1,
}
impl From<Tf1br0> for bool {
    #[inline(always)]
    fn from(variant: Tf1br0) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TF1BR0` reader - Test Fail, 1-Bit Run, Sampling 0s."]
pub type Tf1br0R = crate::BitReader<Tf1br0>;
impl Tf1br0R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tf1br0 {
        match self.bits {
            false => Tf1br0::Disable,
            true => Tf1br0::Enable,
        }
    }
    #[doc = "The 1-Bit Run, Sampling 0s Test has passed"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == Tf1br0::Disable
    }
    #[doc = "The 1-Bit Run, Sampling 0s Test has failed"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == Tf1br0::Enable
    }
}
#[doc = "Test Fail, 1-Bit Run, Sampling 1s.\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tf1br1 {
    #[doc = "0: The 1-Bit Run, Sampling 1s Test has passed"]
    Disable = 0,
    #[doc = "1: The 1-Bit Run, Sampling 1s Test has failed"]
    Enable = 1,
}
impl From<Tf1br1> for bool {
    #[inline(always)]
    fn from(variant: Tf1br1) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TF1BR1` reader - Test Fail, 1-Bit Run, Sampling 1s."]
pub type Tf1br1R = crate::BitReader<Tf1br1>;
impl Tf1br1R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tf1br1 {
        match self.bits {
            false => Tf1br1::Disable,
            true => Tf1br1::Enable,
        }
    }
    #[doc = "The 1-Bit Run, Sampling 1s Test has passed"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == Tf1br1::Disable
    }
    #[doc = "The 1-Bit Run, Sampling 1s Test has failed"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == Tf1br1::Enable
    }
}
#[doc = "Test Fail, 2-Bit Run, Sampling 0s.\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tf2br0 {
    #[doc = "0: The 2-Bit Run, Sampling 0s Test has passed"]
    Disable = 0,
    #[doc = "1: The 2-Bit Run, Sampling 0s Test has failed"]
    Enable = 1,
}
impl From<Tf2br0> for bool {
    #[inline(always)]
    fn from(variant: Tf2br0) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TF2BR0` reader - Test Fail, 2-Bit Run, Sampling 0s."]
pub type Tf2br0R = crate::BitReader<Tf2br0>;
impl Tf2br0R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tf2br0 {
        match self.bits {
            false => Tf2br0::Disable,
            true => Tf2br0::Enable,
        }
    }
    #[doc = "The 2-Bit Run, Sampling 0s Test has passed"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == Tf2br0::Disable
    }
    #[doc = "The 2-Bit Run, Sampling 0s Test has failed"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == Tf2br0::Enable
    }
}
#[doc = "Test Fail, 2-Bit Run, Sampling 1s.\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tf2br1 {
    #[doc = "0: The 2-Bit Run, Sampling 1s Test has passed"]
    Disable = 0,
    #[doc = "1: The 2-Bit Run, Sampling 1s Test has failed"]
    Enable = 1,
}
impl From<Tf2br1> for bool {
    #[inline(always)]
    fn from(variant: Tf2br1) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TF2BR1` reader - Test Fail, 2-Bit Run, Sampling 1s."]
pub type Tf2br1R = crate::BitReader<Tf2br1>;
impl Tf2br1R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tf2br1 {
        match self.bits {
            false => Tf2br1::Disable,
            true => Tf2br1::Enable,
        }
    }
    #[doc = "The 2-Bit Run, Sampling 1s Test has passed"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == Tf2br1::Disable
    }
    #[doc = "The 2-Bit Run, Sampling 1s Test has failed"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == Tf2br1::Enable
    }
}
#[doc = "Test Fail, 3-Bit Run, Sampling 0s.\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tf3br0 {
    #[doc = "0: The 3-Bit Run, Sampling 0s Test has passed"]
    Disable = 0,
    #[doc = "1: The 3-Bit Run, Sampling 0s Test has failed"]
    Enable = 1,
}
impl From<Tf3br0> for bool {
    #[inline(always)]
    fn from(variant: Tf3br0) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TF3BR0` reader - Test Fail, 3-Bit Run, Sampling 0s."]
pub type Tf3br0R = crate::BitReader<Tf3br0>;
impl Tf3br0R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tf3br0 {
        match self.bits {
            false => Tf3br0::Disable,
            true => Tf3br0::Enable,
        }
    }
    #[doc = "The 3-Bit Run, Sampling 0s Test has passed"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == Tf3br0::Disable
    }
    #[doc = "The 3-Bit Run, Sampling 0s Test has failed"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == Tf3br0::Enable
    }
}
#[doc = "Test Fail\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tf3br1 {
    #[doc = "0: The 3-Bit Run, Sampling 1s Test has passed"]
    Disable = 0,
    #[doc = "1: The 3-Bit Run, Sampling 1s Test has failed"]
    Enable = 1,
}
impl From<Tf3br1> for bool {
    #[inline(always)]
    fn from(variant: Tf3br1) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TF3BR1` reader - Test Fail"]
pub type Tf3br1R = crate::BitReader<Tf3br1>;
impl Tf3br1R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tf3br1 {
        match self.bits {
            false => Tf3br1::Disable,
            true => Tf3br1::Enable,
        }
    }
    #[doc = "The 3-Bit Run, Sampling 1s Test has passed"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == Tf3br1::Disable
    }
    #[doc = "The 3-Bit Run, Sampling 1s Test has failed"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == Tf3br1::Enable
    }
}
#[doc = "Test Fail, 4-Bit Run, Sampling 0s\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tf4br0 {
    #[doc = "0: The 4-Bit Run, Sampling 0s Test has passed"]
    Disable = 0,
    #[doc = "1: The 4-Bit Run, Sampling 0s Test has failed"]
    Enable = 1,
}
impl From<Tf4br0> for bool {
    #[inline(always)]
    fn from(variant: Tf4br0) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TF4BR0` reader - Test Fail, 4-Bit Run, Sampling 0s"]
pub type Tf4br0R = crate::BitReader<Tf4br0>;
impl Tf4br0R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tf4br0 {
        match self.bits {
            false => Tf4br0::Disable,
            true => Tf4br0::Enable,
        }
    }
    #[doc = "The 4-Bit Run, Sampling 0s Test has passed"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == Tf4br0::Disable
    }
    #[doc = "The 4-Bit Run, Sampling 0s Test has failed"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == Tf4br0::Enable
    }
}
#[doc = "Test Fail, 4-Bit Run, Sampling 1s.\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tf4br1 {
    #[doc = "0: The 4-Bit Run, Sampling 1s Test has passed"]
    Disable = 0,
    #[doc = "1: The 4-Bit Run, Sampling 1s Test has failed"]
    Enable = 1,
}
impl From<Tf4br1> for bool {
    #[inline(always)]
    fn from(variant: Tf4br1) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TF4BR1` reader - Test Fail, 4-Bit Run, Sampling 1s."]
pub type Tf4br1R = crate::BitReader<Tf4br1>;
impl Tf4br1R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tf4br1 {
        match self.bits {
            false => Tf4br1::Disable,
            true => Tf4br1::Enable,
        }
    }
    #[doc = "The 4-Bit Run, Sampling 1s Test has passed"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == Tf4br1::Disable
    }
    #[doc = "The 4-Bit Run, Sampling 1s Test has failed"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == Tf4br1::Enable
    }
}
#[doc = "Test Fail, 5-Bit Run, Sampling 0s.\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tf5br0 {
    #[doc = "0: The 5-Bit Run, Sampling 0s Test has passed"]
    Disable = 0,
    #[doc = "1: The 5-Bit Run, Sampling 0s Test has failed"]
    Enable = 1,
}
impl From<Tf5br0> for bool {
    #[inline(always)]
    fn from(variant: Tf5br0) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TF5BR0` reader - Test Fail, 5-Bit Run, Sampling 0s."]
pub type Tf5br0R = crate::BitReader<Tf5br0>;
impl Tf5br0R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tf5br0 {
        match self.bits {
            false => Tf5br0::Disable,
            true => Tf5br0::Enable,
        }
    }
    #[doc = "The 5-Bit Run, Sampling 0s Test has passed"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == Tf5br0::Disable
    }
    #[doc = "The 5-Bit Run, Sampling 0s Test has failed"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == Tf5br0::Enable
    }
}
#[doc = "Test Fail, 5-Bit Run, Sampling 1s. If TF5BR1=1, the 5-Bit Run, Sampling 1s Test has failed.\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tf5br1 {
    #[doc = "0: The 5-Bit Run, Sampling 1s Test has passed"]
    Disable = 0,
    #[doc = "1: The 5-Bit Run, Sampling 1s Test has failed"]
    Enable = 1,
}
impl From<Tf5br1> for bool {
    #[inline(always)]
    fn from(variant: Tf5br1) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TF5BR1` reader - Test Fail, 5-Bit Run, Sampling 1s. If TF5BR1=1, the 5-Bit Run, Sampling 1s Test has failed."]
pub type Tf5br1R = crate::BitReader<Tf5br1>;
impl Tf5br1R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tf5br1 {
        match self.bits {
            false => Tf5br1::Disable,
            true => Tf5br1::Enable,
        }
    }
    #[doc = "The 5-Bit Run, Sampling 1s Test has passed"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == Tf5br1::Disable
    }
    #[doc = "The 5-Bit Run, Sampling 1s Test has failed"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == Tf5br1::Enable
    }
}
#[doc = "Test Fail, 6 Plus Bit Run, Sampling 0s.\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tf6pbr0 {
    #[doc = "0: The 6 Plus Bit Run, Sampling 0s Test has passed"]
    Disable = 0,
    #[doc = "1: the 6 Plus Bit Run, Sampling 0s Test has failed"]
    Enable = 1,
}
impl From<Tf6pbr0> for bool {
    #[inline(always)]
    fn from(variant: Tf6pbr0) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TF6PBR0` reader - Test Fail, 6 Plus Bit Run, Sampling 0s."]
pub type Tf6pbr0R = crate::BitReader<Tf6pbr0>;
impl Tf6pbr0R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tf6pbr0 {
        match self.bits {
            false => Tf6pbr0::Disable,
            true => Tf6pbr0::Enable,
        }
    }
    #[doc = "The 6 Plus Bit Run, Sampling 0s Test has passed"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == Tf6pbr0::Disable
    }
    #[doc = "the 6 Plus Bit Run, Sampling 0s Test has failed"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == Tf6pbr0::Enable
    }
}
#[doc = "Test Fail, 6 Plus Bit Run, Sampling 1s.\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tf6pbr1 {
    #[doc = "0: The 6 Plus Bit Run, Sampling 1s Test has passed"]
    Disable = 0,
    #[doc = "1: The 6 Plus Bit Run, Sampling 1s Test has failed"]
    Enable = 1,
}
impl From<Tf6pbr1> for bool {
    #[inline(always)]
    fn from(variant: Tf6pbr1) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TF6PBR1` reader - Test Fail, 6 Plus Bit Run, Sampling 1s."]
pub type Tf6pbr1R = crate::BitReader<Tf6pbr1>;
impl Tf6pbr1R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tf6pbr1 {
        match self.bits {
            false => Tf6pbr1::Disable,
            true => Tf6pbr1::Enable,
        }
    }
    #[doc = "The 6 Plus Bit Run, Sampling 1s Test has passed"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == Tf6pbr1::Disable
    }
    #[doc = "The 6 Plus Bit Run, Sampling 1s Test has failed"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == Tf6pbr1::Enable
    }
}
#[doc = "Test Fail, Sparse Bit.\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tfsb {
    #[doc = "0: The Sparse Bit Test has passed"]
    Disable = 0,
    #[doc = "1: The Sparse Bit Test has failed"]
    Enable = 1,
}
impl From<Tfsb> for bool {
    #[inline(always)]
    fn from(variant: Tfsb) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TFSB` reader - Test Fail, Sparse Bit."]
pub type TfsbR = crate::BitReader<Tfsb>;
impl TfsbR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tfsb {
        match self.bits {
            false => Tfsb::Disable,
            true => Tfsb::Enable,
        }
    }
    #[doc = "The Sparse Bit Test has passed"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == Tfsb::Disable
    }
    #[doc = "The Sparse Bit Test has failed"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == Tfsb::Enable
    }
}
#[doc = "Test Fail, Long Run.\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tflr {
    #[doc = "0: The Long Run Test has passed"]
    Disable = 0,
    #[doc = "1: The Long Run Test has failed"]
    Enable = 1,
}
impl From<Tflr> for bool {
    #[inline(always)]
    fn from(variant: Tflr) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TFLR` reader - Test Fail, Long Run."]
pub type TflrR = crate::BitReader<Tflr>;
impl TflrR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tflr {
        match self.bits {
            false => Tflr::Disable,
            true => Tflr::Enable,
        }
    }
    #[doc = "The Long Run Test has passed"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == Tflr::Disable
    }
    #[doc = "The Long Run Test has failed"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == Tflr::Enable
    }
}
#[doc = "Test Fail, Poker.\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tfp {
    #[doc = "0: The Poker Test has passed"]
    Disable = 0,
    #[doc = "1: The Poker Test has failed"]
    Enable = 1,
}
impl From<Tfp> for bool {
    #[inline(always)]
    fn from(variant: Tfp) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TFP` reader - Test Fail, Poker."]
pub type TfpR = crate::BitReader<Tfp>;
impl TfpR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tfp {
        match self.bits {
            false => Tfp::Disable,
            true => Tfp::Enable,
        }
    }
    #[doc = "The Poker Test has passed"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == Tfp::Disable
    }
    #[doc = "The Poker Test has failed"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == Tfp::Enable
    }
}
#[doc = "Test Fail, Mono Bit.\n\nValue on reset: 0"]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Tfmb {
    #[doc = "0: The Mono Bit Test has passed"]
    Disable = 0,
    #[doc = "1: The Mono Bit Test has failed"]
    Enable = 1,
}
impl From<Tfmb> for bool {
    #[inline(always)]
    fn from(variant: Tfmb) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `TFMB` reader - Test Fail, Mono Bit."]
pub type TfmbR = crate::BitReader<Tfmb>;
impl TfmbR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Tfmb {
        match self.bits {
            false => Tfmb::Disable,
            true => Tfmb::Enable,
        }
    }
    #[doc = "The Mono Bit Test has passed"]
    #[inline(always)]
    pub fn is_disable(&self) -> bool {
        *self == Tfmb::Disable
    }
    #[doc = "The Mono Bit Test has failed"]
    #[inline(always)]
    pub fn is_enable(&self) -> bool {
        *self == Tfmb::Enable
    }
}
#[doc = "Field `RETRY_CT` reader - RETRY COUNT"]
pub type RetryCtR = crate::FieldReader;
impl R {
    #[doc = "Bit 0 - Test Fail, 1-Bit Run, Sampling 0s."]
    #[inline(always)]
    pub fn tf1br0(&self) -> Tf1br0R {
        Tf1br0R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Test Fail, 1-Bit Run, Sampling 1s."]
    #[inline(always)]
    pub fn tf1br1(&self) -> Tf1br1R {
        Tf1br1R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Test Fail, 2-Bit Run, Sampling 0s."]
    #[inline(always)]
    pub fn tf2br0(&self) -> Tf2br0R {
        Tf2br0R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Test Fail, 2-Bit Run, Sampling 1s."]
    #[inline(always)]
    pub fn tf2br1(&self) -> Tf2br1R {
        Tf2br1R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Test Fail, 3-Bit Run, Sampling 0s."]
    #[inline(always)]
    pub fn tf3br0(&self) -> Tf3br0R {
        Tf3br0R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Test Fail"]
    #[inline(always)]
    pub fn tf3br1(&self) -> Tf3br1R {
        Tf3br1R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Test Fail, 4-Bit Run, Sampling 0s"]
    #[inline(always)]
    pub fn tf4br0(&self) -> Tf4br0R {
        Tf4br0R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Test Fail, 4-Bit Run, Sampling 1s."]
    #[inline(always)]
    pub fn tf4br1(&self) -> Tf4br1R {
        Tf4br1R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - Test Fail, 5-Bit Run, Sampling 0s."]
    #[inline(always)]
    pub fn tf5br0(&self) -> Tf5br0R {
        Tf5br0R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - Test Fail, 5-Bit Run, Sampling 1s. If TF5BR1=1, the 5-Bit Run, Sampling 1s Test has failed."]
    #[inline(always)]
    pub fn tf5br1(&self) -> Tf5br1R {
        Tf5br1R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - Test Fail, 6 Plus Bit Run, Sampling 0s."]
    #[inline(always)]
    pub fn tf6pbr0(&self) -> Tf6pbr0R {
        Tf6pbr0R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - Test Fail, 6 Plus Bit Run, Sampling 1s."]
    #[inline(always)]
    pub fn tf6pbr1(&self) -> Tf6pbr1R {
        Tf6pbr1R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - Test Fail, Sparse Bit."]
    #[inline(always)]
    pub fn tfsb(&self) -> TfsbR {
        TfsbR::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - Test Fail, Long Run."]
    #[inline(always)]
    pub fn tflr(&self) -> TflrR {
        TflrR::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - Test Fail, Poker."]
    #[inline(always)]
    pub fn tfp(&self) -> TfpR {
        TfpR::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - Test Fail, Mono Bit."]
    #[inline(always)]
    pub fn tfmb(&self) -> TfmbR {
        TfmbR::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bits 16:19 - RETRY COUNT"]
    #[inline(always)]
    pub fn retry_ct(&self) -> RetryCtR {
        RetryCtR::new(((self.bits >> 16) & 0x0f) as u8)
    }
}
#[cfg(feature = "debug")]
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("STATUS")
            .field("tf1br0", &self.tf1br0())
            .field("tf1br1", &self.tf1br1())
            .field("tf2br0", &self.tf2br0())
            .field("tf2br1", &self.tf2br1())
            .field("tf3br0", &self.tf3br0())
            .field("tf3br1", &self.tf3br1())
            .field("tf4br0", &self.tf4br0())
            .field("tf4br1", &self.tf4br1())
            .field("tf5br0", &self.tf5br0())
            .field("tf5br1", &self.tf5br1())
            .field("tf6pbr0", &self.tf6pbr0())
            .field("tf6pbr1", &self.tf6pbr1())
            .field("tfsb", &self.tfsb())
            .field("tflr", &self.tflr())
            .field("tfp", &self.tfp())
            .field("tfmb", &self.tfmb())
            .field("retry_ct", &self.retry_ct())
            .finish()
    }
}
#[doc = "Status Register\n\nYou can [`read`](crate::Reg::read) this register and get [`status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct StatusSpec;
impl crate::RegisterSpec for StatusSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`status::R`](R) reader structure"]
impl crate::Readable for StatusSpec {}
#[doc = "`reset()` method sets STATUS to value 0"]
impl crate::Resettable for StatusSpec {}