mcxa_pac/trng0/
status.rs

1#[doc = "Register `STATUS` reader"]
2pub type R = crate::R<StatusSpec>;
3#[doc = "Test Fail, 1-Bit Run, Sampling 0s.\n\nValue on reset: 0"]
4#[cfg_attr(feature = "defmt", derive(defmt::Format))]
5#[derive(Clone, Copy, Debug, PartialEq, Eq)]
6pub enum Tf1br0 {
7    #[doc = "0: The 1-Bit Run, Sampling 0s Test has passed"]
8    Disable = 0,
9    #[doc = "1: The 1-Bit Run, Sampling 0s Test has failed"]
10    Enable = 1,
11}
12impl From<Tf1br0> for bool {
13    #[inline(always)]
14    fn from(variant: Tf1br0) -> Self {
15        variant as u8 != 0
16    }
17}
18#[doc = "Field `TF1BR0` reader - Test Fail, 1-Bit Run, Sampling 0s."]
19pub type Tf1br0R = crate::BitReader<Tf1br0>;
20impl Tf1br0R {
21    #[doc = "Get enumerated values variant"]
22    #[inline(always)]
23    pub const fn variant(&self) -> Tf1br0 {
24        match self.bits {
25            false => Tf1br0::Disable,
26            true => Tf1br0::Enable,
27        }
28    }
29    #[doc = "The 1-Bit Run, Sampling 0s Test has passed"]
30    #[inline(always)]
31    pub fn is_disable(&self) -> bool {
32        *self == Tf1br0::Disable
33    }
34    #[doc = "The 1-Bit Run, Sampling 0s Test has failed"]
35    #[inline(always)]
36    pub fn is_enable(&self) -> bool {
37        *self == Tf1br0::Enable
38    }
39}
40#[doc = "Test Fail, 1-Bit Run, Sampling 1s.\n\nValue on reset: 0"]
41#[cfg_attr(feature = "defmt", derive(defmt::Format))]
42#[derive(Clone, Copy, Debug, PartialEq, Eq)]
43pub enum Tf1br1 {
44    #[doc = "0: The 1-Bit Run, Sampling 1s Test has passed"]
45    Disable = 0,
46    #[doc = "1: The 1-Bit Run, Sampling 1s Test has failed"]
47    Enable = 1,
48}
49impl From<Tf1br1> for bool {
50    #[inline(always)]
51    fn from(variant: Tf1br1) -> Self {
52        variant as u8 != 0
53    }
54}
55#[doc = "Field `TF1BR1` reader - Test Fail, 1-Bit Run, Sampling 1s."]
56pub type Tf1br1R = crate::BitReader<Tf1br1>;
57impl Tf1br1R {
58    #[doc = "Get enumerated values variant"]
59    #[inline(always)]
60    pub const fn variant(&self) -> Tf1br1 {
61        match self.bits {
62            false => Tf1br1::Disable,
63            true => Tf1br1::Enable,
64        }
65    }
66    #[doc = "The 1-Bit Run, Sampling 1s Test has passed"]
67    #[inline(always)]
68    pub fn is_disable(&self) -> bool {
69        *self == Tf1br1::Disable
70    }
71    #[doc = "The 1-Bit Run, Sampling 1s Test has failed"]
72    #[inline(always)]
73    pub fn is_enable(&self) -> bool {
74        *self == Tf1br1::Enable
75    }
76}
77#[doc = "Test Fail, 2-Bit Run, Sampling 0s.\n\nValue on reset: 0"]
78#[cfg_attr(feature = "defmt", derive(defmt::Format))]
79#[derive(Clone, Copy, Debug, PartialEq, Eq)]
80pub enum Tf2br0 {
81    #[doc = "0: The 2-Bit Run, Sampling 0s Test has passed"]
82    Disable = 0,
83    #[doc = "1: The 2-Bit Run, Sampling 0s Test has failed"]
84    Enable = 1,
85}
86impl From<Tf2br0> for bool {
87    #[inline(always)]
88    fn from(variant: Tf2br0) -> Self {
89        variant as u8 != 0
90    }
91}
92#[doc = "Field `TF2BR0` reader - Test Fail, 2-Bit Run, Sampling 0s."]
93pub type Tf2br0R = crate::BitReader<Tf2br0>;
94impl Tf2br0R {
95    #[doc = "Get enumerated values variant"]
96    #[inline(always)]
97    pub const fn variant(&self) -> Tf2br0 {
98        match self.bits {
99            false => Tf2br0::Disable,
100            true => Tf2br0::Enable,
101        }
102    }
103    #[doc = "The 2-Bit Run, Sampling 0s Test has passed"]
104    #[inline(always)]
105    pub fn is_disable(&self) -> bool {
106        *self == Tf2br0::Disable
107    }
108    #[doc = "The 2-Bit Run, Sampling 0s Test has failed"]
109    #[inline(always)]
110    pub fn is_enable(&self) -> bool {
111        *self == Tf2br0::Enable
112    }
113}
114#[doc = "Test Fail, 2-Bit Run, Sampling 1s.\n\nValue on reset: 0"]
115#[cfg_attr(feature = "defmt", derive(defmt::Format))]
116#[derive(Clone, Copy, Debug, PartialEq, Eq)]
117pub enum Tf2br1 {
118    #[doc = "0: The 2-Bit Run, Sampling 1s Test has passed"]
119    Disable = 0,
120    #[doc = "1: The 2-Bit Run, Sampling 1s Test has failed"]
121    Enable = 1,
122}
123impl From<Tf2br1> for bool {
124    #[inline(always)]
125    fn from(variant: Tf2br1) -> Self {
126        variant as u8 != 0
127    }
128}
129#[doc = "Field `TF2BR1` reader - Test Fail, 2-Bit Run, Sampling 1s."]
130pub type Tf2br1R = crate::BitReader<Tf2br1>;
131impl Tf2br1R {
132    #[doc = "Get enumerated values variant"]
133    #[inline(always)]
134    pub const fn variant(&self) -> Tf2br1 {
135        match self.bits {
136            false => Tf2br1::Disable,
137            true => Tf2br1::Enable,
138        }
139    }
140    #[doc = "The 2-Bit Run, Sampling 1s Test has passed"]
141    #[inline(always)]
142    pub fn is_disable(&self) -> bool {
143        *self == Tf2br1::Disable
144    }
145    #[doc = "The 2-Bit Run, Sampling 1s Test has failed"]
146    #[inline(always)]
147    pub fn is_enable(&self) -> bool {
148        *self == Tf2br1::Enable
149    }
150}
151#[doc = "Test Fail, 3-Bit Run, Sampling 0s.\n\nValue on reset: 0"]
152#[cfg_attr(feature = "defmt", derive(defmt::Format))]
153#[derive(Clone, Copy, Debug, PartialEq, Eq)]
154pub enum Tf3br0 {
155    #[doc = "0: The 3-Bit Run, Sampling 0s Test has passed"]
156    Disable = 0,
157    #[doc = "1: The 3-Bit Run, Sampling 0s Test has failed"]
158    Enable = 1,
159}
160impl From<Tf3br0> for bool {
161    #[inline(always)]
162    fn from(variant: Tf3br0) -> Self {
163        variant as u8 != 0
164    }
165}
166#[doc = "Field `TF3BR0` reader - Test Fail, 3-Bit Run, Sampling 0s."]
167pub type Tf3br0R = crate::BitReader<Tf3br0>;
168impl Tf3br0R {
169    #[doc = "Get enumerated values variant"]
170    #[inline(always)]
171    pub const fn variant(&self) -> Tf3br0 {
172        match self.bits {
173            false => Tf3br0::Disable,
174            true => Tf3br0::Enable,
175        }
176    }
177    #[doc = "The 3-Bit Run, Sampling 0s Test has passed"]
178    #[inline(always)]
179    pub fn is_disable(&self) -> bool {
180        *self == Tf3br0::Disable
181    }
182    #[doc = "The 3-Bit Run, Sampling 0s Test has failed"]
183    #[inline(always)]
184    pub fn is_enable(&self) -> bool {
185        *self == Tf3br0::Enable
186    }
187}
188#[doc = "Test Fail\n\nValue on reset: 0"]
189#[cfg_attr(feature = "defmt", derive(defmt::Format))]
190#[derive(Clone, Copy, Debug, PartialEq, Eq)]
191pub enum Tf3br1 {
192    #[doc = "0: The 3-Bit Run, Sampling 1s Test has passed"]
193    Disable = 0,
194    #[doc = "1: The 3-Bit Run, Sampling 1s Test has failed"]
195    Enable = 1,
196}
197impl From<Tf3br1> for bool {
198    #[inline(always)]
199    fn from(variant: Tf3br1) -> Self {
200        variant as u8 != 0
201    }
202}
203#[doc = "Field `TF3BR1` reader - Test Fail"]
204pub type Tf3br1R = crate::BitReader<Tf3br1>;
205impl Tf3br1R {
206    #[doc = "Get enumerated values variant"]
207    #[inline(always)]
208    pub const fn variant(&self) -> Tf3br1 {
209        match self.bits {
210            false => Tf3br1::Disable,
211            true => Tf3br1::Enable,
212        }
213    }
214    #[doc = "The 3-Bit Run, Sampling 1s Test has passed"]
215    #[inline(always)]
216    pub fn is_disable(&self) -> bool {
217        *self == Tf3br1::Disable
218    }
219    #[doc = "The 3-Bit Run, Sampling 1s Test has failed"]
220    #[inline(always)]
221    pub fn is_enable(&self) -> bool {
222        *self == Tf3br1::Enable
223    }
224}
225#[doc = "Test Fail, 4-Bit Run, Sampling 0s\n\nValue on reset: 0"]
226#[cfg_attr(feature = "defmt", derive(defmt::Format))]
227#[derive(Clone, Copy, Debug, PartialEq, Eq)]
228pub enum Tf4br0 {
229    #[doc = "0: The 4-Bit Run, Sampling 0s Test has passed"]
230    Disable = 0,
231    #[doc = "1: The 4-Bit Run, Sampling 0s Test has failed"]
232    Enable = 1,
233}
234impl From<Tf4br0> for bool {
235    #[inline(always)]
236    fn from(variant: Tf4br0) -> Self {
237        variant as u8 != 0
238    }
239}
240#[doc = "Field `TF4BR0` reader - Test Fail, 4-Bit Run, Sampling 0s"]
241pub type Tf4br0R = crate::BitReader<Tf4br0>;
242impl Tf4br0R {
243    #[doc = "Get enumerated values variant"]
244    #[inline(always)]
245    pub const fn variant(&self) -> Tf4br0 {
246        match self.bits {
247            false => Tf4br0::Disable,
248            true => Tf4br0::Enable,
249        }
250    }
251    #[doc = "The 4-Bit Run, Sampling 0s Test has passed"]
252    #[inline(always)]
253    pub fn is_disable(&self) -> bool {
254        *self == Tf4br0::Disable
255    }
256    #[doc = "The 4-Bit Run, Sampling 0s Test has failed"]
257    #[inline(always)]
258    pub fn is_enable(&self) -> bool {
259        *self == Tf4br0::Enable
260    }
261}
262#[doc = "Test Fail, 4-Bit Run, Sampling 1s.\n\nValue on reset: 0"]
263#[cfg_attr(feature = "defmt", derive(defmt::Format))]
264#[derive(Clone, Copy, Debug, PartialEq, Eq)]
265pub enum Tf4br1 {
266    #[doc = "0: The 4-Bit Run, Sampling 1s Test has passed"]
267    Disable = 0,
268    #[doc = "1: The 4-Bit Run, Sampling 1s Test has failed"]
269    Enable = 1,
270}
271impl From<Tf4br1> for bool {
272    #[inline(always)]
273    fn from(variant: Tf4br1) -> Self {
274        variant as u8 != 0
275    }
276}
277#[doc = "Field `TF4BR1` reader - Test Fail, 4-Bit Run, Sampling 1s."]
278pub type Tf4br1R = crate::BitReader<Tf4br1>;
279impl Tf4br1R {
280    #[doc = "Get enumerated values variant"]
281    #[inline(always)]
282    pub const fn variant(&self) -> Tf4br1 {
283        match self.bits {
284            false => Tf4br1::Disable,
285            true => Tf4br1::Enable,
286        }
287    }
288    #[doc = "The 4-Bit Run, Sampling 1s Test has passed"]
289    #[inline(always)]
290    pub fn is_disable(&self) -> bool {
291        *self == Tf4br1::Disable
292    }
293    #[doc = "The 4-Bit Run, Sampling 1s Test has failed"]
294    #[inline(always)]
295    pub fn is_enable(&self) -> bool {
296        *self == Tf4br1::Enable
297    }
298}
299#[doc = "Test Fail, 5-Bit Run, Sampling 0s.\n\nValue on reset: 0"]
300#[cfg_attr(feature = "defmt", derive(defmt::Format))]
301#[derive(Clone, Copy, Debug, PartialEq, Eq)]
302pub enum Tf5br0 {
303    #[doc = "0: The 5-Bit Run, Sampling 0s Test has passed"]
304    Disable = 0,
305    #[doc = "1: The 5-Bit Run, Sampling 0s Test has failed"]
306    Enable = 1,
307}
308impl From<Tf5br0> for bool {
309    #[inline(always)]
310    fn from(variant: Tf5br0) -> Self {
311        variant as u8 != 0
312    }
313}
314#[doc = "Field `TF5BR0` reader - Test Fail, 5-Bit Run, Sampling 0s."]
315pub type Tf5br0R = crate::BitReader<Tf5br0>;
316impl Tf5br0R {
317    #[doc = "Get enumerated values variant"]
318    #[inline(always)]
319    pub const fn variant(&self) -> Tf5br0 {
320        match self.bits {
321            false => Tf5br0::Disable,
322            true => Tf5br0::Enable,
323        }
324    }
325    #[doc = "The 5-Bit Run, Sampling 0s Test has passed"]
326    #[inline(always)]
327    pub fn is_disable(&self) -> bool {
328        *self == Tf5br0::Disable
329    }
330    #[doc = "The 5-Bit Run, Sampling 0s Test has failed"]
331    #[inline(always)]
332    pub fn is_enable(&self) -> bool {
333        *self == Tf5br0::Enable
334    }
335}
336#[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"]
337#[cfg_attr(feature = "defmt", derive(defmt::Format))]
338#[derive(Clone, Copy, Debug, PartialEq, Eq)]
339pub enum Tf5br1 {
340    #[doc = "0: The 5-Bit Run, Sampling 1s Test has passed"]
341    Disable = 0,
342    #[doc = "1: The 5-Bit Run, Sampling 1s Test has failed"]
343    Enable = 1,
344}
345impl From<Tf5br1> for bool {
346    #[inline(always)]
347    fn from(variant: Tf5br1) -> Self {
348        variant as u8 != 0
349    }
350}
351#[doc = "Field `TF5BR1` reader - Test Fail, 5-Bit Run, Sampling 1s. If TF5BR1=1, the 5-Bit Run, Sampling 1s Test has failed."]
352pub type Tf5br1R = crate::BitReader<Tf5br1>;
353impl Tf5br1R {
354    #[doc = "Get enumerated values variant"]
355    #[inline(always)]
356    pub const fn variant(&self) -> Tf5br1 {
357        match self.bits {
358            false => Tf5br1::Disable,
359            true => Tf5br1::Enable,
360        }
361    }
362    #[doc = "The 5-Bit Run, Sampling 1s Test has passed"]
363    #[inline(always)]
364    pub fn is_disable(&self) -> bool {
365        *self == Tf5br1::Disable
366    }
367    #[doc = "The 5-Bit Run, Sampling 1s Test has failed"]
368    #[inline(always)]
369    pub fn is_enable(&self) -> bool {
370        *self == Tf5br1::Enable
371    }
372}
373#[doc = "Test Fail, 6 Plus Bit Run, Sampling 0s.\n\nValue on reset: 0"]
374#[cfg_attr(feature = "defmt", derive(defmt::Format))]
375#[derive(Clone, Copy, Debug, PartialEq, Eq)]
376pub enum Tf6pbr0 {
377    #[doc = "0: The 6 Plus Bit Run, Sampling 0s Test has passed"]
378    Disable = 0,
379    #[doc = "1: the 6 Plus Bit Run, Sampling 0s Test has failed"]
380    Enable = 1,
381}
382impl From<Tf6pbr0> for bool {
383    #[inline(always)]
384    fn from(variant: Tf6pbr0) -> Self {
385        variant as u8 != 0
386    }
387}
388#[doc = "Field `TF6PBR0` reader - Test Fail, 6 Plus Bit Run, Sampling 0s."]
389pub type Tf6pbr0R = crate::BitReader<Tf6pbr0>;
390impl Tf6pbr0R {
391    #[doc = "Get enumerated values variant"]
392    #[inline(always)]
393    pub const fn variant(&self) -> Tf6pbr0 {
394        match self.bits {
395            false => Tf6pbr0::Disable,
396            true => Tf6pbr0::Enable,
397        }
398    }
399    #[doc = "The 6 Plus Bit Run, Sampling 0s Test has passed"]
400    #[inline(always)]
401    pub fn is_disable(&self) -> bool {
402        *self == Tf6pbr0::Disable
403    }
404    #[doc = "the 6 Plus Bit Run, Sampling 0s Test has failed"]
405    #[inline(always)]
406    pub fn is_enable(&self) -> bool {
407        *self == Tf6pbr0::Enable
408    }
409}
410#[doc = "Test Fail, 6 Plus Bit Run, Sampling 1s.\n\nValue on reset: 0"]
411#[cfg_attr(feature = "defmt", derive(defmt::Format))]
412#[derive(Clone, Copy, Debug, PartialEq, Eq)]
413pub enum Tf6pbr1 {
414    #[doc = "0: The 6 Plus Bit Run, Sampling 1s Test has passed"]
415    Disable = 0,
416    #[doc = "1: The 6 Plus Bit Run, Sampling 1s Test has failed"]
417    Enable = 1,
418}
419impl From<Tf6pbr1> for bool {
420    #[inline(always)]
421    fn from(variant: Tf6pbr1) -> Self {
422        variant as u8 != 0
423    }
424}
425#[doc = "Field `TF6PBR1` reader - Test Fail, 6 Plus Bit Run, Sampling 1s."]
426pub type Tf6pbr1R = crate::BitReader<Tf6pbr1>;
427impl Tf6pbr1R {
428    #[doc = "Get enumerated values variant"]
429    #[inline(always)]
430    pub const fn variant(&self) -> Tf6pbr1 {
431        match self.bits {
432            false => Tf6pbr1::Disable,
433            true => Tf6pbr1::Enable,
434        }
435    }
436    #[doc = "The 6 Plus Bit Run, Sampling 1s Test has passed"]
437    #[inline(always)]
438    pub fn is_disable(&self) -> bool {
439        *self == Tf6pbr1::Disable
440    }
441    #[doc = "The 6 Plus Bit Run, Sampling 1s Test has failed"]
442    #[inline(always)]
443    pub fn is_enable(&self) -> bool {
444        *self == Tf6pbr1::Enable
445    }
446}
447#[doc = "Test Fail, Sparse Bit.\n\nValue on reset: 0"]
448#[cfg_attr(feature = "defmt", derive(defmt::Format))]
449#[derive(Clone, Copy, Debug, PartialEq, Eq)]
450pub enum Tfsb {
451    #[doc = "0: The Sparse Bit Test has passed"]
452    Disable = 0,
453    #[doc = "1: The Sparse Bit Test has failed"]
454    Enable = 1,
455}
456impl From<Tfsb> for bool {
457    #[inline(always)]
458    fn from(variant: Tfsb) -> Self {
459        variant as u8 != 0
460    }
461}
462#[doc = "Field `TFSB` reader - Test Fail, Sparse Bit."]
463pub type TfsbR = crate::BitReader<Tfsb>;
464impl TfsbR {
465    #[doc = "Get enumerated values variant"]
466    #[inline(always)]
467    pub const fn variant(&self) -> Tfsb {
468        match self.bits {
469            false => Tfsb::Disable,
470            true => Tfsb::Enable,
471        }
472    }
473    #[doc = "The Sparse Bit Test has passed"]
474    #[inline(always)]
475    pub fn is_disable(&self) -> bool {
476        *self == Tfsb::Disable
477    }
478    #[doc = "The Sparse Bit Test has failed"]
479    #[inline(always)]
480    pub fn is_enable(&self) -> bool {
481        *self == Tfsb::Enable
482    }
483}
484#[doc = "Test Fail, Long Run.\n\nValue on reset: 0"]
485#[cfg_attr(feature = "defmt", derive(defmt::Format))]
486#[derive(Clone, Copy, Debug, PartialEq, Eq)]
487pub enum Tflr {
488    #[doc = "0: The Long Run Test has passed"]
489    Disable = 0,
490    #[doc = "1: The Long Run Test has failed"]
491    Enable = 1,
492}
493impl From<Tflr> for bool {
494    #[inline(always)]
495    fn from(variant: Tflr) -> Self {
496        variant as u8 != 0
497    }
498}
499#[doc = "Field `TFLR` reader - Test Fail, Long Run."]
500pub type TflrR = crate::BitReader<Tflr>;
501impl TflrR {
502    #[doc = "Get enumerated values variant"]
503    #[inline(always)]
504    pub const fn variant(&self) -> Tflr {
505        match self.bits {
506            false => Tflr::Disable,
507            true => Tflr::Enable,
508        }
509    }
510    #[doc = "The Long Run Test has passed"]
511    #[inline(always)]
512    pub fn is_disable(&self) -> bool {
513        *self == Tflr::Disable
514    }
515    #[doc = "The Long Run Test has failed"]
516    #[inline(always)]
517    pub fn is_enable(&self) -> bool {
518        *self == Tflr::Enable
519    }
520}
521#[doc = "Test Fail, Poker.\n\nValue on reset: 0"]
522#[cfg_attr(feature = "defmt", derive(defmt::Format))]
523#[derive(Clone, Copy, Debug, PartialEq, Eq)]
524pub enum Tfp {
525    #[doc = "0: The Poker Test has passed"]
526    Disable = 0,
527    #[doc = "1: The Poker Test has failed"]
528    Enable = 1,
529}
530impl From<Tfp> for bool {
531    #[inline(always)]
532    fn from(variant: Tfp) -> Self {
533        variant as u8 != 0
534    }
535}
536#[doc = "Field `TFP` reader - Test Fail, Poker."]
537pub type TfpR = crate::BitReader<Tfp>;
538impl TfpR {
539    #[doc = "Get enumerated values variant"]
540    #[inline(always)]
541    pub const fn variant(&self) -> Tfp {
542        match self.bits {
543            false => Tfp::Disable,
544            true => Tfp::Enable,
545        }
546    }
547    #[doc = "The Poker Test has passed"]
548    #[inline(always)]
549    pub fn is_disable(&self) -> bool {
550        *self == Tfp::Disable
551    }
552    #[doc = "The Poker Test has failed"]
553    #[inline(always)]
554    pub fn is_enable(&self) -> bool {
555        *self == Tfp::Enable
556    }
557}
558#[doc = "Test Fail, Mono Bit.\n\nValue on reset: 0"]
559#[cfg_attr(feature = "defmt", derive(defmt::Format))]
560#[derive(Clone, Copy, Debug, PartialEq, Eq)]
561pub enum Tfmb {
562    #[doc = "0: The Mono Bit Test has passed"]
563    Disable = 0,
564    #[doc = "1: The Mono Bit Test has failed"]
565    Enable = 1,
566}
567impl From<Tfmb> for bool {
568    #[inline(always)]
569    fn from(variant: Tfmb) -> Self {
570        variant as u8 != 0
571    }
572}
573#[doc = "Field `TFMB` reader - Test Fail, Mono Bit."]
574pub type TfmbR = crate::BitReader<Tfmb>;
575impl TfmbR {
576    #[doc = "Get enumerated values variant"]
577    #[inline(always)]
578    pub const fn variant(&self) -> Tfmb {
579        match self.bits {
580            false => Tfmb::Disable,
581            true => Tfmb::Enable,
582        }
583    }
584    #[doc = "The Mono Bit Test has passed"]
585    #[inline(always)]
586    pub fn is_disable(&self) -> bool {
587        *self == Tfmb::Disable
588    }
589    #[doc = "The Mono Bit Test has failed"]
590    #[inline(always)]
591    pub fn is_enable(&self) -> bool {
592        *self == Tfmb::Enable
593    }
594}
595#[doc = "Field `RETRY_CT` reader - RETRY COUNT"]
596pub type RetryCtR = crate::FieldReader;
597impl R {
598    #[doc = "Bit 0 - Test Fail, 1-Bit Run, Sampling 0s."]
599    #[inline(always)]
600    pub fn tf1br0(&self) -> Tf1br0R {
601        Tf1br0R::new((self.bits & 1) != 0)
602    }
603    #[doc = "Bit 1 - Test Fail, 1-Bit Run, Sampling 1s."]
604    #[inline(always)]
605    pub fn tf1br1(&self) -> Tf1br1R {
606        Tf1br1R::new(((self.bits >> 1) & 1) != 0)
607    }
608    #[doc = "Bit 2 - Test Fail, 2-Bit Run, Sampling 0s."]
609    #[inline(always)]
610    pub fn tf2br0(&self) -> Tf2br0R {
611        Tf2br0R::new(((self.bits >> 2) & 1) != 0)
612    }
613    #[doc = "Bit 3 - Test Fail, 2-Bit Run, Sampling 1s."]
614    #[inline(always)]
615    pub fn tf2br1(&self) -> Tf2br1R {
616        Tf2br1R::new(((self.bits >> 3) & 1) != 0)
617    }
618    #[doc = "Bit 4 - Test Fail, 3-Bit Run, Sampling 0s."]
619    #[inline(always)]
620    pub fn tf3br0(&self) -> Tf3br0R {
621        Tf3br0R::new(((self.bits >> 4) & 1) != 0)
622    }
623    #[doc = "Bit 5 - Test Fail"]
624    #[inline(always)]
625    pub fn tf3br1(&self) -> Tf3br1R {
626        Tf3br1R::new(((self.bits >> 5) & 1) != 0)
627    }
628    #[doc = "Bit 6 - Test Fail, 4-Bit Run, Sampling 0s"]
629    #[inline(always)]
630    pub fn tf4br0(&self) -> Tf4br0R {
631        Tf4br0R::new(((self.bits >> 6) & 1) != 0)
632    }
633    #[doc = "Bit 7 - Test Fail, 4-Bit Run, Sampling 1s."]
634    #[inline(always)]
635    pub fn tf4br1(&self) -> Tf4br1R {
636        Tf4br1R::new(((self.bits >> 7) & 1) != 0)
637    }
638    #[doc = "Bit 8 - Test Fail, 5-Bit Run, Sampling 0s."]
639    #[inline(always)]
640    pub fn tf5br0(&self) -> Tf5br0R {
641        Tf5br0R::new(((self.bits >> 8) & 1) != 0)
642    }
643    #[doc = "Bit 9 - Test Fail, 5-Bit Run, Sampling 1s. If TF5BR1=1, the 5-Bit Run, Sampling 1s Test has failed."]
644    #[inline(always)]
645    pub fn tf5br1(&self) -> Tf5br1R {
646        Tf5br1R::new(((self.bits >> 9) & 1) != 0)
647    }
648    #[doc = "Bit 10 - Test Fail, 6 Plus Bit Run, Sampling 0s."]
649    #[inline(always)]
650    pub fn tf6pbr0(&self) -> Tf6pbr0R {
651        Tf6pbr0R::new(((self.bits >> 10) & 1) != 0)
652    }
653    #[doc = "Bit 11 - Test Fail, 6 Plus Bit Run, Sampling 1s."]
654    #[inline(always)]
655    pub fn tf6pbr1(&self) -> Tf6pbr1R {
656        Tf6pbr1R::new(((self.bits >> 11) & 1) != 0)
657    }
658    #[doc = "Bit 12 - Test Fail, Sparse Bit."]
659    #[inline(always)]
660    pub fn tfsb(&self) -> TfsbR {
661        TfsbR::new(((self.bits >> 12) & 1) != 0)
662    }
663    #[doc = "Bit 13 - Test Fail, Long Run."]
664    #[inline(always)]
665    pub fn tflr(&self) -> TflrR {
666        TflrR::new(((self.bits >> 13) & 1) != 0)
667    }
668    #[doc = "Bit 14 - Test Fail, Poker."]
669    #[inline(always)]
670    pub fn tfp(&self) -> TfpR {
671        TfpR::new(((self.bits >> 14) & 1) != 0)
672    }
673    #[doc = "Bit 15 - Test Fail, Mono Bit."]
674    #[inline(always)]
675    pub fn tfmb(&self) -> TfmbR {
676        TfmbR::new(((self.bits >> 15) & 1) != 0)
677    }
678    #[doc = "Bits 16:19 - RETRY COUNT"]
679    #[inline(always)]
680    pub fn retry_ct(&self) -> RetryCtR {
681        RetryCtR::new(((self.bits >> 16) & 0x0f) as u8)
682    }
683}
684#[cfg(feature = "debug")]
685impl core::fmt::Debug for R {
686    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
687        f.debug_struct("STATUS")
688            .field("tf1br0", &self.tf1br0())
689            .field("tf1br1", &self.tf1br1())
690            .field("tf2br0", &self.tf2br0())
691            .field("tf2br1", &self.tf2br1())
692            .field("tf3br0", &self.tf3br0())
693            .field("tf3br1", &self.tf3br1())
694            .field("tf4br0", &self.tf4br0())
695            .field("tf4br1", &self.tf4br1())
696            .field("tf5br0", &self.tf5br0())
697            .field("tf5br1", &self.tf5br1())
698            .field("tf6pbr0", &self.tf6pbr0())
699            .field("tf6pbr1", &self.tf6pbr1())
700            .field("tfsb", &self.tfsb())
701            .field("tflr", &self.tflr())
702            .field("tfp", &self.tfp())
703            .field("tfmb", &self.tfmb())
704            .field("retry_ct", &self.retry_ct())
705            .finish()
706    }
707}
708#[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)."]
709pub struct StatusSpec;
710impl crate::RegisterSpec for StatusSpec {
711    type Ux = u32;
712}
713#[doc = "`read()` method returns [`status::R`](R) reader structure"]
714impl crate::Readable for StatusSpec {}
715#[doc = "`reset()` method sets STATUS to value 0"]
716impl crate::Resettable for StatusSpec {}