atsam3n4a/pioa/
odsr.rs

1#[doc = "Register `ODSR` reader"]
2pub type R = crate::R<OdsrSpec>;
3#[doc = "Register `ODSR` writer"]
4pub type W = crate::W<OdsrSpec>;
5#[doc = "Field `P0` reader - Output Data Status"]
6pub type P0R = crate::BitReader;
7#[doc = "Field `P0` writer - Output Data Status"]
8pub type P0W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `P1` reader - Output Data Status"]
10pub type P1R = crate::BitReader;
11#[doc = "Field `P1` writer - Output Data Status"]
12pub type P1W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `P2` reader - Output Data Status"]
14pub type P2R = crate::BitReader;
15#[doc = "Field `P2` writer - Output Data Status"]
16pub type P2W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `P3` reader - Output Data Status"]
18pub type P3R = crate::BitReader;
19#[doc = "Field `P3` writer - Output Data Status"]
20pub type P3W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `P4` reader - Output Data Status"]
22pub type P4R = crate::BitReader;
23#[doc = "Field `P4` writer - Output Data Status"]
24pub type P4W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `P5` reader - Output Data Status"]
26pub type P5R = crate::BitReader;
27#[doc = "Field `P5` writer - Output Data Status"]
28pub type P5W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `P6` reader - Output Data Status"]
30pub type P6R = crate::BitReader;
31#[doc = "Field `P6` writer - Output Data Status"]
32pub type P6W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `P7` reader - Output Data Status"]
34pub type P7R = crate::BitReader;
35#[doc = "Field `P7` writer - Output Data Status"]
36pub type P7W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `P8` reader - Output Data Status"]
38pub type P8R = crate::BitReader;
39#[doc = "Field `P8` writer - Output Data Status"]
40pub type P8W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `P9` reader - Output Data Status"]
42pub type P9R = crate::BitReader;
43#[doc = "Field `P9` writer - Output Data Status"]
44pub type P9W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `P10` reader - Output Data Status"]
46pub type P10R = crate::BitReader;
47#[doc = "Field `P10` writer - Output Data Status"]
48pub type P10W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `P11` reader - Output Data Status"]
50pub type P11R = crate::BitReader;
51#[doc = "Field `P11` writer - Output Data Status"]
52pub type P11W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `P12` reader - Output Data Status"]
54pub type P12R = crate::BitReader;
55#[doc = "Field `P12` writer - Output Data Status"]
56pub type P12W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `P13` reader - Output Data Status"]
58pub type P13R = crate::BitReader;
59#[doc = "Field `P13` writer - Output Data Status"]
60pub type P13W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `P14` reader - Output Data Status"]
62pub type P14R = crate::BitReader;
63#[doc = "Field `P14` writer - Output Data Status"]
64pub type P14W<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `P15` reader - Output Data Status"]
66pub type P15R = crate::BitReader;
67#[doc = "Field `P15` writer - Output Data Status"]
68pub type P15W<'a, REG> = crate::BitWriter<'a, REG>;
69#[doc = "Field `P16` reader - Output Data Status"]
70pub type P16R = crate::BitReader;
71#[doc = "Field `P16` writer - Output Data Status"]
72pub type P16W<'a, REG> = crate::BitWriter<'a, REG>;
73#[doc = "Field `P17` reader - Output Data Status"]
74pub type P17R = crate::BitReader;
75#[doc = "Field `P17` writer - Output Data Status"]
76pub type P17W<'a, REG> = crate::BitWriter<'a, REG>;
77#[doc = "Field `P18` reader - Output Data Status"]
78pub type P18R = crate::BitReader;
79#[doc = "Field `P18` writer - Output Data Status"]
80pub type P18W<'a, REG> = crate::BitWriter<'a, REG>;
81#[doc = "Field `P19` reader - Output Data Status"]
82pub type P19R = crate::BitReader;
83#[doc = "Field `P19` writer - Output Data Status"]
84pub type P19W<'a, REG> = crate::BitWriter<'a, REG>;
85#[doc = "Field `P20` reader - Output Data Status"]
86pub type P20R = crate::BitReader;
87#[doc = "Field `P20` writer - Output Data Status"]
88pub type P20W<'a, REG> = crate::BitWriter<'a, REG>;
89#[doc = "Field `P21` reader - Output Data Status"]
90pub type P21R = crate::BitReader;
91#[doc = "Field `P21` writer - Output Data Status"]
92pub type P21W<'a, REG> = crate::BitWriter<'a, REG>;
93#[doc = "Field `P22` reader - Output Data Status"]
94pub type P22R = crate::BitReader;
95#[doc = "Field `P22` writer - Output Data Status"]
96pub type P22W<'a, REG> = crate::BitWriter<'a, REG>;
97#[doc = "Field `P23` reader - Output Data Status"]
98pub type P23R = crate::BitReader;
99#[doc = "Field `P23` writer - Output Data Status"]
100pub type P23W<'a, REG> = crate::BitWriter<'a, REG>;
101#[doc = "Field `P24` reader - Output Data Status"]
102pub type P24R = crate::BitReader;
103#[doc = "Field `P24` writer - Output Data Status"]
104pub type P24W<'a, REG> = crate::BitWriter<'a, REG>;
105#[doc = "Field `P25` reader - Output Data Status"]
106pub type P25R = crate::BitReader;
107#[doc = "Field `P25` writer - Output Data Status"]
108pub type P25W<'a, REG> = crate::BitWriter<'a, REG>;
109#[doc = "Field `P26` reader - Output Data Status"]
110pub type P26R = crate::BitReader;
111#[doc = "Field `P26` writer - Output Data Status"]
112pub type P26W<'a, REG> = crate::BitWriter<'a, REG>;
113#[doc = "Field `P27` reader - Output Data Status"]
114pub type P27R = crate::BitReader;
115#[doc = "Field `P27` writer - Output Data Status"]
116pub type P27W<'a, REG> = crate::BitWriter<'a, REG>;
117#[doc = "Field `P28` reader - Output Data Status"]
118pub type P28R = crate::BitReader;
119#[doc = "Field `P28` writer - Output Data Status"]
120pub type P28W<'a, REG> = crate::BitWriter<'a, REG>;
121#[doc = "Field `P29` reader - Output Data Status"]
122pub type P29R = crate::BitReader;
123#[doc = "Field `P29` writer - Output Data Status"]
124pub type P29W<'a, REG> = crate::BitWriter<'a, REG>;
125#[doc = "Field `P30` reader - Output Data Status"]
126pub type P30R = crate::BitReader;
127#[doc = "Field `P30` writer - Output Data Status"]
128pub type P30W<'a, REG> = crate::BitWriter<'a, REG>;
129#[doc = "Field `P31` reader - Output Data Status"]
130pub type P31R = crate::BitReader;
131#[doc = "Field `P31` writer - Output Data Status"]
132pub type P31W<'a, REG> = crate::BitWriter<'a, REG>;
133impl R {
134    #[doc = "Bit 0 - Output Data Status"]
135    #[inline(always)]
136    pub fn p0(&self) -> P0R {
137        P0R::new((self.bits & 1) != 0)
138    }
139    #[doc = "Bit 1 - Output Data Status"]
140    #[inline(always)]
141    pub fn p1(&self) -> P1R {
142        P1R::new(((self.bits >> 1) & 1) != 0)
143    }
144    #[doc = "Bit 2 - Output Data Status"]
145    #[inline(always)]
146    pub fn p2(&self) -> P2R {
147        P2R::new(((self.bits >> 2) & 1) != 0)
148    }
149    #[doc = "Bit 3 - Output Data Status"]
150    #[inline(always)]
151    pub fn p3(&self) -> P3R {
152        P3R::new(((self.bits >> 3) & 1) != 0)
153    }
154    #[doc = "Bit 4 - Output Data Status"]
155    #[inline(always)]
156    pub fn p4(&self) -> P4R {
157        P4R::new(((self.bits >> 4) & 1) != 0)
158    }
159    #[doc = "Bit 5 - Output Data Status"]
160    #[inline(always)]
161    pub fn p5(&self) -> P5R {
162        P5R::new(((self.bits >> 5) & 1) != 0)
163    }
164    #[doc = "Bit 6 - Output Data Status"]
165    #[inline(always)]
166    pub fn p6(&self) -> P6R {
167        P6R::new(((self.bits >> 6) & 1) != 0)
168    }
169    #[doc = "Bit 7 - Output Data Status"]
170    #[inline(always)]
171    pub fn p7(&self) -> P7R {
172        P7R::new(((self.bits >> 7) & 1) != 0)
173    }
174    #[doc = "Bit 8 - Output Data Status"]
175    #[inline(always)]
176    pub fn p8(&self) -> P8R {
177        P8R::new(((self.bits >> 8) & 1) != 0)
178    }
179    #[doc = "Bit 9 - Output Data Status"]
180    #[inline(always)]
181    pub fn p9(&self) -> P9R {
182        P9R::new(((self.bits >> 9) & 1) != 0)
183    }
184    #[doc = "Bit 10 - Output Data Status"]
185    #[inline(always)]
186    pub fn p10(&self) -> P10R {
187        P10R::new(((self.bits >> 10) & 1) != 0)
188    }
189    #[doc = "Bit 11 - Output Data Status"]
190    #[inline(always)]
191    pub fn p11(&self) -> P11R {
192        P11R::new(((self.bits >> 11) & 1) != 0)
193    }
194    #[doc = "Bit 12 - Output Data Status"]
195    #[inline(always)]
196    pub fn p12(&self) -> P12R {
197        P12R::new(((self.bits >> 12) & 1) != 0)
198    }
199    #[doc = "Bit 13 - Output Data Status"]
200    #[inline(always)]
201    pub fn p13(&self) -> P13R {
202        P13R::new(((self.bits >> 13) & 1) != 0)
203    }
204    #[doc = "Bit 14 - Output Data Status"]
205    #[inline(always)]
206    pub fn p14(&self) -> P14R {
207        P14R::new(((self.bits >> 14) & 1) != 0)
208    }
209    #[doc = "Bit 15 - Output Data Status"]
210    #[inline(always)]
211    pub fn p15(&self) -> P15R {
212        P15R::new(((self.bits >> 15) & 1) != 0)
213    }
214    #[doc = "Bit 16 - Output Data Status"]
215    #[inline(always)]
216    pub fn p16(&self) -> P16R {
217        P16R::new(((self.bits >> 16) & 1) != 0)
218    }
219    #[doc = "Bit 17 - Output Data Status"]
220    #[inline(always)]
221    pub fn p17(&self) -> P17R {
222        P17R::new(((self.bits >> 17) & 1) != 0)
223    }
224    #[doc = "Bit 18 - Output Data Status"]
225    #[inline(always)]
226    pub fn p18(&self) -> P18R {
227        P18R::new(((self.bits >> 18) & 1) != 0)
228    }
229    #[doc = "Bit 19 - Output Data Status"]
230    #[inline(always)]
231    pub fn p19(&self) -> P19R {
232        P19R::new(((self.bits >> 19) & 1) != 0)
233    }
234    #[doc = "Bit 20 - Output Data Status"]
235    #[inline(always)]
236    pub fn p20(&self) -> P20R {
237        P20R::new(((self.bits >> 20) & 1) != 0)
238    }
239    #[doc = "Bit 21 - Output Data Status"]
240    #[inline(always)]
241    pub fn p21(&self) -> P21R {
242        P21R::new(((self.bits >> 21) & 1) != 0)
243    }
244    #[doc = "Bit 22 - Output Data Status"]
245    #[inline(always)]
246    pub fn p22(&self) -> P22R {
247        P22R::new(((self.bits >> 22) & 1) != 0)
248    }
249    #[doc = "Bit 23 - Output Data Status"]
250    #[inline(always)]
251    pub fn p23(&self) -> P23R {
252        P23R::new(((self.bits >> 23) & 1) != 0)
253    }
254    #[doc = "Bit 24 - Output Data Status"]
255    #[inline(always)]
256    pub fn p24(&self) -> P24R {
257        P24R::new(((self.bits >> 24) & 1) != 0)
258    }
259    #[doc = "Bit 25 - Output Data Status"]
260    #[inline(always)]
261    pub fn p25(&self) -> P25R {
262        P25R::new(((self.bits >> 25) & 1) != 0)
263    }
264    #[doc = "Bit 26 - Output Data Status"]
265    #[inline(always)]
266    pub fn p26(&self) -> P26R {
267        P26R::new(((self.bits >> 26) & 1) != 0)
268    }
269    #[doc = "Bit 27 - Output Data Status"]
270    #[inline(always)]
271    pub fn p27(&self) -> P27R {
272        P27R::new(((self.bits >> 27) & 1) != 0)
273    }
274    #[doc = "Bit 28 - Output Data Status"]
275    #[inline(always)]
276    pub fn p28(&self) -> P28R {
277        P28R::new(((self.bits >> 28) & 1) != 0)
278    }
279    #[doc = "Bit 29 - Output Data Status"]
280    #[inline(always)]
281    pub fn p29(&self) -> P29R {
282        P29R::new(((self.bits >> 29) & 1) != 0)
283    }
284    #[doc = "Bit 30 - Output Data Status"]
285    #[inline(always)]
286    pub fn p30(&self) -> P30R {
287        P30R::new(((self.bits >> 30) & 1) != 0)
288    }
289    #[doc = "Bit 31 - Output Data Status"]
290    #[inline(always)]
291    pub fn p31(&self) -> P31R {
292        P31R::new(((self.bits >> 31) & 1) != 0)
293    }
294}
295impl W {
296    #[doc = "Bit 0 - Output Data Status"]
297    #[inline(always)]
298    #[must_use]
299    pub fn p0(&mut self) -> P0W<OdsrSpec> {
300        P0W::new(self, 0)
301    }
302    #[doc = "Bit 1 - Output Data Status"]
303    #[inline(always)]
304    #[must_use]
305    pub fn p1(&mut self) -> P1W<OdsrSpec> {
306        P1W::new(self, 1)
307    }
308    #[doc = "Bit 2 - Output Data Status"]
309    #[inline(always)]
310    #[must_use]
311    pub fn p2(&mut self) -> P2W<OdsrSpec> {
312        P2W::new(self, 2)
313    }
314    #[doc = "Bit 3 - Output Data Status"]
315    #[inline(always)]
316    #[must_use]
317    pub fn p3(&mut self) -> P3W<OdsrSpec> {
318        P3W::new(self, 3)
319    }
320    #[doc = "Bit 4 - Output Data Status"]
321    #[inline(always)]
322    #[must_use]
323    pub fn p4(&mut self) -> P4W<OdsrSpec> {
324        P4W::new(self, 4)
325    }
326    #[doc = "Bit 5 - Output Data Status"]
327    #[inline(always)]
328    #[must_use]
329    pub fn p5(&mut self) -> P5W<OdsrSpec> {
330        P5W::new(self, 5)
331    }
332    #[doc = "Bit 6 - Output Data Status"]
333    #[inline(always)]
334    #[must_use]
335    pub fn p6(&mut self) -> P6W<OdsrSpec> {
336        P6W::new(self, 6)
337    }
338    #[doc = "Bit 7 - Output Data Status"]
339    #[inline(always)]
340    #[must_use]
341    pub fn p7(&mut self) -> P7W<OdsrSpec> {
342        P7W::new(self, 7)
343    }
344    #[doc = "Bit 8 - Output Data Status"]
345    #[inline(always)]
346    #[must_use]
347    pub fn p8(&mut self) -> P8W<OdsrSpec> {
348        P8W::new(self, 8)
349    }
350    #[doc = "Bit 9 - Output Data Status"]
351    #[inline(always)]
352    #[must_use]
353    pub fn p9(&mut self) -> P9W<OdsrSpec> {
354        P9W::new(self, 9)
355    }
356    #[doc = "Bit 10 - Output Data Status"]
357    #[inline(always)]
358    #[must_use]
359    pub fn p10(&mut self) -> P10W<OdsrSpec> {
360        P10W::new(self, 10)
361    }
362    #[doc = "Bit 11 - Output Data Status"]
363    #[inline(always)]
364    #[must_use]
365    pub fn p11(&mut self) -> P11W<OdsrSpec> {
366        P11W::new(self, 11)
367    }
368    #[doc = "Bit 12 - Output Data Status"]
369    #[inline(always)]
370    #[must_use]
371    pub fn p12(&mut self) -> P12W<OdsrSpec> {
372        P12W::new(self, 12)
373    }
374    #[doc = "Bit 13 - Output Data Status"]
375    #[inline(always)]
376    #[must_use]
377    pub fn p13(&mut self) -> P13W<OdsrSpec> {
378        P13W::new(self, 13)
379    }
380    #[doc = "Bit 14 - Output Data Status"]
381    #[inline(always)]
382    #[must_use]
383    pub fn p14(&mut self) -> P14W<OdsrSpec> {
384        P14W::new(self, 14)
385    }
386    #[doc = "Bit 15 - Output Data Status"]
387    #[inline(always)]
388    #[must_use]
389    pub fn p15(&mut self) -> P15W<OdsrSpec> {
390        P15W::new(self, 15)
391    }
392    #[doc = "Bit 16 - Output Data Status"]
393    #[inline(always)]
394    #[must_use]
395    pub fn p16(&mut self) -> P16W<OdsrSpec> {
396        P16W::new(self, 16)
397    }
398    #[doc = "Bit 17 - Output Data Status"]
399    #[inline(always)]
400    #[must_use]
401    pub fn p17(&mut self) -> P17W<OdsrSpec> {
402        P17W::new(self, 17)
403    }
404    #[doc = "Bit 18 - Output Data Status"]
405    #[inline(always)]
406    #[must_use]
407    pub fn p18(&mut self) -> P18W<OdsrSpec> {
408        P18W::new(self, 18)
409    }
410    #[doc = "Bit 19 - Output Data Status"]
411    #[inline(always)]
412    #[must_use]
413    pub fn p19(&mut self) -> P19W<OdsrSpec> {
414        P19W::new(self, 19)
415    }
416    #[doc = "Bit 20 - Output Data Status"]
417    #[inline(always)]
418    #[must_use]
419    pub fn p20(&mut self) -> P20W<OdsrSpec> {
420        P20W::new(self, 20)
421    }
422    #[doc = "Bit 21 - Output Data Status"]
423    #[inline(always)]
424    #[must_use]
425    pub fn p21(&mut self) -> P21W<OdsrSpec> {
426        P21W::new(self, 21)
427    }
428    #[doc = "Bit 22 - Output Data Status"]
429    #[inline(always)]
430    #[must_use]
431    pub fn p22(&mut self) -> P22W<OdsrSpec> {
432        P22W::new(self, 22)
433    }
434    #[doc = "Bit 23 - Output Data Status"]
435    #[inline(always)]
436    #[must_use]
437    pub fn p23(&mut self) -> P23W<OdsrSpec> {
438        P23W::new(self, 23)
439    }
440    #[doc = "Bit 24 - Output Data Status"]
441    #[inline(always)]
442    #[must_use]
443    pub fn p24(&mut self) -> P24W<OdsrSpec> {
444        P24W::new(self, 24)
445    }
446    #[doc = "Bit 25 - Output Data Status"]
447    #[inline(always)]
448    #[must_use]
449    pub fn p25(&mut self) -> P25W<OdsrSpec> {
450        P25W::new(self, 25)
451    }
452    #[doc = "Bit 26 - Output Data Status"]
453    #[inline(always)]
454    #[must_use]
455    pub fn p26(&mut self) -> P26W<OdsrSpec> {
456        P26W::new(self, 26)
457    }
458    #[doc = "Bit 27 - Output Data Status"]
459    #[inline(always)]
460    #[must_use]
461    pub fn p27(&mut self) -> P27W<OdsrSpec> {
462        P27W::new(self, 27)
463    }
464    #[doc = "Bit 28 - Output Data Status"]
465    #[inline(always)]
466    #[must_use]
467    pub fn p28(&mut self) -> P28W<OdsrSpec> {
468        P28W::new(self, 28)
469    }
470    #[doc = "Bit 29 - Output Data Status"]
471    #[inline(always)]
472    #[must_use]
473    pub fn p29(&mut self) -> P29W<OdsrSpec> {
474        P29W::new(self, 29)
475    }
476    #[doc = "Bit 30 - Output Data Status"]
477    #[inline(always)]
478    #[must_use]
479    pub fn p30(&mut self) -> P30W<OdsrSpec> {
480        P30W::new(self, 30)
481    }
482    #[doc = "Bit 31 - Output Data Status"]
483    #[inline(always)]
484    #[must_use]
485    pub fn p31(&mut self) -> P31W<OdsrSpec> {
486        P31W::new(self, 31)
487    }
488}
489#[doc = "Output Data Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`odsr::R`](R).  You can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`odsr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
490pub struct OdsrSpec;
491impl crate::RegisterSpec for OdsrSpec {
492    type Ux = u32;
493}
494#[doc = "`read()` method returns [`odsr::R`](R) reader structure"]
495impl crate::Readable for OdsrSpec {}
496#[doc = "`write(|w| ..)` method takes [`odsr::W`](W) writer structure"]
497impl crate::Writable for OdsrSpec {
498    type Safety = crate::Unsafe;
499    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
500    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
501}