Skip to main content

mcxa_pac/inputmux0/
qdc1_icap2.rs

1#[doc = "Register `QDC1_ICAP2` reader"]
2pub type R = crate::R<Qdc1Icap2Spec>;
3#[doc = "Register `QDC1_ICAP2` writer"]
4pub type W = crate::W<Qdc1Icap2Spec>;
5#[doc = "QDC1 input connections\n\nValue on reset: 127"]
6#[cfg_attr(feature = "defmt", derive(defmt::Format))]
7#[derive(Clone, Copy, Debug, PartialEq, Eq)]
8#[repr(u8)]
9pub enum Inp {
10    #[doc = "1: ARM_TXEV input is selected"]
11    Val1 = 1,
12    #[doc = "2: AOI0_OUT0 input is selected"]
13    Val2 = 2,
14    #[doc = "3: AOI0_OUT1 input is selected"]
15    Val3 = 3,
16    #[doc = "4: AOI0_OUT2 input is selected"]
17    Val4 = 4,
18    #[doc = "5: AOI0_OUT3 input is selected"]
19    Val5 = 5,
20    #[doc = "6: CMP0_OUT input is selected"]
21    Val6 = 6,
22    #[doc = "7: CMP1_OUT input is selected"]
23    Val7 = 7,
24    #[doc = "8: CMP2_OUT input is selected"]
25    Val8 = 8,
26    #[doc = "9: CTimer0_MAT2 input is selected"]
27    Val9 = 9,
28    #[doc = "10: CTimer0_MAT3"]
29    Val10 = 10,
30    #[doc = "11: CTimer1_MAT2 input is selected"]
31    Val11 = 11,
32    #[doc = "12: CTimer1_MAT3 input is selected"]
33    Val12 = 12,
34    #[doc = "13: CTimer2_MAT2 input is selected"]
35    Val13 = 13,
36    #[doc = "14: CTimer2_MAT3 input is selected"]
37    Val14 = 14,
38    #[doc = "16: PWM0_SM0_MUX_TRIG0 input is selected"]
39    Val16 = 16,
40    #[doc = "17: PWM0_SM0_MUX_TRIG1 input is selected"]
41    Val17 = 17,
42    #[doc = "18: PWM0_SM1_MUX_TRIG0 input is selected"]
43    Val18 = 18,
44    #[doc = "19: PWM0_SM1_MUX_TRIG1 input is selected"]
45    Val19 = 19,
46    #[doc = "20: PWM0_SM2_MUX_TRIG0 input is selected"]
47    Val20 = 20,
48    #[doc = "21: PWM0_SM2_MUX_TRIG1 input is selected"]
49    Val21 = 21,
50    #[doc = "22: PWM0_SM3_MUX_TRIG0 input is selected"]
51    Val22 = 22,
52    #[doc = "23: PWM0_SM3_MUX_TRIG1 input is selected"]
53    Val23 = 23,
54    #[doc = "24: TRIG_IN0 input is selected"]
55    Val24 = 24,
56    #[doc = "25: TRIG_IN1 input is selected"]
57    Val25 = 25,
58    #[doc = "26: TRIG_IN2 input is selected"]
59    Val26 = 26,
60    #[doc = "27: TRIG_IN3 input is selected"]
61    Val27 = 27,
62    #[doc = "28: TRIG_IN4 input is selected"]
63    Val28 = 28,
64    #[doc = "29: TRIG_IN5 input is selected"]
65    Val29 = 29,
66    #[doc = "30: TRIG_IN6 input is selected"]
67    Val30 = 30,
68    #[doc = "31: TRIG_IN7 input is selected"]
69    Val31 = 31,
70    #[doc = "32: TRIG_IN8 input is selected"]
71    Val32 = 32,
72    #[doc = "33: TRIG_IN9 input is selected"]
73    Val33 = 33,
74    #[doc = "34: TRIG_IN10 input is selected"]
75    Val34 = 34,
76    #[doc = "35: TRIG_IN11 input is selected"]
77    Val35 = 35,
78    #[doc = "36: GPIO0 Pin Event Trig 0 is selected"]
79    Val36 = 36,
80    #[doc = "37: GPIO1 Pin Event Trig 0 input is selected"]
81    Val37 = 37,
82    #[doc = "38: GPIO2 Pin Event Trig 0 input is selected"]
83    Val38 = 38,
84    #[doc = "39: GPIO3 Pin Event Trig 0 input is selected"]
85    Val39 = 39,
86    #[doc = "40: GPIO4 Pin Event Trig 0 input is selected"]
87    Val40 = 40,
88    #[doc = "41: AOI1_OUT0 input is selected"]
89    Val41 = 41,
90    #[doc = "42: AOI1_OUT1 input is selected"]
91    Val42 = 42,
92    #[doc = "43: AOI1_OUT2 input is selected"]
93    Val43 = 43,
94    #[doc = "44: AOI1_OUT3 input is selected"]
95    Val44 = 44,
96    #[doc = "49: CTimer3_MAT2 input is selected"]
97    Val49 = 49,
98    #[doc = "50: CTimer3_MAT3 input is selected"]
99    Val50 = 50,
100    #[doc = "51: CTimer4_MAT2 input is selected"]
101    Val51 = 51,
102    #[doc = "52: CTimer4_MAT3 input is selected"]
103    Val52 = 52,
104    #[doc = "62: PWM1_SM0_OUT_TRIG0 input is selected"]
105    Val62 = 62,
106    #[doc = "63: PWM1_SM0_OUT_TRIG1 input is selected"]
107    Val63 = 63,
108    #[doc = "64: PWM1_SM1_OUT_TRIG0 input is selected"]
109    Val64 = 64,
110    #[doc = "65: PWM1_SM1_OUT_TRIG1 input is selected"]
111    Val65 = 65,
112    #[doc = "66: PWM1_SM2_OUT_TRIG0 input is selected"]
113    Val66 = 66,
114    #[doc = "67: PWM1_SM2_OUT_TRIG1 input is selected"]
115    Val67 = 67,
116    #[doc = "68: PWM1_SM3_MUX_TRIG0 input is selected"]
117    Val68 = 68,
118    #[doc = "69: PWM1_SM3_MUX_TRIG1 input is selected"]
119    Val69 = 69,
120}
121impl From<Inp> for u8 {
122    #[inline(always)]
123    fn from(variant: Inp) -> Self {
124        variant as _
125    }
126}
127impl crate::FieldSpec for Inp {
128    type Ux = u8;
129}
130impl crate::IsEnum for Inp {}
131#[doc = "Field `INP` reader - QDC1 input connections"]
132pub type InpR = crate::FieldReader<Inp>;
133impl InpR {
134    #[doc = "Get enumerated values variant"]
135    #[inline(always)]
136    pub const fn variant(&self) -> Option<Inp> {
137        match self.bits {
138            1 => Some(Inp::Val1),
139            2 => Some(Inp::Val2),
140            3 => Some(Inp::Val3),
141            4 => Some(Inp::Val4),
142            5 => Some(Inp::Val5),
143            6 => Some(Inp::Val6),
144            7 => Some(Inp::Val7),
145            8 => Some(Inp::Val8),
146            9 => Some(Inp::Val9),
147            10 => Some(Inp::Val10),
148            11 => Some(Inp::Val11),
149            12 => Some(Inp::Val12),
150            13 => Some(Inp::Val13),
151            14 => Some(Inp::Val14),
152            16 => Some(Inp::Val16),
153            17 => Some(Inp::Val17),
154            18 => Some(Inp::Val18),
155            19 => Some(Inp::Val19),
156            20 => Some(Inp::Val20),
157            21 => Some(Inp::Val21),
158            22 => Some(Inp::Val22),
159            23 => Some(Inp::Val23),
160            24 => Some(Inp::Val24),
161            25 => Some(Inp::Val25),
162            26 => Some(Inp::Val26),
163            27 => Some(Inp::Val27),
164            28 => Some(Inp::Val28),
165            29 => Some(Inp::Val29),
166            30 => Some(Inp::Val30),
167            31 => Some(Inp::Val31),
168            32 => Some(Inp::Val32),
169            33 => Some(Inp::Val33),
170            34 => Some(Inp::Val34),
171            35 => Some(Inp::Val35),
172            36 => Some(Inp::Val36),
173            37 => Some(Inp::Val37),
174            38 => Some(Inp::Val38),
175            39 => Some(Inp::Val39),
176            40 => Some(Inp::Val40),
177            41 => Some(Inp::Val41),
178            42 => Some(Inp::Val42),
179            43 => Some(Inp::Val43),
180            44 => Some(Inp::Val44),
181            49 => Some(Inp::Val49),
182            50 => Some(Inp::Val50),
183            51 => Some(Inp::Val51),
184            52 => Some(Inp::Val52),
185            62 => Some(Inp::Val62),
186            63 => Some(Inp::Val63),
187            64 => Some(Inp::Val64),
188            65 => Some(Inp::Val65),
189            66 => Some(Inp::Val66),
190            67 => Some(Inp::Val67),
191            68 => Some(Inp::Val68),
192            69 => Some(Inp::Val69),
193            _ => None,
194        }
195    }
196    #[doc = "ARM_TXEV input is selected"]
197    #[inline(always)]
198    pub fn is_val1(&self) -> bool {
199        *self == Inp::Val1
200    }
201    #[doc = "AOI0_OUT0 input is selected"]
202    #[inline(always)]
203    pub fn is_val2(&self) -> bool {
204        *self == Inp::Val2
205    }
206    #[doc = "AOI0_OUT1 input is selected"]
207    #[inline(always)]
208    pub fn is_val3(&self) -> bool {
209        *self == Inp::Val3
210    }
211    #[doc = "AOI0_OUT2 input is selected"]
212    #[inline(always)]
213    pub fn is_val4(&self) -> bool {
214        *self == Inp::Val4
215    }
216    #[doc = "AOI0_OUT3 input is selected"]
217    #[inline(always)]
218    pub fn is_val5(&self) -> bool {
219        *self == Inp::Val5
220    }
221    #[doc = "CMP0_OUT input is selected"]
222    #[inline(always)]
223    pub fn is_val6(&self) -> bool {
224        *self == Inp::Val6
225    }
226    #[doc = "CMP1_OUT input is selected"]
227    #[inline(always)]
228    pub fn is_val7(&self) -> bool {
229        *self == Inp::Val7
230    }
231    #[doc = "CMP2_OUT input is selected"]
232    #[inline(always)]
233    pub fn is_val8(&self) -> bool {
234        *self == Inp::Val8
235    }
236    #[doc = "CTimer0_MAT2 input is selected"]
237    #[inline(always)]
238    pub fn is_val9(&self) -> bool {
239        *self == Inp::Val9
240    }
241    #[doc = "CTimer0_MAT3"]
242    #[inline(always)]
243    pub fn is_val10(&self) -> bool {
244        *self == Inp::Val10
245    }
246    #[doc = "CTimer1_MAT2 input is selected"]
247    #[inline(always)]
248    pub fn is_val11(&self) -> bool {
249        *self == Inp::Val11
250    }
251    #[doc = "CTimer1_MAT3 input is selected"]
252    #[inline(always)]
253    pub fn is_val12(&self) -> bool {
254        *self == Inp::Val12
255    }
256    #[doc = "CTimer2_MAT2 input is selected"]
257    #[inline(always)]
258    pub fn is_val13(&self) -> bool {
259        *self == Inp::Val13
260    }
261    #[doc = "CTimer2_MAT3 input is selected"]
262    #[inline(always)]
263    pub fn is_val14(&self) -> bool {
264        *self == Inp::Val14
265    }
266    #[doc = "PWM0_SM0_MUX_TRIG0 input is selected"]
267    #[inline(always)]
268    pub fn is_val16(&self) -> bool {
269        *self == Inp::Val16
270    }
271    #[doc = "PWM0_SM0_MUX_TRIG1 input is selected"]
272    #[inline(always)]
273    pub fn is_val17(&self) -> bool {
274        *self == Inp::Val17
275    }
276    #[doc = "PWM0_SM1_MUX_TRIG0 input is selected"]
277    #[inline(always)]
278    pub fn is_val18(&self) -> bool {
279        *self == Inp::Val18
280    }
281    #[doc = "PWM0_SM1_MUX_TRIG1 input is selected"]
282    #[inline(always)]
283    pub fn is_val19(&self) -> bool {
284        *self == Inp::Val19
285    }
286    #[doc = "PWM0_SM2_MUX_TRIG0 input is selected"]
287    #[inline(always)]
288    pub fn is_val20(&self) -> bool {
289        *self == Inp::Val20
290    }
291    #[doc = "PWM0_SM2_MUX_TRIG1 input is selected"]
292    #[inline(always)]
293    pub fn is_val21(&self) -> bool {
294        *self == Inp::Val21
295    }
296    #[doc = "PWM0_SM3_MUX_TRIG0 input is selected"]
297    #[inline(always)]
298    pub fn is_val22(&self) -> bool {
299        *self == Inp::Val22
300    }
301    #[doc = "PWM0_SM3_MUX_TRIG1 input is selected"]
302    #[inline(always)]
303    pub fn is_val23(&self) -> bool {
304        *self == Inp::Val23
305    }
306    #[doc = "TRIG_IN0 input is selected"]
307    #[inline(always)]
308    pub fn is_val24(&self) -> bool {
309        *self == Inp::Val24
310    }
311    #[doc = "TRIG_IN1 input is selected"]
312    #[inline(always)]
313    pub fn is_val25(&self) -> bool {
314        *self == Inp::Val25
315    }
316    #[doc = "TRIG_IN2 input is selected"]
317    #[inline(always)]
318    pub fn is_val26(&self) -> bool {
319        *self == Inp::Val26
320    }
321    #[doc = "TRIG_IN3 input is selected"]
322    #[inline(always)]
323    pub fn is_val27(&self) -> bool {
324        *self == Inp::Val27
325    }
326    #[doc = "TRIG_IN4 input is selected"]
327    #[inline(always)]
328    pub fn is_val28(&self) -> bool {
329        *self == Inp::Val28
330    }
331    #[doc = "TRIG_IN5 input is selected"]
332    #[inline(always)]
333    pub fn is_val29(&self) -> bool {
334        *self == Inp::Val29
335    }
336    #[doc = "TRIG_IN6 input is selected"]
337    #[inline(always)]
338    pub fn is_val30(&self) -> bool {
339        *self == Inp::Val30
340    }
341    #[doc = "TRIG_IN7 input is selected"]
342    #[inline(always)]
343    pub fn is_val31(&self) -> bool {
344        *self == Inp::Val31
345    }
346    #[doc = "TRIG_IN8 input is selected"]
347    #[inline(always)]
348    pub fn is_val32(&self) -> bool {
349        *self == Inp::Val32
350    }
351    #[doc = "TRIG_IN9 input is selected"]
352    #[inline(always)]
353    pub fn is_val33(&self) -> bool {
354        *self == Inp::Val33
355    }
356    #[doc = "TRIG_IN10 input is selected"]
357    #[inline(always)]
358    pub fn is_val34(&self) -> bool {
359        *self == Inp::Val34
360    }
361    #[doc = "TRIG_IN11 input is selected"]
362    #[inline(always)]
363    pub fn is_val35(&self) -> bool {
364        *self == Inp::Val35
365    }
366    #[doc = "GPIO0 Pin Event Trig 0 is selected"]
367    #[inline(always)]
368    pub fn is_val36(&self) -> bool {
369        *self == Inp::Val36
370    }
371    #[doc = "GPIO1 Pin Event Trig 0 input is selected"]
372    #[inline(always)]
373    pub fn is_val37(&self) -> bool {
374        *self == Inp::Val37
375    }
376    #[doc = "GPIO2 Pin Event Trig 0 input is selected"]
377    #[inline(always)]
378    pub fn is_val38(&self) -> bool {
379        *self == Inp::Val38
380    }
381    #[doc = "GPIO3 Pin Event Trig 0 input is selected"]
382    #[inline(always)]
383    pub fn is_val39(&self) -> bool {
384        *self == Inp::Val39
385    }
386    #[doc = "GPIO4 Pin Event Trig 0 input is selected"]
387    #[inline(always)]
388    pub fn is_val40(&self) -> bool {
389        *self == Inp::Val40
390    }
391    #[doc = "AOI1_OUT0 input is selected"]
392    #[inline(always)]
393    pub fn is_val41(&self) -> bool {
394        *self == Inp::Val41
395    }
396    #[doc = "AOI1_OUT1 input is selected"]
397    #[inline(always)]
398    pub fn is_val42(&self) -> bool {
399        *self == Inp::Val42
400    }
401    #[doc = "AOI1_OUT2 input is selected"]
402    #[inline(always)]
403    pub fn is_val43(&self) -> bool {
404        *self == Inp::Val43
405    }
406    #[doc = "AOI1_OUT3 input is selected"]
407    #[inline(always)]
408    pub fn is_val44(&self) -> bool {
409        *self == Inp::Val44
410    }
411    #[doc = "CTimer3_MAT2 input is selected"]
412    #[inline(always)]
413    pub fn is_val49(&self) -> bool {
414        *self == Inp::Val49
415    }
416    #[doc = "CTimer3_MAT3 input is selected"]
417    #[inline(always)]
418    pub fn is_val50(&self) -> bool {
419        *self == Inp::Val50
420    }
421    #[doc = "CTimer4_MAT2 input is selected"]
422    #[inline(always)]
423    pub fn is_val51(&self) -> bool {
424        *self == Inp::Val51
425    }
426    #[doc = "CTimer4_MAT3 input is selected"]
427    #[inline(always)]
428    pub fn is_val52(&self) -> bool {
429        *self == Inp::Val52
430    }
431    #[doc = "PWM1_SM0_OUT_TRIG0 input is selected"]
432    #[inline(always)]
433    pub fn is_val62(&self) -> bool {
434        *self == Inp::Val62
435    }
436    #[doc = "PWM1_SM0_OUT_TRIG1 input is selected"]
437    #[inline(always)]
438    pub fn is_val63(&self) -> bool {
439        *self == Inp::Val63
440    }
441    #[doc = "PWM1_SM1_OUT_TRIG0 input is selected"]
442    #[inline(always)]
443    pub fn is_val64(&self) -> bool {
444        *self == Inp::Val64
445    }
446    #[doc = "PWM1_SM1_OUT_TRIG1 input is selected"]
447    #[inline(always)]
448    pub fn is_val65(&self) -> bool {
449        *self == Inp::Val65
450    }
451    #[doc = "PWM1_SM2_OUT_TRIG0 input is selected"]
452    #[inline(always)]
453    pub fn is_val66(&self) -> bool {
454        *self == Inp::Val66
455    }
456    #[doc = "PWM1_SM2_OUT_TRIG1 input is selected"]
457    #[inline(always)]
458    pub fn is_val67(&self) -> bool {
459        *self == Inp::Val67
460    }
461    #[doc = "PWM1_SM3_MUX_TRIG0 input is selected"]
462    #[inline(always)]
463    pub fn is_val68(&self) -> bool {
464        *self == Inp::Val68
465    }
466    #[doc = "PWM1_SM3_MUX_TRIG1 input is selected"]
467    #[inline(always)]
468    pub fn is_val69(&self) -> bool {
469        *self == Inp::Val69
470    }
471}
472#[doc = "Field `INP` writer - QDC1 input connections"]
473pub type InpW<'a, REG> = crate::FieldWriter<'a, REG, 7, Inp>;
474impl<'a, REG> InpW<'a, REG>
475where
476    REG: crate::Writable + crate::RegisterSpec,
477    REG::Ux: From<u8>,
478{
479    #[doc = "ARM_TXEV input is selected"]
480    #[inline(always)]
481    pub fn val1(self) -> &'a mut crate::W<REG> {
482        self.variant(Inp::Val1)
483    }
484    #[doc = "AOI0_OUT0 input is selected"]
485    #[inline(always)]
486    pub fn val2(self) -> &'a mut crate::W<REG> {
487        self.variant(Inp::Val2)
488    }
489    #[doc = "AOI0_OUT1 input is selected"]
490    #[inline(always)]
491    pub fn val3(self) -> &'a mut crate::W<REG> {
492        self.variant(Inp::Val3)
493    }
494    #[doc = "AOI0_OUT2 input is selected"]
495    #[inline(always)]
496    pub fn val4(self) -> &'a mut crate::W<REG> {
497        self.variant(Inp::Val4)
498    }
499    #[doc = "AOI0_OUT3 input is selected"]
500    #[inline(always)]
501    pub fn val5(self) -> &'a mut crate::W<REG> {
502        self.variant(Inp::Val5)
503    }
504    #[doc = "CMP0_OUT input is selected"]
505    #[inline(always)]
506    pub fn val6(self) -> &'a mut crate::W<REG> {
507        self.variant(Inp::Val6)
508    }
509    #[doc = "CMP1_OUT input is selected"]
510    #[inline(always)]
511    pub fn val7(self) -> &'a mut crate::W<REG> {
512        self.variant(Inp::Val7)
513    }
514    #[doc = "CMP2_OUT input is selected"]
515    #[inline(always)]
516    pub fn val8(self) -> &'a mut crate::W<REG> {
517        self.variant(Inp::Val8)
518    }
519    #[doc = "CTimer0_MAT2 input is selected"]
520    #[inline(always)]
521    pub fn val9(self) -> &'a mut crate::W<REG> {
522        self.variant(Inp::Val9)
523    }
524    #[doc = "CTimer0_MAT3"]
525    #[inline(always)]
526    pub fn val10(self) -> &'a mut crate::W<REG> {
527        self.variant(Inp::Val10)
528    }
529    #[doc = "CTimer1_MAT2 input is selected"]
530    #[inline(always)]
531    pub fn val11(self) -> &'a mut crate::W<REG> {
532        self.variant(Inp::Val11)
533    }
534    #[doc = "CTimer1_MAT3 input is selected"]
535    #[inline(always)]
536    pub fn val12(self) -> &'a mut crate::W<REG> {
537        self.variant(Inp::Val12)
538    }
539    #[doc = "CTimer2_MAT2 input is selected"]
540    #[inline(always)]
541    pub fn val13(self) -> &'a mut crate::W<REG> {
542        self.variant(Inp::Val13)
543    }
544    #[doc = "CTimer2_MAT3 input is selected"]
545    #[inline(always)]
546    pub fn val14(self) -> &'a mut crate::W<REG> {
547        self.variant(Inp::Val14)
548    }
549    #[doc = "PWM0_SM0_MUX_TRIG0 input is selected"]
550    #[inline(always)]
551    pub fn val16(self) -> &'a mut crate::W<REG> {
552        self.variant(Inp::Val16)
553    }
554    #[doc = "PWM0_SM0_MUX_TRIG1 input is selected"]
555    #[inline(always)]
556    pub fn val17(self) -> &'a mut crate::W<REG> {
557        self.variant(Inp::Val17)
558    }
559    #[doc = "PWM0_SM1_MUX_TRIG0 input is selected"]
560    #[inline(always)]
561    pub fn val18(self) -> &'a mut crate::W<REG> {
562        self.variant(Inp::Val18)
563    }
564    #[doc = "PWM0_SM1_MUX_TRIG1 input is selected"]
565    #[inline(always)]
566    pub fn val19(self) -> &'a mut crate::W<REG> {
567        self.variant(Inp::Val19)
568    }
569    #[doc = "PWM0_SM2_MUX_TRIG0 input is selected"]
570    #[inline(always)]
571    pub fn val20(self) -> &'a mut crate::W<REG> {
572        self.variant(Inp::Val20)
573    }
574    #[doc = "PWM0_SM2_MUX_TRIG1 input is selected"]
575    #[inline(always)]
576    pub fn val21(self) -> &'a mut crate::W<REG> {
577        self.variant(Inp::Val21)
578    }
579    #[doc = "PWM0_SM3_MUX_TRIG0 input is selected"]
580    #[inline(always)]
581    pub fn val22(self) -> &'a mut crate::W<REG> {
582        self.variant(Inp::Val22)
583    }
584    #[doc = "PWM0_SM3_MUX_TRIG1 input is selected"]
585    #[inline(always)]
586    pub fn val23(self) -> &'a mut crate::W<REG> {
587        self.variant(Inp::Val23)
588    }
589    #[doc = "TRIG_IN0 input is selected"]
590    #[inline(always)]
591    pub fn val24(self) -> &'a mut crate::W<REG> {
592        self.variant(Inp::Val24)
593    }
594    #[doc = "TRIG_IN1 input is selected"]
595    #[inline(always)]
596    pub fn val25(self) -> &'a mut crate::W<REG> {
597        self.variant(Inp::Val25)
598    }
599    #[doc = "TRIG_IN2 input is selected"]
600    #[inline(always)]
601    pub fn val26(self) -> &'a mut crate::W<REG> {
602        self.variant(Inp::Val26)
603    }
604    #[doc = "TRIG_IN3 input is selected"]
605    #[inline(always)]
606    pub fn val27(self) -> &'a mut crate::W<REG> {
607        self.variant(Inp::Val27)
608    }
609    #[doc = "TRIG_IN4 input is selected"]
610    #[inline(always)]
611    pub fn val28(self) -> &'a mut crate::W<REG> {
612        self.variant(Inp::Val28)
613    }
614    #[doc = "TRIG_IN5 input is selected"]
615    #[inline(always)]
616    pub fn val29(self) -> &'a mut crate::W<REG> {
617        self.variant(Inp::Val29)
618    }
619    #[doc = "TRIG_IN6 input is selected"]
620    #[inline(always)]
621    pub fn val30(self) -> &'a mut crate::W<REG> {
622        self.variant(Inp::Val30)
623    }
624    #[doc = "TRIG_IN7 input is selected"]
625    #[inline(always)]
626    pub fn val31(self) -> &'a mut crate::W<REG> {
627        self.variant(Inp::Val31)
628    }
629    #[doc = "TRIG_IN8 input is selected"]
630    #[inline(always)]
631    pub fn val32(self) -> &'a mut crate::W<REG> {
632        self.variant(Inp::Val32)
633    }
634    #[doc = "TRIG_IN9 input is selected"]
635    #[inline(always)]
636    pub fn val33(self) -> &'a mut crate::W<REG> {
637        self.variant(Inp::Val33)
638    }
639    #[doc = "TRIG_IN10 input is selected"]
640    #[inline(always)]
641    pub fn val34(self) -> &'a mut crate::W<REG> {
642        self.variant(Inp::Val34)
643    }
644    #[doc = "TRIG_IN11 input is selected"]
645    #[inline(always)]
646    pub fn val35(self) -> &'a mut crate::W<REG> {
647        self.variant(Inp::Val35)
648    }
649    #[doc = "GPIO0 Pin Event Trig 0 is selected"]
650    #[inline(always)]
651    pub fn val36(self) -> &'a mut crate::W<REG> {
652        self.variant(Inp::Val36)
653    }
654    #[doc = "GPIO1 Pin Event Trig 0 input is selected"]
655    #[inline(always)]
656    pub fn val37(self) -> &'a mut crate::W<REG> {
657        self.variant(Inp::Val37)
658    }
659    #[doc = "GPIO2 Pin Event Trig 0 input is selected"]
660    #[inline(always)]
661    pub fn val38(self) -> &'a mut crate::W<REG> {
662        self.variant(Inp::Val38)
663    }
664    #[doc = "GPIO3 Pin Event Trig 0 input is selected"]
665    #[inline(always)]
666    pub fn val39(self) -> &'a mut crate::W<REG> {
667        self.variant(Inp::Val39)
668    }
669    #[doc = "GPIO4 Pin Event Trig 0 input is selected"]
670    #[inline(always)]
671    pub fn val40(self) -> &'a mut crate::W<REG> {
672        self.variant(Inp::Val40)
673    }
674    #[doc = "AOI1_OUT0 input is selected"]
675    #[inline(always)]
676    pub fn val41(self) -> &'a mut crate::W<REG> {
677        self.variant(Inp::Val41)
678    }
679    #[doc = "AOI1_OUT1 input is selected"]
680    #[inline(always)]
681    pub fn val42(self) -> &'a mut crate::W<REG> {
682        self.variant(Inp::Val42)
683    }
684    #[doc = "AOI1_OUT2 input is selected"]
685    #[inline(always)]
686    pub fn val43(self) -> &'a mut crate::W<REG> {
687        self.variant(Inp::Val43)
688    }
689    #[doc = "AOI1_OUT3 input is selected"]
690    #[inline(always)]
691    pub fn val44(self) -> &'a mut crate::W<REG> {
692        self.variant(Inp::Val44)
693    }
694    #[doc = "CTimer3_MAT2 input is selected"]
695    #[inline(always)]
696    pub fn val49(self) -> &'a mut crate::W<REG> {
697        self.variant(Inp::Val49)
698    }
699    #[doc = "CTimer3_MAT3 input is selected"]
700    #[inline(always)]
701    pub fn val50(self) -> &'a mut crate::W<REG> {
702        self.variant(Inp::Val50)
703    }
704    #[doc = "CTimer4_MAT2 input is selected"]
705    #[inline(always)]
706    pub fn val51(self) -> &'a mut crate::W<REG> {
707        self.variant(Inp::Val51)
708    }
709    #[doc = "CTimer4_MAT3 input is selected"]
710    #[inline(always)]
711    pub fn val52(self) -> &'a mut crate::W<REG> {
712        self.variant(Inp::Val52)
713    }
714    #[doc = "PWM1_SM0_OUT_TRIG0 input is selected"]
715    #[inline(always)]
716    pub fn val62(self) -> &'a mut crate::W<REG> {
717        self.variant(Inp::Val62)
718    }
719    #[doc = "PWM1_SM0_OUT_TRIG1 input is selected"]
720    #[inline(always)]
721    pub fn val63(self) -> &'a mut crate::W<REG> {
722        self.variant(Inp::Val63)
723    }
724    #[doc = "PWM1_SM1_OUT_TRIG0 input is selected"]
725    #[inline(always)]
726    pub fn val64(self) -> &'a mut crate::W<REG> {
727        self.variant(Inp::Val64)
728    }
729    #[doc = "PWM1_SM1_OUT_TRIG1 input is selected"]
730    #[inline(always)]
731    pub fn val65(self) -> &'a mut crate::W<REG> {
732        self.variant(Inp::Val65)
733    }
734    #[doc = "PWM1_SM2_OUT_TRIG0 input is selected"]
735    #[inline(always)]
736    pub fn val66(self) -> &'a mut crate::W<REG> {
737        self.variant(Inp::Val66)
738    }
739    #[doc = "PWM1_SM2_OUT_TRIG1 input is selected"]
740    #[inline(always)]
741    pub fn val67(self) -> &'a mut crate::W<REG> {
742        self.variant(Inp::Val67)
743    }
744    #[doc = "PWM1_SM3_MUX_TRIG0 input is selected"]
745    #[inline(always)]
746    pub fn val68(self) -> &'a mut crate::W<REG> {
747        self.variant(Inp::Val68)
748    }
749    #[doc = "PWM1_SM3_MUX_TRIG1 input is selected"]
750    #[inline(always)]
751    pub fn val69(self) -> &'a mut crate::W<REG> {
752        self.variant(Inp::Val69)
753    }
754}
755impl R {
756    #[doc = "Bits 0:6 - QDC1 input connections"]
757    #[inline(always)]
758    pub fn inp(&self) -> InpR {
759        InpR::new((self.bits & 0x7f) as u8)
760    }
761}
762#[cfg(feature = "debug")]
763impl core::fmt::Debug for R {
764    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
765        f.debug_struct("QDC1_ICAP2").field("inp", &self.inp()).finish()
766    }
767}
768impl W {
769    #[doc = "Bits 0:6 - QDC1 input connections"]
770    #[inline(always)]
771    pub fn inp(&mut self) -> InpW<'_, Qdc1Icap2Spec> {
772        InpW::new(self, 0)
773    }
774}
775#[doc = "QDC1 Trigger Input Connections\n\nYou can [`read`](crate::Reg::read) this register and get [`qdc1_icap2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`qdc1_icap2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
776pub struct Qdc1Icap2Spec;
777impl crate::RegisterSpec for Qdc1Icap2Spec {
778    type Ux = u32;
779}
780#[doc = "`read()` method returns [`qdc1_icap2::R`](R) reader structure"]
781impl crate::Readable for Qdc1Icap2Spec {}
782#[doc = "`write(|w| ..)` method takes [`qdc1_icap2::W`](W) writer structure"]
783impl crate::Writable for Qdc1Icap2Spec {
784    type Safety = crate::Unsafe;
785}
786#[doc = "`reset()` method sets QDC1_ICAP2 to value 0x7f"]
787impl crate::Resettable for Qdc1Icap2Spec {
788    const RESET_VALUE: u32 = 0x7f;
789}