atsam3x8c/piob/
ifer.rs

1#[doc = "Register `IFER` writer"]
2pub type W = crate::W<IferSpec>;
3#[doc = "Field `P0` writer - Input Filter Enable"]
4pub type P0W<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `P1` writer - Input Filter Enable"]
6pub type P1W<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `P2` writer - Input Filter Enable"]
8pub type P2W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `P3` writer - Input Filter Enable"]
10pub type P3W<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `P4` writer - Input Filter Enable"]
12pub type P4W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `P5` writer - Input Filter Enable"]
14pub type P5W<'a, REG> = crate::BitWriter<'a, REG>;
15#[doc = "Field `P6` writer - Input Filter Enable"]
16pub type P6W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `P7` writer - Input Filter Enable"]
18pub type P7W<'a, REG> = crate::BitWriter<'a, REG>;
19#[doc = "Field `P8` writer - Input Filter Enable"]
20pub type P8W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `P9` writer - Input Filter Enable"]
22pub type P9W<'a, REG> = crate::BitWriter<'a, REG>;
23#[doc = "Field `P10` writer - Input Filter Enable"]
24pub type P10W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `P11` writer - Input Filter Enable"]
26pub type P11W<'a, REG> = crate::BitWriter<'a, REG>;
27#[doc = "Field `P12` writer - Input Filter Enable"]
28pub type P12W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `P13` writer - Input Filter Enable"]
30pub type P13W<'a, REG> = crate::BitWriter<'a, REG>;
31#[doc = "Field `P14` writer - Input Filter Enable"]
32pub type P14W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `P15` writer - Input Filter Enable"]
34pub type P15W<'a, REG> = crate::BitWriter<'a, REG>;
35#[doc = "Field `P16` writer - Input Filter Enable"]
36pub type P16W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `P17` writer - Input Filter Enable"]
38pub type P17W<'a, REG> = crate::BitWriter<'a, REG>;
39#[doc = "Field `P18` writer - Input Filter Enable"]
40pub type P18W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `P19` writer - Input Filter Enable"]
42pub type P19W<'a, REG> = crate::BitWriter<'a, REG>;
43#[doc = "Field `P20` writer - Input Filter Enable"]
44pub type P20W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `P21` writer - Input Filter Enable"]
46pub type P21W<'a, REG> = crate::BitWriter<'a, REG>;
47#[doc = "Field `P22` writer - Input Filter Enable"]
48pub type P22W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `P23` writer - Input Filter Enable"]
50pub type P23W<'a, REG> = crate::BitWriter<'a, REG>;
51#[doc = "Field `P24` writer - Input Filter Enable"]
52pub type P24W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `P25` writer - Input Filter Enable"]
54pub type P25W<'a, REG> = crate::BitWriter<'a, REG>;
55#[doc = "Field `P26` writer - Input Filter Enable"]
56pub type P26W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `P27` writer - Input Filter Enable"]
58pub type P27W<'a, REG> = crate::BitWriter<'a, REG>;
59#[doc = "Field `P28` writer - Input Filter Enable"]
60pub type P28W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `P29` writer - Input Filter Enable"]
62pub type P29W<'a, REG> = crate::BitWriter<'a, REG>;
63#[doc = "Field `P30` writer - Input Filter Enable"]
64pub type P30W<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `P31` writer - Input Filter Enable"]
66pub type P31W<'a, REG> = crate::BitWriter<'a, REG>;
67impl W {
68    #[doc = "Bit 0 - Input Filter Enable"]
69    #[inline(always)]
70    #[must_use]
71    pub fn p0(&mut self) -> P0W<IferSpec> {
72        P0W::new(self, 0)
73    }
74    #[doc = "Bit 1 - Input Filter Enable"]
75    #[inline(always)]
76    #[must_use]
77    pub fn p1(&mut self) -> P1W<IferSpec> {
78        P1W::new(self, 1)
79    }
80    #[doc = "Bit 2 - Input Filter Enable"]
81    #[inline(always)]
82    #[must_use]
83    pub fn p2(&mut self) -> P2W<IferSpec> {
84        P2W::new(self, 2)
85    }
86    #[doc = "Bit 3 - Input Filter Enable"]
87    #[inline(always)]
88    #[must_use]
89    pub fn p3(&mut self) -> P3W<IferSpec> {
90        P3W::new(self, 3)
91    }
92    #[doc = "Bit 4 - Input Filter Enable"]
93    #[inline(always)]
94    #[must_use]
95    pub fn p4(&mut self) -> P4W<IferSpec> {
96        P4W::new(self, 4)
97    }
98    #[doc = "Bit 5 - Input Filter Enable"]
99    #[inline(always)]
100    #[must_use]
101    pub fn p5(&mut self) -> P5W<IferSpec> {
102        P5W::new(self, 5)
103    }
104    #[doc = "Bit 6 - Input Filter Enable"]
105    #[inline(always)]
106    #[must_use]
107    pub fn p6(&mut self) -> P6W<IferSpec> {
108        P6W::new(self, 6)
109    }
110    #[doc = "Bit 7 - Input Filter Enable"]
111    #[inline(always)]
112    #[must_use]
113    pub fn p7(&mut self) -> P7W<IferSpec> {
114        P7W::new(self, 7)
115    }
116    #[doc = "Bit 8 - Input Filter Enable"]
117    #[inline(always)]
118    #[must_use]
119    pub fn p8(&mut self) -> P8W<IferSpec> {
120        P8W::new(self, 8)
121    }
122    #[doc = "Bit 9 - Input Filter Enable"]
123    #[inline(always)]
124    #[must_use]
125    pub fn p9(&mut self) -> P9W<IferSpec> {
126        P9W::new(self, 9)
127    }
128    #[doc = "Bit 10 - Input Filter Enable"]
129    #[inline(always)]
130    #[must_use]
131    pub fn p10(&mut self) -> P10W<IferSpec> {
132        P10W::new(self, 10)
133    }
134    #[doc = "Bit 11 - Input Filter Enable"]
135    #[inline(always)]
136    #[must_use]
137    pub fn p11(&mut self) -> P11W<IferSpec> {
138        P11W::new(self, 11)
139    }
140    #[doc = "Bit 12 - Input Filter Enable"]
141    #[inline(always)]
142    #[must_use]
143    pub fn p12(&mut self) -> P12W<IferSpec> {
144        P12W::new(self, 12)
145    }
146    #[doc = "Bit 13 - Input Filter Enable"]
147    #[inline(always)]
148    #[must_use]
149    pub fn p13(&mut self) -> P13W<IferSpec> {
150        P13W::new(self, 13)
151    }
152    #[doc = "Bit 14 - Input Filter Enable"]
153    #[inline(always)]
154    #[must_use]
155    pub fn p14(&mut self) -> P14W<IferSpec> {
156        P14W::new(self, 14)
157    }
158    #[doc = "Bit 15 - Input Filter Enable"]
159    #[inline(always)]
160    #[must_use]
161    pub fn p15(&mut self) -> P15W<IferSpec> {
162        P15W::new(self, 15)
163    }
164    #[doc = "Bit 16 - Input Filter Enable"]
165    #[inline(always)]
166    #[must_use]
167    pub fn p16(&mut self) -> P16W<IferSpec> {
168        P16W::new(self, 16)
169    }
170    #[doc = "Bit 17 - Input Filter Enable"]
171    #[inline(always)]
172    #[must_use]
173    pub fn p17(&mut self) -> P17W<IferSpec> {
174        P17W::new(self, 17)
175    }
176    #[doc = "Bit 18 - Input Filter Enable"]
177    #[inline(always)]
178    #[must_use]
179    pub fn p18(&mut self) -> P18W<IferSpec> {
180        P18W::new(self, 18)
181    }
182    #[doc = "Bit 19 - Input Filter Enable"]
183    #[inline(always)]
184    #[must_use]
185    pub fn p19(&mut self) -> P19W<IferSpec> {
186        P19W::new(self, 19)
187    }
188    #[doc = "Bit 20 - Input Filter Enable"]
189    #[inline(always)]
190    #[must_use]
191    pub fn p20(&mut self) -> P20W<IferSpec> {
192        P20W::new(self, 20)
193    }
194    #[doc = "Bit 21 - Input Filter Enable"]
195    #[inline(always)]
196    #[must_use]
197    pub fn p21(&mut self) -> P21W<IferSpec> {
198        P21W::new(self, 21)
199    }
200    #[doc = "Bit 22 - Input Filter Enable"]
201    #[inline(always)]
202    #[must_use]
203    pub fn p22(&mut self) -> P22W<IferSpec> {
204        P22W::new(self, 22)
205    }
206    #[doc = "Bit 23 - Input Filter Enable"]
207    #[inline(always)]
208    #[must_use]
209    pub fn p23(&mut self) -> P23W<IferSpec> {
210        P23W::new(self, 23)
211    }
212    #[doc = "Bit 24 - Input Filter Enable"]
213    #[inline(always)]
214    #[must_use]
215    pub fn p24(&mut self) -> P24W<IferSpec> {
216        P24W::new(self, 24)
217    }
218    #[doc = "Bit 25 - Input Filter Enable"]
219    #[inline(always)]
220    #[must_use]
221    pub fn p25(&mut self) -> P25W<IferSpec> {
222        P25W::new(self, 25)
223    }
224    #[doc = "Bit 26 - Input Filter Enable"]
225    #[inline(always)]
226    #[must_use]
227    pub fn p26(&mut self) -> P26W<IferSpec> {
228        P26W::new(self, 26)
229    }
230    #[doc = "Bit 27 - Input Filter Enable"]
231    #[inline(always)]
232    #[must_use]
233    pub fn p27(&mut self) -> P27W<IferSpec> {
234        P27W::new(self, 27)
235    }
236    #[doc = "Bit 28 - Input Filter Enable"]
237    #[inline(always)]
238    #[must_use]
239    pub fn p28(&mut self) -> P28W<IferSpec> {
240        P28W::new(self, 28)
241    }
242    #[doc = "Bit 29 - Input Filter Enable"]
243    #[inline(always)]
244    #[must_use]
245    pub fn p29(&mut self) -> P29W<IferSpec> {
246        P29W::new(self, 29)
247    }
248    #[doc = "Bit 30 - Input Filter Enable"]
249    #[inline(always)]
250    #[must_use]
251    pub fn p30(&mut self) -> P30W<IferSpec> {
252        P30W::new(self, 30)
253    }
254    #[doc = "Bit 31 - Input Filter Enable"]
255    #[inline(always)]
256    #[must_use]
257    pub fn p31(&mut self) -> P31W<IferSpec> {
258        P31W::new(self, 31)
259    }
260}
261#[doc = "Glitch Input Filter Enable Register\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ifer::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
262pub struct IferSpec;
263impl crate::RegisterSpec for IferSpec {
264    type Ux = u32;
265}
266#[doc = "`write(|w| ..)` method takes [`ifer::W`](W) writer structure"]
267impl crate::Writable for IferSpec {
268    type Safety = crate::Unsafe;
269    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
270    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
271}