mcxa_pac/inputmux0/
flexio_trig.rs

1#[doc = "Register `FLEXIO_TRIG[%s]` reader"]
2pub type R = crate::R<FlexioTrigSpec>;
3#[doc = "Register `FLEXIO_TRIG[%s]` writer"]
4pub type W = crate::W<FlexioTrigSpec>;
5#[doc = "Input number for FlexIO0.\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: AOI0_OUT0 input is selected"]
11    Val1 = 1,
12    #[doc = "2: AOI0_OUT1 input is selected"]
13    Val2 = 2,
14    #[doc = "3: AOI0_OUT2 input is selected"]
15    Val3 = 3,
16    #[doc = "4: AOI0_OUT3 input is selected"]
17    Val4 = 4,
18    #[doc = "5: ADC0_tcomp\\[0\\] input is selected"]
19    Val5 = 5,
20    #[doc = "6: ADC0_tcomp\\[1\\] input is selected"]
21    Val6 = 6,
22    #[doc = "7: ADC0_tcomp\\[2\\] input is selected"]
23    Val7 = 7,
24    #[doc = "8: ADC0_tcomp\\[3\\] input is selected"]
25    Val8 = 8,
26    #[doc = "9: CMP0_OUT input is selected"]
27    Val9 = 9,
28    #[doc = "10: CMP1_OUT input is selected"]
29    Val10 = 10,
30    #[doc = "11: CMP2_OUT input is selected"]
31    Val11 = 11,
32    #[doc = "12: CTimer0_MAT1 input is selected"]
33    Val12 = 12,
34    #[doc = "13: CTimer0_MAT2 input is selected"]
35    Val13 = 13,
36    #[doc = "14: CTimer1_MAT1 input is selected"]
37    Val14 = 14,
38    #[doc = "15: CTimer1_MAT2 input is selected"]
39    Val15 = 15,
40    #[doc = "16: CTimer2_MAT1 input is selected"]
41    Val16 = 16,
42    #[doc = "17: CTimer2_MAT2 input is selected"]
43    Val17 = 17,
44    #[doc = "18: LPTMR0 input is selected"]
45    Val18 = 18,
46    #[doc = "20: PWM0_SM0_MUX_TRIG0 input is selected"]
47    Val20 = 20,
48    #[doc = "21: PWM0_SM1_MUX_TRIG0 input is selected"]
49    Val21 = 21,
50    #[doc = "22: PWM0_SM2_MUX_TRIG0 input is selected"]
51    Val22 = 22,
52    #[doc = "23: PWM0_SM3_MUX_TRIG0 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: GPIO0 Pin Event Trig 0 input is selected"]
71    Val32 = 32,
72    #[doc = "33: GPIO1 Pin Event Trig 0 input is selected"]
73    Val33 = 33,
74    #[doc = "34: GPIO2 Pin Event Trig 0 input is selected"]
75    Val34 = 34,
76    #[doc = "35: GPIO3 Pin Event Trig 0 input is selected"]
77    Val35 = 35,
78    #[doc = "36: GPIO4 Pin Event Trig 0 input is selected"]
79    Val36 = 36,
80    #[doc = "37: WUU input is selected"]
81    Val37 = 37,
82    #[doc = "38: LPI2C0 Master End of Packet"]
83    Val38 = 38,
84    #[doc = "39: LPI2C0 Slave End of Packet"]
85    Val39 = 39,
86    #[doc = "40: LPI2C1 Master End of Packet"]
87    Val40 = 40,
88    #[doc = "41: LPI2C1 Slave End of Packet"]
89    Val41 = 41,
90    #[doc = "42: LPSPI0 End of Frame"]
91    Val42 = 42,
92    #[doc = "43: LPSPI0 Received Data Word"]
93    Val43 = 43,
94    #[doc = "44: LPSPI1 End of Frame"]
95    Val44 = 44,
96    #[doc = "45: LPSPI1 Received Data Word"]
97    Val45 = 45,
98    #[doc = "46: LPUART0 Received Data Word"]
99    Val46 = 46,
100    #[doc = "47: LPUART0 Transmitted Data Word"]
101    Val47 = 47,
102    #[doc = "48: LPUART0 Receive Line Idle"]
103    Val48 = 48,
104    #[doc = "49: LPUART1 Received Data Word"]
105    Val49 = 49,
106    #[doc = "50: LPUART1 Transmitted Data Word"]
107    Val50 = 50,
108    #[doc = "51: LPUART1 Receive Line Idle"]
109    Val51 = 51,
110    #[doc = "52: LPUART2 Received Data Word"]
111    Val52 = 52,
112    #[doc = "53: LPUART2 Transmitted Data Word"]
113    Val53 = 53,
114    #[doc = "54: LPUART2 Receive Line Idle"]
115    Val54 = 54,
116    #[doc = "55: LPUART3 Received Data Word"]
117    Val55 = 55,
118    #[doc = "56: LPUART3 Transmitted Data Word"]
119    Val56 = 56,
120    #[doc = "57: LPUART3 Receive Line Idle"]
121    Val57 = 57,
122    #[doc = "58: LPUART4 Received Data Word"]
123    Val58 = 58,
124    #[doc = "59: LPUART4 Transmitted Data Word"]
125    Val59 = 59,
126    #[doc = "60: LPUART4 Receive Line Idle"]
127    Val60 = 60,
128    #[doc = "61: AOI1_OUT0 input is selected"]
129    Val61 = 61,
130    #[doc = "62: AOI1_OUT1 input is selected"]
131    Val62 = 62,
132    #[doc = "63: AOI1_OUT2 input is selected"]
133    Val63 = 63,
134    #[doc = "64: AOI1_OUT3 input is selected"]
135    Val64 = 64,
136    #[doc = "65: ADC1_tcomp\\[0\\] input is selected"]
137    Val65 = 65,
138    #[doc = "66: ADC1_tcomp\\[1\\] input is selected"]
139    Val66 = 66,
140    #[doc = "67: ADC1_tcomp\\[2\\] input is selected"]
141    Val67 = 67,
142    #[doc = "68: ADC1_tcomp\\[3\\] input is selected"]
143    Val68 = 68,
144    #[doc = "69: CTimer3_MAT2 input is selected"]
145    Val69 = 69,
146    #[doc = "70: CTimer3_MAT3 input is selected"]
147    Val70 = 70,
148    #[doc = "71: CTimer4_MAT2 input is selected"]
149    Val71 = 71,
150    #[doc = "72: CTimer4_MAT3 input is selected"]
151    Val72 = 72,
152    #[doc = "73: PWM1_SM0_MUX_TRIG0 input is selected"]
153    Val73 = 73,
154    #[doc = "74: PWM1_SM1_MUX_TRIG0 input is selected"]
155    Val74 = 74,
156    #[doc = "75: PWM1_SM2_MUX_TRIG0 input is selected"]
157    Val75 = 75,
158    #[doc = "76: PWM1_SM3_MUX_TRIG0 input is selected"]
159    Val76 = 76,
160    #[doc = "77: LPI2C2 Master End of Packet"]
161    Val77 = 77,
162    #[doc = "78: LPI2C2 Slave End of Packet"]
163    Val78 = 78,
164    #[doc = "79: LPI2C3 Master End of Packet"]
165    Val79 = 79,
166    #[doc = "80: LPI2C3 Slave End of Packet"]
167    Val80 = 80,
168}
169impl From<Inp> for u8 {
170    #[inline(always)]
171    fn from(variant: Inp) -> Self {
172        variant as _
173    }
174}
175impl crate::FieldSpec for Inp {
176    type Ux = u8;
177}
178impl crate::IsEnum for Inp {}
179#[doc = "Field `INP` reader - Input number for FlexIO0."]
180pub type InpR = crate::FieldReader<Inp>;
181impl InpR {
182    #[doc = "Get enumerated values variant"]
183    #[inline(always)]
184    pub const fn variant(&self) -> Option<Inp> {
185        match self.bits {
186            1 => Some(Inp::Val1),
187            2 => Some(Inp::Val2),
188            3 => Some(Inp::Val3),
189            4 => Some(Inp::Val4),
190            5 => Some(Inp::Val5),
191            6 => Some(Inp::Val6),
192            7 => Some(Inp::Val7),
193            8 => Some(Inp::Val8),
194            9 => Some(Inp::Val9),
195            10 => Some(Inp::Val10),
196            11 => Some(Inp::Val11),
197            12 => Some(Inp::Val12),
198            13 => Some(Inp::Val13),
199            14 => Some(Inp::Val14),
200            15 => Some(Inp::Val15),
201            16 => Some(Inp::Val16),
202            17 => Some(Inp::Val17),
203            18 => Some(Inp::Val18),
204            20 => Some(Inp::Val20),
205            21 => Some(Inp::Val21),
206            22 => Some(Inp::Val22),
207            23 => Some(Inp::Val23),
208            24 => Some(Inp::Val24),
209            25 => Some(Inp::Val25),
210            26 => Some(Inp::Val26),
211            27 => Some(Inp::Val27),
212            28 => Some(Inp::Val28),
213            29 => Some(Inp::Val29),
214            30 => Some(Inp::Val30),
215            31 => Some(Inp::Val31),
216            32 => Some(Inp::Val32),
217            33 => Some(Inp::Val33),
218            34 => Some(Inp::Val34),
219            35 => Some(Inp::Val35),
220            36 => Some(Inp::Val36),
221            37 => Some(Inp::Val37),
222            38 => Some(Inp::Val38),
223            39 => Some(Inp::Val39),
224            40 => Some(Inp::Val40),
225            41 => Some(Inp::Val41),
226            42 => Some(Inp::Val42),
227            43 => Some(Inp::Val43),
228            44 => Some(Inp::Val44),
229            45 => Some(Inp::Val45),
230            46 => Some(Inp::Val46),
231            47 => Some(Inp::Val47),
232            48 => Some(Inp::Val48),
233            49 => Some(Inp::Val49),
234            50 => Some(Inp::Val50),
235            51 => Some(Inp::Val51),
236            52 => Some(Inp::Val52),
237            53 => Some(Inp::Val53),
238            54 => Some(Inp::Val54),
239            55 => Some(Inp::Val55),
240            56 => Some(Inp::Val56),
241            57 => Some(Inp::Val57),
242            58 => Some(Inp::Val58),
243            59 => Some(Inp::Val59),
244            60 => Some(Inp::Val60),
245            61 => Some(Inp::Val61),
246            62 => Some(Inp::Val62),
247            63 => Some(Inp::Val63),
248            64 => Some(Inp::Val64),
249            65 => Some(Inp::Val65),
250            66 => Some(Inp::Val66),
251            67 => Some(Inp::Val67),
252            68 => Some(Inp::Val68),
253            69 => Some(Inp::Val69),
254            70 => Some(Inp::Val70),
255            71 => Some(Inp::Val71),
256            72 => Some(Inp::Val72),
257            73 => Some(Inp::Val73),
258            74 => Some(Inp::Val74),
259            75 => Some(Inp::Val75),
260            76 => Some(Inp::Val76),
261            77 => Some(Inp::Val77),
262            78 => Some(Inp::Val78),
263            79 => Some(Inp::Val79),
264            80 => Some(Inp::Val80),
265            _ => None,
266        }
267    }
268    #[doc = "AOI0_OUT0 input is selected"]
269    #[inline(always)]
270    pub fn is_val1(&self) -> bool {
271        *self == Inp::Val1
272    }
273    #[doc = "AOI0_OUT1 input is selected"]
274    #[inline(always)]
275    pub fn is_val2(&self) -> bool {
276        *self == Inp::Val2
277    }
278    #[doc = "AOI0_OUT2 input is selected"]
279    #[inline(always)]
280    pub fn is_val3(&self) -> bool {
281        *self == Inp::Val3
282    }
283    #[doc = "AOI0_OUT3 input is selected"]
284    #[inline(always)]
285    pub fn is_val4(&self) -> bool {
286        *self == Inp::Val4
287    }
288    #[doc = "ADC0_tcomp\\[0\\] input is selected"]
289    #[inline(always)]
290    pub fn is_val5(&self) -> bool {
291        *self == Inp::Val5
292    }
293    #[doc = "ADC0_tcomp\\[1\\] input is selected"]
294    #[inline(always)]
295    pub fn is_val6(&self) -> bool {
296        *self == Inp::Val6
297    }
298    #[doc = "ADC0_tcomp\\[2\\] input is selected"]
299    #[inline(always)]
300    pub fn is_val7(&self) -> bool {
301        *self == Inp::Val7
302    }
303    #[doc = "ADC0_tcomp\\[3\\] input is selected"]
304    #[inline(always)]
305    pub fn is_val8(&self) -> bool {
306        *self == Inp::Val8
307    }
308    #[doc = "CMP0_OUT input is selected"]
309    #[inline(always)]
310    pub fn is_val9(&self) -> bool {
311        *self == Inp::Val9
312    }
313    #[doc = "CMP1_OUT input is selected"]
314    #[inline(always)]
315    pub fn is_val10(&self) -> bool {
316        *self == Inp::Val10
317    }
318    #[doc = "CMP2_OUT input is selected"]
319    #[inline(always)]
320    pub fn is_val11(&self) -> bool {
321        *self == Inp::Val11
322    }
323    #[doc = "CTimer0_MAT1 input is selected"]
324    #[inline(always)]
325    pub fn is_val12(&self) -> bool {
326        *self == Inp::Val12
327    }
328    #[doc = "CTimer0_MAT2 input is selected"]
329    #[inline(always)]
330    pub fn is_val13(&self) -> bool {
331        *self == Inp::Val13
332    }
333    #[doc = "CTimer1_MAT1 input is selected"]
334    #[inline(always)]
335    pub fn is_val14(&self) -> bool {
336        *self == Inp::Val14
337    }
338    #[doc = "CTimer1_MAT2 input is selected"]
339    #[inline(always)]
340    pub fn is_val15(&self) -> bool {
341        *self == Inp::Val15
342    }
343    #[doc = "CTimer2_MAT1 input is selected"]
344    #[inline(always)]
345    pub fn is_val16(&self) -> bool {
346        *self == Inp::Val16
347    }
348    #[doc = "CTimer2_MAT2 input is selected"]
349    #[inline(always)]
350    pub fn is_val17(&self) -> bool {
351        *self == Inp::Val17
352    }
353    #[doc = "LPTMR0 input is selected"]
354    #[inline(always)]
355    pub fn is_val18(&self) -> bool {
356        *self == Inp::Val18
357    }
358    #[doc = "PWM0_SM0_MUX_TRIG0 input is selected"]
359    #[inline(always)]
360    pub fn is_val20(&self) -> bool {
361        *self == Inp::Val20
362    }
363    #[doc = "PWM0_SM1_MUX_TRIG0 input is selected"]
364    #[inline(always)]
365    pub fn is_val21(&self) -> bool {
366        *self == Inp::Val21
367    }
368    #[doc = "PWM0_SM2_MUX_TRIG0 input is selected"]
369    #[inline(always)]
370    pub fn is_val22(&self) -> bool {
371        *self == Inp::Val22
372    }
373    #[doc = "PWM0_SM3_MUX_TRIG0 input is selected"]
374    #[inline(always)]
375    pub fn is_val23(&self) -> bool {
376        *self == Inp::Val23
377    }
378    #[doc = "TRIG_IN0 input is selected"]
379    #[inline(always)]
380    pub fn is_val24(&self) -> bool {
381        *self == Inp::Val24
382    }
383    #[doc = "TRIG_IN1 input is selected"]
384    #[inline(always)]
385    pub fn is_val25(&self) -> bool {
386        *self == Inp::Val25
387    }
388    #[doc = "TRIG_IN2 input is selected"]
389    #[inline(always)]
390    pub fn is_val26(&self) -> bool {
391        *self == Inp::Val26
392    }
393    #[doc = "TRIG_IN3 input is selected"]
394    #[inline(always)]
395    pub fn is_val27(&self) -> bool {
396        *self == Inp::Val27
397    }
398    #[doc = "TRIG_IN4 input is selected"]
399    #[inline(always)]
400    pub fn is_val28(&self) -> bool {
401        *self == Inp::Val28
402    }
403    #[doc = "TRIG_IN5 input is selected"]
404    #[inline(always)]
405    pub fn is_val29(&self) -> bool {
406        *self == Inp::Val29
407    }
408    #[doc = "TRIG_IN6 input is selected"]
409    #[inline(always)]
410    pub fn is_val30(&self) -> bool {
411        *self == Inp::Val30
412    }
413    #[doc = "TRIG_IN7 input is selected"]
414    #[inline(always)]
415    pub fn is_val31(&self) -> bool {
416        *self == Inp::Val31
417    }
418    #[doc = "GPIO0 Pin Event Trig 0 input is selected"]
419    #[inline(always)]
420    pub fn is_val32(&self) -> bool {
421        *self == Inp::Val32
422    }
423    #[doc = "GPIO1 Pin Event Trig 0 input is selected"]
424    #[inline(always)]
425    pub fn is_val33(&self) -> bool {
426        *self == Inp::Val33
427    }
428    #[doc = "GPIO2 Pin Event Trig 0 input is selected"]
429    #[inline(always)]
430    pub fn is_val34(&self) -> bool {
431        *self == Inp::Val34
432    }
433    #[doc = "GPIO3 Pin Event Trig 0 input is selected"]
434    #[inline(always)]
435    pub fn is_val35(&self) -> bool {
436        *self == Inp::Val35
437    }
438    #[doc = "GPIO4 Pin Event Trig 0 input is selected"]
439    #[inline(always)]
440    pub fn is_val36(&self) -> bool {
441        *self == Inp::Val36
442    }
443    #[doc = "WUU input is selected"]
444    #[inline(always)]
445    pub fn is_val37(&self) -> bool {
446        *self == Inp::Val37
447    }
448    #[doc = "LPI2C0 Master End of Packet"]
449    #[inline(always)]
450    pub fn is_val38(&self) -> bool {
451        *self == Inp::Val38
452    }
453    #[doc = "LPI2C0 Slave End of Packet"]
454    #[inline(always)]
455    pub fn is_val39(&self) -> bool {
456        *self == Inp::Val39
457    }
458    #[doc = "LPI2C1 Master End of Packet"]
459    #[inline(always)]
460    pub fn is_val40(&self) -> bool {
461        *self == Inp::Val40
462    }
463    #[doc = "LPI2C1 Slave End of Packet"]
464    #[inline(always)]
465    pub fn is_val41(&self) -> bool {
466        *self == Inp::Val41
467    }
468    #[doc = "LPSPI0 End of Frame"]
469    #[inline(always)]
470    pub fn is_val42(&self) -> bool {
471        *self == Inp::Val42
472    }
473    #[doc = "LPSPI0 Received Data Word"]
474    #[inline(always)]
475    pub fn is_val43(&self) -> bool {
476        *self == Inp::Val43
477    }
478    #[doc = "LPSPI1 End of Frame"]
479    #[inline(always)]
480    pub fn is_val44(&self) -> bool {
481        *self == Inp::Val44
482    }
483    #[doc = "LPSPI1 Received Data Word"]
484    #[inline(always)]
485    pub fn is_val45(&self) -> bool {
486        *self == Inp::Val45
487    }
488    #[doc = "LPUART0 Received Data Word"]
489    #[inline(always)]
490    pub fn is_val46(&self) -> bool {
491        *self == Inp::Val46
492    }
493    #[doc = "LPUART0 Transmitted Data Word"]
494    #[inline(always)]
495    pub fn is_val47(&self) -> bool {
496        *self == Inp::Val47
497    }
498    #[doc = "LPUART0 Receive Line Idle"]
499    #[inline(always)]
500    pub fn is_val48(&self) -> bool {
501        *self == Inp::Val48
502    }
503    #[doc = "LPUART1 Received Data Word"]
504    #[inline(always)]
505    pub fn is_val49(&self) -> bool {
506        *self == Inp::Val49
507    }
508    #[doc = "LPUART1 Transmitted Data Word"]
509    #[inline(always)]
510    pub fn is_val50(&self) -> bool {
511        *self == Inp::Val50
512    }
513    #[doc = "LPUART1 Receive Line Idle"]
514    #[inline(always)]
515    pub fn is_val51(&self) -> bool {
516        *self == Inp::Val51
517    }
518    #[doc = "LPUART2 Received Data Word"]
519    #[inline(always)]
520    pub fn is_val52(&self) -> bool {
521        *self == Inp::Val52
522    }
523    #[doc = "LPUART2 Transmitted Data Word"]
524    #[inline(always)]
525    pub fn is_val53(&self) -> bool {
526        *self == Inp::Val53
527    }
528    #[doc = "LPUART2 Receive Line Idle"]
529    #[inline(always)]
530    pub fn is_val54(&self) -> bool {
531        *self == Inp::Val54
532    }
533    #[doc = "LPUART3 Received Data Word"]
534    #[inline(always)]
535    pub fn is_val55(&self) -> bool {
536        *self == Inp::Val55
537    }
538    #[doc = "LPUART3 Transmitted Data Word"]
539    #[inline(always)]
540    pub fn is_val56(&self) -> bool {
541        *self == Inp::Val56
542    }
543    #[doc = "LPUART3 Receive Line Idle"]
544    #[inline(always)]
545    pub fn is_val57(&self) -> bool {
546        *self == Inp::Val57
547    }
548    #[doc = "LPUART4 Received Data Word"]
549    #[inline(always)]
550    pub fn is_val58(&self) -> bool {
551        *self == Inp::Val58
552    }
553    #[doc = "LPUART4 Transmitted Data Word"]
554    #[inline(always)]
555    pub fn is_val59(&self) -> bool {
556        *self == Inp::Val59
557    }
558    #[doc = "LPUART4 Receive Line Idle"]
559    #[inline(always)]
560    pub fn is_val60(&self) -> bool {
561        *self == Inp::Val60
562    }
563    #[doc = "AOI1_OUT0 input is selected"]
564    #[inline(always)]
565    pub fn is_val61(&self) -> bool {
566        *self == Inp::Val61
567    }
568    #[doc = "AOI1_OUT1 input is selected"]
569    #[inline(always)]
570    pub fn is_val62(&self) -> bool {
571        *self == Inp::Val62
572    }
573    #[doc = "AOI1_OUT2 input is selected"]
574    #[inline(always)]
575    pub fn is_val63(&self) -> bool {
576        *self == Inp::Val63
577    }
578    #[doc = "AOI1_OUT3 input is selected"]
579    #[inline(always)]
580    pub fn is_val64(&self) -> bool {
581        *self == Inp::Val64
582    }
583    #[doc = "ADC1_tcomp\\[0\\] input is selected"]
584    #[inline(always)]
585    pub fn is_val65(&self) -> bool {
586        *self == Inp::Val65
587    }
588    #[doc = "ADC1_tcomp\\[1\\] input is selected"]
589    #[inline(always)]
590    pub fn is_val66(&self) -> bool {
591        *self == Inp::Val66
592    }
593    #[doc = "ADC1_tcomp\\[2\\] input is selected"]
594    #[inline(always)]
595    pub fn is_val67(&self) -> bool {
596        *self == Inp::Val67
597    }
598    #[doc = "ADC1_tcomp\\[3\\] input is selected"]
599    #[inline(always)]
600    pub fn is_val68(&self) -> bool {
601        *self == Inp::Val68
602    }
603    #[doc = "CTimer3_MAT2 input is selected"]
604    #[inline(always)]
605    pub fn is_val69(&self) -> bool {
606        *self == Inp::Val69
607    }
608    #[doc = "CTimer3_MAT3 input is selected"]
609    #[inline(always)]
610    pub fn is_val70(&self) -> bool {
611        *self == Inp::Val70
612    }
613    #[doc = "CTimer4_MAT2 input is selected"]
614    #[inline(always)]
615    pub fn is_val71(&self) -> bool {
616        *self == Inp::Val71
617    }
618    #[doc = "CTimer4_MAT3 input is selected"]
619    #[inline(always)]
620    pub fn is_val72(&self) -> bool {
621        *self == Inp::Val72
622    }
623    #[doc = "PWM1_SM0_MUX_TRIG0 input is selected"]
624    #[inline(always)]
625    pub fn is_val73(&self) -> bool {
626        *self == Inp::Val73
627    }
628    #[doc = "PWM1_SM1_MUX_TRIG0 input is selected"]
629    #[inline(always)]
630    pub fn is_val74(&self) -> bool {
631        *self == Inp::Val74
632    }
633    #[doc = "PWM1_SM2_MUX_TRIG0 input is selected"]
634    #[inline(always)]
635    pub fn is_val75(&self) -> bool {
636        *self == Inp::Val75
637    }
638    #[doc = "PWM1_SM3_MUX_TRIG0 input is selected"]
639    #[inline(always)]
640    pub fn is_val76(&self) -> bool {
641        *self == Inp::Val76
642    }
643    #[doc = "LPI2C2 Master End of Packet"]
644    #[inline(always)]
645    pub fn is_val77(&self) -> bool {
646        *self == Inp::Val77
647    }
648    #[doc = "LPI2C2 Slave End of Packet"]
649    #[inline(always)]
650    pub fn is_val78(&self) -> bool {
651        *self == Inp::Val78
652    }
653    #[doc = "LPI2C3 Master End of Packet"]
654    #[inline(always)]
655    pub fn is_val79(&self) -> bool {
656        *self == Inp::Val79
657    }
658    #[doc = "LPI2C3 Slave End of Packet"]
659    #[inline(always)]
660    pub fn is_val80(&self) -> bool {
661        *self == Inp::Val80
662    }
663}
664#[doc = "Field `INP` writer - Input number for FlexIO0."]
665pub type InpW<'a, REG> = crate::FieldWriter<'a, REG, 7, Inp>;
666impl<'a, REG> InpW<'a, REG>
667where
668    REG: crate::Writable + crate::RegisterSpec,
669    REG::Ux: From<u8>,
670{
671    #[doc = "AOI0_OUT0 input is selected"]
672    #[inline(always)]
673    pub fn val1(self) -> &'a mut crate::W<REG> {
674        self.variant(Inp::Val1)
675    }
676    #[doc = "AOI0_OUT1 input is selected"]
677    #[inline(always)]
678    pub fn val2(self) -> &'a mut crate::W<REG> {
679        self.variant(Inp::Val2)
680    }
681    #[doc = "AOI0_OUT2 input is selected"]
682    #[inline(always)]
683    pub fn val3(self) -> &'a mut crate::W<REG> {
684        self.variant(Inp::Val3)
685    }
686    #[doc = "AOI0_OUT3 input is selected"]
687    #[inline(always)]
688    pub fn val4(self) -> &'a mut crate::W<REG> {
689        self.variant(Inp::Val4)
690    }
691    #[doc = "ADC0_tcomp\\[0\\] input is selected"]
692    #[inline(always)]
693    pub fn val5(self) -> &'a mut crate::W<REG> {
694        self.variant(Inp::Val5)
695    }
696    #[doc = "ADC0_tcomp\\[1\\] input is selected"]
697    #[inline(always)]
698    pub fn val6(self) -> &'a mut crate::W<REG> {
699        self.variant(Inp::Val6)
700    }
701    #[doc = "ADC0_tcomp\\[2\\] input is selected"]
702    #[inline(always)]
703    pub fn val7(self) -> &'a mut crate::W<REG> {
704        self.variant(Inp::Val7)
705    }
706    #[doc = "ADC0_tcomp\\[3\\] input is selected"]
707    #[inline(always)]
708    pub fn val8(self) -> &'a mut crate::W<REG> {
709        self.variant(Inp::Val8)
710    }
711    #[doc = "CMP0_OUT input is selected"]
712    #[inline(always)]
713    pub fn val9(self) -> &'a mut crate::W<REG> {
714        self.variant(Inp::Val9)
715    }
716    #[doc = "CMP1_OUT input is selected"]
717    #[inline(always)]
718    pub fn val10(self) -> &'a mut crate::W<REG> {
719        self.variant(Inp::Val10)
720    }
721    #[doc = "CMP2_OUT input is selected"]
722    #[inline(always)]
723    pub fn val11(self) -> &'a mut crate::W<REG> {
724        self.variant(Inp::Val11)
725    }
726    #[doc = "CTimer0_MAT1 input is selected"]
727    #[inline(always)]
728    pub fn val12(self) -> &'a mut crate::W<REG> {
729        self.variant(Inp::Val12)
730    }
731    #[doc = "CTimer0_MAT2 input is selected"]
732    #[inline(always)]
733    pub fn val13(self) -> &'a mut crate::W<REG> {
734        self.variant(Inp::Val13)
735    }
736    #[doc = "CTimer1_MAT1 input is selected"]
737    #[inline(always)]
738    pub fn val14(self) -> &'a mut crate::W<REG> {
739        self.variant(Inp::Val14)
740    }
741    #[doc = "CTimer1_MAT2 input is selected"]
742    #[inline(always)]
743    pub fn val15(self) -> &'a mut crate::W<REG> {
744        self.variant(Inp::Val15)
745    }
746    #[doc = "CTimer2_MAT1 input is selected"]
747    #[inline(always)]
748    pub fn val16(self) -> &'a mut crate::W<REG> {
749        self.variant(Inp::Val16)
750    }
751    #[doc = "CTimer2_MAT2 input is selected"]
752    #[inline(always)]
753    pub fn val17(self) -> &'a mut crate::W<REG> {
754        self.variant(Inp::Val17)
755    }
756    #[doc = "LPTMR0 input is selected"]
757    #[inline(always)]
758    pub fn val18(self) -> &'a mut crate::W<REG> {
759        self.variant(Inp::Val18)
760    }
761    #[doc = "PWM0_SM0_MUX_TRIG0 input is selected"]
762    #[inline(always)]
763    pub fn val20(self) -> &'a mut crate::W<REG> {
764        self.variant(Inp::Val20)
765    }
766    #[doc = "PWM0_SM1_MUX_TRIG0 input is selected"]
767    #[inline(always)]
768    pub fn val21(self) -> &'a mut crate::W<REG> {
769        self.variant(Inp::Val21)
770    }
771    #[doc = "PWM0_SM2_MUX_TRIG0 input is selected"]
772    #[inline(always)]
773    pub fn val22(self) -> &'a mut crate::W<REG> {
774        self.variant(Inp::Val22)
775    }
776    #[doc = "PWM0_SM3_MUX_TRIG0 input is selected"]
777    #[inline(always)]
778    pub fn val23(self) -> &'a mut crate::W<REG> {
779        self.variant(Inp::Val23)
780    }
781    #[doc = "TRIG_IN0 input is selected"]
782    #[inline(always)]
783    pub fn val24(self) -> &'a mut crate::W<REG> {
784        self.variant(Inp::Val24)
785    }
786    #[doc = "TRIG_IN1 input is selected"]
787    #[inline(always)]
788    pub fn val25(self) -> &'a mut crate::W<REG> {
789        self.variant(Inp::Val25)
790    }
791    #[doc = "TRIG_IN2 input is selected"]
792    #[inline(always)]
793    pub fn val26(self) -> &'a mut crate::W<REG> {
794        self.variant(Inp::Val26)
795    }
796    #[doc = "TRIG_IN3 input is selected"]
797    #[inline(always)]
798    pub fn val27(self) -> &'a mut crate::W<REG> {
799        self.variant(Inp::Val27)
800    }
801    #[doc = "TRIG_IN4 input is selected"]
802    #[inline(always)]
803    pub fn val28(self) -> &'a mut crate::W<REG> {
804        self.variant(Inp::Val28)
805    }
806    #[doc = "TRIG_IN5 input is selected"]
807    #[inline(always)]
808    pub fn val29(self) -> &'a mut crate::W<REG> {
809        self.variant(Inp::Val29)
810    }
811    #[doc = "TRIG_IN6 input is selected"]
812    #[inline(always)]
813    pub fn val30(self) -> &'a mut crate::W<REG> {
814        self.variant(Inp::Val30)
815    }
816    #[doc = "TRIG_IN7 input is selected"]
817    #[inline(always)]
818    pub fn val31(self) -> &'a mut crate::W<REG> {
819        self.variant(Inp::Val31)
820    }
821    #[doc = "GPIO0 Pin Event Trig 0 input is selected"]
822    #[inline(always)]
823    pub fn val32(self) -> &'a mut crate::W<REG> {
824        self.variant(Inp::Val32)
825    }
826    #[doc = "GPIO1 Pin Event Trig 0 input is selected"]
827    #[inline(always)]
828    pub fn val33(self) -> &'a mut crate::W<REG> {
829        self.variant(Inp::Val33)
830    }
831    #[doc = "GPIO2 Pin Event Trig 0 input is selected"]
832    #[inline(always)]
833    pub fn val34(self) -> &'a mut crate::W<REG> {
834        self.variant(Inp::Val34)
835    }
836    #[doc = "GPIO3 Pin Event Trig 0 input is selected"]
837    #[inline(always)]
838    pub fn val35(self) -> &'a mut crate::W<REG> {
839        self.variant(Inp::Val35)
840    }
841    #[doc = "GPIO4 Pin Event Trig 0 input is selected"]
842    #[inline(always)]
843    pub fn val36(self) -> &'a mut crate::W<REG> {
844        self.variant(Inp::Val36)
845    }
846    #[doc = "WUU input is selected"]
847    #[inline(always)]
848    pub fn val37(self) -> &'a mut crate::W<REG> {
849        self.variant(Inp::Val37)
850    }
851    #[doc = "LPI2C0 Master End of Packet"]
852    #[inline(always)]
853    pub fn val38(self) -> &'a mut crate::W<REG> {
854        self.variant(Inp::Val38)
855    }
856    #[doc = "LPI2C0 Slave End of Packet"]
857    #[inline(always)]
858    pub fn val39(self) -> &'a mut crate::W<REG> {
859        self.variant(Inp::Val39)
860    }
861    #[doc = "LPI2C1 Master End of Packet"]
862    #[inline(always)]
863    pub fn val40(self) -> &'a mut crate::W<REG> {
864        self.variant(Inp::Val40)
865    }
866    #[doc = "LPI2C1 Slave End of Packet"]
867    #[inline(always)]
868    pub fn val41(self) -> &'a mut crate::W<REG> {
869        self.variant(Inp::Val41)
870    }
871    #[doc = "LPSPI0 End of Frame"]
872    #[inline(always)]
873    pub fn val42(self) -> &'a mut crate::W<REG> {
874        self.variant(Inp::Val42)
875    }
876    #[doc = "LPSPI0 Received Data Word"]
877    #[inline(always)]
878    pub fn val43(self) -> &'a mut crate::W<REG> {
879        self.variant(Inp::Val43)
880    }
881    #[doc = "LPSPI1 End of Frame"]
882    #[inline(always)]
883    pub fn val44(self) -> &'a mut crate::W<REG> {
884        self.variant(Inp::Val44)
885    }
886    #[doc = "LPSPI1 Received Data Word"]
887    #[inline(always)]
888    pub fn val45(self) -> &'a mut crate::W<REG> {
889        self.variant(Inp::Val45)
890    }
891    #[doc = "LPUART0 Received Data Word"]
892    #[inline(always)]
893    pub fn val46(self) -> &'a mut crate::W<REG> {
894        self.variant(Inp::Val46)
895    }
896    #[doc = "LPUART0 Transmitted Data Word"]
897    #[inline(always)]
898    pub fn val47(self) -> &'a mut crate::W<REG> {
899        self.variant(Inp::Val47)
900    }
901    #[doc = "LPUART0 Receive Line Idle"]
902    #[inline(always)]
903    pub fn val48(self) -> &'a mut crate::W<REG> {
904        self.variant(Inp::Val48)
905    }
906    #[doc = "LPUART1 Received Data Word"]
907    #[inline(always)]
908    pub fn val49(self) -> &'a mut crate::W<REG> {
909        self.variant(Inp::Val49)
910    }
911    #[doc = "LPUART1 Transmitted Data Word"]
912    #[inline(always)]
913    pub fn val50(self) -> &'a mut crate::W<REG> {
914        self.variant(Inp::Val50)
915    }
916    #[doc = "LPUART1 Receive Line Idle"]
917    #[inline(always)]
918    pub fn val51(self) -> &'a mut crate::W<REG> {
919        self.variant(Inp::Val51)
920    }
921    #[doc = "LPUART2 Received Data Word"]
922    #[inline(always)]
923    pub fn val52(self) -> &'a mut crate::W<REG> {
924        self.variant(Inp::Val52)
925    }
926    #[doc = "LPUART2 Transmitted Data Word"]
927    #[inline(always)]
928    pub fn val53(self) -> &'a mut crate::W<REG> {
929        self.variant(Inp::Val53)
930    }
931    #[doc = "LPUART2 Receive Line Idle"]
932    #[inline(always)]
933    pub fn val54(self) -> &'a mut crate::W<REG> {
934        self.variant(Inp::Val54)
935    }
936    #[doc = "LPUART3 Received Data Word"]
937    #[inline(always)]
938    pub fn val55(self) -> &'a mut crate::W<REG> {
939        self.variant(Inp::Val55)
940    }
941    #[doc = "LPUART3 Transmitted Data Word"]
942    #[inline(always)]
943    pub fn val56(self) -> &'a mut crate::W<REG> {
944        self.variant(Inp::Val56)
945    }
946    #[doc = "LPUART3 Receive Line Idle"]
947    #[inline(always)]
948    pub fn val57(self) -> &'a mut crate::W<REG> {
949        self.variant(Inp::Val57)
950    }
951    #[doc = "LPUART4 Received Data Word"]
952    #[inline(always)]
953    pub fn val58(self) -> &'a mut crate::W<REG> {
954        self.variant(Inp::Val58)
955    }
956    #[doc = "LPUART4 Transmitted Data Word"]
957    #[inline(always)]
958    pub fn val59(self) -> &'a mut crate::W<REG> {
959        self.variant(Inp::Val59)
960    }
961    #[doc = "LPUART4 Receive Line Idle"]
962    #[inline(always)]
963    pub fn val60(self) -> &'a mut crate::W<REG> {
964        self.variant(Inp::Val60)
965    }
966    #[doc = "AOI1_OUT0 input is selected"]
967    #[inline(always)]
968    pub fn val61(self) -> &'a mut crate::W<REG> {
969        self.variant(Inp::Val61)
970    }
971    #[doc = "AOI1_OUT1 input is selected"]
972    #[inline(always)]
973    pub fn val62(self) -> &'a mut crate::W<REG> {
974        self.variant(Inp::Val62)
975    }
976    #[doc = "AOI1_OUT2 input is selected"]
977    #[inline(always)]
978    pub fn val63(self) -> &'a mut crate::W<REG> {
979        self.variant(Inp::Val63)
980    }
981    #[doc = "AOI1_OUT3 input is selected"]
982    #[inline(always)]
983    pub fn val64(self) -> &'a mut crate::W<REG> {
984        self.variant(Inp::Val64)
985    }
986    #[doc = "ADC1_tcomp\\[0\\] input is selected"]
987    #[inline(always)]
988    pub fn val65(self) -> &'a mut crate::W<REG> {
989        self.variant(Inp::Val65)
990    }
991    #[doc = "ADC1_tcomp\\[1\\] input is selected"]
992    #[inline(always)]
993    pub fn val66(self) -> &'a mut crate::W<REG> {
994        self.variant(Inp::Val66)
995    }
996    #[doc = "ADC1_tcomp\\[2\\] input is selected"]
997    #[inline(always)]
998    pub fn val67(self) -> &'a mut crate::W<REG> {
999        self.variant(Inp::Val67)
1000    }
1001    #[doc = "ADC1_tcomp\\[3\\] input is selected"]
1002    #[inline(always)]
1003    pub fn val68(self) -> &'a mut crate::W<REG> {
1004        self.variant(Inp::Val68)
1005    }
1006    #[doc = "CTimer3_MAT2 input is selected"]
1007    #[inline(always)]
1008    pub fn val69(self) -> &'a mut crate::W<REG> {
1009        self.variant(Inp::Val69)
1010    }
1011    #[doc = "CTimer3_MAT3 input is selected"]
1012    #[inline(always)]
1013    pub fn val70(self) -> &'a mut crate::W<REG> {
1014        self.variant(Inp::Val70)
1015    }
1016    #[doc = "CTimer4_MAT2 input is selected"]
1017    #[inline(always)]
1018    pub fn val71(self) -> &'a mut crate::W<REG> {
1019        self.variant(Inp::Val71)
1020    }
1021    #[doc = "CTimer4_MAT3 input is selected"]
1022    #[inline(always)]
1023    pub fn val72(self) -> &'a mut crate::W<REG> {
1024        self.variant(Inp::Val72)
1025    }
1026    #[doc = "PWM1_SM0_MUX_TRIG0 input is selected"]
1027    #[inline(always)]
1028    pub fn val73(self) -> &'a mut crate::W<REG> {
1029        self.variant(Inp::Val73)
1030    }
1031    #[doc = "PWM1_SM1_MUX_TRIG0 input is selected"]
1032    #[inline(always)]
1033    pub fn val74(self) -> &'a mut crate::W<REG> {
1034        self.variant(Inp::Val74)
1035    }
1036    #[doc = "PWM1_SM2_MUX_TRIG0 input is selected"]
1037    #[inline(always)]
1038    pub fn val75(self) -> &'a mut crate::W<REG> {
1039        self.variant(Inp::Val75)
1040    }
1041    #[doc = "PWM1_SM3_MUX_TRIG0 input is selected"]
1042    #[inline(always)]
1043    pub fn val76(self) -> &'a mut crate::W<REG> {
1044        self.variant(Inp::Val76)
1045    }
1046    #[doc = "LPI2C2 Master End of Packet"]
1047    #[inline(always)]
1048    pub fn val77(self) -> &'a mut crate::W<REG> {
1049        self.variant(Inp::Val77)
1050    }
1051    #[doc = "LPI2C2 Slave End of Packet"]
1052    #[inline(always)]
1053    pub fn val78(self) -> &'a mut crate::W<REG> {
1054        self.variant(Inp::Val78)
1055    }
1056    #[doc = "LPI2C3 Master End of Packet"]
1057    #[inline(always)]
1058    pub fn val79(self) -> &'a mut crate::W<REG> {
1059        self.variant(Inp::Val79)
1060    }
1061    #[doc = "LPI2C3 Slave End of Packet"]
1062    #[inline(always)]
1063    pub fn val80(self) -> &'a mut crate::W<REG> {
1064        self.variant(Inp::Val80)
1065    }
1066}
1067impl R {
1068    #[doc = "Bits 0:6 - Input number for FlexIO0."]
1069    #[inline(always)]
1070    pub fn inp(&self) -> InpR {
1071        InpR::new((self.bits & 0x7f) as u8)
1072    }
1073}
1074#[cfg(feature = "debug")]
1075impl core::fmt::Debug for R {
1076    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
1077        f.debug_struct("FLEXIO_TRIG").field("inp", &self.inp()).finish()
1078    }
1079}
1080impl W {
1081    #[doc = "Bits 0:6 - Input number for FlexIO0."]
1082    #[inline(always)]
1083    pub fn inp(&mut self) -> InpW<'_, FlexioTrigSpec> {
1084        InpW::new(self, 0)
1085    }
1086}
1087#[doc = "FlexIO Trigger Input Connections\n\nYou can [`read`](crate::Reg::read) this register and get [`flexio_trig::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`flexio_trig::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
1088pub struct FlexioTrigSpec;
1089impl crate::RegisterSpec for FlexioTrigSpec {
1090    type Ux = u32;
1091}
1092#[doc = "`read()` method returns [`flexio_trig::R`](R) reader structure"]
1093impl crate::Readable for FlexioTrigSpec {}
1094#[doc = "`write(|w| ..)` method takes [`flexio_trig::W`](W) writer structure"]
1095impl crate::Writable for FlexioTrigSpec {
1096    type Safety = crate::Unsafe;
1097}
1098#[doc = "`reset()` method sets FLEXIO_TRIG[%s] to value 0x7f"]
1099impl crate::Resettable for FlexioTrigSpec {
1100    const RESET_VALUE: u32 = 0x7f;
1101}