1#[doc = "Register `SINGLECTRL` reader"]
2pub struct R(crate::R<SINGLECTRL_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<SINGLECTRL_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<SINGLECTRL_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<SINGLECTRL_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `SINGLECTRL` writer"]
17pub struct W(crate::W<SINGLECTRL_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<SINGLECTRL_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<SINGLECTRL_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<SINGLECTRL_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Single Channel Input Select\n\nValue on reset: 0"]
38#[derive(Clone, Copy, Debug, PartialEq)]
39#[repr(u8)]
40pub enum SINGLESEL_A {
41 #[doc = "32: `100000`"]
42 APORT1XCH0 = 32,
43 #[doc = "33: `100001`"]
44 APORT1YCH1 = 33,
45 #[doc = "34: `100010`"]
46 APORT1XCH2 = 34,
47 #[doc = "35: `100011`"]
48 APORT1YCH3 = 35,
49 #[doc = "36: `100100`"]
50 APORT1XCH4 = 36,
51 #[doc = "37: `100101`"]
52 APORT1YCH5 = 37,
53 #[doc = "38: `100110`"]
54 APORT1XCH6 = 38,
55 #[doc = "39: `100111`"]
56 APORT1YCH7 = 39,
57 #[doc = "40: `101000`"]
58 APORT1XCH8 = 40,
59 #[doc = "41: `101001`"]
60 APORT1YCH9 = 41,
61 #[doc = "42: `101010`"]
62 APORT1XCH10 = 42,
63 #[doc = "43: `101011`"]
64 APORT1YCH11 = 43,
65 #[doc = "44: `101100`"]
66 APORT1XCH12 = 44,
67 #[doc = "45: `101101`"]
68 APORT1YCH13 = 45,
69 #[doc = "46: `101110`"]
70 APORT1XCH14 = 46,
71 #[doc = "47: `101111`"]
72 APORT1YCH15 = 47,
73 #[doc = "48: `110000`"]
74 APORT1XCH16 = 48,
75 #[doc = "49: `110001`"]
76 APORT1YCH17 = 49,
77 #[doc = "50: `110010`"]
78 APORT1XCH18 = 50,
79 #[doc = "51: `110011`"]
80 APORT1YCH19 = 51,
81 #[doc = "52: `110100`"]
82 APORT1XCH20 = 52,
83 #[doc = "53: `110101`"]
84 APORT1YCH21 = 53,
85 #[doc = "54: `110110`"]
86 APORT1XCH22 = 54,
87 #[doc = "55: `110111`"]
88 APORT1YCH23 = 55,
89 #[doc = "56: `111000`"]
90 APORT1XCH24 = 56,
91 #[doc = "57: `111001`"]
92 APORT1YCH25 = 57,
93 #[doc = "58: `111010`"]
94 APORT1XCH26 = 58,
95 #[doc = "59: `111011`"]
96 APORT1YCH27 = 59,
97 #[doc = "60: `111100`"]
98 APORT1XCH28 = 60,
99 #[doc = "61: `111101`"]
100 APORT1YCH29 = 61,
101 #[doc = "62: `111110`"]
102 APORT1XCH30 = 62,
103 #[doc = "63: `111111`"]
104 APORT1YCH31 = 63,
105 #[doc = "96: `1100000`"]
106 APORT3XCH0 = 96,
107 #[doc = "97: `1100001`"]
108 APORT3YCH1 = 97,
109 #[doc = "98: `1100010`"]
110 APORT3XCH2 = 98,
111 #[doc = "99: `1100011`"]
112 APORT3YCH3 = 99,
113 #[doc = "100: `1100100`"]
114 APORT3XCH4 = 100,
115 #[doc = "101: `1100101`"]
116 APORT3YCH5 = 101,
117 #[doc = "102: `1100110`"]
118 APORT3XCH6 = 102,
119 #[doc = "103: `1100111`"]
120 APORT3YCH7 = 103,
121 #[doc = "104: `1101000`"]
122 APORT3XCH8 = 104,
123 #[doc = "105: `1101001`"]
124 APORT3YCH9 = 105,
125 #[doc = "106: `1101010`"]
126 APORT3XCH10 = 106,
127 #[doc = "107: `1101011`"]
128 APORT3YCH11 = 107,
129 #[doc = "108: `1101100`"]
130 APORT3XCH12 = 108,
131 #[doc = "109: `1101101`"]
132 APORT3YCH13 = 109,
133 #[doc = "110: `1101110`"]
134 APORT3XCH14 = 110,
135 #[doc = "111: `1101111`"]
136 APORT3YCH15 = 111,
137 #[doc = "112: `1110000`"]
138 APORT3XCH16 = 112,
139 #[doc = "113: `1110001`"]
140 APORT3YCH17 = 113,
141 #[doc = "114: `1110010`"]
142 APORT3XCH18 = 114,
143 #[doc = "115: `1110011`"]
144 APORT3YCH19 = 115,
145 #[doc = "116: `1110100`"]
146 APORT3XCH20 = 116,
147 #[doc = "117: `1110101`"]
148 APORT3YCH21 = 117,
149 #[doc = "118: `1110110`"]
150 APORT3XCH22 = 118,
151 #[doc = "119: `1110111`"]
152 APORT3YCH23 = 119,
153 #[doc = "120: `1111000`"]
154 APORT3XCH24 = 120,
155 #[doc = "121: `1111001`"]
156 APORT3YCH25 = 121,
157 #[doc = "122: `1111010`"]
158 APORT3XCH26 = 122,
159 #[doc = "123: `1111011`"]
160 APORT3YCH27 = 123,
161 #[doc = "124: `1111100`"]
162 APORT3XCH28 = 124,
163 #[doc = "125: `1111101`"]
164 APORT3YCH29 = 125,
165 #[doc = "126: `1111110`"]
166 APORT3XCH30 = 126,
167 #[doc = "127: `1111111`"]
168 APORT3YCH31 = 127,
169}
170impl From<SINGLESEL_A> for u8 {
171 #[inline(always)]
172 fn from(variant: SINGLESEL_A) -> Self {
173 variant as _
174 }
175}
176#[doc = "Field `SINGLESEL` reader - Single Channel Input Select"]
177pub type SINGLESEL_R = crate::FieldReader<u8, SINGLESEL_A>;
178impl SINGLESEL_R {
179 #[doc = "Get enumerated values variant"]
180 #[inline(always)]
181 pub fn variant(&self) -> Option<SINGLESEL_A> {
182 match self.bits {
183 32 => Some(SINGLESEL_A::APORT1XCH0),
184 33 => Some(SINGLESEL_A::APORT1YCH1),
185 34 => Some(SINGLESEL_A::APORT1XCH2),
186 35 => Some(SINGLESEL_A::APORT1YCH3),
187 36 => Some(SINGLESEL_A::APORT1XCH4),
188 37 => Some(SINGLESEL_A::APORT1YCH5),
189 38 => Some(SINGLESEL_A::APORT1XCH6),
190 39 => Some(SINGLESEL_A::APORT1YCH7),
191 40 => Some(SINGLESEL_A::APORT1XCH8),
192 41 => Some(SINGLESEL_A::APORT1YCH9),
193 42 => Some(SINGLESEL_A::APORT1XCH10),
194 43 => Some(SINGLESEL_A::APORT1YCH11),
195 44 => Some(SINGLESEL_A::APORT1XCH12),
196 45 => Some(SINGLESEL_A::APORT1YCH13),
197 46 => Some(SINGLESEL_A::APORT1XCH14),
198 47 => Some(SINGLESEL_A::APORT1YCH15),
199 48 => Some(SINGLESEL_A::APORT1XCH16),
200 49 => Some(SINGLESEL_A::APORT1YCH17),
201 50 => Some(SINGLESEL_A::APORT1XCH18),
202 51 => Some(SINGLESEL_A::APORT1YCH19),
203 52 => Some(SINGLESEL_A::APORT1XCH20),
204 53 => Some(SINGLESEL_A::APORT1YCH21),
205 54 => Some(SINGLESEL_A::APORT1XCH22),
206 55 => Some(SINGLESEL_A::APORT1YCH23),
207 56 => Some(SINGLESEL_A::APORT1XCH24),
208 57 => Some(SINGLESEL_A::APORT1YCH25),
209 58 => Some(SINGLESEL_A::APORT1XCH26),
210 59 => Some(SINGLESEL_A::APORT1YCH27),
211 60 => Some(SINGLESEL_A::APORT1XCH28),
212 61 => Some(SINGLESEL_A::APORT1YCH29),
213 62 => Some(SINGLESEL_A::APORT1XCH30),
214 63 => Some(SINGLESEL_A::APORT1YCH31),
215 96 => Some(SINGLESEL_A::APORT3XCH0),
216 97 => Some(SINGLESEL_A::APORT3YCH1),
217 98 => Some(SINGLESEL_A::APORT3XCH2),
218 99 => Some(SINGLESEL_A::APORT3YCH3),
219 100 => Some(SINGLESEL_A::APORT3XCH4),
220 101 => Some(SINGLESEL_A::APORT3YCH5),
221 102 => Some(SINGLESEL_A::APORT3XCH6),
222 103 => Some(SINGLESEL_A::APORT3YCH7),
223 104 => Some(SINGLESEL_A::APORT3XCH8),
224 105 => Some(SINGLESEL_A::APORT3YCH9),
225 106 => Some(SINGLESEL_A::APORT3XCH10),
226 107 => Some(SINGLESEL_A::APORT3YCH11),
227 108 => Some(SINGLESEL_A::APORT3XCH12),
228 109 => Some(SINGLESEL_A::APORT3YCH13),
229 110 => Some(SINGLESEL_A::APORT3XCH14),
230 111 => Some(SINGLESEL_A::APORT3YCH15),
231 112 => Some(SINGLESEL_A::APORT3XCH16),
232 113 => Some(SINGLESEL_A::APORT3YCH17),
233 114 => Some(SINGLESEL_A::APORT3XCH18),
234 115 => Some(SINGLESEL_A::APORT3YCH19),
235 116 => Some(SINGLESEL_A::APORT3XCH20),
236 117 => Some(SINGLESEL_A::APORT3YCH21),
237 118 => Some(SINGLESEL_A::APORT3XCH22),
238 119 => Some(SINGLESEL_A::APORT3YCH23),
239 120 => Some(SINGLESEL_A::APORT3XCH24),
240 121 => Some(SINGLESEL_A::APORT3YCH25),
241 122 => Some(SINGLESEL_A::APORT3XCH26),
242 123 => Some(SINGLESEL_A::APORT3YCH27),
243 124 => Some(SINGLESEL_A::APORT3XCH28),
244 125 => Some(SINGLESEL_A::APORT3YCH29),
245 126 => Some(SINGLESEL_A::APORT3XCH30),
246 127 => Some(SINGLESEL_A::APORT3YCH31),
247 _ => None,
248 }
249 }
250 #[doc = "Checks if the value of the field is `APORT1XCH0`"]
251 #[inline(always)]
252 pub fn is_aport1xch0(&self) -> bool {
253 *self == SINGLESEL_A::APORT1XCH0
254 }
255 #[doc = "Checks if the value of the field is `APORT1YCH1`"]
256 #[inline(always)]
257 pub fn is_aport1ych1(&self) -> bool {
258 *self == SINGLESEL_A::APORT1YCH1
259 }
260 #[doc = "Checks if the value of the field is `APORT1XCH2`"]
261 #[inline(always)]
262 pub fn is_aport1xch2(&self) -> bool {
263 *self == SINGLESEL_A::APORT1XCH2
264 }
265 #[doc = "Checks if the value of the field is `APORT1YCH3`"]
266 #[inline(always)]
267 pub fn is_aport1ych3(&self) -> bool {
268 *self == SINGLESEL_A::APORT1YCH3
269 }
270 #[doc = "Checks if the value of the field is `APORT1XCH4`"]
271 #[inline(always)]
272 pub fn is_aport1xch4(&self) -> bool {
273 *self == SINGLESEL_A::APORT1XCH4
274 }
275 #[doc = "Checks if the value of the field is `APORT1YCH5`"]
276 #[inline(always)]
277 pub fn is_aport1ych5(&self) -> bool {
278 *self == SINGLESEL_A::APORT1YCH5
279 }
280 #[doc = "Checks if the value of the field is `APORT1XCH6`"]
281 #[inline(always)]
282 pub fn is_aport1xch6(&self) -> bool {
283 *self == SINGLESEL_A::APORT1XCH6
284 }
285 #[doc = "Checks if the value of the field is `APORT1YCH7`"]
286 #[inline(always)]
287 pub fn is_aport1ych7(&self) -> bool {
288 *self == SINGLESEL_A::APORT1YCH7
289 }
290 #[doc = "Checks if the value of the field is `APORT1XCH8`"]
291 #[inline(always)]
292 pub fn is_aport1xch8(&self) -> bool {
293 *self == SINGLESEL_A::APORT1XCH8
294 }
295 #[doc = "Checks if the value of the field is `APORT1YCH9`"]
296 #[inline(always)]
297 pub fn is_aport1ych9(&self) -> bool {
298 *self == SINGLESEL_A::APORT1YCH9
299 }
300 #[doc = "Checks if the value of the field is `APORT1XCH10`"]
301 #[inline(always)]
302 pub fn is_aport1xch10(&self) -> bool {
303 *self == SINGLESEL_A::APORT1XCH10
304 }
305 #[doc = "Checks if the value of the field is `APORT1YCH11`"]
306 #[inline(always)]
307 pub fn is_aport1ych11(&self) -> bool {
308 *self == SINGLESEL_A::APORT1YCH11
309 }
310 #[doc = "Checks if the value of the field is `APORT1XCH12`"]
311 #[inline(always)]
312 pub fn is_aport1xch12(&self) -> bool {
313 *self == SINGLESEL_A::APORT1XCH12
314 }
315 #[doc = "Checks if the value of the field is `APORT1YCH13`"]
316 #[inline(always)]
317 pub fn is_aport1ych13(&self) -> bool {
318 *self == SINGLESEL_A::APORT1YCH13
319 }
320 #[doc = "Checks if the value of the field is `APORT1XCH14`"]
321 #[inline(always)]
322 pub fn is_aport1xch14(&self) -> bool {
323 *self == SINGLESEL_A::APORT1XCH14
324 }
325 #[doc = "Checks if the value of the field is `APORT1YCH15`"]
326 #[inline(always)]
327 pub fn is_aport1ych15(&self) -> bool {
328 *self == SINGLESEL_A::APORT1YCH15
329 }
330 #[doc = "Checks if the value of the field is `APORT1XCH16`"]
331 #[inline(always)]
332 pub fn is_aport1xch16(&self) -> bool {
333 *self == SINGLESEL_A::APORT1XCH16
334 }
335 #[doc = "Checks if the value of the field is `APORT1YCH17`"]
336 #[inline(always)]
337 pub fn is_aport1ych17(&self) -> bool {
338 *self == SINGLESEL_A::APORT1YCH17
339 }
340 #[doc = "Checks if the value of the field is `APORT1XCH18`"]
341 #[inline(always)]
342 pub fn is_aport1xch18(&self) -> bool {
343 *self == SINGLESEL_A::APORT1XCH18
344 }
345 #[doc = "Checks if the value of the field is `APORT1YCH19`"]
346 #[inline(always)]
347 pub fn is_aport1ych19(&self) -> bool {
348 *self == SINGLESEL_A::APORT1YCH19
349 }
350 #[doc = "Checks if the value of the field is `APORT1XCH20`"]
351 #[inline(always)]
352 pub fn is_aport1xch20(&self) -> bool {
353 *self == SINGLESEL_A::APORT1XCH20
354 }
355 #[doc = "Checks if the value of the field is `APORT1YCH21`"]
356 #[inline(always)]
357 pub fn is_aport1ych21(&self) -> bool {
358 *self == SINGLESEL_A::APORT1YCH21
359 }
360 #[doc = "Checks if the value of the field is `APORT1XCH22`"]
361 #[inline(always)]
362 pub fn is_aport1xch22(&self) -> bool {
363 *self == SINGLESEL_A::APORT1XCH22
364 }
365 #[doc = "Checks if the value of the field is `APORT1YCH23`"]
366 #[inline(always)]
367 pub fn is_aport1ych23(&self) -> bool {
368 *self == SINGLESEL_A::APORT1YCH23
369 }
370 #[doc = "Checks if the value of the field is `APORT1XCH24`"]
371 #[inline(always)]
372 pub fn is_aport1xch24(&self) -> bool {
373 *self == SINGLESEL_A::APORT1XCH24
374 }
375 #[doc = "Checks if the value of the field is `APORT1YCH25`"]
376 #[inline(always)]
377 pub fn is_aport1ych25(&self) -> bool {
378 *self == SINGLESEL_A::APORT1YCH25
379 }
380 #[doc = "Checks if the value of the field is `APORT1XCH26`"]
381 #[inline(always)]
382 pub fn is_aport1xch26(&self) -> bool {
383 *self == SINGLESEL_A::APORT1XCH26
384 }
385 #[doc = "Checks if the value of the field is `APORT1YCH27`"]
386 #[inline(always)]
387 pub fn is_aport1ych27(&self) -> bool {
388 *self == SINGLESEL_A::APORT1YCH27
389 }
390 #[doc = "Checks if the value of the field is `APORT1XCH28`"]
391 #[inline(always)]
392 pub fn is_aport1xch28(&self) -> bool {
393 *self == SINGLESEL_A::APORT1XCH28
394 }
395 #[doc = "Checks if the value of the field is `APORT1YCH29`"]
396 #[inline(always)]
397 pub fn is_aport1ych29(&self) -> bool {
398 *self == SINGLESEL_A::APORT1YCH29
399 }
400 #[doc = "Checks if the value of the field is `APORT1XCH30`"]
401 #[inline(always)]
402 pub fn is_aport1xch30(&self) -> bool {
403 *self == SINGLESEL_A::APORT1XCH30
404 }
405 #[doc = "Checks if the value of the field is `APORT1YCH31`"]
406 #[inline(always)]
407 pub fn is_aport1ych31(&self) -> bool {
408 *self == SINGLESEL_A::APORT1YCH31
409 }
410 #[doc = "Checks if the value of the field is `APORT3XCH0`"]
411 #[inline(always)]
412 pub fn is_aport3xch0(&self) -> bool {
413 *self == SINGLESEL_A::APORT3XCH0
414 }
415 #[doc = "Checks if the value of the field is `APORT3YCH1`"]
416 #[inline(always)]
417 pub fn is_aport3ych1(&self) -> bool {
418 *self == SINGLESEL_A::APORT3YCH1
419 }
420 #[doc = "Checks if the value of the field is `APORT3XCH2`"]
421 #[inline(always)]
422 pub fn is_aport3xch2(&self) -> bool {
423 *self == SINGLESEL_A::APORT3XCH2
424 }
425 #[doc = "Checks if the value of the field is `APORT3YCH3`"]
426 #[inline(always)]
427 pub fn is_aport3ych3(&self) -> bool {
428 *self == SINGLESEL_A::APORT3YCH3
429 }
430 #[doc = "Checks if the value of the field is `APORT3XCH4`"]
431 #[inline(always)]
432 pub fn is_aport3xch4(&self) -> bool {
433 *self == SINGLESEL_A::APORT3XCH4
434 }
435 #[doc = "Checks if the value of the field is `APORT3YCH5`"]
436 #[inline(always)]
437 pub fn is_aport3ych5(&self) -> bool {
438 *self == SINGLESEL_A::APORT3YCH5
439 }
440 #[doc = "Checks if the value of the field is `APORT3XCH6`"]
441 #[inline(always)]
442 pub fn is_aport3xch6(&self) -> bool {
443 *self == SINGLESEL_A::APORT3XCH6
444 }
445 #[doc = "Checks if the value of the field is `APORT3YCH7`"]
446 #[inline(always)]
447 pub fn is_aport3ych7(&self) -> bool {
448 *self == SINGLESEL_A::APORT3YCH7
449 }
450 #[doc = "Checks if the value of the field is `APORT3XCH8`"]
451 #[inline(always)]
452 pub fn is_aport3xch8(&self) -> bool {
453 *self == SINGLESEL_A::APORT3XCH8
454 }
455 #[doc = "Checks if the value of the field is `APORT3YCH9`"]
456 #[inline(always)]
457 pub fn is_aport3ych9(&self) -> bool {
458 *self == SINGLESEL_A::APORT3YCH9
459 }
460 #[doc = "Checks if the value of the field is `APORT3XCH10`"]
461 #[inline(always)]
462 pub fn is_aport3xch10(&self) -> bool {
463 *self == SINGLESEL_A::APORT3XCH10
464 }
465 #[doc = "Checks if the value of the field is `APORT3YCH11`"]
466 #[inline(always)]
467 pub fn is_aport3ych11(&self) -> bool {
468 *self == SINGLESEL_A::APORT3YCH11
469 }
470 #[doc = "Checks if the value of the field is `APORT3XCH12`"]
471 #[inline(always)]
472 pub fn is_aport3xch12(&self) -> bool {
473 *self == SINGLESEL_A::APORT3XCH12
474 }
475 #[doc = "Checks if the value of the field is `APORT3YCH13`"]
476 #[inline(always)]
477 pub fn is_aport3ych13(&self) -> bool {
478 *self == SINGLESEL_A::APORT3YCH13
479 }
480 #[doc = "Checks if the value of the field is `APORT3XCH14`"]
481 #[inline(always)]
482 pub fn is_aport3xch14(&self) -> bool {
483 *self == SINGLESEL_A::APORT3XCH14
484 }
485 #[doc = "Checks if the value of the field is `APORT3YCH15`"]
486 #[inline(always)]
487 pub fn is_aport3ych15(&self) -> bool {
488 *self == SINGLESEL_A::APORT3YCH15
489 }
490 #[doc = "Checks if the value of the field is `APORT3XCH16`"]
491 #[inline(always)]
492 pub fn is_aport3xch16(&self) -> bool {
493 *self == SINGLESEL_A::APORT3XCH16
494 }
495 #[doc = "Checks if the value of the field is `APORT3YCH17`"]
496 #[inline(always)]
497 pub fn is_aport3ych17(&self) -> bool {
498 *self == SINGLESEL_A::APORT3YCH17
499 }
500 #[doc = "Checks if the value of the field is `APORT3XCH18`"]
501 #[inline(always)]
502 pub fn is_aport3xch18(&self) -> bool {
503 *self == SINGLESEL_A::APORT3XCH18
504 }
505 #[doc = "Checks if the value of the field is `APORT3YCH19`"]
506 #[inline(always)]
507 pub fn is_aport3ych19(&self) -> bool {
508 *self == SINGLESEL_A::APORT3YCH19
509 }
510 #[doc = "Checks if the value of the field is `APORT3XCH20`"]
511 #[inline(always)]
512 pub fn is_aport3xch20(&self) -> bool {
513 *self == SINGLESEL_A::APORT3XCH20
514 }
515 #[doc = "Checks if the value of the field is `APORT3YCH21`"]
516 #[inline(always)]
517 pub fn is_aport3ych21(&self) -> bool {
518 *self == SINGLESEL_A::APORT3YCH21
519 }
520 #[doc = "Checks if the value of the field is `APORT3XCH22`"]
521 #[inline(always)]
522 pub fn is_aport3xch22(&self) -> bool {
523 *self == SINGLESEL_A::APORT3XCH22
524 }
525 #[doc = "Checks if the value of the field is `APORT3YCH23`"]
526 #[inline(always)]
527 pub fn is_aport3ych23(&self) -> bool {
528 *self == SINGLESEL_A::APORT3YCH23
529 }
530 #[doc = "Checks if the value of the field is `APORT3XCH24`"]
531 #[inline(always)]
532 pub fn is_aport3xch24(&self) -> bool {
533 *self == SINGLESEL_A::APORT3XCH24
534 }
535 #[doc = "Checks if the value of the field is `APORT3YCH25`"]
536 #[inline(always)]
537 pub fn is_aport3ych25(&self) -> bool {
538 *self == SINGLESEL_A::APORT3YCH25
539 }
540 #[doc = "Checks if the value of the field is `APORT3XCH26`"]
541 #[inline(always)]
542 pub fn is_aport3xch26(&self) -> bool {
543 *self == SINGLESEL_A::APORT3XCH26
544 }
545 #[doc = "Checks if the value of the field is `APORT3YCH27`"]
546 #[inline(always)]
547 pub fn is_aport3ych27(&self) -> bool {
548 *self == SINGLESEL_A::APORT3YCH27
549 }
550 #[doc = "Checks if the value of the field is `APORT3XCH28`"]
551 #[inline(always)]
552 pub fn is_aport3xch28(&self) -> bool {
553 *self == SINGLESEL_A::APORT3XCH28
554 }
555 #[doc = "Checks if the value of the field is `APORT3YCH29`"]
556 #[inline(always)]
557 pub fn is_aport3ych29(&self) -> bool {
558 *self == SINGLESEL_A::APORT3YCH29
559 }
560 #[doc = "Checks if the value of the field is `APORT3XCH30`"]
561 #[inline(always)]
562 pub fn is_aport3xch30(&self) -> bool {
563 *self == SINGLESEL_A::APORT3XCH30
564 }
565 #[doc = "Checks if the value of the field is `APORT3YCH31`"]
566 #[inline(always)]
567 pub fn is_aport3ych31(&self) -> bool {
568 *self == SINGLESEL_A::APORT3YCH31
569 }
570}
571#[doc = "Field `SINGLESEL` writer - Single Channel Input Select"]
572pub type SINGLESEL_W<'a> = crate::FieldWriter<'a, u32, SINGLECTRL_SPEC, u8, SINGLESEL_A, 7, 4>;
573impl<'a> SINGLESEL_W<'a> {
574 #[doc = "`100000`"]
575 #[inline(always)]
576 pub fn aport1xch0(self) -> &'a mut W {
577 self.variant(SINGLESEL_A::APORT1XCH0)
578 }
579 #[doc = "`100001`"]
580 #[inline(always)]
581 pub fn aport1ych1(self) -> &'a mut W {
582 self.variant(SINGLESEL_A::APORT1YCH1)
583 }
584 #[doc = "`100010`"]
585 #[inline(always)]
586 pub fn aport1xch2(self) -> &'a mut W {
587 self.variant(SINGLESEL_A::APORT1XCH2)
588 }
589 #[doc = "`100011`"]
590 #[inline(always)]
591 pub fn aport1ych3(self) -> &'a mut W {
592 self.variant(SINGLESEL_A::APORT1YCH3)
593 }
594 #[doc = "`100100`"]
595 #[inline(always)]
596 pub fn aport1xch4(self) -> &'a mut W {
597 self.variant(SINGLESEL_A::APORT1XCH4)
598 }
599 #[doc = "`100101`"]
600 #[inline(always)]
601 pub fn aport1ych5(self) -> &'a mut W {
602 self.variant(SINGLESEL_A::APORT1YCH5)
603 }
604 #[doc = "`100110`"]
605 #[inline(always)]
606 pub fn aport1xch6(self) -> &'a mut W {
607 self.variant(SINGLESEL_A::APORT1XCH6)
608 }
609 #[doc = "`100111`"]
610 #[inline(always)]
611 pub fn aport1ych7(self) -> &'a mut W {
612 self.variant(SINGLESEL_A::APORT1YCH7)
613 }
614 #[doc = "`101000`"]
615 #[inline(always)]
616 pub fn aport1xch8(self) -> &'a mut W {
617 self.variant(SINGLESEL_A::APORT1XCH8)
618 }
619 #[doc = "`101001`"]
620 #[inline(always)]
621 pub fn aport1ych9(self) -> &'a mut W {
622 self.variant(SINGLESEL_A::APORT1YCH9)
623 }
624 #[doc = "`101010`"]
625 #[inline(always)]
626 pub fn aport1xch10(self) -> &'a mut W {
627 self.variant(SINGLESEL_A::APORT1XCH10)
628 }
629 #[doc = "`101011`"]
630 #[inline(always)]
631 pub fn aport1ych11(self) -> &'a mut W {
632 self.variant(SINGLESEL_A::APORT1YCH11)
633 }
634 #[doc = "`101100`"]
635 #[inline(always)]
636 pub fn aport1xch12(self) -> &'a mut W {
637 self.variant(SINGLESEL_A::APORT1XCH12)
638 }
639 #[doc = "`101101`"]
640 #[inline(always)]
641 pub fn aport1ych13(self) -> &'a mut W {
642 self.variant(SINGLESEL_A::APORT1YCH13)
643 }
644 #[doc = "`101110`"]
645 #[inline(always)]
646 pub fn aport1xch14(self) -> &'a mut W {
647 self.variant(SINGLESEL_A::APORT1XCH14)
648 }
649 #[doc = "`101111`"]
650 #[inline(always)]
651 pub fn aport1ych15(self) -> &'a mut W {
652 self.variant(SINGLESEL_A::APORT1YCH15)
653 }
654 #[doc = "`110000`"]
655 #[inline(always)]
656 pub fn aport1xch16(self) -> &'a mut W {
657 self.variant(SINGLESEL_A::APORT1XCH16)
658 }
659 #[doc = "`110001`"]
660 #[inline(always)]
661 pub fn aport1ych17(self) -> &'a mut W {
662 self.variant(SINGLESEL_A::APORT1YCH17)
663 }
664 #[doc = "`110010`"]
665 #[inline(always)]
666 pub fn aport1xch18(self) -> &'a mut W {
667 self.variant(SINGLESEL_A::APORT1XCH18)
668 }
669 #[doc = "`110011`"]
670 #[inline(always)]
671 pub fn aport1ych19(self) -> &'a mut W {
672 self.variant(SINGLESEL_A::APORT1YCH19)
673 }
674 #[doc = "`110100`"]
675 #[inline(always)]
676 pub fn aport1xch20(self) -> &'a mut W {
677 self.variant(SINGLESEL_A::APORT1XCH20)
678 }
679 #[doc = "`110101`"]
680 #[inline(always)]
681 pub fn aport1ych21(self) -> &'a mut W {
682 self.variant(SINGLESEL_A::APORT1YCH21)
683 }
684 #[doc = "`110110`"]
685 #[inline(always)]
686 pub fn aport1xch22(self) -> &'a mut W {
687 self.variant(SINGLESEL_A::APORT1XCH22)
688 }
689 #[doc = "`110111`"]
690 #[inline(always)]
691 pub fn aport1ych23(self) -> &'a mut W {
692 self.variant(SINGLESEL_A::APORT1YCH23)
693 }
694 #[doc = "`111000`"]
695 #[inline(always)]
696 pub fn aport1xch24(self) -> &'a mut W {
697 self.variant(SINGLESEL_A::APORT1XCH24)
698 }
699 #[doc = "`111001`"]
700 #[inline(always)]
701 pub fn aport1ych25(self) -> &'a mut W {
702 self.variant(SINGLESEL_A::APORT1YCH25)
703 }
704 #[doc = "`111010`"]
705 #[inline(always)]
706 pub fn aport1xch26(self) -> &'a mut W {
707 self.variant(SINGLESEL_A::APORT1XCH26)
708 }
709 #[doc = "`111011`"]
710 #[inline(always)]
711 pub fn aport1ych27(self) -> &'a mut W {
712 self.variant(SINGLESEL_A::APORT1YCH27)
713 }
714 #[doc = "`111100`"]
715 #[inline(always)]
716 pub fn aport1xch28(self) -> &'a mut W {
717 self.variant(SINGLESEL_A::APORT1XCH28)
718 }
719 #[doc = "`111101`"]
720 #[inline(always)]
721 pub fn aport1ych29(self) -> &'a mut W {
722 self.variant(SINGLESEL_A::APORT1YCH29)
723 }
724 #[doc = "`111110`"]
725 #[inline(always)]
726 pub fn aport1xch30(self) -> &'a mut W {
727 self.variant(SINGLESEL_A::APORT1XCH30)
728 }
729 #[doc = "`111111`"]
730 #[inline(always)]
731 pub fn aport1ych31(self) -> &'a mut W {
732 self.variant(SINGLESEL_A::APORT1YCH31)
733 }
734 #[doc = "`1100000`"]
735 #[inline(always)]
736 pub fn aport3xch0(self) -> &'a mut W {
737 self.variant(SINGLESEL_A::APORT3XCH0)
738 }
739 #[doc = "`1100001`"]
740 #[inline(always)]
741 pub fn aport3ych1(self) -> &'a mut W {
742 self.variant(SINGLESEL_A::APORT3YCH1)
743 }
744 #[doc = "`1100010`"]
745 #[inline(always)]
746 pub fn aport3xch2(self) -> &'a mut W {
747 self.variant(SINGLESEL_A::APORT3XCH2)
748 }
749 #[doc = "`1100011`"]
750 #[inline(always)]
751 pub fn aport3ych3(self) -> &'a mut W {
752 self.variant(SINGLESEL_A::APORT3YCH3)
753 }
754 #[doc = "`1100100`"]
755 #[inline(always)]
756 pub fn aport3xch4(self) -> &'a mut W {
757 self.variant(SINGLESEL_A::APORT3XCH4)
758 }
759 #[doc = "`1100101`"]
760 #[inline(always)]
761 pub fn aport3ych5(self) -> &'a mut W {
762 self.variant(SINGLESEL_A::APORT3YCH5)
763 }
764 #[doc = "`1100110`"]
765 #[inline(always)]
766 pub fn aport3xch6(self) -> &'a mut W {
767 self.variant(SINGLESEL_A::APORT3XCH6)
768 }
769 #[doc = "`1100111`"]
770 #[inline(always)]
771 pub fn aport3ych7(self) -> &'a mut W {
772 self.variant(SINGLESEL_A::APORT3YCH7)
773 }
774 #[doc = "`1101000`"]
775 #[inline(always)]
776 pub fn aport3xch8(self) -> &'a mut W {
777 self.variant(SINGLESEL_A::APORT3XCH8)
778 }
779 #[doc = "`1101001`"]
780 #[inline(always)]
781 pub fn aport3ych9(self) -> &'a mut W {
782 self.variant(SINGLESEL_A::APORT3YCH9)
783 }
784 #[doc = "`1101010`"]
785 #[inline(always)]
786 pub fn aport3xch10(self) -> &'a mut W {
787 self.variant(SINGLESEL_A::APORT3XCH10)
788 }
789 #[doc = "`1101011`"]
790 #[inline(always)]
791 pub fn aport3ych11(self) -> &'a mut W {
792 self.variant(SINGLESEL_A::APORT3YCH11)
793 }
794 #[doc = "`1101100`"]
795 #[inline(always)]
796 pub fn aport3xch12(self) -> &'a mut W {
797 self.variant(SINGLESEL_A::APORT3XCH12)
798 }
799 #[doc = "`1101101`"]
800 #[inline(always)]
801 pub fn aport3ych13(self) -> &'a mut W {
802 self.variant(SINGLESEL_A::APORT3YCH13)
803 }
804 #[doc = "`1101110`"]
805 #[inline(always)]
806 pub fn aport3xch14(self) -> &'a mut W {
807 self.variant(SINGLESEL_A::APORT3XCH14)
808 }
809 #[doc = "`1101111`"]
810 #[inline(always)]
811 pub fn aport3ych15(self) -> &'a mut W {
812 self.variant(SINGLESEL_A::APORT3YCH15)
813 }
814 #[doc = "`1110000`"]
815 #[inline(always)]
816 pub fn aport3xch16(self) -> &'a mut W {
817 self.variant(SINGLESEL_A::APORT3XCH16)
818 }
819 #[doc = "`1110001`"]
820 #[inline(always)]
821 pub fn aport3ych17(self) -> &'a mut W {
822 self.variant(SINGLESEL_A::APORT3YCH17)
823 }
824 #[doc = "`1110010`"]
825 #[inline(always)]
826 pub fn aport3xch18(self) -> &'a mut W {
827 self.variant(SINGLESEL_A::APORT3XCH18)
828 }
829 #[doc = "`1110011`"]
830 #[inline(always)]
831 pub fn aport3ych19(self) -> &'a mut W {
832 self.variant(SINGLESEL_A::APORT3YCH19)
833 }
834 #[doc = "`1110100`"]
835 #[inline(always)]
836 pub fn aport3xch20(self) -> &'a mut W {
837 self.variant(SINGLESEL_A::APORT3XCH20)
838 }
839 #[doc = "`1110101`"]
840 #[inline(always)]
841 pub fn aport3ych21(self) -> &'a mut W {
842 self.variant(SINGLESEL_A::APORT3YCH21)
843 }
844 #[doc = "`1110110`"]
845 #[inline(always)]
846 pub fn aport3xch22(self) -> &'a mut W {
847 self.variant(SINGLESEL_A::APORT3XCH22)
848 }
849 #[doc = "`1110111`"]
850 #[inline(always)]
851 pub fn aport3ych23(self) -> &'a mut W {
852 self.variant(SINGLESEL_A::APORT3YCH23)
853 }
854 #[doc = "`1111000`"]
855 #[inline(always)]
856 pub fn aport3xch24(self) -> &'a mut W {
857 self.variant(SINGLESEL_A::APORT3XCH24)
858 }
859 #[doc = "`1111001`"]
860 #[inline(always)]
861 pub fn aport3ych25(self) -> &'a mut W {
862 self.variant(SINGLESEL_A::APORT3YCH25)
863 }
864 #[doc = "`1111010`"]
865 #[inline(always)]
866 pub fn aport3xch26(self) -> &'a mut W {
867 self.variant(SINGLESEL_A::APORT3XCH26)
868 }
869 #[doc = "`1111011`"]
870 #[inline(always)]
871 pub fn aport3ych27(self) -> &'a mut W {
872 self.variant(SINGLESEL_A::APORT3YCH27)
873 }
874 #[doc = "`1111100`"]
875 #[inline(always)]
876 pub fn aport3xch28(self) -> &'a mut W {
877 self.variant(SINGLESEL_A::APORT3XCH28)
878 }
879 #[doc = "`1111101`"]
880 #[inline(always)]
881 pub fn aport3ych29(self) -> &'a mut W {
882 self.variant(SINGLESEL_A::APORT3YCH29)
883 }
884 #[doc = "`1111110`"]
885 #[inline(always)]
886 pub fn aport3xch30(self) -> &'a mut W {
887 self.variant(SINGLESEL_A::APORT3XCH30)
888 }
889 #[doc = "`1111111`"]
890 #[inline(always)]
891 pub fn aport3ych31(self) -> &'a mut W {
892 self.variant(SINGLESEL_A::APORT3YCH31)
893 }
894}
895impl R {
896 #[doc = "Bits 4:10 - Single Channel Input Select"]
897 #[inline(always)]
898 pub fn singlesel(&self) -> SINGLESEL_R {
899 SINGLESEL_R::new(((self.bits >> 4) & 0x7f) as u8)
900 }
901}
902impl W {
903 #[doc = "Bits 4:10 - Single Channel Input Select"]
904 #[inline(always)]
905 pub fn singlesel(&mut self) -> SINGLESEL_W {
906 SINGLESEL_W::new(self)
907 }
908 #[doc = "Writes raw bits to the register."]
909 #[inline(always)]
910 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
911 self.0.bits(bits);
912 self
913 }
914}
915#[doc = "Single Conversion Control\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 [singlectrl](index.html) module"]
916pub struct SINGLECTRL_SPEC;
917impl crate::RegisterSpec for SINGLECTRL_SPEC {
918 type Ux = u32;
919}
920#[doc = "`read()` method returns [singlectrl::R](R) reader structure"]
921impl crate::Readable for SINGLECTRL_SPEC {
922 type Reader = R;
923}
924#[doc = "`write(|w| ..)` method takes [singlectrl::W](W) writer structure"]
925impl crate::Writable for SINGLECTRL_SPEC {
926 type Writer = W;
927}
928#[doc = "`reset()` method sets SINGLECTRL to value 0"]
929impl crate::Resettable for SINGLECTRL_SPEC {
930 #[inline(always)]
931 fn reset_value() -> Self::Ux {
932 0
933 }
934}