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