efm32tg11b520_pac/csen/
scaninputsel1.rs

1#[doc = "Register `SCANINPUTSEL1` reader"]
2pub struct R(crate::R<SCANINPUTSEL1_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<SCANINPUTSEL1_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<SCANINPUTSEL1_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<SCANINPUTSEL1_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `SCANINPUTSEL1` writer"]
17pub struct W(crate::W<SCANINPUTSEL1_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<SCANINPUTSEL1_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<SCANINPUTSEL1_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<SCANINPUTSEL1_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "CSEN_INPUT32-39 Select\n\nValue on reset: 0"]
38#[derive(Clone, Copy, Debug, PartialEq)]
39#[repr(u8)]
40pub enum INPUT32TO39SEL_A {
41    #[doc = "4: `100`"]
42    APORT1CH0TO7 = 4,
43    #[doc = "5: `101`"]
44    APORT1CH8TO15 = 5,
45    #[doc = "6: `110`"]
46    APORT1CH16TO23 = 6,
47    #[doc = "7: `111`"]
48    APORT1CH24TO31 = 7,
49    #[doc = "12: `1100`"]
50    APORT3CH0TO7 = 12,
51    #[doc = "13: `1101`"]
52    APORT3CH8TO15 = 13,
53    #[doc = "14: `1110`"]
54    APORT3CH16TO23 = 14,
55    #[doc = "15: `1111`"]
56    APORT3CH24TO31 = 15,
57}
58impl From<INPUT32TO39SEL_A> for u8 {
59    #[inline(always)]
60    fn from(variant: INPUT32TO39SEL_A) -> Self {
61        variant as _
62    }
63}
64#[doc = "Field `INPUT32TO39SEL` reader - CSEN_INPUT32-39 Select"]
65pub type INPUT32TO39SEL_R = crate::FieldReader<u8, INPUT32TO39SEL_A>;
66impl INPUT32TO39SEL_R {
67    #[doc = "Get enumerated values variant"]
68    #[inline(always)]
69    pub fn variant(&self) -> Option<INPUT32TO39SEL_A> {
70        match self.bits {
71            4 => Some(INPUT32TO39SEL_A::APORT1CH0TO7),
72            5 => Some(INPUT32TO39SEL_A::APORT1CH8TO15),
73            6 => Some(INPUT32TO39SEL_A::APORT1CH16TO23),
74            7 => Some(INPUT32TO39SEL_A::APORT1CH24TO31),
75            12 => Some(INPUT32TO39SEL_A::APORT3CH0TO7),
76            13 => Some(INPUT32TO39SEL_A::APORT3CH8TO15),
77            14 => Some(INPUT32TO39SEL_A::APORT3CH16TO23),
78            15 => Some(INPUT32TO39SEL_A::APORT3CH24TO31),
79            _ => None,
80        }
81    }
82    #[doc = "Checks if the value of the field is `APORT1CH0TO7`"]
83    #[inline(always)]
84    pub fn is_aport1ch0to7(&self) -> bool {
85        *self == INPUT32TO39SEL_A::APORT1CH0TO7
86    }
87    #[doc = "Checks if the value of the field is `APORT1CH8TO15`"]
88    #[inline(always)]
89    pub fn is_aport1ch8to15(&self) -> bool {
90        *self == INPUT32TO39SEL_A::APORT1CH8TO15
91    }
92    #[doc = "Checks if the value of the field is `APORT1CH16TO23`"]
93    #[inline(always)]
94    pub fn is_aport1ch16to23(&self) -> bool {
95        *self == INPUT32TO39SEL_A::APORT1CH16TO23
96    }
97    #[doc = "Checks if the value of the field is `APORT1CH24TO31`"]
98    #[inline(always)]
99    pub fn is_aport1ch24to31(&self) -> bool {
100        *self == INPUT32TO39SEL_A::APORT1CH24TO31
101    }
102    #[doc = "Checks if the value of the field is `APORT3CH0TO7`"]
103    #[inline(always)]
104    pub fn is_aport3ch0to7(&self) -> bool {
105        *self == INPUT32TO39SEL_A::APORT3CH0TO7
106    }
107    #[doc = "Checks if the value of the field is `APORT3CH8TO15`"]
108    #[inline(always)]
109    pub fn is_aport3ch8to15(&self) -> bool {
110        *self == INPUT32TO39SEL_A::APORT3CH8TO15
111    }
112    #[doc = "Checks if the value of the field is `APORT3CH16TO23`"]
113    #[inline(always)]
114    pub fn is_aport3ch16to23(&self) -> bool {
115        *self == INPUT32TO39SEL_A::APORT3CH16TO23
116    }
117    #[doc = "Checks if the value of the field is `APORT3CH24TO31`"]
118    #[inline(always)]
119    pub fn is_aport3ch24to31(&self) -> bool {
120        *self == INPUT32TO39SEL_A::APORT3CH24TO31
121    }
122}
123#[doc = "Field `INPUT32TO39SEL` writer - CSEN_INPUT32-39 Select"]
124pub type INPUT32TO39SEL_W<'a> =
125    crate::FieldWriter<'a, u32, SCANINPUTSEL1_SPEC, u8, INPUT32TO39SEL_A, 4, 0>;
126impl<'a> INPUT32TO39SEL_W<'a> {
127    #[doc = "`100`"]
128    #[inline(always)]
129    pub fn aport1ch0to7(self) -> &'a mut W {
130        self.variant(INPUT32TO39SEL_A::APORT1CH0TO7)
131    }
132    #[doc = "`101`"]
133    #[inline(always)]
134    pub fn aport1ch8to15(self) -> &'a mut W {
135        self.variant(INPUT32TO39SEL_A::APORT1CH8TO15)
136    }
137    #[doc = "`110`"]
138    #[inline(always)]
139    pub fn aport1ch16to23(self) -> &'a mut W {
140        self.variant(INPUT32TO39SEL_A::APORT1CH16TO23)
141    }
142    #[doc = "`111`"]
143    #[inline(always)]
144    pub fn aport1ch24to31(self) -> &'a mut W {
145        self.variant(INPUT32TO39SEL_A::APORT1CH24TO31)
146    }
147    #[doc = "`1100`"]
148    #[inline(always)]
149    pub fn aport3ch0to7(self) -> &'a mut W {
150        self.variant(INPUT32TO39SEL_A::APORT3CH0TO7)
151    }
152    #[doc = "`1101`"]
153    #[inline(always)]
154    pub fn aport3ch8to15(self) -> &'a mut W {
155        self.variant(INPUT32TO39SEL_A::APORT3CH8TO15)
156    }
157    #[doc = "`1110`"]
158    #[inline(always)]
159    pub fn aport3ch16to23(self) -> &'a mut W {
160        self.variant(INPUT32TO39SEL_A::APORT3CH16TO23)
161    }
162    #[doc = "`1111`"]
163    #[inline(always)]
164    pub fn aport3ch24to31(self) -> &'a mut W {
165        self.variant(INPUT32TO39SEL_A::APORT3CH24TO31)
166    }
167}
168#[doc = "CSEN_INPUT40-47 Select\n\nValue on reset: 0"]
169#[derive(Clone, Copy, Debug, PartialEq)]
170#[repr(u8)]
171pub enum INPUT40TO47SEL_A {
172    #[doc = "4: `100`"]
173    APORT1CH0TO7 = 4,
174    #[doc = "5: `101`"]
175    APORT1CH8TO15 = 5,
176    #[doc = "6: `110`"]
177    APORT1CH16TO23 = 6,
178    #[doc = "7: `111`"]
179    APORT1CH24TO31 = 7,
180    #[doc = "12: `1100`"]
181    APORT3CH0TO7 = 12,
182    #[doc = "13: `1101`"]
183    APORT3CH8TO15 = 13,
184    #[doc = "14: `1110`"]
185    APORT3CH16TO23 = 14,
186    #[doc = "15: `1111`"]
187    APORT3CH24TO31 = 15,
188}
189impl From<INPUT40TO47SEL_A> for u8 {
190    #[inline(always)]
191    fn from(variant: INPUT40TO47SEL_A) -> Self {
192        variant as _
193    }
194}
195#[doc = "Field `INPUT40TO47SEL` reader - CSEN_INPUT40-47 Select"]
196pub type INPUT40TO47SEL_R = crate::FieldReader<u8, INPUT40TO47SEL_A>;
197impl INPUT40TO47SEL_R {
198    #[doc = "Get enumerated values variant"]
199    #[inline(always)]
200    pub fn variant(&self) -> Option<INPUT40TO47SEL_A> {
201        match self.bits {
202            4 => Some(INPUT40TO47SEL_A::APORT1CH0TO7),
203            5 => Some(INPUT40TO47SEL_A::APORT1CH8TO15),
204            6 => Some(INPUT40TO47SEL_A::APORT1CH16TO23),
205            7 => Some(INPUT40TO47SEL_A::APORT1CH24TO31),
206            12 => Some(INPUT40TO47SEL_A::APORT3CH0TO7),
207            13 => Some(INPUT40TO47SEL_A::APORT3CH8TO15),
208            14 => Some(INPUT40TO47SEL_A::APORT3CH16TO23),
209            15 => Some(INPUT40TO47SEL_A::APORT3CH24TO31),
210            _ => None,
211        }
212    }
213    #[doc = "Checks if the value of the field is `APORT1CH0TO7`"]
214    #[inline(always)]
215    pub fn is_aport1ch0to7(&self) -> bool {
216        *self == INPUT40TO47SEL_A::APORT1CH0TO7
217    }
218    #[doc = "Checks if the value of the field is `APORT1CH8TO15`"]
219    #[inline(always)]
220    pub fn is_aport1ch8to15(&self) -> bool {
221        *self == INPUT40TO47SEL_A::APORT1CH8TO15
222    }
223    #[doc = "Checks if the value of the field is `APORT1CH16TO23`"]
224    #[inline(always)]
225    pub fn is_aport1ch16to23(&self) -> bool {
226        *self == INPUT40TO47SEL_A::APORT1CH16TO23
227    }
228    #[doc = "Checks if the value of the field is `APORT1CH24TO31`"]
229    #[inline(always)]
230    pub fn is_aport1ch24to31(&self) -> bool {
231        *self == INPUT40TO47SEL_A::APORT1CH24TO31
232    }
233    #[doc = "Checks if the value of the field is `APORT3CH0TO7`"]
234    #[inline(always)]
235    pub fn is_aport3ch0to7(&self) -> bool {
236        *self == INPUT40TO47SEL_A::APORT3CH0TO7
237    }
238    #[doc = "Checks if the value of the field is `APORT3CH8TO15`"]
239    #[inline(always)]
240    pub fn is_aport3ch8to15(&self) -> bool {
241        *self == INPUT40TO47SEL_A::APORT3CH8TO15
242    }
243    #[doc = "Checks if the value of the field is `APORT3CH16TO23`"]
244    #[inline(always)]
245    pub fn is_aport3ch16to23(&self) -> bool {
246        *self == INPUT40TO47SEL_A::APORT3CH16TO23
247    }
248    #[doc = "Checks if the value of the field is `APORT3CH24TO31`"]
249    #[inline(always)]
250    pub fn is_aport3ch24to31(&self) -> bool {
251        *self == INPUT40TO47SEL_A::APORT3CH24TO31
252    }
253}
254#[doc = "Field `INPUT40TO47SEL` writer - CSEN_INPUT40-47 Select"]
255pub type INPUT40TO47SEL_W<'a> =
256    crate::FieldWriter<'a, u32, SCANINPUTSEL1_SPEC, u8, INPUT40TO47SEL_A, 4, 8>;
257impl<'a> INPUT40TO47SEL_W<'a> {
258    #[doc = "`100`"]
259    #[inline(always)]
260    pub fn aport1ch0to7(self) -> &'a mut W {
261        self.variant(INPUT40TO47SEL_A::APORT1CH0TO7)
262    }
263    #[doc = "`101`"]
264    #[inline(always)]
265    pub fn aport1ch8to15(self) -> &'a mut W {
266        self.variant(INPUT40TO47SEL_A::APORT1CH8TO15)
267    }
268    #[doc = "`110`"]
269    #[inline(always)]
270    pub fn aport1ch16to23(self) -> &'a mut W {
271        self.variant(INPUT40TO47SEL_A::APORT1CH16TO23)
272    }
273    #[doc = "`111`"]
274    #[inline(always)]
275    pub fn aport1ch24to31(self) -> &'a mut W {
276        self.variant(INPUT40TO47SEL_A::APORT1CH24TO31)
277    }
278    #[doc = "`1100`"]
279    #[inline(always)]
280    pub fn aport3ch0to7(self) -> &'a mut W {
281        self.variant(INPUT40TO47SEL_A::APORT3CH0TO7)
282    }
283    #[doc = "`1101`"]
284    #[inline(always)]
285    pub fn aport3ch8to15(self) -> &'a mut W {
286        self.variant(INPUT40TO47SEL_A::APORT3CH8TO15)
287    }
288    #[doc = "`1110`"]
289    #[inline(always)]
290    pub fn aport3ch16to23(self) -> &'a mut W {
291        self.variant(INPUT40TO47SEL_A::APORT3CH16TO23)
292    }
293    #[doc = "`1111`"]
294    #[inline(always)]
295    pub fn aport3ch24to31(self) -> &'a mut W {
296        self.variant(INPUT40TO47SEL_A::APORT3CH24TO31)
297    }
298}
299#[doc = "CSEN_INPUT48-55 Select\n\nValue on reset: 0"]
300#[derive(Clone, Copy, Debug, PartialEq)]
301#[repr(u8)]
302pub enum INPUT48TO55SEL_A {
303    #[doc = "4: `100`"]
304    APORT1CH0TO7 = 4,
305    #[doc = "5: `101`"]
306    APORT1CH8TO15 = 5,
307    #[doc = "6: `110`"]
308    APORT1CH16TO23 = 6,
309    #[doc = "7: `111`"]
310    APORT1CH24TO31 = 7,
311    #[doc = "12: `1100`"]
312    APORT3CH0TO7 = 12,
313    #[doc = "13: `1101`"]
314    APORT3CH8TO15 = 13,
315    #[doc = "14: `1110`"]
316    APORT3CH16TO23 = 14,
317    #[doc = "15: `1111`"]
318    APORT3CH24TO31 = 15,
319}
320impl From<INPUT48TO55SEL_A> for u8 {
321    #[inline(always)]
322    fn from(variant: INPUT48TO55SEL_A) -> Self {
323        variant as _
324    }
325}
326#[doc = "Field `INPUT48TO55SEL` reader - CSEN_INPUT48-55 Select"]
327pub type INPUT48TO55SEL_R = crate::FieldReader<u8, INPUT48TO55SEL_A>;
328impl INPUT48TO55SEL_R {
329    #[doc = "Get enumerated values variant"]
330    #[inline(always)]
331    pub fn variant(&self) -> Option<INPUT48TO55SEL_A> {
332        match self.bits {
333            4 => Some(INPUT48TO55SEL_A::APORT1CH0TO7),
334            5 => Some(INPUT48TO55SEL_A::APORT1CH8TO15),
335            6 => Some(INPUT48TO55SEL_A::APORT1CH16TO23),
336            7 => Some(INPUT48TO55SEL_A::APORT1CH24TO31),
337            12 => Some(INPUT48TO55SEL_A::APORT3CH0TO7),
338            13 => Some(INPUT48TO55SEL_A::APORT3CH8TO15),
339            14 => Some(INPUT48TO55SEL_A::APORT3CH16TO23),
340            15 => Some(INPUT48TO55SEL_A::APORT3CH24TO31),
341            _ => None,
342        }
343    }
344    #[doc = "Checks if the value of the field is `APORT1CH0TO7`"]
345    #[inline(always)]
346    pub fn is_aport1ch0to7(&self) -> bool {
347        *self == INPUT48TO55SEL_A::APORT1CH0TO7
348    }
349    #[doc = "Checks if the value of the field is `APORT1CH8TO15`"]
350    #[inline(always)]
351    pub fn is_aport1ch8to15(&self) -> bool {
352        *self == INPUT48TO55SEL_A::APORT1CH8TO15
353    }
354    #[doc = "Checks if the value of the field is `APORT1CH16TO23`"]
355    #[inline(always)]
356    pub fn is_aport1ch16to23(&self) -> bool {
357        *self == INPUT48TO55SEL_A::APORT1CH16TO23
358    }
359    #[doc = "Checks if the value of the field is `APORT1CH24TO31`"]
360    #[inline(always)]
361    pub fn is_aport1ch24to31(&self) -> bool {
362        *self == INPUT48TO55SEL_A::APORT1CH24TO31
363    }
364    #[doc = "Checks if the value of the field is `APORT3CH0TO7`"]
365    #[inline(always)]
366    pub fn is_aport3ch0to7(&self) -> bool {
367        *self == INPUT48TO55SEL_A::APORT3CH0TO7
368    }
369    #[doc = "Checks if the value of the field is `APORT3CH8TO15`"]
370    #[inline(always)]
371    pub fn is_aport3ch8to15(&self) -> bool {
372        *self == INPUT48TO55SEL_A::APORT3CH8TO15
373    }
374    #[doc = "Checks if the value of the field is `APORT3CH16TO23`"]
375    #[inline(always)]
376    pub fn is_aport3ch16to23(&self) -> bool {
377        *self == INPUT48TO55SEL_A::APORT3CH16TO23
378    }
379    #[doc = "Checks if the value of the field is `APORT3CH24TO31`"]
380    #[inline(always)]
381    pub fn is_aport3ch24to31(&self) -> bool {
382        *self == INPUT48TO55SEL_A::APORT3CH24TO31
383    }
384}
385#[doc = "Field `INPUT48TO55SEL` writer - CSEN_INPUT48-55 Select"]
386pub type INPUT48TO55SEL_W<'a> =
387    crate::FieldWriter<'a, u32, SCANINPUTSEL1_SPEC, u8, INPUT48TO55SEL_A, 4, 16>;
388impl<'a> INPUT48TO55SEL_W<'a> {
389    #[doc = "`100`"]
390    #[inline(always)]
391    pub fn aport1ch0to7(self) -> &'a mut W {
392        self.variant(INPUT48TO55SEL_A::APORT1CH0TO7)
393    }
394    #[doc = "`101`"]
395    #[inline(always)]
396    pub fn aport1ch8to15(self) -> &'a mut W {
397        self.variant(INPUT48TO55SEL_A::APORT1CH8TO15)
398    }
399    #[doc = "`110`"]
400    #[inline(always)]
401    pub fn aport1ch16to23(self) -> &'a mut W {
402        self.variant(INPUT48TO55SEL_A::APORT1CH16TO23)
403    }
404    #[doc = "`111`"]
405    #[inline(always)]
406    pub fn aport1ch24to31(self) -> &'a mut W {
407        self.variant(INPUT48TO55SEL_A::APORT1CH24TO31)
408    }
409    #[doc = "`1100`"]
410    #[inline(always)]
411    pub fn aport3ch0to7(self) -> &'a mut W {
412        self.variant(INPUT48TO55SEL_A::APORT3CH0TO7)
413    }
414    #[doc = "`1101`"]
415    #[inline(always)]
416    pub fn aport3ch8to15(self) -> &'a mut W {
417        self.variant(INPUT48TO55SEL_A::APORT3CH8TO15)
418    }
419    #[doc = "`1110`"]
420    #[inline(always)]
421    pub fn aport3ch16to23(self) -> &'a mut W {
422        self.variant(INPUT48TO55SEL_A::APORT3CH16TO23)
423    }
424    #[doc = "`1111`"]
425    #[inline(always)]
426    pub fn aport3ch24to31(self) -> &'a mut W {
427        self.variant(INPUT48TO55SEL_A::APORT3CH24TO31)
428    }
429}
430#[doc = "CSEN_INPUT56-63 Select\n\nValue on reset: 0"]
431#[derive(Clone, Copy, Debug, PartialEq)]
432#[repr(u8)]
433pub enum INPUT56TO63SEL_A {
434    #[doc = "4: `100`"]
435    APORT1CH0TO7 = 4,
436    #[doc = "5: `101`"]
437    APORT1CH8TO15 = 5,
438    #[doc = "6: `110`"]
439    APORT1CH16TO23 = 6,
440    #[doc = "7: `111`"]
441    APORT1CH24TO31 = 7,
442    #[doc = "12: `1100`"]
443    APORT3CH0TO7 = 12,
444    #[doc = "13: `1101`"]
445    APORT3CH8TO15 = 13,
446    #[doc = "14: `1110`"]
447    APORT3CH16TO23 = 14,
448    #[doc = "15: `1111`"]
449    APORT3CH24TO31 = 15,
450}
451impl From<INPUT56TO63SEL_A> for u8 {
452    #[inline(always)]
453    fn from(variant: INPUT56TO63SEL_A) -> Self {
454        variant as _
455    }
456}
457#[doc = "Field `INPUT56TO63SEL` reader - CSEN_INPUT56-63 Select"]
458pub type INPUT56TO63SEL_R = crate::FieldReader<u8, INPUT56TO63SEL_A>;
459impl INPUT56TO63SEL_R {
460    #[doc = "Get enumerated values variant"]
461    #[inline(always)]
462    pub fn variant(&self) -> Option<INPUT56TO63SEL_A> {
463        match self.bits {
464            4 => Some(INPUT56TO63SEL_A::APORT1CH0TO7),
465            5 => Some(INPUT56TO63SEL_A::APORT1CH8TO15),
466            6 => Some(INPUT56TO63SEL_A::APORT1CH16TO23),
467            7 => Some(INPUT56TO63SEL_A::APORT1CH24TO31),
468            12 => Some(INPUT56TO63SEL_A::APORT3CH0TO7),
469            13 => Some(INPUT56TO63SEL_A::APORT3CH8TO15),
470            14 => Some(INPUT56TO63SEL_A::APORT3CH16TO23),
471            15 => Some(INPUT56TO63SEL_A::APORT3CH24TO31),
472            _ => None,
473        }
474    }
475    #[doc = "Checks if the value of the field is `APORT1CH0TO7`"]
476    #[inline(always)]
477    pub fn is_aport1ch0to7(&self) -> bool {
478        *self == INPUT56TO63SEL_A::APORT1CH0TO7
479    }
480    #[doc = "Checks if the value of the field is `APORT1CH8TO15`"]
481    #[inline(always)]
482    pub fn is_aport1ch8to15(&self) -> bool {
483        *self == INPUT56TO63SEL_A::APORT1CH8TO15
484    }
485    #[doc = "Checks if the value of the field is `APORT1CH16TO23`"]
486    #[inline(always)]
487    pub fn is_aport1ch16to23(&self) -> bool {
488        *self == INPUT56TO63SEL_A::APORT1CH16TO23
489    }
490    #[doc = "Checks if the value of the field is `APORT1CH24TO31`"]
491    #[inline(always)]
492    pub fn is_aport1ch24to31(&self) -> bool {
493        *self == INPUT56TO63SEL_A::APORT1CH24TO31
494    }
495    #[doc = "Checks if the value of the field is `APORT3CH0TO7`"]
496    #[inline(always)]
497    pub fn is_aport3ch0to7(&self) -> bool {
498        *self == INPUT56TO63SEL_A::APORT3CH0TO7
499    }
500    #[doc = "Checks if the value of the field is `APORT3CH8TO15`"]
501    #[inline(always)]
502    pub fn is_aport3ch8to15(&self) -> bool {
503        *self == INPUT56TO63SEL_A::APORT3CH8TO15
504    }
505    #[doc = "Checks if the value of the field is `APORT3CH16TO23`"]
506    #[inline(always)]
507    pub fn is_aport3ch16to23(&self) -> bool {
508        *self == INPUT56TO63SEL_A::APORT3CH16TO23
509    }
510    #[doc = "Checks if the value of the field is `APORT3CH24TO31`"]
511    #[inline(always)]
512    pub fn is_aport3ch24to31(&self) -> bool {
513        *self == INPUT56TO63SEL_A::APORT3CH24TO31
514    }
515}
516#[doc = "Field `INPUT56TO63SEL` writer - CSEN_INPUT56-63 Select"]
517pub type INPUT56TO63SEL_W<'a> =
518    crate::FieldWriter<'a, u32, SCANINPUTSEL1_SPEC, u8, INPUT56TO63SEL_A, 4, 24>;
519impl<'a> INPUT56TO63SEL_W<'a> {
520    #[doc = "`100`"]
521    #[inline(always)]
522    pub fn aport1ch0to7(self) -> &'a mut W {
523        self.variant(INPUT56TO63SEL_A::APORT1CH0TO7)
524    }
525    #[doc = "`101`"]
526    #[inline(always)]
527    pub fn aport1ch8to15(self) -> &'a mut W {
528        self.variant(INPUT56TO63SEL_A::APORT1CH8TO15)
529    }
530    #[doc = "`110`"]
531    #[inline(always)]
532    pub fn aport1ch16to23(self) -> &'a mut W {
533        self.variant(INPUT56TO63SEL_A::APORT1CH16TO23)
534    }
535    #[doc = "`111`"]
536    #[inline(always)]
537    pub fn aport1ch24to31(self) -> &'a mut W {
538        self.variant(INPUT56TO63SEL_A::APORT1CH24TO31)
539    }
540    #[doc = "`1100`"]
541    #[inline(always)]
542    pub fn aport3ch0to7(self) -> &'a mut W {
543        self.variant(INPUT56TO63SEL_A::APORT3CH0TO7)
544    }
545    #[doc = "`1101`"]
546    #[inline(always)]
547    pub fn aport3ch8to15(self) -> &'a mut W {
548        self.variant(INPUT56TO63SEL_A::APORT3CH8TO15)
549    }
550    #[doc = "`1110`"]
551    #[inline(always)]
552    pub fn aport3ch16to23(self) -> &'a mut W {
553        self.variant(INPUT56TO63SEL_A::APORT3CH16TO23)
554    }
555    #[doc = "`1111`"]
556    #[inline(always)]
557    pub fn aport3ch24to31(self) -> &'a mut W {
558        self.variant(INPUT56TO63SEL_A::APORT3CH24TO31)
559    }
560}
561impl R {
562    #[doc = "Bits 0:3 - CSEN_INPUT32-39 Select"]
563    #[inline(always)]
564    pub fn input32to39sel(&self) -> INPUT32TO39SEL_R {
565        INPUT32TO39SEL_R::new((self.bits & 0x0f) as u8)
566    }
567    #[doc = "Bits 8:11 - CSEN_INPUT40-47 Select"]
568    #[inline(always)]
569    pub fn input40to47sel(&self) -> INPUT40TO47SEL_R {
570        INPUT40TO47SEL_R::new(((self.bits >> 8) & 0x0f) as u8)
571    }
572    #[doc = "Bits 16:19 - CSEN_INPUT48-55 Select"]
573    #[inline(always)]
574    pub fn input48to55sel(&self) -> INPUT48TO55SEL_R {
575        INPUT48TO55SEL_R::new(((self.bits >> 16) & 0x0f) as u8)
576    }
577    #[doc = "Bits 24:27 - CSEN_INPUT56-63 Select"]
578    #[inline(always)]
579    pub fn input56to63sel(&self) -> INPUT56TO63SEL_R {
580        INPUT56TO63SEL_R::new(((self.bits >> 24) & 0x0f) as u8)
581    }
582}
583impl W {
584    #[doc = "Bits 0:3 - CSEN_INPUT32-39 Select"]
585    #[inline(always)]
586    pub fn input32to39sel(&mut self) -> INPUT32TO39SEL_W {
587        INPUT32TO39SEL_W::new(self)
588    }
589    #[doc = "Bits 8:11 - CSEN_INPUT40-47 Select"]
590    #[inline(always)]
591    pub fn input40to47sel(&mut self) -> INPUT40TO47SEL_W {
592        INPUT40TO47SEL_W::new(self)
593    }
594    #[doc = "Bits 16:19 - CSEN_INPUT48-55 Select"]
595    #[inline(always)]
596    pub fn input48to55sel(&mut self) -> INPUT48TO55SEL_W {
597        INPUT48TO55SEL_W::new(self)
598    }
599    #[doc = "Bits 24:27 - CSEN_INPUT56-63 Select"]
600    #[inline(always)]
601    pub fn input56to63sel(&mut self) -> INPUT56TO63SEL_W {
602        INPUT56TO63SEL_W::new(self)
603    }
604    #[doc = "Writes raw bits to the register."]
605    #[inline(always)]
606    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
607        self.0.bits(bits);
608        self
609    }
610}
611#[doc = "Scan Input Selection 1\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 [scaninputsel1](index.html) module"]
612pub struct SCANINPUTSEL1_SPEC;
613impl crate::RegisterSpec for SCANINPUTSEL1_SPEC {
614    type Ux = u32;
615}
616#[doc = "`read()` method returns [scaninputsel1::R](R) reader structure"]
617impl crate::Readable for SCANINPUTSEL1_SPEC {
618    type Reader = R;
619}
620#[doc = "`write(|w| ..)` method takes [scaninputsel1::W](W) writer structure"]
621impl crate::Writable for SCANINPUTSEL1_SPEC {
622    type Writer = W;
623}
624#[doc = "`reset()` method sets SCANINPUTSEL1 to value 0"]
625impl crate::Resettable for SCANINPUTSEL1_SPEC {
626    #[inline(always)]
627    fn reset_value() -> Self::Ux {
628        0
629    }
630}