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