1#[doc = "Register `IF` reader"]
2pub struct R(crate::R<IF_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<IF_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<IF_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<IF_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `IF` writer"]
17pub struct W(crate::W<IF_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<IF_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<IF_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<IF_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `SEQ0EOC` reader - SEQ0EOC field"]
38pub type SEQ0EOC_R = crate::BitReader<bool>;
39#[doc = "Field `SEQ0EOC` writer - SEQ0EOC field"]
40pub type SEQ0EOC_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
41#[doc = "Field `SEQ0OVF` reader - SEQ0OVF field"]
42pub type SEQ0OVF_R = crate::BitReader<bool>;
43#[doc = "Field `SEQ0OVF` writer - SEQ0OVF field"]
44pub type SEQ0OVF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
45#[doc = "Field `SEQ0HALF` reader - SEQ0HALF field"]
46pub type SEQ0HALF_R = crate::BitReader<bool>;
47#[doc = "Field `SEQ0HALF` writer - SEQ0HALF field"]
48pub type SEQ0HALF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
49#[doc = "Field `SEQ0FULL` reader - SEQ0FULL field"]
50pub type SEQ0FULL_R = crate::BitReader<bool>;
51#[doc = "Field `SEQ0FULL` writer - SEQ0FULL field"]
52pub type SEQ0FULL_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
53#[doc = "Field `SEQ0CMPMAX` reader - SEQ0CMPMAX field"]
54pub type SEQ0CMPMAX_R = crate::BitReader<bool>;
55#[doc = "Field `SEQ0CMPMAX` writer - SEQ0CMPMAX field"]
56pub type SEQ0CMPMAX_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
57#[doc = "Field `SEQ0CMPMIN` reader - SEQ0CMPMIN field"]
58pub type SEQ0CMPMIN_R = crate::BitReader<bool>;
59#[doc = "Field `SEQ0CMPMIN` writer - SEQ0CMPMIN field"]
60pub type SEQ0CMPMIN_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
61#[doc = "Field `SEQ1EOC` reader - SEQ1EOC field"]
62pub type SEQ1EOC_R = crate::BitReader<bool>;
63#[doc = "Field `SEQ1EOC` writer - SEQ1EOC field"]
64pub type SEQ1EOC_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
65#[doc = "Field `SEQ1OVF` reader - SEQ1OVF field"]
66pub type SEQ1OVF_R = crate::BitReader<bool>;
67#[doc = "Field `SEQ1OVF` writer - SEQ1OVF field"]
68pub type SEQ1OVF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
69#[doc = "Field `SEQ1HALF` reader - SEQ1HALF field"]
70pub type SEQ1HALF_R = crate::BitReader<bool>;
71#[doc = "Field `SEQ1HALF` writer - SEQ1HALF field"]
72pub type SEQ1HALF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
73#[doc = "Field `SEQ1FULL` reader - SEQ1FULL field"]
74pub type SEQ1FULL_R = crate::BitReader<bool>;
75#[doc = "Field `SEQ1FULL` writer - SEQ1FULL field"]
76pub type SEQ1FULL_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
77#[doc = "Field `SEQ1CMPMAX` reader - SEQ1CMPMAX field"]
78pub type SEQ1CMPMAX_R = crate::BitReader<bool>;
79#[doc = "Field `SEQ1CMPMAX` writer - SEQ1CMPMAX field"]
80pub type SEQ1CMPMAX_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
81#[doc = "Field `SEQ1CMPMIN` reader - SEQ1CMPMIN field"]
82pub type SEQ1CMPMIN_R = crate::BitReader<bool>;
83#[doc = "Field `SEQ1CMPMIN` writer - SEQ1CMPMIN field"]
84pub type SEQ1CMPMIN_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
85#[doc = "Field `SEQ2EOC` reader - SEQ2EOC field"]
86pub type SEQ2EOC_R = crate::BitReader<bool>;
87#[doc = "Field `SEQ2EOC` writer - SEQ2EOC field"]
88pub type SEQ2EOC_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
89#[doc = "Field `SEQ2OVF` reader - SEQ2OVF field"]
90pub type SEQ2OVF_R = crate::BitReader<bool>;
91#[doc = "Field `SEQ2OVF` writer - SEQ2OVF field"]
92pub type SEQ2OVF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
93#[doc = "Field `SEQ2HALF` reader - SEQ2HALF field"]
94pub type SEQ2HALF_R = crate::BitReader<bool>;
95#[doc = "Field `SEQ2HALF` writer - SEQ2HALF field"]
96pub type SEQ2HALF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
97#[doc = "Field `SEQ2FULL` reader - SEQ2FULL field"]
98pub type SEQ2FULL_R = crate::BitReader<bool>;
99#[doc = "Field `SEQ2FULL` writer - SEQ2FULL field"]
100pub type SEQ2FULL_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
101#[doc = "Field `SEQ2CMPMAX` reader - SEQ2CMPMAX field"]
102pub type SEQ2CMPMAX_R = crate::BitReader<bool>;
103#[doc = "Field `SEQ2CMPMAX` writer - SEQ2CMPMAX field"]
104pub type SEQ2CMPMAX_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
105#[doc = "Field `SEQ2CMPMIN` reader - SEQ2CMPMIN field"]
106pub type SEQ2CMPMIN_R = crate::BitReader<bool>;
107#[doc = "Field `SEQ2CMPMIN` writer - SEQ2CMPMIN field"]
108pub type SEQ2CMPMIN_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
109#[doc = "Field `SEQ3EOC` reader - SEQ3EOC field"]
110pub type SEQ3EOC_R = crate::BitReader<bool>;
111#[doc = "Field `SEQ3EOC` writer - SEQ3EOC field"]
112pub type SEQ3EOC_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
113#[doc = "Field `SEQ3OVF` reader - SEQ3OVF field"]
114pub type SEQ3OVF_R = crate::BitReader<bool>;
115#[doc = "Field `SEQ3OVF` writer - SEQ3OVF field"]
116pub type SEQ3OVF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
117#[doc = "Field `SEQ3HALF` reader - SEQ3HALF field"]
118pub type SEQ3HALF_R = crate::BitReader<bool>;
119#[doc = "Field `SEQ3HALF` writer - SEQ3HALF field"]
120pub type SEQ3HALF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
121#[doc = "Field `SEQ3FULL` reader - SEQ3FULL field"]
122pub type SEQ3FULL_R = crate::BitReader<bool>;
123#[doc = "Field `SEQ3FULL` writer - SEQ3FULL field"]
124pub type SEQ3FULL_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
125#[doc = "Field `SEQ3CMPMAX` reader - SEQ3CMPMAX field"]
126pub type SEQ3CMPMAX_R = crate::BitReader<bool>;
127#[doc = "Field `SEQ3CMPMAX` writer - SEQ3CMPMAX field"]
128pub type SEQ3CMPMAX_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
129#[doc = "Field `SEQ3CMPMIN` reader - SEQ3CMPMIN field"]
130pub type SEQ3CMPMIN_R = crate::BitReader<bool>;
131#[doc = "Field `SEQ3CMPMIN` writer - SEQ3CMPMIN field"]
132pub type SEQ3CMPMIN_W<'a, const O: u8> = crate::BitWriter<'a, u32, IF_SPEC, bool, O>;
133impl R {
134 #[doc = "Bit 0 - SEQ0EOC field"]
135 #[inline(always)]
136 pub fn seq0eoc(&self) -> SEQ0EOC_R {
137 SEQ0EOC_R::new((self.bits & 1) != 0)
138 }
139 #[doc = "Bit 1 - SEQ0OVF field"]
140 #[inline(always)]
141 pub fn seq0ovf(&self) -> SEQ0OVF_R {
142 SEQ0OVF_R::new(((self.bits >> 1) & 1) != 0)
143 }
144 #[doc = "Bit 2 - SEQ0HALF field"]
145 #[inline(always)]
146 pub fn seq0half(&self) -> SEQ0HALF_R {
147 SEQ0HALF_R::new(((self.bits >> 2) & 1) != 0)
148 }
149 #[doc = "Bit 3 - SEQ0FULL field"]
150 #[inline(always)]
151 pub fn seq0full(&self) -> SEQ0FULL_R {
152 SEQ0FULL_R::new(((self.bits >> 3) & 1) != 0)
153 }
154 #[doc = "Bit 4 - SEQ0CMPMAX field"]
155 #[inline(always)]
156 pub fn seq0cmpmax(&self) -> SEQ0CMPMAX_R {
157 SEQ0CMPMAX_R::new(((self.bits >> 4) & 1) != 0)
158 }
159 #[doc = "Bit 5 - SEQ0CMPMIN field"]
160 #[inline(always)]
161 pub fn seq0cmpmin(&self) -> SEQ0CMPMIN_R {
162 SEQ0CMPMIN_R::new(((self.bits >> 5) & 1) != 0)
163 }
164 #[doc = "Bit 8 - SEQ1EOC field"]
165 #[inline(always)]
166 pub fn seq1eoc(&self) -> SEQ1EOC_R {
167 SEQ1EOC_R::new(((self.bits >> 8) & 1) != 0)
168 }
169 #[doc = "Bit 9 - SEQ1OVF field"]
170 #[inline(always)]
171 pub fn seq1ovf(&self) -> SEQ1OVF_R {
172 SEQ1OVF_R::new(((self.bits >> 9) & 1) != 0)
173 }
174 #[doc = "Bit 10 - SEQ1HALF field"]
175 #[inline(always)]
176 pub fn seq1half(&self) -> SEQ1HALF_R {
177 SEQ1HALF_R::new(((self.bits >> 10) & 1) != 0)
178 }
179 #[doc = "Bit 11 - SEQ1FULL field"]
180 #[inline(always)]
181 pub fn seq1full(&self) -> SEQ1FULL_R {
182 SEQ1FULL_R::new(((self.bits >> 11) & 1) != 0)
183 }
184 #[doc = "Bit 12 - SEQ1CMPMAX field"]
185 #[inline(always)]
186 pub fn seq1cmpmax(&self) -> SEQ1CMPMAX_R {
187 SEQ1CMPMAX_R::new(((self.bits >> 12) & 1) != 0)
188 }
189 #[doc = "Bit 13 - SEQ1CMPMIN field"]
190 #[inline(always)]
191 pub fn seq1cmpmin(&self) -> SEQ1CMPMIN_R {
192 SEQ1CMPMIN_R::new(((self.bits >> 13) & 1) != 0)
193 }
194 #[doc = "Bit 16 - SEQ2EOC field"]
195 #[inline(always)]
196 pub fn seq2eoc(&self) -> SEQ2EOC_R {
197 SEQ2EOC_R::new(((self.bits >> 16) & 1) != 0)
198 }
199 #[doc = "Bit 17 - SEQ2OVF field"]
200 #[inline(always)]
201 pub fn seq2ovf(&self) -> SEQ2OVF_R {
202 SEQ2OVF_R::new(((self.bits >> 17) & 1) != 0)
203 }
204 #[doc = "Bit 18 - SEQ2HALF field"]
205 #[inline(always)]
206 pub fn seq2half(&self) -> SEQ2HALF_R {
207 SEQ2HALF_R::new(((self.bits >> 18) & 1) != 0)
208 }
209 #[doc = "Bit 19 - SEQ2FULL field"]
210 #[inline(always)]
211 pub fn seq2full(&self) -> SEQ2FULL_R {
212 SEQ2FULL_R::new(((self.bits >> 19) & 1) != 0)
213 }
214 #[doc = "Bit 20 - SEQ2CMPMAX field"]
215 #[inline(always)]
216 pub fn seq2cmpmax(&self) -> SEQ2CMPMAX_R {
217 SEQ2CMPMAX_R::new(((self.bits >> 20) & 1) != 0)
218 }
219 #[doc = "Bit 21 - SEQ2CMPMIN field"]
220 #[inline(always)]
221 pub fn seq2cmpmin(&self) -> SEQ2CMPMIN_R {
222 SEQ2CMPMIN_R::new(((self.bits >> 21) & 1) != 0)
223 }
224 #[doc = "Bit 24 - SEQ3EOC field"]
225 #[inline(always)]
226 pub fn seq3eoc(&self) -> SEQ3EOC_R {
227 SEQ3EOC_R::new(((self.bits >> 24) & 1) != 0)
228 }
229 #[doc = "Bit 25 - SEQ3OVF field"]
230 #[inline(always)]
231 pub fn seq3ovf(&self) -> SEQ3OVF_R {
232 SEQ3OVF_R::new(((self.bits >> 25) & 1) != 0)
233 }
234 #[doc = "Bit 26 - SEQ3HALF field"]
235 #[inline(always)]
236 pub fn seq3half(&self) -> SEQ3HALF_R {
237 SEQ3HALF_R::new(((self.bits >> 26) & 1) != 0)
238 }
239 #[doc = "Bit 27 - SEQ3FULL field"]
240 #[inline(always)]
241 pub fn seq3full(&self) -> SEQ3FULL_R {
242 SEQ3FULL_R::new(((self.bits >> 27) & 1) != 0)
243 }
244 #[doc = "Bit 28 - SEQ3CMPMAX field"]
245 #[inline(always)]
246 pub fn seq3cmpmax(&self) -> SEQ3CMPMAX_R {
247 SEQ3CMPMAX_R::new(((self.bits >> 28) & 1) != 0)
248 }
249 #[doc = "Bit 29 - SEQ3CMPMIN field"]
250 #[inline(always)]
251 pub fn seq3cmpmin(&self) -> SEQ3CMPMIN_R {
252 SEQ3CMPMIN_R::new(((self.bits >> 29) & 1) != 0)
253 }
254}
255impl W {
256 #[doc = "Bit 0 - SEQ0EOC field"]
257 #[inline(always)]
258 pub fn seq0eoc(&mut self) -> SEQ0EOC_W<0> {
259 SEQ0EOC_W::new(self)
260 }
261 #[doc = "Bit 1 - SEQ0OVF field"]
262 #[inline(always)]
263 pub fn seq0ovf(&mut self) -> SEQ0OVF_W<1> {
264 SEQ0OVF_W::new(self)
265 }
266 #[doc = "Bit 2 - SEQ0HALF field"]
267 #[inline(always)]
268 pub fn seq0half(&mut self) -> SEQ0HALF_W<2> {
269 SEQ0HALF_W::new(self)
270 }
271 #[doc = "Bit 3 - SEQ0FULL field"]
272 #[inline(always)]
273 pub fn seq0full(&mut self) -> SEQ0FULL_W<3> {
274 SEQ0FULL_W::new(self)
275 }
276 #[doc = "Bit 4 - SEQ0CMPMAX field"]
277 #[inline(always)]
278 pub fn seq0cmpmax(&mut self) -> SEQ0CMPMAX_W<4> {
279 SEQ0CMPMAX_W::new(self)
280 }
281 #[doc = "Bit 5 - SEQ0CMPMIN field"]
282 #[inline(always)]
283 pub fn seq0cmpmin(&mut self) -> SEQ0CMPMIN_W<5> {
284 SEQ0CMPMIN_W::new(self)
285 }
286 #[doc = "Bit 8 - SEQ1EOC field"]
287 #[inline(always)]
288 pub fn seq1eoc(&mut self) -> SEQ1EOC_W<8> {
289 SEQ1EOC_W::new(self)
290 }
291 #[doc = "Bit 9 - SEQ1OVF field"]
292 #[inline(always)]
293 pub fn seq1ovf(&mut self) -> SEQ1OVF_W<9> {
294 SEQ1OVF_W::new(self)
295 }
296 #[doc = "Bit 10 - SEQ1HALF field"]
297 #[inline(always)]
298 pub fn seq1half(&mut self) -> SEQ1HALF_W<10> {
299 SEQ1HALF_W::new(self)
300 }
301 #[doc = "Bit 11 - SEQ1FULL field"]
302 #[inline(always)]
303 pub fn seq1full(&mut self) -> SEQ1FULL_W<11> {
304 SEQ1FULL_W::new(self)
305 }
306 #[doc = "Bit 12 - SEQ1CMPMAX field"]
307 #[inline(always)]
308 pub fn seq1cmpmax(&mut self) -> SEQ1CMPMAX_W<12> {
309 SEQ1CMPMAX_W::new(self)
310 }
311 #[doc = "Bit 13 - SEQ1CMPMIN field"]
312 #[inline(always)]
313 pub fn seq1cmpmin(&mut self) -> SEQ1CMPMIN_W<13> {
314 SEQ1CMPMIN_W::new(self)
315 }
316 #[doc = "Bit 16 - SEQ2EOC field"]
317 #[inline(always)]
318 pub fn seq2eoc(&mut self) -> SEQ2EOC_W<16> {
319 SEQ2EOC_W::new(self)
320 }
321 #[doc = "Bit 17 - SEQ2OVF field"]
322 #[inline(always)]
323 pub fn seq2ovf(&mut self) -> SEQ2OVF_W<17> {
324 SEQ2OVF_W::new(self)
325 }
326 #[doc = "Bit 18 - SEQ2HALF field"]
327 #[inline(always)]
328 pub fn seq2half(&mut self) -> SEQ2HALF_W<18> {
329 SEQ2HALF_W::new(self)
330 }
331 #[doc = "Bit 19 - SEQ2FULL field"]
332 #[inline(always)]
333 pub fn seq2full(&mut self) -> SEQ2FULL_W<19> {
334 SEQ2FULL_W::new(self)
335 }
336 #[doc = "Bit 20 - SEQ2CMPMAX field"]
337 #[inline(always)]
338 pub fn seq2cmpmax(&mut self) -> SEQ2CMPMAX_W<20> {
339 SEQ2CMPMAX_W::new(self)
340 }
341 #[doc = "Bit 21 - SEQ2CMPMIN field"]
342 #[inline(always)]
343 pub fn seq2cmpmin(&mut self) -> SEQ2CMPMIN_W<21> {
344 SEQ2CMPMIN_W::new(self)
345 }
346 #[doc = "Bit 24 - SEQ3EOC field"]
347 #[inline(always)]
348 pub fn seq3eoc(&mut self) -> SEQ3EOC_W<24> {
349 SEQ3EOC_W::new(self)
350 }
351 #[doc = "Bit 25 - SEQ3OVF field"]
352 #[inline(always)]
353 pub fn seq3ovf(&mut self) -> SEQ3OVF_W<25> {
354 SEQ3OVF_W::new(self)
355 }
356 #[doc = "Bit 26 - SEQ3HALF field"]
357 #[inline(always)]
358 pub fn seq3half(&mut self) -> SEQ3HALF_W<26> {
359 SEQ3HALF_W::new(self)
360 }
361 #[doc = "Bit 27 - SEQ3FULL field"]
362 #[inline(always)]
363 pub fn seq3full(&mut self) -> SEQ3FULL_W<27> {
364 SEQ3FULL_W::new(self)
365 }
366 #[doc = "Bit 28 - SEQ3CMPMAX field"]
367 #[inline(always)]
368 pub fn seq3cmpmax(&mut self) -> SEQ3CMPMAX_W<28> {
369 SEQ3CMPMAX_W::new(self)
370 }
371 #[doc = "Bit 29 - SEQ3CMPMIN field"]
372 #[inline(always)]
373 pub fn seq3cmpmin(&mut self) -> SEQ3CMPMIN_W<29> {
374 SEQ3CMPMIN_W::new(self)
375 }
376 #[doc = "Writes raw bits to the register."]
377 #[inline(always)]
378 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
379 self.0.bits(bits);
380 self
381 }
382}
383#[doc = "IF 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 [if_](index.html) module"]
384pub struct IF_SPEC;
385impl crate::RegisterSpec for IF_SPEC {
386 type Ux = u32;
387}
388#[doc = "`read()` method returns [if_::R](R) reader structure"]
389impl crate::Readable for IF_SPEC {
390 type Reader = R;
391}
392#[doc = "`write(|w| ..)` method takes [if_::W](W) writer structure"]
393impl crate::Writable for IF_SPEC {
394 type Writer = W;
395}
396#[doc = "`reset()` method sets IF to value 0"]
397impl crate::Resettable for IF_SPEC {
398 #[inline(always)]
399 fn reset_value() -> Self::Ux {
400 0
401 }
402}