lpc550x/pint/
pmsrc.rs

1#[doc = "Register `PMSRC` reader"]
2pub struct R(crate::R<PMSRC_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<PMSRC_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<PMSRC_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<PMSRC_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `PMSRC` writer"]
17pub struct W(crate::W<PMSRC_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<PMSRC_SPEC>;
20    #[inline(always)]
21    fn deref(&self) -> &Self::Target {
22        &self.0
23    }
24}
25impl core::ops::DerefMut for W {
26    #[inline(always)]
27    fn deref_mut(&mut self) -> &mut Self::Target {
28        &mut self.0
29    }
30}
31impl From<crate::W<PMSRC_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<PMSRC_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `SRC0` reader - Selects the input source for bit slice 0."]
38pub type SRC0_R = crate::FieldReader<u8, SRC0_A>;
39#[doc = "Selects the input source for bit slice 0.\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq, Eq)]
41#[repr(u8)]
42pub enum SRC0_A {
43    #[doc = "0: Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 0."]
44    INPUT0 = 0,
45    #[doc = "1: Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 0."]
46    INPUT1 = 1,
47    #[doc = "2: Input 2. Selects the pin selected in the PINTSEL2 register as the source to bit slice 0."]
48    INPUT2 = 2,
49    #[doc = "3: Input 3. Selects the pin selected in the PINTSEL3 register as the source to bit slice 0."]
50    INPUT3 = 3,
51    #[doc = "4: Input 4. Selects the pin selected in the PINTSEL4 register as the source to bit slice 0."]
52    INPUT4 = 4,
53    #[doc = "5: Input 5. Selects the pin selected in the PINTSEL5 register as the source to bit slice 0."]
54    INPUT5 = 5,
55    #[doc = "6: Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 0."]
56    INPUT6 = 6,
57    #[doc = "7: Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 0."]
58    INPUT7 = 7,
59}
60impl From<SRC0_A> for u8 {
61    #[inline(always)]
62    fn from(variant: SRC0_A) -> Self {
63        variant as _
64    }
65}
66impl SRC0_R {
67    #[doc = "Get enumerated values variant"]
68    #[inline(always)]
69    pub fn variant(&self) -> SRC0_A {
70        match self.bits {
71            0 => SRC0_A::INPUT0,
72            1 => SRC0_A::INPUT1,
73            2 => SRC0_A::INPUT2,
74            3 => SRC0_A::INPUT3,
75            4 => SRC0_A::INPUT4,
76            5 => SRC0_A::INPUT5,
77            6 => SRC0_A::INPUT6,
78            7 => SRC0_A::INPUT7,
79            _ => unreachable!(),
80        }
81    }
82    #[doc = "Checks if the value of the field is `INPUT0`"]
83    #[inline(always)]
84    pub fn is_input0(&self) -> bool {
85        *self == SRC0_A::INPUT0
86    }
87    #[doc = "Checks if the value of the field is `INPUT1`"]
88    #[inline(always)]
89    pub fn is_input1(&self) -> bool {
90        *self == SRC0_A::INPUT1
91    }
92    #[doc = "Checks if the value of the field is `INPUT2`"]
93    #[inline(always)]
94    pub fn is_input2(&self) -> bool {
95        *self == SRC0_A::INPUT2
96    }
97    #[doc = "Checks if the value of the field is `INPUT3`"]
98    #[inline(always)]
99    pub fn is_input3(&self) -> bool {
100        *self == SRC0_A::INPUT3
101    }
102    #[doc = "Checks if the value of the field is `INPUT4`"]
103    #[inline(always)]
104    pub fn is_input4(&self) -> bool {
105        *self == SRC0_A::INPUT4
106    }
107    #[doc = "Checks if the value of the field is `INPUT5`"]
108    #[inline(always)]
109    pub fn is_input5(&self) -> bool {
110        *self == SRC0_A::INPUT5
111    }
112    #[doc = "Checks if the value of the field is `INPUT6`"]
113    #[inline(always)]
114    pub fn is_input6(&self) -> bool {
115        *self == SRC0_A::INPUT6
116    }
117    #[doc = "Checks if the value of the field is `INPUT7`"]
118    #[inline(always)]
119    pub fn is_input7(&self) -> bool {
120        *self == SRC0_A::INPUT7
121    }
122}
123#[doc = "Field `SRC0` writer - Selects the input source for bit slice 0."]
124pub type SRC0_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, PMSRC_SPEC, u8, SRC0_A, 3, O>;
125impl<'a, const O: u8> SRC0_W<'a, O> {
126    #[doc = "Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 0."]
127    #[inline(always)]
128    pub fn input0(self) -> &'a mut W {
129        self.variant(SRC0_A::INPUT0)
130    }
131    #[doc = "Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 0."]
132    #[inline(always)]
133    pub fn input1(self) -> &'a mut W {
134        self.variant(SRC0_A::INPUT1)
135    }
136    #[doc = "Input 2. Selects the pin selected in the PINTSEL2 register as the source to bit slice 0."]
137    #[inline(always)]
138    pub fn input2(self) -> &'a mut W {
139        self.variant(SRC0_A::INPUT2)
140    }
141    #[doc = "Input 3. Selects the pin selected in the PINTSEL3 register as the source to bit slice 0."]
142    #[inline(always)]
143    pub fn input3(self) -> &'a mut W {
144        self.variant(SRC0_A::INPUT3)
145    }
146    #[doc = "Input 4. Selects the pin selected in the PINTSEL4 register as the source to bit slice 0."]
147    #[inline(always)]
148    pub fn input4(self) -> &'a mut W {
149        self.variant(SRC0_A::INPUT4)
150    }
151    #[doc = "Input 5. Selects the pin selected in the PINTSEL5 register as the source to bit slice 0."]
152    #[inline(always)]
153    pub fn input5(self) -> &'a mut W {
154        self.variant(SRC0_A::INPUT5)
155    }
156    #[doc = "Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 0."]
157    #[inline(always)]
158    pub fn input6(self) -> &'a mut W {
159        self.variant(SRC0_A::INPUT6)
160    }
161    #[doc = "Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 0."]
162    #[inline(always)]
163    pub fn input7(self) -> &'a mut W {
164        self.variant(SRC0_A::INPUT7)
165    }
166}
167#[doc = "Field `SRC1` reader - Selects the input source for bit slice 1."]
168pub type SRC1_R = crate::FieldReader<u8, SRC1_A>;
169#[doc = "Selects the input source for bit slice 1.\n\nValue on reset: 0"]
170#[derive(Clone, Copy, Debug, PartialEq, Eq)]
171#[repr(u8)]
172pub enum SRC1_A {
173    #[doc = "0: Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 1."]
174    INPUT0 = 0,
175    #[doc = "1: Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 1."]
176    INPUT1 = 1,
177    #[doc = "2: Input 2. Selects the pin selected in the PINTSEL2 register as the source to bit slice 1."]
178    INPUT2 = 2,
179    #[doc = "3: Input 3. Selects the pin selected in the PINTSEL3 register as the source to bit slice 1."]
180    INPUT3 = 3,
181    #[doc = "4: Input 4. Selects the pin selected in the PINTSEL4 register as the source to bit slice 1."]
182    INPUT4 = 4,
183    #[doc = "5: Input 5. Selects the pin selected in the PINTSEL5 register as the source to bit slice 1."]
184    INPUT5 = 5,
185    #[doc = "6: Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 1."]
186    INPUT6 = 6,
187    #[doc = "7: Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 1."]
188    INPUT7 = 7,
189}
190impl From<SRC1_A> for u8 {
191    #[inline(always)]
192    fn from(variant: SRC1_A) -> Self {
193        variant as _
194    }
195}
196impl SRC1_R {
197    #[doc = "Get enumerated values variant"]
198    #[inline(always)]
199    pub fn variant(&self) -> SRC1_A {
200        match self.bits {
201            0 => SRC1_A::INPUT0,
202            1 => SRC1_A::INPUT1,
203            2 => SRC1_A::INPUT2,
204            3 => SRC1_A::INPUT3,
205            4 => SRC1_A::INPUT4,
206            5 => SRC1_A::INPUT5,
207            6 => SRC1_A::INPUT6,
208            7 => SRC1_A::INPUT7,
209            _ => unreachable!(),
210        }
211    }
212    #[doc = "Checks if the value of the field is `INPUT0`"]
213    #[inline(always)]
214    pub fn is_input0(&self) -> bool {
215        *self == SRC1_A::INPUT0
216    }
217    #[doc = "Checks if the value of the field is `INPUT1`"]
218    #[inline(always)]
219    pub fn is_input1(&self) -> bool {
220        *self == SRC1_A::INPUT1
221    }
222    #[doc = "Checks if the value of the field is `INPUT2`"]
223    #[inline(always)]
224    pub fn is_input2(&self) -> bool {
225        *self == SRC1_A::INPUT2
226    }
227    #[doc = "Checks if the value of the field is `INPUT3`"]
228    #[inline(always)]
229    pub fn is_input3(&self) -> bool {
230        *self == SRC1_A::INPUT3
231    }
232    #[doc = "Checks if the value of the field is `INPUT4`"]
233    #[inline(always)]
234    pub fn is_input4(&self) -> bool {
235        *self == SRC1_A::INPUT4
236    }
237    #[doc = "Checks if the value of the field is `INPUT5`"]
238    #[inline(always)]
239    pub fn is_input5(&self) -> bool {
240        *self == SRC1_A::INPUT5
241    }
242    #[doc = "Checks if the value of the field is `INPUT6`"]
243    #[inline(always)]
244    pub fn is_input6(&self) -> bool {
245        *self == SRC1_A::INPUT6
246    }
247    #[doc = "Checks if the value of the field is `INPUT7`"]
248    #[inline(always)]
249    pub fn is_input7(&self) -> bool {
250        *self == SRC1_A::INPUT7
251    }
252}
253#[doc = "Field `SRC1` writer - Selects the input source for bit slice 1."]
254pub type SRC1_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, PMSRC_SPEC, u8, SRC1_A, 3, O>;
255impl<'a, const O: u8> SRC1_W<'a, O> {
256    #[doc = "Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 1."]
257    #[inline(always)]
258    pub fn input0(self) -> &'a mut W {
259        self.variant(SRC1_A::INPUT0)
260    }
261    #[doc = "Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 1."]
262    #[inline(always)]
263    pub fn input1(self) -> &'a mut W {
264        self.variant(SRC1_A::INPUT1)
265    }
266    #[doc = "Input 2. Selects the pin selected in the PINTSEL2 register as the source to bit slice 1."]
267    #[inline(always)]
268    pub fn input2(self) -> &'a mut W {
269        self.variant(SRC1_A::INPUT2)
270    }
271    #[doc = "Input 3. Selects the pin selected in the PINTSEL3 register as the source to bit slice 1."]
272    #[inline(always)]
273    pub fn input3(self) -> &'a mut W {
274        self.variant(SRC1_A::INPUT3)
275    }
276    #[doc = "Input 4. Selects the pin selected in the PINTSEL4 register as the source to bit slice 1."]
277    #[inline(always)]
278    pub fn input4(self) -> &'a mut W {
279        self.variant(SRC1_A::INPUT4)
280    }
281    #[doc = "Input 5. Selects the pin selected in the PINTSEL5 register as the source to bit slice 1."]
282    #[inline(always)]
283    pub fn input5(self) -> &'a mut W {
284        self.variant(SRC1_A::INPUT5)
285    }
286    #[doc = "Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 1."]
287    #[inline(always)]
288    pub fn input6(self) -> &'a mut W {
289        self.variant(SRC1_A::INPUT6)
290    }
291    #[doc = "Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 1."]
292    #[inline(always)]
293    pub fn input7(self) -> &'a mut W {
294        self.variant(SRC1_A::INPUT7)
295    }
296}
297#[doc = "Field `SRC2` reader - Selects the input source for bit slice 2."]
298pub type SRC2_R = crate::FieldReader<u8, SRC2_A>;
299#[doc = "Selects the input source for bit slice 2.\n\nValue on reset: 0"]
300#[derive(Clone, Copy, Debug, PartialEq, Eq)]
301#[repr(u8)]
302pub enum SRC2_A {
303    #[doc = "0: Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 2."]
304    INPUT0 = 0,
305    #[doc = "1: Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 2."]
306    INPUT1 = 1,
307    #[doc = "2: Input 2. Selects the pin selected in the PINTSEL2 register as the source to bit slice 2."]
308    INPUT2 = 2,
309    #[doc = "3: Input 3. Selects the pin selected in the PINTSEL3 register as the source to bit slice 2."]
310    INPUT3 = 3,
311    #[doc = "4: Input 4. Selects the pin selected in the PINTSEL4 register as the source to bit slice 2."]
312    INPUT4 = 4,
313    #[doc = "5: Input 5. Selects the pin selected in the PINTSEL5 register as the source to bit slice 2."]
314    INPUT5 = 5,
315    #[doc = "6: Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 2."]
316    INPUT6 = 6,
317    #[doc = "7: Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 2."]
318    INPUT7 = 7,
319}
320impl From<SRC2_A> for u8 {
321    #[inline(always)]
322    fn from(variant: SRC2_A) -> Self {
323        variant as _
324    }
325}
326impl SRC2_R {
327    #[doc = "Get enumerated values variant"]
328    #[inline(always)]
329    pub fn variant(&self) -> SRC2_A {
330        match self.bits {
331            0 => SRC2_A::INPUT0,
332            1 => SRC2_A::INPUT1,
333            2 => SRC2_A::INPUT2,
334            3 => SRC2_A::INPUT3,
335            4 => SRC2_A::INPUT4,
336            5 => SRC2_A::INPUT5,
337            6 => SRC2_A::INPUT6,
338            7 => SRC2_A::INPUT7,
339            _ => unreachable!(),
340        }
341    }
342    #[doc = "Checks if the value of the field is `INPUT0`"]
343    #[inline(always)]
344    pub fn is_input0(&self) -> bool {
345        *self == SRC2_A::INPUT0
346    }
347    #[doc = "Checks if the value of the field is `INPUT1`"]
348    #[inline(always)]
349    pub fn is_input1(&self) -> bool {
350        *self == SRC2_A::INPUT1
351    }
352    #[doc = "Checks if the value of the field is `INPUT2`"]
353    #[inline(always)]
354    pub fn is_input2(&self) -> bool {
355        *self == SRC2_A::INPUT2
356    }
357    #[doc = "Checks if the value of the field is `INPUT3`"]
358    #[inline(always)]
359    pub fn is_input3(&self) -> bool {
360        *self == SRC2_A::INPUT3
361    }
362    #[doc = "Checks if the value of the field is `INPUT4`"]
363    #[inline(always)]
364    pub fn is_input4(&self) -> bool {
365        *self == SRC2_A::INPUT4
366    }
367    #[doc = "Checks if the value of the field is `INPUT5`"]
368    #[inline(always)]
369    pub fn is_input5(&self) -> bool {
370        *self == SRC2_A::INPUT5
371    }
372    #[doc = "Checks if the value of the field is `INPUT6`"]
373    #[inline(always)]
374    pub fn is_input6(&self) -> bool {
375        *self == SRC2_A::INPUT6
376    }
377    #[doc = "Checks if the value of the field is `INPUT7`"]
378    #[inline(always)]
379    pub fn is_input7(&self) -> bool {
380        *self == SRC2_A::INPUT7
381    }
382}
383#[doc = "Field `SRC2` writer - Selects the input source for bit slice 2."]
384pub type SRC2_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, PMSRC_SPEC, u8, SRC2_A, 3, O>;
385impl<'a, const O: u8> SRC2_W<'a, O> {
386    #[doc = "Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 2."]
387    #[inline(always)]
388    pub fn input0(self) -> &'a mut W {
389        self.variant(SRC2_A::INPUT0)
390    }
391    #[doc = "Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 2."]
392    #[inline(always)]
393    pub fn input1(self) -> &'a mut W {
394        self.variant(SRC2_A::INPUT1)
395    }
396    #[doc = "Input 2. Selects the pin selected in the PINTSEL2 register as the source to bit slice 2."]
397    #[inline(always)]
398    pub fn input2(self) -> &'a mut W {
399        self.variant(SRC2_A::INPUT2)
400    }
401    #[doc = "Input 3. Selects the pin selected in the PINTSEL3 register as the source to bit slice 2."]
402    #[inline(always)]
403    pub fn input3(self) -> &'a mut W {
404        self.variant(SRC2_A::INPUT3)
405    }
406    #[doc = "Input 4. Selects the pin selected in the PINTSEL4 register as the source to bit slice 2."]
407    #[inline(always)]
408    pub fn input4(self) -> &'a mut W {
409        self.variant(SRC2_A::INPUT4)
410    }
411    #[doc = "Input 5. Selects the pin selected in the PINTSEL5 register as the source to bit slice 2."]
412    #[inline(always)]
413    pub fn input5(self) -> &'a mut W {
414        self.variant(SRC2_A::INPUT5)
415    }
416    #[doc = "Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 2."]
417    #[inline(always)]
418    pub fn input6(self) -> &'a mut W {
419        self.variant(SRC2_A::INPUT6)
420    }
421    #[doc = "Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 2."]
422    #[inline(always)]
423    pub fn input7(self) -> &'a mut W {
424        self.variant(SRC2_A::INPUT7)
425    }
426}
427#[doc = "Field `SRC3` reader - Selects the input source for bit slice 3."]
428pub type SRC3_R = crate::FieldReader<u8, SRC3_A>;
429#[doc = "Selects the input source for bit slice 3.\n\nValue on reset: 0"]
430#[derive(Clone, Copy, Debug, PartialEq, Eq)]
431#[repr(u8)]
432pub enum SRC3_A {
433    #[doc = "0: Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 3."]
434    INPUT0 = 0,
435    #[doc = "1: Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 3."]
436    INPUT1 = 1,
437    #[doc = "2: Input 2. Selects the pin selected in the PINTSEL2 register as the source to bit slice 3."]
438    INPUT2 = 2,
439    #[doc = "3: Input 3. Selects the pin selected in the PINTSEL3 register as the source to bit slice 3."]
440    INPUT3 = 3,
441    #[doc = "4: Input 4. Selects the pin selected in the PINTSEL4 register as the source to bit slice 3."]
442    INPUT4 = 4,
443    #[doc = "5: Input 5. Selects the pin selected in the PINTSEL5 register as the source to bit slice 3."]
444    INPUT5 = 5,
445    #[doc = "6: Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 3."]
446    INPUT6 = 6,
447    #[doc = "7: Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 3."]
448    INPUT7 = 7,
449}
450impl From<SRC3_A> for u8 {
451    #[inline(always)]
452    fn from(variant: SRC3_A) -> Self {
453        variant as _
454    }
455}
456impl SRC3_R {
457    #[doc = "Get enumerated values variant"]
458    #[inline(always)]
459    pub fn variant(&self) -> SRC3_A {
460        match self.bits {
461            0 => SRC3_A::INPUT0,
462            1 => SRC3_A::INPUT1,
463            2 => SRC3_A::INPUT2,
464            3 => SRC3_A::INPUT3,
465            4 => SRC3_A::INPUT4,
466            5 => SRC3_A::INPUT5,
467            6 => SRC3_A::INPUT6,
468            7 => SRC3_A::INPUT7,
469            _ => unreachable!(),
470        }
471    }
472    #[doc = "Checks if the value of the field is `INPUT0`"]
473    #[inline(always)]
474    pub fn is_input0(&self) -> bool {
475        *self == SRC3_A::INPUT0
476    }
477    #[doc = "Checks if the value of the field is `INPUT1`"]
478    #[inline(always)]
479    pub fn is_input1(&self) -> bool {
480        *self == SRC3_A::INPUT1
481    }
482    #[doc = "Checks if the value of the field is `INPUT2`"]
483    #[inline(always)]
484    pub fn is_input2(&self) -> bool {
485        *self == SRC3_A::INPUT2
486    }
487    #[doc = "Checks if the value of the field is `INPUT3`"]
488    #[inline(always)]
489    pub fn is_input3(&self) -> bool {
490        *self == SRC3_A::INPUT3
491    }
492    #[doc = "Checks if the value of the field is `INPUT4`"]
493    #[inline(always)]
494    pub fn is_input4(&self) -> bool {
495        *self == SRC3_A::INPUT4
496    }
497    #[doc = "Checks if the value of the field is `INPUT5`"]
498    #[inline(always)]
499    pub fn is_input5(&self) -> bool {
500        *self == SRC3_A::INPUT5
501    }
502    #[doc = "Checks if the value of the field is `INPUT6`"]
503    #[inline(always)]
504    pub fn is_input6(&self) -> bool {
505        *self == SRC3_A::INPUT6
506    }
507    #[doc = "Checks if the value of the field is `INPUT7`"]
508    #[inline(always)]
509    pub fn is_input7(&self) -> bool {
510        *self == SRC3_A::INPUT7
511    }
512}
513#[doc = "Field `SRC3` writer - Selects the input source for bit slice 3."]
514pub type SRC3_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, PMSRC_SPEC, u8, SRC3_A, 3, O>;
515impl<'a, const O: u8> SRC3_W<'a, O> {
516    #[doc = "Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 3."]
517    #[inline(always)]
518    pub fn input0(self) -> &'a mut W {
519        self.variant(SRC3_A::INPUT0)
520    }
521    #[doc = "Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 3."]
522    #[inline(always)]
523    pub fn input1(self) -> &'a mut W {
524        self.variant(SRC3_A::INPUT1)
525    }
526    #[doc = "Input 2. Selects the pin selected in the PINTSEL2 register as the source to bit slice 3."]
527    #[inline(always)]
528    pub fn input2(self) -> &'a mut W {
529        self.variant(SRC3_A::INPUT2)
530    }
531    #[doc = "Input 3. Selects the pin selected in the PINTSEL3 register as the source to bit slice 3."]
532    #[inline(always)]
533    pub fn input3(self) -> &'a mut W {
534        self.variant(SRC3_A::INPUT3)
535    }
536    #[doc = "Input 4. Selects the pin selected in the PINTSEL4 register as the source to bit slice 3."]
537    #[inline(always)]
538    pub fn input4(self) -> &'a mut W {
539        self.variant(SRC3_A::INPUT4)
540    }
541    #[doc = "Input 5. Selects the pin selected in the PINTSEL5 register as the source to bit slice 3."]
542    #[inline(always)]
543    pub fn input5(self) -> &'a mut W {
544        self.variant(SRC3_A::INPUT5)
545    }
546    #[doc = "Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 3."]
547    #[inline(always)]
548    pub fn input6(self) -> &'a mut W {
549        self.variant(SRC3_A::INPUT6)
550    }
551    #[doc = "Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 3."]
552    #[inline(always)]
553    pub fn input7(self) -> &'a mut W {
554        self.variant(SRC3_A::INPUT7)
555    }
556}
557#[doc = "Field `SRC4` reader - Selects the input source for bit slice 4."]
558pub type SRC4_R = crate::FieldReader<u8, SRC4_A>;
559#[doc = "Selects the input source for bit slice 4.\n\nValue on reset: 0"]
560#[derive(Clone, Copy, Debug, PartialEq, Eq)]
561#[repr(u8)]
562pub enum SRC4_A {
563    #[doc = "0: Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 4."]
564    INPUT0 = 0,
565    #[doc = "1: Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 4."]
566    INPUT1 = 1,
567    #[doc = "2: Input 2. Selects the pin selected in the PINTSEL2 register as the source to bit slice 4."]
568    INPUT2 = 2,
569    #[doc = "3: Input 3. Selects the pin selected in the PINTSEL3 register as the source to bit slice 4."]
570    INPUT3 = 3,
571    #[doc = "4: Input 4. Selects the pin selected in the PINTSEL4 register as the source to bit slice 4."]
572    INPUT4 = 4,
573    #[doc = "5: Input 5. Selects the pin selected in the PINTSEL5 register as the source to bit slice 4."]
574    INPUT5 = 5,
575    #[doc = "6: Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 4."]
576    INPUT6 = 6,
577    #[doc = "7: Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 4."]
578    INPUT7 = 7,
579}
580impl From<SRC4_A> for u8 {
581    #[inline(always)]
582    fn from(variant: SRC4_A) -> Self {
583        variant as _
584    }
585}
586impl SRC4_R {
587    #[doc = "Get enumerated values variant"]
588    #[inline(always)]
589    pub fn variant(&self) -> SRC4_A {
590        match self.bits {
591            0 => SRC4_A::INPUT0,
592            1 => SRC4_A::INPUT1,
593            2 => SRC4_A::INPUT2,
594            3 => SRC4_A::INPUT3,
595            4 => SRC4_A::INPUT4,
596            5 => SRC4_A::INPUT5,
597            6 => SRC4_A::INPUT6,
598            7 => SRC4_A::INPUT7,
599            _ => unreachable!(),
600        }
601    }
602    #[doc = "Checks if the value of the field is `INPUT0`"]
603    #[inline(always)]
604    pub fn is_input0(&self) -> bool {
605        *self == SRC4_A::INPUT0
606    }
607    #[doc = "Checks if the value of the field is `INPUT1`"]
608    #[inline(always)]
609    pub fn is_input1(&self) -> bool {
610        *self == SRC4_A::INPUT1
611    }
612    #[doc = "Checks if the value of the field is `INPUT2`"]
613    #[inline(always)]
614    pub fn is_input2(&self) -> bool {
615        *self == SRC4_A::INPUT2
616    }
617    #[doc = "Checks if the value of the field is `INPUT3`"]
618    #[inline(always)]
619    pub fn is_input3(&self) -> bool {
620        *self == SRC4_A::INPUT3
621    }
622    #[doc = "Checks if the value of the field is `INPUT4`"]
623    #[inline(always)]
624    pub fn is_input4(&self) -> bool {
625        *self == SRC4_A::INPUT4
626    }
627    #[doc = "Checks if the value of the field is `INPUT5`"]
628    #[inline(always)]
629    pub fn is_input5(&self) -> bool {
630        *self == SRC4_A::INPUT5
631    }
632    #[doc = "Checks if the value of the field is `INPUT6`"]
633    #[inline(always)]
634    pub fn is_input6(&self) -> bool {
635        *self == SRC4_A::INPUT6
636    }
637    #[doc = "Checks if the value of the field is `INPUT7`"]
638    #[inline(always)]
639    pub fn is_input7(&self) -> bool {
640        *self == SRC4_A::INPUT7
641    }
642}
643#[doc = "Field `SRC4` writer - Selects the input source for bit slice 4."]
644pub type SRC4_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, PMSRC_SPEC, u8, SRC4_A, 3, O>;
645impl<'a, const O: u8> SRC4_W<'a, O> {
646    #[doc = "Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 4."]
647    #[inline(always)]
648    pub fn input0(self) -> &'a mut W {
649        self.variant(SRC4_A::INPUT0)
650    }
651    #[doc = "Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 4."]
652    #[inline(always)]
653    pub fn input1(self) -> &'a mut W {
654        self.variant(SRC4_A::INPUT1)
655    }
656    #[doc = "Input 2. Selects the pin selected in the PINTSEL2 register as the source to bit slice 4."]
657    #[inline(always)]
658    pub fn input2(self) -> &'a mut W {
659        self.variant(SRC4_A::INPUT2)
660    }
661    #[doc = "Input 3. Selects the pin selected in the PINTSEL3 register as the source to bit slice 4."]
662    #[inline(always)]
663    pub fn input3(self) -> &'a mut W {
664        self.variant(SRC4_A::INPUT3)
665    }
666    #[doc = "Input 4. Selects the pin selected in the PINTSEL4 register as the source to bit slice 4."]
667    #[inline(always)]
668    pub fn input4(self) -> &'a mut W {
669        self.variant(SRC4_A::INPUT4)
670    }
671    #[doc = "Input 5. Selects the pin selected in the PINTSEL5 register as the source to bit slice 4."]
672    #[inline(always)]
673    pub fn input5(self) -> &'a mut W {
674        self.variant(SRC4_A::INPUT5)
675    }
676    #[doc = "Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 4."]
677    #[inline(always)]
678    pub fn input6(self) -> &'a mut W {
679        self.variant(SRC4_A::INPUT6)
680    }
681    #[doc = "Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 4."]
682    #[inline(always)]
683    pub fn input7(self) -> &'a mut W {
684        self.variant(SRC4_A::INPUT7)
685    }
686}
687#[doc = "Field `SRC5` reader - Selects the input source for bit slice 5."]
688pub type SRC5_R = crate::FieldReader<u8, SRC5_A>;
689#[doc = "Selects the input source for bit slice 5.\n\nValue on reset: 0"]
690#[derive(Clone, Copy, Debug, PartialEq, Eq)]
691#[repr(u8)]
692pub enum SRC5_A {
693    #[doc = "0: Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 5."]
694    INPUT0 = 0,
695    #[doc = "1: Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 5."]
696    INPUT1 = 1,
697    #[doc = "2: Input 2. Selects the pin selected in the PINTSEL2 register as the source to bit slice 5."]
698    INPUT2 = 2,
699    #[doc = "3: Input 3. Selects the pin selected in the PINTSEL3 register as the source to bit slice 5."]
700    INPUT3 = 3,
701    #[doc = "4: Input 4. Selects the pin selected in the PINTSEL4 register as the source to bit slice 5."]
702    INPUT4 = 4,
703    #[doc = "5: Input 5. Selects the pin selected in the PINTSEL5 register as the source to bit slice 5."]
704    INPUT5 = 5,
705    #[doc = "6: Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 5."]
706    INPUT6 = 6,
707    #[doc = "7: Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 5."]
708    INPUT7 = 7,
709}
710impl From<SRC5_A> for u8 {
711    #[inline(always)]
712    fn from(variant: SRC5_A) -> Self {
713        variant as _
714    }
715}
716impl SRC5_R {
717    #[doc = "Get enumerated values variant"]
718    #[inline(always)]
719    pub fn variant(&self) -> SRC5_A {
720        match self.bits {
721            0 => SRC5_A::INPUT0,
722            1 => SRC5_A::INPUT1,
723            2 => SRC5_A::INPUT2,
724            3 => SRC5_A::INPUT3,
725            4 => SRC5_A::INPUT4,
726            5 => SRC5_A::INPUT5,
727            6 => SRC5_A::INPUT6,
728            7 => SRC5_A::INPUT7,
729            _ => unreachable!(),
730        }
731    }
732    #[doc = "Checks if the value of the field is `INPUT0`"]
733    #[inline(always)]
734    pub fn is_input0(&self) -> bool {
735        *self == SRC5_A::INPUT0
736    }
737    #[doc = "Checks if the value of the field is `INPUT1`"]
738    #[inline(always)]
739    pub fn is_input1(&self) -> bool {
740        *self == SRC5_A::INPUT1
741    }
742    #[doc = "Checks if the value of the field is `INPUT2`"]
743    #[inline(always)]
744    pub fn is_input2(&self) -> bool {
745        *self == SRC5_A::INPUT2
746    }
747    #[doc = "Checks if the value of the field is `INPUT3`"]
748    #[inline(always)]
749    pub fn is_input3(&self) -> bool {
750        *self == SRC5_A::INPUT3
751    }
752    #[doc = "Checks if the value of the field is `INPUT4`"]
753    #[inline(always)]
754    pub fn is_input4(&self) -> bool {
755        *self == SRC5_A::INPUT4
756    }
757    #[doc = "Checks if the value of the field is `INPUT5`"]
758    #[inline(always)]
759    pub fn is_input5(&self) -> bool {
760        *self == SRC5_A::INPUT5
761    }
762    #[doc = "Checks if the value of the field is `INPUT6`"]
763    #[inline(always)]
764    pub fn is_input6(&self) -> bool {
765        *self == SRC5_A::INPUT6
766    }
767    #[doc = "Checks if the value of the field is `INPUT7`"]
768    #[inline(always)]
769    pub fn is_input7(&self) -> bool {
770        *self == SRC5_A::INPUT7
771    }
772}
773#[doc = "Field `SRC5` writer - Selects the input source for bit slice 5."]
774pub type SRC5_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, PMSRC_SPEC, u8, SRC5_A, 3, O>;
775impl<'a, const O: u8> SRC5_W<'a, O> {
776    #[doc = "Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 5."]
777    #[inline(always)]
778    pub fn input0(self) -> &'a mut W {
779        self.variant(SRC5_A::INPUT0)
780    }
781    #[doc = "Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 5."]
782    #[inline(always)]
783    pub fn input1(self) -> &'a mut W {
784        self.variant(SRC5_A::INPUT1)
785    }
786    #[doc = "Input 2. Selects the pin selected in the PINTSEL2 register as the source to bit slice 5."]
787    #[inline(always)]
788    pub fn input2(self) -> &'a mut W {
789        self.variant(SRC5_A::INPUT2)
790    }
791    #[doc = "Input 3. Selects the pin selected in the PINTSEL3 register as the source to bit slice 5."]
792    #[inline(always)]
793    pub fn input3(self) -> &'a mut W {
794        self.variant(SRC5_A::INPUT3)
795    }
796    #[doc = "Input 4. Selects the pin selected in the PINTSEL4 register as the source to bit slice 5."]
797    #[inline(always)]
798    pub fn input4(self) -> &'a mut W {
799        self.variant(SRC5_A::INPUT4)
800    }
801    #[doc = "Input 5. Selects the pin selected in the PINTSEL5 register as the source to bit slice 5."]
802    #[inline(always)]
803    pub fn input5(self) -> &'a mut W {
804        self.variant(SRC5_A::INPUT5)
805    }
806    #[doc = "Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 5."]
807    #[inline(always)]
808    pub fn input6(self) -> &'a mut W {
809        self.variant(SRC5_A::INPUT6)
810    }
811    #[doc = "Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 5."]
812    #[inline(always)]
813    pub fn input7(self) -> &'a mut W {
814        self.variant(SRC5_A::INPUT7)
815    }
816}
817#[doc = "Field `SRC6` reader - Selects the input source for bit slice 6."]
818pub type SRC6_R = crate::FieldReader<u8, SRC6_A>;
819#[doc = "Selects the input source for bit slice 6.\n\nValue on reset: 0"]
820#[derive(Clone, Copy, Debug, PartialEq, Eq)]
821#[repr(u8)]
822pub enum SRC6_A {
823    #[doc = "0: Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 6."]
824    INPUT0 = 0,
825    #[doc = "1: Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 6."]
826    INPUT1 = 1,
827    #[doc = "2: Input 2. Selects the pin selected in the PINTSEL2 register as the source to bit slice 6."]
828    INPUT2 = 2,
829    #[doc = "3: Input 3. Selects the pin selected in the PINTSEL3 register as the source to bit slice 6."]
830    INPUT3 = 3,
831    #[doc = "4: Input 4. Selects the pin selected in the PINTSEL4 register as the source to bit slice 6."]
832    INPUT4 = 4,
833    #[doc = "5: Input 5. Selects the pin selected in the PINTSEL5 register as the source to bit slice 6."]
834    INPUT5 = 5,
835    #[doc = "6: Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 6."]
836    INPUT6 = 6,
837    #[doc = "7: Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 6."]
838    INPUT7 = 7,
839}
840impl From<SRC6_A> for u8 {
841    #[inline(always)]
842    fn from(variant: SRC6_A) -> Self {
843        variant as _
844    }
845}
846impl SRC6_R {
847    #[doc = "Get enumerated values variant"]
848    #[inline(always)]
849    pub fn variant(&self) -> SRC6_A {
850        match self.bits {
851            0 => SRC6_A::INPUT0,
852            1 => SRC6_A::INPUT1,
853            2 => SRC6_A::INPUT2,
854            3 => SRC6_A::INPUT3,
855            4 => SRC6_A::INPUT4,
856            5 => SRC6_A::INPUT5,
857            6 => SRC6_A::INPUT6,
858            7 => SRC6_A::INPUT7,
859            _ => unreachable!(),
860        }
861    }
862    #[doc = "Checks if the value of the field is `INPUT0`"]
863    #[inline(always)]
864    pub fn is_input0(&self) -> bool {
865        *self == SRC6_A::INPUT0
866    }
867    #[doc = "Checks if the value of the field is `INPUT1`"]
868    #[inline(always)]
869    pub fn is_input1(&self) -> bool {
870        *self == SRC6_A::INPUT1
871    }
872    #[doc = "Checks if the value of the field is `INPUT2`"]
873    #[inline(always)]
874    pub fn is_input2(&self) -> bool {
875        *self == SRC6_A::INPUT2
876    }
877    #[doc = "Checks if the value of the field is `INPUT3`"]
878    #[inline(always)]
879    pub fn is_input3(&self) -> bool {
880        *self == SRC6_A::INPUT3
881    }
882    #[doc = "Checks if the value of the field is `INPUT4`"]
883    #[inline(always)]
884    pub fn is_input4(&self) -> bool {
885        *self == SRC6_A::INPUT4
886    }
887    #[doc = "Checks if the value of the field is `INPUT5`"]
888    #[inline(always)]
889    pub fn is_input5(&self) -> bool {
890        *self == SRC6_A::INPUT5
891    }
892    #[doc = "Checks if the value of the field is `INPUT6`"]
893    #[inline(always)]
894    pub fn is_input6(&self) -> bool {
895        *self == SRC6_A::INPUT6
896    }
897    #[doc = "Checks if the value of the field is `INPUT7`"]
898    #[inline(always)]
899    pub fn is_input7(&self) -> bool {
900        *self == SRC6_A::INPUT7
901    }
902}
903#[doc = "Field `SRC6` writer - Selects the input source for bit slice 6."]
904pub type SRC6_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, PMSRC_SPEC, u8, SRC6_A, 3, O>;
905impl<'a, const O: u8> SRC6_W<'a, O> {
906    #[doc = "Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 6."]
907    #[inline(always)]
908    pub fn input0(self) -> &'a mut W {
909        self.variant(SRC6_A::INPUT0)
910    }
911    #[doc = "Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 6."]
912    #[inline(always)]
913    pub fn input1(self) -> &'a mut W {
914        self.variant(SRC6_A::INPUT1)
915    }
916    #[doc = "Input 2. Selects the pin selected in the PINTSEL2 register as the source to bit slice 6."]
917    #[inline(always)]
918    pub fn input2(self) -> &'a mut W {
919        self.variant(SRC6_A::INPUT2)
920    }
921    #[doc = "Input 3. Selects the pin selected in the PINTSEL3 register as the source to bit slice 6."]
922    #[inline(always)]
923    pub fn input3(self) -> &'a mut W {
924        self.variant(SRC6_A::INPUT3)
925    }
926    #[doc = "Input 4. Selects the pin selected in the PINTSEL4 register as the source to bit slice 6."]
927    #[inline(always)]
928    pub fn input4(self) -> &'a mut W {
929        self.variant(SRC6_A::INPUT4)
930    }
931    #[doc = "Input 5. Selects the pin selected in the PINTSEL5 register as the source to bit slice 6."]
932    #[inline(always)]
933    pub fn input5(self) -> &'a mut W {
934        self.variant(SRC6_A::INPUT5)
935    }
936    #[doc = "Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 6."]
937    #[inline(always)]
938    pub fn input6(self) -> &'a mut W {
939        self.variant(SRC6_A::INPUT6)
940    }
941    #[doc = "Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 6."]
942    #[inline(always)]
943    pub fn input7(self) -> &'a mut W {
944        self.variant(SRC6_A::INPUT7)
945    }
946}
947#[doc = "Field `SRC7` reader - Selects the input source for bit slice 7."]
948pub type SRC7_R = crate::FieldReader<u8, SRC7_A>;
949#[doc = "Selects the input source for bit slice 7.\n\nValue on reset: 0"]
950#[derive(Clone, Copy, Debug, PartialEq, Eq)]
951#[repr(u8)]
952pub enum SRC7_A {
953    #[doc = "0: Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 7."]
954    INPUT0 = 0,
955    #[doc = "1: Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 7."]
956    INPUT1 = 1,
957    #[doc = "2: Input 2. Selects the pin selected in the PINTSEL2 register as the source to bit slice 7."]
958    INPUT2 = 2,
959    #[doc = "3: Input 3. Selects the pin selected in the PINTSEL3 register as the source to bit slice 7."]
960    INPUT3 = 3,
961    #[doc = "4: Input 4. Selects the pin selected in the PINTSEL4 register as the source to bit slice 7."]
962    INPUT4 = 4,
963    #[doc = "5: Input 5. Selects the pin selected in the PINTSEL5 register as the source to bit slice 7."]
964    INPUT5 = 5,
965    #[doc = "6: Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 7."]
966    INPUT6 = 6,
967    #[doc = "7: Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 7."]
968    INPUT7 = 7,
969}
970impl From<SRC7_A> for u8 {
971    #[inline(always)]
972    fn from(variant: SRC7_A) -> Self {
973        variant as _
974    }
975}
976impl SRC7_R {
977    #[doc = "Get enumerated values variant"]
978    #[inline(always)]
979    pub fn variant(&self) -> SRC7_A {
980        match self.bits {
981            0 => SRC7_A::INPUT0,
982            1 => SRC7_A::INPUT1,
983            2 => SRC7_A::INPUT2,
984            3 => SRC7_A::INPUT3,
985            4 => SRC7_A::INPUT4,
986            5 => SRC7_A::INPUT5,
987            6 => SRC7_A::INPUT6,
988            7 => SRC7_A::INPUT7,
989            _ => unreachable!(),
990        }
991    }
992    #[doc = "Checks if the value of the field is `INPUT0`"]
993    #[inline(always)]
994    pub fn is_input0(&self) -> bool {
995        *self == SRC7_A::INPUT0
996    }
997    #[doc = "Checks if the value of the field is `INPUT1`"]
998    #[inline(always)]
999    pub fn is_input1(&self) -> bool {
1000        *self == SRC7_A::INPUT1
1001    }
1002    #[doc = "Checks if the value of the field is `INPUT2`"]
1003    #[inline(always)]
1004    pub fn is_input2(&self) -> bool {
1005        *self == SRC7_A::INPUT2
1006    }
1007    #[doc = "Checks if the value of the field is `INPUT3`"]
1008    #[inline(always)]
1009    pub fn is_input3(&self) -> bool {
1010        *self == SRC7_A::INPUT3
1011    }
1012    #[doc = "Checks if the value of the field is `INPUT4`"]
1013    #[inline(always)]
1014    pub fn is_input4(&self) -> bool {
1015        *self == SRC7_A::INPUT4
1016    }
1017    #[doc = "Checks if the value of the field is `INPUT5`"]
1018    #[inline(always)]
1019    pub fn is_input5(&self) -> bool {
1020        *self == SRC7_A::INPUT5
1021    }
1022    #[doc = "Checks if the value of the field is `INPUT6`"]
1023    #[inline(always)]
1024    pub fn is_input6(&self) -> bool {
1025        *self == SRC7_A::INPUT6
1026    }
1027    #[doc = "Checks if the value of the field is `INPUT7`"]
1028    #[inline(always)]
1029    pub fn is_input7(&self) -> bool {
1030        *self == SRC7_A::INPUT7
1031    }
1032}
1033#[doc = "Field `SRC7` writer - Selects the input source for bit slice 7."]
1034pub type SRC7_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, PMSRC_SPEC, u8, SRC7_A, 3, O>;
1035impl<'a, const O: u8> SRC7_W<'a, O> {
1036    #[doc = "Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 7."]
1037    #[inline(always)]
1038    pub fn input0(self) -> &'a mut W {
1039        self.variant(SRC7_A::INPUT0)
1040    }
1041    #[doc = "Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 7."]
1042    #[inline(always)]
1043    pub fn input1(self) -> &'a mut W {
1044        self.variant(SRC7_A::INPUT1)
1045    }
1046    #[doc = "Input 2. Selects the pin selected in the PINTSEL2 register as the source to bit slice 7."]
1047    #[inline(always)]
1048    pub fn input2(self) -> &'a mut W {
1049        self.variant(SRC7_A::INPUT2)
1050    }
1051    #[doc = "Input 3. Selects the pin selected in the PINTSEL3 register as the source to bit slice 7."]
1052    #[inline(always)]
1053    pub fn input3(self) -> &'a mut W {
1054        self.variant(SRC7_A::INPUT3)
1055    }
1056    #[doc = "Input 4. Selects the pin selected in the PINTSEL4 register as the source to bit slice 7."]
1057    #[inline(always)]
1058    pub fn input4(self) -> &'a mut W {
1059        self.variant(SRC7_A::INPUT4)
1060    }
1061    #[doc = "Input 5. Selects the pin selected in the PINTSEL5 register as the source to bit slice 7."]
1062    #[inline(always)]
1063    pub fn input5(self) -> &'a mut W {
1064        self.variant(SRC7_A::INPUT5)
1065    }
1066    #[doc = "Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 7."]
1067    #[inline(always)]
1068    pub fn input6(self) -> &'a mut W {
1069        self.variant(SRC7_A::INPUT6)
1070    }
1071    #[doc = "Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 7."]
1072    #[inline(always)]
1073    pub fn input7(self) -> &'a mut W {
1074        self.variant(SRC7_A::INPUT7)
1075    }
1076}
1077impl R {
1078    #[doc = "Bits 8:10 - Selects the input source for bit slice 0."]
1079    #[inline(always)]
1080    pub fn src0(&self) -> SRC0_R {
1081        SRC0_R::new(((self.bits >> 8) & 7) as u8)
1082    }
1083    #[doc = "Bits 11:13 - Selects the input source for bit slice 1."]
1084    #[inline(always)]
1085    pub fn src1(&self) -> SRC1_R {
1086        SRC1_R::new(((self.bits >> 11) & 7) as u8)
1087    }
1088    #[doc = "Bits 14:16 - Selects the input source for bit slice 2."]
1089    #[inline(always)]
1090    pub fn src2(&self) -> SRC2_R {
1091        SRC2_R::new(((self.bits >> 14) & 7) as u8)
1092    }
1093    #[doc = "Bits 17:19 - Selects the input source for bit slice 3."]
1094    #[inline(always)]
1095    pub fn src3(&self) -> SRC3_R {
1096        SRC3_R::new(((self.bits >> 17) & 7) as u8)
1097    }
1098    #[doc = "Bits 20:22 - Selects the input source for bit slice 4."]
1099    #[inline(always)]
1100    pub fn src4(&self) -> SRC4_R {
1101        SRC4_R::new(((self.bits >> 20) & 7) as u8)
1102    }
1103    #[doc = "Bits 23:25 - Selects the input source for bit slice 5."]
1104    #[inline(always)]
1105    pub fn src5(&self) -> SRC5_R {
1106        SRC5_R::new(((self.bits >> 23) & 7) as u8)
1107    }
1108    #[doc = "Bits 26:28 - Selects the input source for bit slice 6."]
1109    #[inline(always)]
1110    pub fn src6(&self) -> SRC6_R {
1111        SRC6_R::new(((self.bits >> 26) & 7) as u8)
1112    }
1113    #[doc = "Bits 29:31 - Selects the input source for bit slice 7."]
1114    #[inline(always)]
1115    pub fn src7(&self) -> SRC7_R {
1116        SRC7_R::new(((self.bits >> 29) & 7) as u8)
1117    }
1118}
1119impl W {
1120    #[doc = "Bits 8:10 - Selects the input source for bit slice 0."]
1121    #[inline(always)]
1122    pub fn src0(&mut self) -> SRC0_W<8> {
1123        SRC0_W::new(self)
1124    }
1125    #[doc = "Bits 11:13 - Selects the input source for bit slice 1."]
1126    #[inline(always)]
1127    pub fn src1(&mut self) -> SRC1_W<11> {
1128        SRC1_W::new(self)
1129    }
1130    #[doc = "Bits 14:16 - Selects the input source for bit slice 2."]
1131    #[inline(always)]
1132    pub fn src2(&mut self) -> SRC2_W<14> {
1133        SRC2_W::new(self)
1134    }
1135    #[doc = "Bits 17:19 - Selects the input source for bit slice 3."]
1136    #[inline(always)]
1137    pub fn src3(&mut self) -> SRC3_W<17> {
1138        SRC3_W::new(self)
1139    }
1140    #[doc = "Bits 20:22 - Selects the input source for bit slice 4."]
1141    #[inline(always)]
1142    pub fn src4(&mut self) -> SRC4_W<20> {
1143        SRC4_W::new(self)
1144    }
1145    #[doc = "Bits 23:25 - Selects the input source for bit slice 5."]
1146    #[inline(always)]
1147    pub fn src5(&mut self) -> SRC5_W<23> {
1148        SRC5_W::new(self)
1149    }
1150    #[doc = "Bits 26:28 - Selects the input source for bit slice 6."]
1151    #[inline(always)]
1152    pub fn src6(&mut self) -> SRC6_W<26> {
1153        SRC6_W::new(self)
1154    }
1155    #[doc = "Bits 29:31 - Selects the input source for bit slice 7."]
1156    #[inline(always)]
1157    pub fn src7(&mut self) -> SRC7_W<29> {
1158        SRC7_W::new(self)
1159    }
1160    #[doc = "Writes raw bits to the register."]
1161    #[inline(always)]
1162    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1163        self.0.bits(bits);
1164        self
1165    }
1166}
1167#[doc = "Pattern match interrupt bit-slice source register.\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [pmsrc](index.html) module"]
1168pub struct PMSRC_SPEC;
1169impl crate::RegisterSpec for PMSRC_SPEC {
1170    type Ux = u32;
1171}
1172#[doc = "`read()` method returns [pmsrc::R](R) reader structure"]
1173impl crate::Readable for PMSRC_SPEC {
1174    type Reader = R;
1175}
1176#[doc = "`write(|w| ..)` method takes [pmsrc::W](W) writer structure"]
1177impl crate::Writable for PMSRC_SPEC {
1178    type Writer = W;
1179}
1180#[doc = "`reset()` method sets PMSRC to value 0"]
1181impl crate::Resettable for PMSRC_SPEC {
1182    #[inline(always)]
1183    fn reset_value() -> Self::Ux {
1184        0
1185    }
1186}