1#[doc = "Register `dctest_actest` reader"]
2pub struct R(crate::R<DCTEST_ACTEST_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<DCTEST_ACTEST_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<DCTEST_ACTEST_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<DCTEST_ACTEST_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `dctest_actest` writer"]
17pub struct W(crate::W<DCTEST_ACTEST_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<DCTEST_ACTEST_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<DCTEST_ACTEST_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<DCTEST_ACTEST_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `dc_tp_out_en` reader - "]
38pub type DC_TP_OUT_EN_R = crate::FieldReader<u8, u8>;
39#[doc = "Field `dc_tp_out_en` writer - "]
40pub type DC_TP_OUT_EN_W<'a, const O: u8> =
41 crate::FieldWriter<'a, u32, DCTEST_ACTEST_SPEC, u8, u8, 2, O>;
42#[doc = "Field `atest_out_en` reader - "]
43pub type ATEST_OUT_EN_R = crate::FieldReader<u8, u8>;
44#[doc = "Field `atest_out_en` writer - "]
45pub type ATEST_OUT_EN_W<'a, const O: u8> =
46 crate::FieldWriter<'a, u32, DCTEST_ACTEST_SPEC, u8, u8, 2, O>;
47#[doc = "Field `ten_dtc` reader - "]
48pub type TEN_DTC_R = crate::BitReader<bool>;
49#[doc = "Field `ten_dtc` writer - "]
50pub type TEN_DTC_W<'a, const O: u8> = crate::BitWriter<'a, u32, DCTEST_ACTEST_SPEC, bool, O>;
51#[doc = "Field `ten_rbb` reader - "]
52pub type TEN_RBB_R = crate::BitReader<bool>;
53#[doc = "Field `ten_rbb` writer - "]
54pub type TEN_RBB_W<'a, const O: u8> = crate::BitWriter<'a, u32, DCTEST_ACTEST_SPEC, bool, O>;
55#[doc = "Field `ten_rbb_actest` reader - "]
56pub type TEN_RBB_ACTEST_R = crate::BitReader<bool>;
57#[doc = "Field `ten_rbb_actest` writer - "]
58pub type TEN_RBB_ACTEST_W<'a, const O: u8> = crate::BitWriter<'a, u32, DCTEST_ACTEST_SPEC, bool, O>;
59#[doc = "Field `ten_adpll_adc` reader - "]
60pub type TEN_ADPLL_ADC_R = crate::BitReader<bool>;
61#[doc = "Field `ten_adpll_adc` writer - "]
62pub type TEN_ADPLL_ADC_W<'a, const O: u8> = crate::BitWriter<'a, u32, DCTEST_ACTEST_SPEC, bool, O>;
63#[doc = "Field `ten_vco` reader - "]
64pub type TEN_VCO_R = crate::BitReader<bool>;
65#[doc = "Field `ten_vco` writer - "]
66pub type TEN_VCO_W<'a, const O: u8> = crate::BitWriter<'a, u32, DCTEST_ACTEST_SPEC, bool, O>;
67#[doc = "Field `ten_rxadc` reader - "]
68pub type TEN_RXADC_R = crate::BitReader<bool>;
69#[doc = "Field `ten_rxadc` writer - "]
70pub type TEN_RXADC_W<'a, const O: u8> = crate::BitWriter<'a, u32, DCTEST_ACTEST_SPEC, bool, O>;
71#[doc = "Field `ten_rrf1` reader - "]
72pub type TEN_RRF1_R = crate::BitReader<bool>;
73#[doc = "Field `ten_rrf1` writer - "]
74pub type TEN_RRF1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DCTEST_ACTEST_SPEC, bool, O>;
75#[doc = "Field `ten_rrf0` reader - "]
76pub type TEN_RRF0_R = crate::BitReader<bool>;
77#[doc = "Field `ten_rrf0` writer - "]
78pub type TEN_RRF0_W<'a, const O: u8> = crate::BitWriter<'a, u32, DCTEST_ACTEST_SPEC, bool, O>;
79#[doc = "Field `ten_pa_1` reader - "]
80pub type TEN_PA_1_R = crate::BitReader<bool>;
81#[doc = "Field `ten_pa_1` writer - "]
82pub type TEN_PA_1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DCTEST_ACTEST_SPEC, bool, O>;
83#[doc = "Field `ten_pa_0` reader - "]
84pub type TEN_PA_0_R = crate::BitReader<bool>;
85#[doc = "Field `ten_pa_0` writer - "]
86pub type TEN_PA_0_W<'a, const O: u8> = crate::BitWriter<'a, u32, DCTEST_ACTEST_SPEC, bool, O>;
87#[doc = "Field `ten_lodist` reader - "]
88pub type TEN_LODIST_R = crate::BitReader<bool>;
89#[doc = "Field `ten_lodist` writer - "]
90pub type TEN_LODIST_W<'a, const O: u8> = crate::BitWriter<'a, u32, DCTEST_ACTEST_SPEC, bool, O>;
91#[doc = "Field `ten_dll` reader - "]
92pub type TEN_DLL_R = crate::BitReader<bool>;
93#[doc = "Field `ten_dll` writer - "]
94pub type TEN_DLL_W<'a, const O: u8> = crate::BitWriter<'a, u32, DCTEST_ACTEST_SPEC, bool, O>;
95#[doc = "Field `ten_mbg` reader - "]
96pub type TEN_MBG_R = crate::BitReader<bool>;
97#[doc = "Field `ten_mbg` writer - "]
98pub type TEN_MBG_W<'a, const O: u8> = crate::BitWriter<'a, u32, DCTEST_ACTEST_SPEC, bool, O>;
99impl R {
100 #[doc = "Bits 4:5"]
101 #[inline(always)]
102 pub fn dc_tp_out_en(&self) -> DC_TP_OUT_EN_R {
103 DC_TP_OUT_EN_R::new(((self.bits >> 4) & 3) as u8)
104 }
105 #[doc = "Bits 6:7"]
106 #[inline(always)]
107 pub fn atest_out_en(&self) -> ATEST_OUT_EN_R {
108 ATEST_OUT_EN_R::new(((self.bits >> 6) & 3) as u8)
109 }
110 #[doc = "Bit 17"]
111 #[inline(always)]
112 pub fn ten_dtc(&self) -> TEN_DTC_R {
113 TEN_DTC_R::new(((self.bits >> 17) & 1) != 0)
114 }
115 #[doc = "Bit 18"]
116 #[inline(always)]
117 pub fn ten_rbb(&self) -> TEN_RBB_R {
118 TEN_RBB_R::new(((self.bits >> 18) & 1) != 0)
119 }
120 #[doc = "Bit 19"]
121 #[inline(always)]
122 pub fn ten_rbb_actest(&self) -> TEN_RBB_ACTEST_R {
123 TEN_RBB_ACTEST_R::new(((self.bits >> 19) & 1) != 0)
124 }
125 #[doc = "Bit 20"]
126 #[inline(always)]
127 pub fn ten_adpll_adc(&self) -> TEN_ADPLL_ADC_R {
128 TEN_ADPLL_ADC_R::new(((self.bits >> 20) & 1) != 0)
129 }
130 #[doc = "Bit 21"]
131 #[inline(always)]
132 pub fn ten_vco(&self) -> TEN_VCO_R {
133 TEN_VCO_R::new(((self.bits >> 21) & 1) != 0)
134 }
135 #[doc = "Bit 22"]
136 #[inline(always)]
137 pub fn ten_rxadc(&self) -> TEN_RXADC_R {
138 TEN_RXADC_R::new(((self.bits >> 22) & 1) != 0)
139 }
140 #[doc = "Bit 23"]
141 #[inline(always)]
142 pub fn ten_rrf1(&self) -> TEN_RRF1_R {
143 TEN_RRF1_R::new(((self.bits >> 23) & 1) != 0)
144 }
145 #[doc = "Bit 24"]
146 #[inline(always)]
147 pub fn ten_rrf0(&self) -> TEN_RRF0_R {
148 TEN_RRF0_R::new(((self.bits >> 24) & 1) != 0)
149 }
150 #[doc = "Bit 25"]
151 #[inline(always)]
152 pub fn ten_pa_1(&self) -> TEN_PA_1_R {
153 TEN_PA_1_R::new(((self.bits >> 25) & 1) != 0)
154 }
155 #[doc = "Bit 26"]
156 #[inline(always)]
157 pub fn ten_pa_0(&self) -> TEN_PA_0_R {
158 TEN_PA_0_R::new(((self.bits >> 26) & 1) != 0)
159 }
160 #[doc = "Bit 27"]
161 #[inline(always)]
162 pub fn ten_lodist(&self) -> TEN_LODIST_R {
163 TEN_LODIST_R::new(((self.bits >> 27) & 1) != 0)
164 }
165 #[doc = "Bit 28"]
166 #[inline(always)]
167 pub fn ten_dll(&self) -> TEN_DLL_R {
168 TEN_DLL_R::new(((self.bits >> 28) & 1) != 0)
169 }
170 #[doc = "Bit 31"]
171 #[inline(always)]
172 pub fn ten_mbg(&self) -> TEN_MBG_R {
173 TEN_MBG_R::new(((self.bits >> 31) & 1) != 0)
174 }
175}
176impl W {
177 #[doc = "Bits 4:5"]
178 #[inline(always)]
179 #[must_use]
180 pub fn dc_tp_out_en(&mut self) -> DC_TP_OUT_EN_W<4> {
181 DC_TP_OUT_EN_W::new(self)
182 }
183 #[doc = "Bits 6:7"]
184 #[inline(always)]
185 #[must_use]
186 pub fn atest_out_en(&mut self) -> ATEST_OUT_EN_W<6> {
187 ATEST_OUT_EN_W::new(self)
188 }
189 #[doc = "Bit 17"]
190 #[inline(always)]
191 #[must_use]
192 pub fn ten_dtc(&mut self) -> TEN_DTC_W<17> {
193 TEN_DTC_W::new(self)
194 }
195 #[doc = "Bit 18"]
196 #[inline(always)]
197 #[must_use]
198 pub fn ten_rbb(&mut self) -> TEN_RBB_W<18> {
199 TEN_RBB_W::new(self)
200 }
201 #[doc = "Bit 19"]
202 #[inline(always)]
203 #[must_use]
204 pub fn ten_rbb_actest(&mut self) -> TEN_RBB_ACTEST_W<19> {
205 TEN_RBB_ACTEST_W::new(self)
206 }
207 #[doc = "Bit 20"]
208 #[inline(always)]
209 #[must_use]
210 pub fn ten_adpll_adc(&mut self) -> TEN_ADPLL_ADC_W<20> {
211 TEN_ADPLL_ADC_W::new(self)
212 }
213 #[doc = "Bit 21"]
214 #[inline(always)]
215 #[must_use]
216 pub fn ten_vco(&mut self) -> TEN_VCO_W<21> {
217 TEN_VCO_W::new(self)
218 }
219 #[doc = "Bit 22"]
220 #[inline(always)]
221 #[must_use]
222 pub fn ten_rxadc(&mut self) -> TEN_RXADC_W<22> {
223 TEN_RXADC_W::new(self)
224 }
225 #[doc = "Bit 23"]
226 #[inline(always)]
227 #[must_use]
228 pub fn ten_rrf1(&mut self) -> TEN_RRF1_W<23> {
229 TEN_RRF1_W::new(self)
230 }
231 #[doc = "Bit 24"]
232 #[inline(always)]
233 #[must_use]
234 pub fn ten_rrf0(&mut self) -> TEN_RRF0_W<24> {
235 TEN_RRF0_W::new(self)
236 }
237 #[doc = "Bit 25"]
238 #[inline(always)]
239 #[must_use]
240 pub fn ten_pa_1(&mut self) -> TEN_PA_1_W<25> {
241 TEN_PA_1_W::new(self)
242 }
243 #[doc = "Bit 26"]
244 #[inline(always)]
245 #[must_use]
246 pub fn ten_pa_0(&mut self) -> TEN_PA_0_W<26> {
247 TEN_PA_0_W::new(self)
248 }
249 #[doc = "Bit 27"]
250 #[inline(always)]
251 #[must_use]
252 pub fn ten_lodist(&mut self) -> TEN_LODIST_W<27> {
253 TEN_LODIST_W::new(self)
254 }
255 #[doc = "Bit 28"]
256 #[inline(always)]
257 #[must_use]
258 pub fn ten_dll(&mut self) -> TEN_DLL_W<28> {
259 TEN_DLL_W::new(self)
260 }
261 #[doc = "Bit 31"]
262 #[inline(always)]
263 #[must_use]
264 pub fn ten_mbg(&mut self) -> TEN_MBG_W<31> {
265 TEN_MBG_W::new(self)
266 }
267 #[doc = "Writes raw bits to the register."]
268 #[inline(always)]
269 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
270 self.0.bits(bits);
271 self
272 }
273}
274#[doc = "DC Test register 0\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 [dctest_actest](index.html) module"]
275pub struct DCTEST_ACTEST_SPEC;
276impl crate::RegisterSpec for DCTEST_ACTEST_SPEC {
277 type Ux = u32;
278}
279#[doc = "`read()` method returns [dctest_actest::R](R) reader structure"]
280impl crate::Readable for DCTEST_ACTEST_SPEC {
281 type Reader = R;
282}
283#[doc = "`write(|w| ..)` method takes [dctest_actest::W](W) writer structure"]
284impl crate::Writable for DCTEST_ACTEST_SPEC {
285 type Writer = W;
286 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
287 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
288}
289#[doc = "`reset()` method sets dctest_actest to value 0"]
290impl crate::Resettable for DCTEST_ACTEST_SPEC {
291 const RESET_VALUE: Self::Ux = 0;
292}