atsam4n16c_pac/piob/
aimmr.rs

1#[doc = "Register `AIMMR` reader"]
2pub struct R(crate::R<AIMMR_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<AIMMR_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<AIMMR_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<AIMMR_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `P0` reader - Peripheral CD Status"]
17pub type P0_R = crate::BitReader<bool>;
18#[doc = "Field `P1` reader - Peripheral CD Status"]
19pub type P1_R = crate::BitReader<bool>;
20#[doc = "Field `P2` reader - Peripheral CD Status"]
21pub type P2_R = crate::BitReader<bool>;
22#[doc = "Field `P3` reader - Peripheral CD Status"]
23pub type P3_R = crate::BitReader<bool>;
24#[doc = "Field `P4` reader - Peripheral CD Status"]
25pub type P4_R = crate::BitReader<bool>;
26#[doc = "Field `P5` reader - Peripheral CD Status"]
27pub type P5_R = crate::BitReader<bool>;
28#[doc = "Field `P6` reader - Peripheral CD Status"]
29pub type P6_R = crate::BitReader<bool>;
30#[doc = "Field `P7` reader - Peripheral CD Status"]
31pub type P7_R = crate::BitReader<bool>;
32#[doc = "Field `P8` reader - Peripheral CD Status"]
33pub type P8_R = crate::BitReader<bool>;
34#[doc = "Field `P9` reader - Peripheral CD Status"]
35pub type P9_R = crate::BitReader<bool>;
36#[doc = "Field `P10` reader - Peripheral CD Status"]
37pub type P10_R = crate::BitReader<bool>;
38#[doc = "Field `P11` reader - Peripheral CD Status"]
39pub type P11_R = crate::BitReader<bool>;
40#[doc = "Field `P12` reader - Peripheral CD Status"]
41pub type P12_R = crate::BitReader<bool>;
42#[doc = "Field `P13` reader - Peripheral CD Status"]
43pub type P13_R = crate::BitReader<bool>;
44#[doc = "Field `P14` reader - Peripheral CD Status"]
45pub type P14_R = crate::BitReader<bool>;
46#[doc = "Field `P15` reader - Peripheral CD Status"]
47pub type P15_R = crate::BitReader<bool>;
48#[doc = "Field `P16` reader - Peripheral CD Status"]
49pub type P16_R = crate::BitReader<bool>;
50#[doc = "Field `P17` reader - Peripheral CD Status"]
51pub type P17_R = crate::BitReader<bool>;
52#[doc = "Field `P18` reader - Peripheral CD Status"]
53pub type P18_R = crate::BitReader<bool>;
54#[doc = "Field `P19` reader - Peripheral CD Status"]
55pub type P19_R = crate::BitReader<bool>;
56#[doc = "Field `P20` reader - Peripheral CD Status"]
57pub type P20_R = crate::BitReader<bool>;
58#[doc = "Field `P21` reader - Peripheral CD Status"]
59pub type P21_R = crate::BitReader<bool>;
60#[doc = "Field `P22` reader - Peripheral CD Status"]
61pub type P22_R = crate::BitReader<bool>;
62#[doc = "Field `P23` reader - Peripheral CD Status"]
63pub type P23_R = crate::BitReader<bool>;
64#[doc = "Field `P24` reader - Peripheral CD Status"]
65pub type P24_R = crate::BitReader<bool>;
66#[doc = "Field `P25` reader - Peripheral CD Status"]
67pub type P25_R = crate::BitReader<bool>;
68#[doc = "Field `P26` reader - Peripheral CD Status"]
69pub type P26_R = crate::BitReader<bool>;
70#[doc = "Field `P27` reader - Peripheral CD Status"]
71pub type P27_R = crate::BitReader<bool>;
72#[doc = "Field `P28` reader - Peripheral CD Status"]
73pub type P28_R = crate::BitReader<bool>;
74#[doc = "Field `P29` reader - Peripheral CD Status"]
75pub type P29_R = crate::BitReader<bool>;
76#[doc = "Field `P30` reader - Peripheral CD Status"]
77pub type P30_R = crate::BitReader<bool>;
78#[doc = "Field `P31` reader - Peripheral CD Status"]
79pub type P31_R = crate::BitReader<bool>;
80impl R {
81    #[doc = "Bit 0 - Peripheral CD Status"]
82    #[inline(always)]
83    pub fn p0(&self) -> P0_R {
84        P0_R::new((self.bits & 1) != 0)
85    }
86    #[doc = "Bit 1 - Peripheral CD Status"]
87    #[inline(always)]
88    pub fn p1(&self) -> P1_R {
89        P1_R::new(((self.bits >> 1) & 1) != 0)
90    }
91    #[doc = "Bit 2 - Peripheral CD Status"]
92    #[inline(always)]
93    pub fn p2(&self) -> P2_R {
94        P2_R::new(((self.bits >> 2) & 1) != 0)
95    }
96    #[doc = "Bit 3 - Peripheral CD Status"]
97    #[inline(always)]
98    pub fn p3(&self) -> P3_R {
99        P3_R::new(((self.bits >> 3) & 1) != 0)
100    }
101    #[doc = "Bit 4 - Peripheral CD Status"]
102    #[inline(always)]
103    pub fn p4(&self) -> P4_R {
104        P4_R::new(((self.bits >> 4) & 1) != 0)
105    }
106    #[doc = "Bit 5 - Peripheral CD Status"]
107    #[inline(always)]
108    pub fn p5(&self) -> P5_R {
109        P5_R::new(((self.bits >> 5) & 1) != 0)
110    }
111    #[doc = "Bit 6 - Peripheral CD Status"]
112    #[inline(always)]
113    pub fn p6(&self) -> P6_R {
114        P6_R::new(((self.bits >> 6) & 1) != 0)
115    }
116    #[doc = "Bit 7 - Peripheral CD Status"]
117    #[inline(always)]
118    pub fn p7(&self) -> P7_R {
119        P7_R::new(((self.bits >> 7) & 1) != 0)
120    }
121    #[doc = "Bit 8 - Peripheral CD Status"]
122    #[inline(always)]
123    pub fn p8(&self) -> P8_R {
124        P8_R::new(((self.bits >> 8) & 1) != 0)
125    }
126    #[doc = "Bit 9 - Peripheral CD Status"]
127    #[inline(always)]
128    pub fn p9(&self) -> P9_R {
129        P9_R::new(((self.bits >> 9) & 1) != 0)
130    }
131    #[doc = "Bit 10 - Peripheral CD Status"]
132    #[inline(always)]
133    pub fn p10(&self) -> P10_R {
134        P10_R::new(((self.bits >> 10) & 1) != 0)
135    }
136    #[doc = "Bit 11 - Peripheral CD Status"]
137    #[inline(always)]
138    pub fn p11(&self) -> P11_R {
139        P11_R::new(((self.bits >> 11) & 1) != 0)
140    }
141    #[doc = "Bit 12 - Peripheral CD Status"]
142    #[inline(always)]
143    pub fn p12(&self) -> P12_R {
144        P12_R::new(((self.bits >> 12) & 1) != 0)
145    }
146    #[doc = "Bit 13 - Peripheral CD Status"]
147    #[inline(always)]
148    pub fn p13(&self) -> P13_R {
149        P13_R::new(((self.bits >> 13) & 1) != 0)
150    }
151    #[doc = "Bit 14 - Peripheral CD Status"]
152    #[inline(always)]
153    pub fn p14(&self) -> P14_R {
154        P14_R::new(((self.bits >> 14) & 1) != 0)
155    }
156    #[doc = "Bit 15 - Peripheral CD Status"]
157    #[inline(always)]
158    pub fn p15(&self) -> P15_R {
159        P15_R::new(((self.bits >> 15) & 1) != 0)
160    }
161    #[doc = "Bit 16 - Peripheral CD Status"]
162    #[inline(always)]
163    pub fn p16(&self) -> P16_R {
164        P16_R::new(((self.bits >> 16) & 1) != 0)
165    }
166    #[doc = "Bit 17 - Peripheral CD Status"]
167    #[inline(always)]
168    pub fn p17(&self) -> P17_R {
169        P17_R::new(((self.bits >> 17) & 1) != 0)
170    }
171    #[doc = "Bit 18 - Peripheral CD Status"]
172    #[inline(always)]
173    pub fn p18(&self) -> P18_R {
174        P18_R::new(((self.bits >> 18) & 1) != 0)
175    }
176    #[doc = "Bit 19 - Peripheral CD Status"]
177    #[inline(always)]
178    pub fn p19(&self) -> P19_R {
179        P19_R::new(((self.bits >> 19) & 1) != 0)
180    }
181    #[doc = "Bit 20 - Peripheral CD Status"]
182    #[inline(always)]
183    pub fn p20(&self) -> P20_R {
184        P20_R::new(((self.bits >> 20) & 1) != 0)
185    }
186    #[doc = "Bit 21 - Peripheral CD Status"]
187    #[inline(always)]
188    pub fn p21(&self) -> P21_R {
189        P21_R::new(((self.bits >> 21) & 1) != 0)
190    }
191    #[doc = "Bit 22 - Peripheral CD Status"]
192    #[inline(always)]
193    pub fn p22(&self) -> P22_R {
194        P22_R::new(((self.bits >> 22) & 1) != 0)
195    }
196    #[doc = "Bit 23 - Peripheral CD Status"]
197    #[inline(always)]
198    pub fn p23(&self) -> P23_R {
199        P23_R::new(((self.bits >> 23) & 1) != 0)
200    }
201    #[doc = "Bit 24 - Peripheral CD Status"]
202    #[inline(always)]
203    pub fn p24(&self) -> P24_R {
204        P24_R::new(((self.bits >> 24) & 1) != 0)
205    }
206    #[doc = "Bit 25 - Peripheral CD Status"]
207    #[inline(always)]
208    pub fn p25(&self) -> P25_R {
209        P25_R::new(((self.bits >> 25) & 1) != 0)
210    }
211    #[doc = "Bit 26 - Peripheral CD Status"]
212    #[inline(always)]
213    pub fn p26(&self) -> P26_R {
214        P26_R::new(((self.bits >> 26) & 1) != 0)
215    }
216    #[doc = "Bit 27 - Peripheral CD Status"]
217    #[inline(always)]
218    pub fn p27(&self) -> P27_R {
219        P27_R::new(((self.bits >> 27) & 1) != 0)
220    }
221    #[doc = "Bit 28 - Peripheral CD Status"]
222    #[inline(always)]
223    pub fn p28(&self) -> P28_R {
224        P28_R::new(((self.bits >> 28) & 1) != 0)
225    }
226    #[doc = "Bit 29 - Peripheral CD Status"]
227    #[inline(always)]
228    pub fn p29(&self) -> P29_R {
229        P29_R::new(((self.bits >> 29) & 1) != 0)
230    }
231    #[doc = "Bit 30 - Peripheral CD Status"]
232    #[inline(always)]
233    pub fn p30(&self) -> P30_R {
234        P30_R::new(((self.bits >> 30) & 1) != 0)
235    }
236    #[doc = "Bit 31 - Peripheral CD Status"]
237    #[inline(always)]
238    pub fn p31(&self) -> P31_R {
239        P31_R::new(((self.bits >> 31) & 1) != 0)
240    }
241}
242#[doc = "Additional Interrupt Modes Mask Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [aimmr](index.html) module"]
243pub struct AIMMR_SPEC;
244impl crate::RegisterSpec for AIMMR_SPEC {
245    type Ux = u32;
246}
247#[doc = "`read()` method returns [aimmr::R](R) reader structure"]
248impl crate::Readable for AIMMR_SPEC {
249    type Reader = R;
250}
251#[doc = "`reset()` method sets AIMMR to value 0"]
252impl crate::Resettable for AIMMR_SPEC {
253    const RESET_VALUE: Self::Ux = 0;
254}