1#[doc = "Register `STATUS` reader"]
2pub struct R(crate::R<STATUS_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<STATUS_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<STATUS_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<STATUS_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `TF1BR0` reader - Test Fail, 1-Bit Run, Sampling 0s. If TF1BR0=1, the 1-Bit Run, Sampling 0s Test has failed."]
17pub type TF1BR0_R = crate::BitReader<bool>;
18#[doc = "Field `TF1BR1` reader - Test Fail, 1-Bit Run, Sampling 1s. If TF1BR1=1, the 1-Bit Run, Sampling 1s Test has failed."]
19pub type TF1BR1_R = crate::BitReader<bool>;
20#[doc = "Field `TF2BR0` reader - Test Fail, 2-Bit Run, Sampling 0s. If TF2BR0=1, the 2-Bit Run, Sampling 0s Test has failed."]
21pub type TF2BR0_R = crate::BitReader<bool>;
22#[doc = "Field `TF2BR1` reader - Test Fail, 2-Bit Run, Sampling 1s. If TF2BR1=1, the 2-Bit Run, Sampling 1s Test has failed."]
23pub type TF2BR1_R = crate::BitReader<bool>;
24#[doc = "Field `TF3BR0` reader - Test Fail, 3-Bit Run, Sampling 0s. If TF3BR0=1, the 3-Bit Run, Sampling 0s Test has failed."]
25pub type TF3BR0_R = crate::BitReader<bool>;
26#[doc = "Field `TF3BR1` reader - Test Fail, 3-Bit Run, Sampling 1s. If TF3BR1=1, the 3-Bit Run, Sampling 1s Test has failed."]
27pub type TF3BR1_R = crate::BitReader<bool>;
28#[doc = "Field `TF4BR0` reader - Test Fail, 4-Bit Run, Sampling 0s. If TF4BR0=1, the 4-Bit Run, Sampling 0s Test has failed."]
29pub type TF4BR0_R = crate::BitReader<bool>;
30#[doc = "Field `TF4BR1` reader - Test Fail, 4-Bit Run, Sampling 1s. If TF4BR1=1, the 4-Bit Run, Sampling 1s Test has failed."]
31pub type TF4BR1_R = crate::BitReader<bool>;
32#[doc = "Field `TF5BR0` reader - Test Fail, 5-Bit Run, Sampling 0s. If TF5BR0=1, the 5-Bit Run, Sampling 0s Test has failed."]
33pub type TF5BR0_R = crate::BitReader<bool>;
34#[doc = "Field `TF5BR1` reader - Test Fail, 5-Bit Run, Sampling 1s. If TF5BR1=1, the 5-Bit Run, Sampling 1s Test has failed."]
35pub type TF5BR1_R = crate::BitReader<bool>;
36#[doc = "Field `TF6PBR0` reader - Test Fail, 6 Plus Bit Run, Sampling 0s"]
37pub type TF6PBR0_R = crate::BitReader<bool>;
38#[doc = "Field `TF6PBR1` reader - Test Fail, 6 Plus Bit Run, Sampling 1s"]
39pub type TF6PBR1_R = crate::BitReader<bool>;
40#[doc = "Field `TFSB` reader - Test Fail, Sparse Bit. If TFSB=1, the Sparse Bit Test has failed."]
41pub type TFSB_R = crate::BitReader<bool>;
42#[doc = "Field `TFLR` reader - Test Fail, Long Run. If TFLR=1, the Long Run Test has failed."]
43pub type TFLR_R = crate::BitReader<bool>;
44#[doc = "Field `TFP` reader - Test Fail, Poker. If TFP=1, the Poker Test has failed."]
45pub type TFP_R = crate::BitReader<bool>;
46#[doc = "Field `TFMB` reader - Test Fail, Mono Bit. If TFMB=1, the Mono Bit Test has failed."]
47pub type TFMB_R = crate::BitReader<bool>;
48#[doc = "Field `RETRY_CT` reader - RETRY COUNT"]
49pub type RETRY_CT_R = crate::FieldReader<u8, u8>;
50impl R {
51 #[doc = "Bit 0 - Test Fail, 1-Bit Run, Sampling 0s. If TF1BR0=1, the 1-Bit Run, Sampling 0s Test has failed."]
52 #[inline(always)]
53 pub fn tf1br0(&self) -> TF1BR0_R {
54 TF1BR0_R::new((self.bits & 1) != 0)
55 }
56 #[doc = "Bit 1 - Test Fail, 1-Bit Run, Sampling 1s. If TF1BR1=1, the 1-Bit Run, Sampling 1s Test has failed."]
57 #[inline(always)]
58 pub fn tf1br1(&self) -> TF1BR1_R {
59 TF1BR1_R::new(((self.bits >> 1) & 1) != 0)
60 }
61 #[doc = "Bit 2 - Test Fail, 2-Bit Run, Sampling 0s. If TF2BR0=1, the 2-Bit Run, Sampling 0s Test has failed."]
62 #[inline(always)]
63 pub fn tf2br0(&self) -> TF2BR0_R {
64 TF2BR0_R::new(((self.bits >> 2) & 1) != 0)
65 }
66 #[doc = "Bit 3 - Test Fail, 2-Bit Run, Sampling 1s. If TF2BR1=1, the 2-Bit Run, Sampling 1s Test has failed."]
67 #[inline(always)]
68 pub fn tf2br1(&self) -> TF2BR1_R {
69 TF2BR1_R::new(((self.bits >> 3) & 1) != 0)
70 }
71 #[doc = "Bit 4 - Test Fail, 3-Bit Run, Sampling 0s. If TF3BR0=1, the 3-Bit Run, Sampling 0s Test has failed."]
72 #[inline(always)]
73 pub fn tf3br0(&self) -> TF3BR0_R {
74 TF3BR0_R::new(((self.bits >> 4) & 1) != 0)
75 }
76 #[doc = "Bit 5 - Test Fail, 3-Bit Run, Sampling 1s. If TF3BR1=1, the 3-Bit Run, Sampling 1s Test has failed."]
77 #[inline(always)]
78 pub fn tf3br1(&self) -> TF3BR1_R {
79 TF3BR1_R::new(((self.bits >> 5) & 1) != 0)
80 }
81 #[doc = "Bit 6 - Test Fail, 4-Bit Run, Sampling 0s. If TF4BR0=1, the 4-Bit Run, Sampling 0s Test has failed."]
82 #[inline(always)]
83 pub fn tf4br0(&self) -> TF4BR0_R {
84 TF4BR0_R::new(((self.bits >> 6) & 1) != 0)
85 }
86 #[doc = "Bit 7 - Test Fail, 4-Bit Run, Sampling 1s. If TF4BR1=1, the 4-Bit Run, Sampling 1s Test has failed."]
87 #[inline(always)]
88 pub fn tf4br1(&self) -> TF4BR1_R {
89 TF4BR1_R::new(((self.bits >> 7) & 1) != 0)
90 }
91 #[doc = "Bit 8 - Test Fail, 5-Bit Run, Sampling 0s. If TF5BR0=1, the 5-Bit Run, Sampling 0s Test has failed."]
92 #[inline(always)]
93 pub fn tf5br0(&self) -> TF5BR0_R {
94 TF5BR0_R::new(((self.bits >> 8) & 1) != 0)
95 }
96 #[doc = "Bit 9 - Test Fail, 5-Bit Run, Sampling 1s. If TF5BR1=1, the 5-Bit Run, Sampling 1s Test has failed."]
97 #[inline(always)]
98 pub fn tf5br1(&self) -> TF5BR1_R {
99 TF5BR1_R::new(((self.bits >> 9) & 1) != 0)
100 }
101 #[doc = "Bit 10 - Test Fail, 6 Plus Bit Run, Sampling 0s"]
102 #[inline(always)]
103 pub fn tf6pbr0(&self) -> TF6PBR0_R {
104 TF6PBR0_R::new(((self.bits >> 10) & 1) != 0)
105 }
106 #[doc = "Bit 11 - Test Fail, 6 Plus Bit Run, Sampling 1s"]
107 #[inline(always)]
108 pub fn tf6pbr1(&self) -> TF6PBR1_R {
109 TF6PBR1_R::new(((self.bits >> 11) & 1) != 0)
110 }
111 #[doc = "Bit 12 - Test Fail, Sparse Bit. If TFSB=1, the Sparse Bit Test has failed."]
112 #[inline(always)]
113 pub fn tfsb(&self) -> TFSB_R {
114 TFSB_R::new(((self.bits >> 12) & 1) != 0)
115 }
116 #[doc = "Bit 13 - Test Fail, Long Run. If TFLR=1, the Long Run Test has failed."]
117 #[inline(always)]
118 pub fn tflr(&self) -> TFLR_R {
119 TFLR_R::new(((self.bits >> 13) & 1) != 0)
120 }
121 #[doc = "Bit 14 - Test Fail, Poker. If TFP=1, the Poker Test has failed."]
122 #[inline(always)]
123 pub fn tfp(&self) -> TFP_R {
124 TFP_R::new(((self.bits >> 14) & 1) != 0)
125 }
126 #[doc = "Bit 15 - Test Fail, Mono Bit. If TFMB=1, the Mono Bit Test has failed."]
127 #[inline(always)]
128 pub fn tfmb(&self) -> TFMB_R {
129 TFMB_R::new(((self.bits >> 15) & 1) != 0)
130 }
131 #[doc = "Bits 16:19 - RETRY COUNT"]
132 #[inline(always)]
133 pub fn retry_ct(&self) -> RETRY_CT_R {
134 RETRY_CT_R::new(((self.bits >> 16) & 0x0f) as u8)
135 }
136}
137#[doc = "Status Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [status](index.html) module"]
138pub struct STATUS_SPEC;
139impl crate::RegisterSpec for STATUS_SPEC {
140 type Ux = u32;
141}
142#[doc = "`read()` method returns [status::R](R) reader structure"]
143impl crate::Readable for STATUS_SPEC {
144 type Reader = R;
145}
146#[doc = "`reset()` method sets STATUS to value 0"]
147impl crate::Resettable for STATUS_SPEC {
148 const RESET_VALUE: Self::Ux = 0;
149}