mcxa_pac/inputmux0/
lpuart0.rs

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