Skip to main content

mcxa_pac/inputmux0/
qdc0_phasea.rs

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