mcxa_pac/inputmux0/
smart_dma_trig.rs

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