efm32tg11b_pac/efm32tg11b120/csen/
singlectrl.rs

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 = "Field `SINGLESEL` reader - Single Channel Input Select"]
38pub type SINGLESEL_R = crate::FieldReader<u8, SINGLESEL_A>;
39#[doc = "Single Channel Input Select\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq, Eq)]
41#[repr(u8)]
42pub enum SINGLESEL_A {
43    #[doc = "32: `100000`"]
44    APORT1XCH0 = 32,
45    #[doc = "33: `100001`"]
46    APORT1YCH1 = 33,
47    #[doc = "34: `100010`"]
48    APORT1XCH2 = 34,
49    #[doc = "35: `100011`"]
50    APORT1YCH3 = 35,
51    #[doc = "36: `100100`"]
52    APORT1XCH4 = 36,
53    #[doc = "37: `100101`"]
54    APORT1YCH5 = 37,
55    #[doc = "38: `100110`"]
56    APORT1XCH6 = 38,
57    #[doc = "39: `100111`"]
58    APORT1YCH7 = 39,
59    #[doc = "40: `101000`"]
60    APORT1XCH8 = 40,
61    #[doc = "41: `101001`"]
62    APORT1YCH9 = 41,
63    #[doc = "42: `101010`"]
64    APORT1XCH10 = 42,
65    #[doc = "43: `101011`"]
66    APORT1YCH11 = 43,
67    #[doc = "44: `101100`"]
68    APORT1XCH12 = 44,
69    #[doc = "45: `101101`"]
70    APORT1YCH13 = 45,
71    #[doc = "46: `101110`"]
72    APORT1XCH14 = 46,
73    #[doc = "47: `101111`"]
74    APORT1YCH15 = 47,
75    #[doc = "48: `110000`"]
76    APORT1XCH16 = 48,
77    #[doc = "49: `110001`"]
78    APORT1YCH17 = 49,
79    #[doc = "50: `110010`"]
80    APORT1XCH18 = 50,
81    #[doc = "51: `110011`"]
82    APORT1YCH19 = 51,
83    #[doc = "52: `110100`"]
84    APORT1XCH20 = 52,
85    #[doc = "53: `110101`"]
86    APORT1YCH21 = 53,
87    #[doc = "54: `110110`"]
88    APORT1XCH22 = 54,
89    #[doc = "55: `110111`"]
90    APORT1YCH23 = 55,
91    #[doc = "56: `111000`"]
92    APORT1XCH24 = 56,
93    #[doc = "57: `111001`"]
94    APORT1YCH25 = 57,
95    #[doc = "58: `111010`"]
96    APORT1XCH26 = 58,
97    #[doc = "59: `111011`"]
98    APORT1YCH27 = 59,
99    #[doc = "60: `111100`"]
100    APORT1XCH28 = 60,
101    #[doc = "61: `111101`"]
102    APORT1YCH29 = 61,
103    #[doc = "62: `111110`"]
104    APORT1XCH30 = 62,
105    #[doc = "63: `111111`"]
106    APORT1YCH31 = 63,
107    #[doc = "96: `1100000`"]
108    APORT3XCH0 = 96,
109    #[doc = "97: `1100001`"]
110    APORT3YCH1 = 97,
111    #[doc = "98: `1100010`"]
112    APORT3XCH2 = 98,
113    #[doc = "99: `1100011`"]
114    APORT3YCH3 = 99,
115    #[doc = "100: `1100100`"]
116    APORT3XCH4 = 100,
117    #[doc = "101: `1100101`"]
118    APORT3YCH5 = 101,
119    #[doc = "102: `1100110`"]
120    APORT3XCH6 = 102,
121    #[doc = "103: `1100111`"]
122    APORT3YCH7 = 103,
123    #[doc = "104: `1101000`"]
124    APORT3XCH8 = 104,
125    #[doc = "105: `1101001`"]
126    APORT3YCH9 = 105,
127    #[doc = "106: `1101010`"]
128    APORT3XCH10 = 106,
129    #[doc = "107: `1101011`"]
130    APORT3YCH11 = 107,
131    #[doc = "108: `1101100`"]
132    APORT3XCH12 = 108,
133    #[doc = "109: `1101101`"]
134    APORT3YCH13 = 109,
135    #[doc = "110: `1101110`"]
136    APORT3XCH14 = 110,
137    #[doc = "111: `1101111`"]
138    APORT3YCH15 = 111,
139    #[doc = "112: `1110000`"]
140    APORT3XCH16 = 112,
141    #[doc = "113: `1110001`"]
142    APORT3YCH17 = 113,
143    #[doc = "114: `1110010`"]
144    APORT3XCH18 = 114,
145    #[doc = "115: `1110011`"]
146    APORT3YCH19 = 115,
147    #[doc = "116: `1110100`"]
148    APORT3XCH20 = 116,
149    #[doc = "117: `1110101`"]
150    APORT3YCH21 = 117,
151    #[doc = "118: `1110110`"]
152    APORT3XCH22 = 118,
153    #[doc = "119: `1110111`"]
154    APORT3YCH23 = 119,
155    #[doc = "120: `1111000`"]
156    APORT3XCH24 = 120,
157    #[doc = "121: `1111001`"]
158    APORT3YCH25 = 121,
159    #[doc = "122: `1111010`"]
160    APORT3XCH26 = 122,
161    #[doc = "123: `1111011`"]
162    APORT3YCH27 = 123,
163    #[doc = "124: `1111100`"]
164    APORT3XCH28 = 124,
165    #[doc = "125: `1111101`"]
166    APORT3YCH29 = 125,
167    #[doc = "126: `1111110`"]
168    APORT3XCH30 = 126,
169    #[doc = "127: `1111111`"]
170    APORT3YCH31 = 127,
171}
172impl From<SINGLESEL_A> for u8 {
173    #[inline(always)]
174    fn from(variant: SINGLESEL_A) -> Self {
175        variant as _
176    }
177}
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, const O: u8> =
573    crate::FieldWriter<'a, u32, SINGLECTRL_SPEC, u8, SINGLESEL_A, 7, O>;
574impl<'a, const O: u8> SINGLESEL_W<'a, O> {
575    #[doc = "`100000`"]
576    #[inline(always)]
577    pub fn aport1xch0(self) -> &'a mut W {
578        self.variant(SINGLESEL_A::APORT1XCH0)
579    }
580    #[doc = "`100001`"]
581    #[inline(always)]
582    pub fn aport1ych1(self) -> &'a mut W {
583        self.variant(SINGLESEL_A::APORT1YCH1)
584    }
585    #[doc = "`100010`"]
586    #[inline(always)]
587    pub fn aport1xch2(self) -> &'a mut W {
588        self.variant(SINGLESEL_A::APORT1XCH2)
589    }
590    #[doc = "`100011`"]
591    #[inline(always)]
592    pub fn aport1ych3(self) -> &'a mut W {
593        self.variant(SINGLESEL_A::APORT1YCH3)
594    }
595    #[doc = "`100100`"]
596    #[inline(always)]
597    pub fn aport1xch4(self) -> &'a mut W {
598        self.variant(SINGLESEL_A::APORT1XCH4)
599    }
600    #[doc = "`100101`"]
601    #[inline(always)]
602    pub fn aport1ych5(self) -> &'a mut W {
603        self.variant(SINGLESEL_A::APORT1YCH5)
604    }
605    #[doc = "`100110`"]
606    #[inline(always)]
607    pub fn aport1xch6(self) -> &'a mut W {
608        self.variant(SINGLESEL_A::APORT1XCH6)
609    }
610    #[doc = "`100111`"]
611    #[inline(always)]
612    pub fn aport1ych7(self) -> &'a mut W {
613        self.variant(SINGLESEL_A::APORT1YCH7)
614    }
615    #[doc = "`101000`"]
616    #[inline(always)]
617    pub fn aport1xch8(self) -> &'a mut W {
618        self.variant(SINGLESEL_A::APORT1XCH8)
619    }
620    #[doc = "`101001`"]
621    #[inline(always)]
622    pub fn aport1ych9(self) -> &'a mut W {
623        self.variant(SINGLESEL_A::APORT1YCH9)
624    }
625    #[doc = "`101010`"]
626    #[inline(always)]
627    pub fn aport1xch10(self) -> &'a mut W {
628        self.variant(SINGLESEL_A::APORT1XCH10)
629    }
630    #[doc = "`101011`"]
631    #[inline(always)]
632    pub fn aport1ych11(self) -> &'a mut W {
633        self.variant(SINGLESEL_A::APORT1YCH11)
634    }
635    #[doc = "`101100`"]
636    #[inline(always)]
637    pub fn aport1xch12(self) -> &'a mut W {
638        self.variant(SINGLESEL_A::APORT1XCH12)
639    }
640    #[doc = "`101101`"]
641    #[inline(always)]
642    pub fn aport1ych13(self) -> &'a mut W {
643        self.variant(SINGLESEL_A::APORT1YCH13)
644    }
645    #[doc = "`101110`"]
646    #[inline(always)]
647    pub fn aport1xch14(self) -> &'a mut W {
648        self.variant(SINGLESEL_A::APORT1XCH14)
649    }
650    #[doc = "`101111`"]
651    #[inline(always)]
652    pub fn aport1ych15(self) -> &'a mut W {
653        self.variant(SINGLESEL_A::APORT1YCH15)
654    }
655    #[doc = "`110000`"]
656    #[inline(always)]
657    pub fn aport1xch16(self) -> &'a mut W {
658        self.variant(SINGLESEL_A::APORT1XCH16)
659    }
660    #[doc = "`110001`"]
661    #[inline(always)]
662    pub fn aport1ych17(self) -> &'a mut W {
663        self.variant(SINGLESEL_A::APORT1YCH17)
664    }
665    #[doc = "`110010`"]
666    #[inline(always)]
667    pub fn aport1xch18(self) -> &'a mut W {
668        self.variant(SINGLESEL_A::APORT1XCH18)
669    }
670    #[doc = "`110011`"]
671    #[inline(always)]
672    pub fn aport1ych19(self) -> &'a mut W {
673        self.variant(SINGLESEL_A::APORT1YCH19)
674    }
675    #[doc = "`110100`"]
676    #[inline(always)]
677    pub fn aport1xch20(self) -> &'a mut W {
678        self.variant(SINGLESEL_A::APORT1XCH20)
679    }
680    #[doc = "`110101`"]
681    #[inline(always)]
682    pub fn aport1ych21(self) -> &'a mut W {
683        self.variant(SINGLESEL_A::APORT1YCH21)
684    }
685    #[doc = "`110110`"]
686    #[inline(always)]
687    pub fn aport1xch22(self) -> &'a mut W {
688        self.variant(SINGLESEL_A::APORT1XCH22)
689    }
690    #[doc = "`110111`"]
691    #[inline(always)]
692    pub fn aport1ych23(self) -> &'a mut W {
693        self.variant(SINGLESEL_A::APORT1YCH23)
694    }
695    #[doc = "`111000`"]
696    #[inline(always)]
697    pub fn aport1xch24(self) -> &'a mut W {
698        self.variant(SINGLESEL_A::APORT1XCH24)
699    }
700    #[doc = "`111001`"]
701    #[inline(always)]
702    pub fn aport1ych25(self) -> &'a mut W {
703        self.variant(SINGLESEL_A::APORT1YCH25)
704    }
705    #[doc = "`111010`"]
706    #[inline(always)]
707    pub fn aport1xch26(self) -> &'a mut W {
708        self.variant(SINGLESEL_A::APORT1XCH26)
709    }
710    #[doc = "`111011`"]
711    #[inline(always)]
712    pub fn aport1ych27(self) -> &'a mut W {
713        self.variant(SINGLESEL_A::APORT1YCH27)
714    }
715    #[doc = "`111100`"]
716    #[inline(always)]
717    pub fn aport1xch28(self) -> &'a mut W {
718        self.variant(SINGLESEL_A::APORT1XCH28)
719    }
720    #[doc = "`111101`"]
721    #[inline(always)]
722    pub fn aport1ych29(self) -> &'a mut W {
723        self.variant(SINGLESEL_A::APORT1YCH29)
724    }
725    #[doc = "`111110`"]
726    #[inline(always)]
727    pub fn aport1xch30(self) -> &'a mut W {
728        self.variant(SINGLESEL_A::APORT1XCH30)
729    }
730    #[doc = "`111111`"]
731    #[inline(always)]
732    pub fn aport1ych31(self) -> &'a mut W {
733        self.variant(SINGLESEL_A::APORT1YCH31)
734    }
735    #[doc = "`1100000`"]
736    #[inline(always)]
737    pub fn aport3xch0(self) -> &'a mut W {
738        self.variant(SINGLESEL_A::APORT3XCH0)
739    }
740    #[doc = "`1100001`"]
741    #[inline(always)]
742    pub fn aport3ych1(self) -> &'a mut W {
743        self.variant(SINGLESEL_A::APORT3YCH1)
744    }
745    #[doc = "`1100010`"]
746    #[inline(always)]
747    pub fn aport3xch2(self) -> &'a mut W {
748        self.variant(SINGLESEL_A::APORT3XCH2)
749    }
750    #[doc = "`1100011`"]
751    #[inline(always)]
752    pub fn aport3ych3(self) -> &'a mut W {
753        self.variant(SINGLESEL_A::APORT3YCH3)
754    }
755    #[doc = "`1100100`"]
756    #[inline(always)]
757    pub fn aport3xch4(self) -> &'a mut W {
758        self.variant(SINGLESEL_A::APORT3XCH4)
759    }
760    #[doc = "`1100101`"]
761    #[inline(always)]
762    pub fn aport3ych5(self) -> &'a mut W {
763        self.variant(SINGLESEL_A::APORT3YCH5)
764    }
765    #[doc = "`1100110`"]
766    #[inline(always)]
767    pub fn aport3xch6(self) -> &'a mut W {
768        self.variant(SINGLESEL_A::APORT3XCH6)
769    }
770    #[doc = "`1100111`"]
771    #[inline(always)]
772    pub fn aport3ych7(self) -> &'a mut W {
773        self.variant(SINGLESEL_A::APORT3YCH7)
774    }
775    #[doc = "`1101000`"]
776    #[inline(always)]
777    pub fn aport3xch8(self) -> &'a mut W {
778        self.variant(SINGLESEL_A::APORT3XCH8)
779    }
780    #[doc = "`1101001`"]
781    #[inline(always)]
782    pub fn aport3ych9(self) -> &'a mut W {
783        self.variant(SINGLESEL_A::APORT3YCH9)
784    }
785    #[doc = "`1101010`"]
786    #[inline(always)]
787    pub fn aport3xch10(self) -> &'a mut W {
788        self.variant(SINGLESEL_A::APORT3XCH10)
789    }
790    #[doc = "`1101011`"]
791    #[inline(always)]
792    pub fn aport3ych11(self) -> &'a mut W {
793        self.variant(SINGLESEL_A::APORT3YCH11)
794    }
795    #[doc = "`1101100`"]
796    #[inline(always)]
797    pub fn aport3xch12(self) -> &'a mut W {
798        self.variant(SINGLESEL_A::APORT3XCH12)
799    }
800    #[doc = "`1101101`"]
801    #[inline(always)]
802    pub fn aport3ych13(self) -> &'a mut W {
803        self.variant(SINGLESEL_A::APORT3YCH13)
804    }
805    #[doc = "`1101110`"]
806    #[inline(always)]
807    pub fn aport3xch14(self) -> &'a mut W {
808        self.variant(SINGLESEL_A::APORT3XCH14)
809    }
810    #[doc = "`1101111`"]
811    #[inline(always)]
812    pub fn aport3ych15(self) -> &'a mut W {
813        self.variant(SINGLESEL_A::APORT3YCH15)
814    }
815    #[doc = "`1110000`"]
816    #[inline(always)]
817    pub fn aport3xch16(self) -> &'a mut W {
818        self.variant(SINGLESEL_A::APORT3XCH16)
819    }
820    #[doc = "`1110001`"]
821    #[inline(always)]
822    pub fn aport3ych17(self) -> &'a mut W {
823        self.variant(SINGLESEL_A::APORT3YCH17)
824    }
825    #[doc = "`1110010`"]
826    #[inline(always)]
827    pub fn aport3xch18(self) -> &'a mut W {
828        self.variant(SINGLESEL_A::APORT3XCH18)
829    }
830    #[doc = "`1110011`"]
831    #[inline(always)]
832    pub fn aport3ych19(self) -> &'a mut W {
833        self.variant(SINGLESEL_A::APORT3YCH19)
834    }
835    #[doc = "`1110100`"]
836    #[inline(always)]
837    pub fn aport3xch20(self) -> &'a mut W {
838        self.variant(SINGLESEL_A::APORT3XCH20)
839    }
840    #[doc = "`1110101`"]
841    #[inline(always)]
842    pub fn aport3ych21(self) -> &'a mut W {
843        self.variant(SINGLESEL_A::APORT3YCH21)
844    }
845    #[doc = "`1110110`"]
846    #[inline(always)]
847    pub fn aport3xch22(self) -> &'a mut W {
848        self.variant(SINGLESEL_A::APORT3XCH22)
849    }
850    #[doc = "`1110111`"]
851    #[inline(always)]
852    pub fn aport3ych23(self) -> &'a mut W {
853        self.variant(SINGLESEL_A::APORT3YCH23)
854    }
855    #[doc = "`1111000`"]
856    #[inline(always)]
857    pub fn aport3xch24(self) -> &'a mut W {
858        self.variant(SINGLESEL_A::APORT3XCH24)
859    }
860    #[doc = "`1111001`"]
861    #[inline(always)]
862    pub fn aport3ych25(self) -> &'a mut W {
863        self.variant(SINGLESEL_A::APORT3YCH25)
864    }
865    #[doc = "`1111010`"]
866    #[inline(always)]
867    pub fn aport3xch26(self) -> &'a mut W {
868        self.variant(SINGLESEL_A::APORT3XCH26)
869    }
870    #[doc = "`1111011`"]
871    #[inline(always)]
872    pub fn aport3ych27(self) -> &'a mut W {
873        self.variant(SINGLESEL_A::APORT3YCH27)
874    }
875    #[doc = "`1111100`"]
876    #[inline(always)]
877    pub fn aport3xch28(self) -> &'a mut W {
878        self.variant(SINGLESEL_A::APORT3XCH28)
879    }
880    #[doc = "`1111101`"]
881    #[inline(always)]
882    pub fn aport3ych29(self) -> &'a mut W {
883        self.variant(SINGLESEL_A::APORT3YCH29)
884    }
885    #[doc = "`1111110`"]
886    #[inline(always)]
887    pub fn aport3xch30(self) -> &'a mut W {
888        self.variant(SINGLESEL_A::APORT3XCH30)
889    }
890    #[doc = "`1111111`"]
891    #[inline(always)]
892    pub fn aport3ych31(self) -> &'a mut W {
893        self.variant(SINGLESEL_A::APORT3YCH31)
894    }
895}
896impl R {
897    #[doc = "Bits 4:10 - Single Channel Input Select"]
898    #[inline(always)]
899    pub fn singlesel(&self) -> SINGLESEL_R {
900        SINGLESEL_R::new(((self.bits >> 4) & 0x7f) as u8)
901    }
902}
903impl W {
904    #[doc = "Bits 4:10 - Single Channel Input Select"]
905    #[inline(always)]
906    #[must_use]
907    pub fn singlesel(&mut self) -> SINGLESEL_W<4> {
908        SINGLESEL_W::new(self)
909    }
910    #[doc = "Writes raw bits to the register."]
911    #[inline(always)]
912    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
913        self.0.bits(bits);
914        self
915    }
916}
917#[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"]
918pub struct SINGLECTRL_SPEC;
919impl crate::RegisterSpec for SINGLECTRL_SPEC {
920    type Ux = u32;
921}
922#[doc = "`read()` method returns [singlectrl::R](R) reader structure"]
923impl crate::Readable for SINGLECTRL_SPEC {
924    type Reader = R;
925}
926#[doc = "`write(|w| ..)` method takes [singlectrl::W](W) writer structure"]
927impl crate::Writable for SINGLECTRL_SPEC {
928    type Writer = W;
929    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
930    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
931}
932#[doc = "`reset()` method sets SINGLECTRL to value 0"]
933impl crate::Resettable for SINGLECTRL_SPEC {
934    const RESET_VALUE: Self::Ux = 0;
935}