atsame54p/can0/
ndat1.rs

1#[doc = "Register `NDAT1` reader"]
2pub type R = crate::R<Ndat1Spec>;
3#[doc = "Register `NDAT1` writer"]
4pub type W = crate::W<Ndat1Spec>;
5#[doc = "Field `ND0` reader - New Data 0"]
6pub type Nd0R = crate::BitReader;
7#[doc = "Field `ND0` writer - New Data 0"]
8pub type Nd0W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `ND1` reader - New Data 1"]
10pub type Nd1R = crate::BitReader;
11#[doc = "Field `ND1` writer - New Data 1"]
12pub type Nd1W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `ND2` reader - New Data 2"]
14pub type Nd2R = crate::BitReader;
15#[doc = "Field `ND2` writer - New Data 2"]
16pub type Nd2W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `ND3` reader - New Data 3"]
18pub type Nd3R = crate::BitReader;
19#[doc = "Field `ND3` writer - New Data 3"]
20pub type Nd3W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `ND4` reader - New Data 4"]
22pub type Nd4R = crate::BitReader;
23#[doc = "Field `ND4` writer - New Data 4"]
24pub type Nd4W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `ND5` reader - New Data 5"]
26pub type Nd5R = crate::BitReader;
27#[doc = "Field `ND5` writer - New Data 5"]
28pub type Nd5W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `ND6` reader - New Data 6"]
30pub type Nd6R = crate::BitReader;
31#[doc = "Field `ND6` writer - New Data 6"]
32pub type Nd6W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `ND7` reader - New Data 7"]
34pub type Nd7R = crate::BitReader;
35#[doc = "Field `ND7` writer - New Data 7"]
36pub type Nd7W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `ND8` reader - New Data 8"]
38pub type Nd8R = crate::BitReader;
39#[doc = "Field `ND8` writer - New Data 8"]
40pub type Nd8W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `ND9` reader - New Data 9"]
42pub type Nd9R = crate::BitReader;
43#[doc = "Field `ND9` writer - New Data 9"]
44pub type Nd9W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `ND10` reader - New Data 10"]
46pub type Nd10R = crate::BitReader;
47#[doc = "Field `ND10` writer - New Data 10"]
48pub type Nd10W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `ND11` reader - New Data 11"]
50pub type Nd11R = crate::BitReader;
51#[doc = "Field `ND11` writer - New Data 11"]
52pub type Nd11W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `ND12` reader - New Data 12"]
54pub type Nd12R = crate::BitReader;
55#[doc = "Field `ND12` writer - New Data 12"]
56pub type Nd12W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `ND13` reader - New Data 13"]
58pub type Nd13R = crate::BitReader;
59#[doc = "Field `ND13` writer - New Data 13"]
60pub type Nd13W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `ND14` reader - New Data 14"]
62pub type Nd14R = crate::BitReader;
63#[doc = "Field `ND14` writer - New Data 14"]
64pub type Nd14W<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `ND15` reader - New Data 15"]
66pub type Nd15R = crate::BitReader;
67#[doc = "Field `ND15` writer - New Data 15"]
68pub type Nd15W<'a, REG> = crate::BitWriter<'a, REG>;
69#[doc = "Field `ND16` reader - New Data 16"]
70pub type Nd16R = crate::BitReader;
71#[doc = "Field `ND16` writer - New Data 16"]
72pub type Nd16W<'a, REG> = crate::BitWriter<'a, REG>;
73#[doc = "Field `ND17` reader - New Data 17"]
74pub type Nd17R = crate::BitReader;
75#[doc = "Field `ND17` writer - New Data 17"]
76pub type Nd17W<'a, REG> = crate::BitWriter<'a, REG>;
77#[doc = "Field `ND18` reader - New Data 18"]
78pub type Nd18R = crate::BitReader;
79#[doc = "Field `ND18` writer - New Data 18"]
80pub type Nd18W<'a, REG> = crate::BitWriter<'a, REG>;
81#[doc = "Field `ND19` reader - New Data 19"]
82pub type Nd19R = crate::BitReader;
83#[doc = "Field `ND19` writer - New Data 19"]
84pub type Nd19W<'a, REG> = crate::BitWriter<'a, REG>;
85#[doc = "Field `ND20` reader - New Data 20"]
86pub type Nd20R = crate::BitReader;
87#[doc = "Field `ND20` writer - New Data 20"]
88pub type Nd20W<'a, REG> = crate::BitWriter<'a, REG>;
89#[doc = "Field `ND21` reader - New Data 21"]
90pub type Nd21R = crate::BitReader;
91#[doc = "Field `ND21` writer - New Data 21"]
92pub type Nd21W<'a, REG> = crate::BitWriter<'a, REG>;
93#[doc = "Field `ND22` reader - New Data 22"]
94pub type Nd22R = crate::BitReader;
95#[doc = "Field `ND22` writer - New Data 22"]
96pub type Nd22W<'a, REG> = crate::BitWriter<'a, REG>;
97#[doc = "Field `ND23` reader - New Data 23"]
98pub type Nd23R = crate::BitReader;
99#[doc = "Field `ND23` writer - New Data 23"]
100pub type Nd23W<'a, REG> = crate::BitWriter<'a, REG>;
101#[doc = "Field `ND24` reader - New Data 24"]
102pub type Nd24R = crate::BitReader;
103#[doc = "Field `ND24` writer - New Data 24"]
104pub type Nd24W<'a, REG> = crate::BitWriter<'a, REG>;
105#[doc = "Field `ND25` reader - New Data 25"]
106pub type Nd25R = crate::BitReader;
107#[doc = "Field `ND25` writer - New Data 25"]
108pub type Nd25W<'a, REG> = crate::BitWriter<'a, REG>;
109#[doc = "Field `ND26` reader - New Data 26"]
110pub type Nd26R = crate::BitReader;
111#[doc = "Field `ND26` writer - New Data 26"]
112pub type Nd26W<'a, REG> = crate::BitWriter<'a, REG>;
113#[doc = "Field `ND27` reader - New Data 27"]
114pub type Nd27R = crate::BitReader;
115#[doc = "Field `ND27` writer - New Data 27"]
116pub type Nd27W<'a, REG> = crate::BitWriter<'a, REG>;
117#[doc = "Field `ND28` reader - New Data 28"]
118pub type Nd28R = crate::BitReader;
119#[doc = "Field `ND28` writer - New Data 28"]
120pub type Nd28W<'a, REG> = crate::BitWriter<'a, REG>;
121#[doc = "Field `ND29` reader - New Data 29"]
122pub type Nd29R = crate::BitReader;
123#[doc = "Field `ND29` writer - New Data 29"]
124pub type Nd29W<'a, REG> = crate::BitWriter<'a, REG>;
125#[doc = "Field `ND30` reader - New Data 30"]
126pub type Nd30R = crate::BitReader;
127#[doc = "Field `ND30` writer - New Data 30"]
128pub type Nd30W<'a, REG> = crate::BitWriter<'a, REG>;
129#[doc = "Field `ND31` reader - New Data 31"]
130pub type Nd31R = crate::BitReader;
131#[doc = "Field `ND31` writer - New Data 31"]
132pub type Nd31W<'a, REG> = crate::BitWriter<'a, REG>;
133impl R {
134    #[doc = "Bit 0 - New Data 0"]
135    #[inline(always)]
136    pub fn nd0(&self) -> Nd0R {
137        Nd0R::new((self.bits & 1) != 0)
138    }
139    #[doc = "Bit 1 - New Data 1"]
140    #[inline(always)]
141    pub fn nd1(&self) -> Nd1R {
142        Nd1R::new(((self.bits >> 1) & 1) != 0)
143    }
144    #[doc = "Bit 2 - New Data 2"]
145    #[inline(always)]
146    pub fn nd2(&self) -> Nd2R {
147        Nd2R::new(((self.bits >> 2) & 1) != 0)
148    }
149    #[doc = "Bit 3 - New Data 3"]
150    #[inline(always)]
151    pub fn nd3(&self) -> Nd3R {
152        Nd3R::new(((self.bits >> 3) & 1) != 0)
153    }
154    #[doc = "Bit 4 - New Data 4"]
155    #[inline(always)]
156    pub fn nd4(&self) -> Nd4R {
157        Nd4R::new(((self.bits >> 4) & 1) != 0)
158    }
159    #[doc = "Bit 5 - New Data 5"]
160    #[inline(always)]
161    pub fn nd5(&self) -> Nd5R {
162        Nd5R::new(((self.bits >> 5) & 1) != 0)
163    }
164    #[doc = "Bit 6 - New Data 6"]
165    #[inline(always)]
166    pub fn nd6(&self) -> Nd6R {
167        Nd6R::new(((self.bits >> 6) & 1) != 0)
168    }
169    #[doc = "Bit 7 - New Data 7"]
170    #[inline(always)]
171    pub fn nd7(&self) -> Nd7R {
172        Nd7R::new(((self.bits >> 7) & 1) != 0)
173    }
174    #[doc = "Bit 8 - New Data 8"]
175    #[inline(always)]
176    pub fn nd8(&self) -> Nd8R {
177        Nd8R::new(((self.bits >> 8) & 1) != 0)
178    }
179    #[doc = "Bit 9 - New Data 9"]
180    #[inline(always)]
181    pub fn nd9(&self) -> Nd9R {
182        Nd9R::new(((self.bits >> 9) & 1) != 0)
183    }
184    #[doc = "Bit 10 - New Data 10"]
185    #[inline(always)]
186    pub fn nd10(&self) -> Nd10R {
187        Nd10R::new(((self.bits >> 10) & 1) != 0)
188    }
189    #[doc = "Bit 11 - New Data 11"]
190    #[inline(always)]
191    pub fn nd11(&self) -> Nd11R {
192        Nd11R::new(((self.bits >> 11) & 1) != 0)
193    }
194    #[doc = "Bit 12 - New Data 12"]
195    #[inline(always)]
196    pub fn nd12(&self) -> Nd12R {
197        Nd12R::new(((self.bits >> 12) & 1) != 0)
198    }
199    #[doc = "Bit 13 - New Data 13"]
200    #[inline(always)]
201    pub fn nd13(&self) -> Nd13R {
202        Nd13R::new(((self.bits >> 13) & 1) != 0)
203    }
204    #[doc = "Bit 14 - New Data 14"]
205    #[inline(always)]
206    pub fn nd14(&self) -> Nd14R {
207        Nd14R::new(((self.bits >> 14) & 1) != 0)
208    }
209    #[doc = "Bit 15 - New Data 15"]
210    #[inline(always)]
211    pub fn nd15(&self) -> Nd15R {
212        Nd15R::new(((self.bits >> 15) & 1) != 0)
213    }
214    #[doc = "Bit 16 - New Data 16"]
215    #[inline(always)]
216    pub fn nd16(&self) -> Nd16R {
217        Nd16R::new(((self.bits >> 16) & 1) != 0)
218    }
219    #[doc = "Bit 17 - New Data 17"]
220    #[inline(always)]
221    pub fn nd17(&self) -> Nd17R {
222        Nd17R::new(((self.bits >> 17) & 1) != 0)
223    }
224    #[doc = "Bit 18 - New Data 18"]
225    #[inline(always)]
226    pub fn nd18(&self) -> Nd18R {
227        Nd18R::new(((self.bits >> 18) & 1) != 0)
228    }
229    #[doc = "Bit 19 - New Data 19"]
230    #[inline(always)]
231    pub fn nd19(&self) -> Nd19R {
232        Nd19R::new(((self.bits >> 19) & 1) != 0)
233    }
234    #[doc = "Bit 20 - New Data 20"]
235    #[inline(always)]
236    pub fn nd20(&self) -> Nd20R {
237        Nd20R::new(((self.bits >> 20) & 1) != 0)
238    }
239    #[doc = "Bit 21 - New Data 21"]
240    #[inline(always)]
241    pub fn nd21(&self) -> Nd21R {
242        Nd21R::new(((self.bits >> 21) & 1) != 0)
243    }
244    #[doc = "Bit 22 - New Data 22"]
245    #[inline(always)]
246    pub fn nd22(&self) -> Nd22R {
247        Nd22R::new(((self.bits >> 22) & 1) != 0)
248    }
249    #[doc = "Bit 23 - New Data 23"]
250    #[inline(always)]
251    pub fn nd23(&self) -> Nd23R {
252        Nd23R::new(((self.bits >> 23) & 1) != 0)
253    }
254    #[doc = "Bit 24 - New Data 24"]
255    #[inline(always)]
256    pub fn nd24(&self) -> Nd24R {
257        Nd24R::new(((self.bits >> 24) & 1) != 0)
258    }
259    #[doc = "Bit 25 - New Data 25"]
260    #[inline(always)]
261    pub fn nd25(&self) -> Nd25R {
262        Nd25R::new(((self.bits >> 25) & 1) != 0)
263    }
264    #[doc = "Bit 26 - New Data 26"]
265    #[inline(always)]
266    pub fn nd26(&self) -> Nd26R {
267        Nd26R::new(((self.bits >> 26) & 1) != 0)
268    }
269    #[doc = "Bit 27 - New Data 27"]
270    #[inline(always)]
271    pub fn nd27(&self) -> Nd27R {
272        Nd27R::new(((self.bits >> 27) & 1) != 0)
273    }
274    #[doc = "Bit 28 - New Data 28"]
275    #[inline(always)]
276    pub fn nd28(&self) -> Nd28R {
277        Nd28R::new(((self.bits >> 28) & 1) != 0)
278    }
279    #[doc = "Bit 29 - New Data 29"]
280    #[inline(always)]
281    pub fn nd29(&self) -> Nd29R {
282        Nd29R::new(((self.bits >> 29) & 1) != 0)
283    }
284    #[doc = "Bit 30 - New Data 30"]
285    #[inline(always)]
286    pub fn nd30(&self) -> Nd30R {
287        Nd30R::new(((self.bits >> 30) & 1) != 0)
288    }
289    #[doc = "Bit 31 - New Data 31"]
290    #[inline(always)]
291    pub fn nd31(&self) -> Nd31R {
292        Nd31R::new(((self.bits >> 31) & 1) != 0)
293    }
294}
295impl W {
296    #[doc = "Bit 0 - New Data 0"]
297    #[inline(always)]
298    #[must_use]
299    pub fn nd0(&mut self) -> Nd0W<Ndat1Spec> {
300        Nd0W::new(self, 0)
301    }
302    #[doc = "Bit 1 - New Data 1"]
303    #[inline(always)]
304    #[must_use]
305    pub fn nd1(&mut self) -> Nd1W<Ndat1Spec> {
306        Nd1W::new(self, 1)
307    }
308    #[doc = "Bit 2 - New Data 2"]
309    #[inline(always)]
310    #[must_use]
311    pub fn nd2(&mut self) -> Nd2W<Ndat1Spec> {
312        Nd2W::new(self, 2)
313    }
314    #[doc = "Bit 3 - New Data 3"]
315    #[inline(always)]
316    #[must_use]
317    pub fn nd3(&mut self) -> Nd3W<Ndat1Spec> {
318        Nd3W::new(self, 3)
319    }
320    #[doc = "Bit 4 - New Data 4"]
321    #[inline(always)]
322    #[must_use]
323    pub fn nd4(&mut self) -> Nd4W<Ndat1Spec> {
324        Nd4W::new(self, 4)
325    }
326    #[doc = "Bit 5 - New Data 5"]
327    #[inline(always)]
328    #[must_use]
329    pub fn nd5(&mut self) -> Nd5W<Ndat1Spec> {
330        Nd5W::new(self, 5)
331    }
332    #[doc = "Bit 6 - New Data 6"]
333    #[inline(always)]
334    #[must_use]
335    pub fn nd6(&mut self) -> Nd6W<Ndat1Spec> {
336        Nd6W::new(self, 6)
337    }
338    #[doc = "Bit 7 - New Data 7"]
339    #[inline(always)]
340    #[must_use]
341    pub fn nd7(&mut self) -> Nd7W<Ndat1Spec> {
342        Nd7W::new(self, 7)
343    }
344    #[doc = "Bit 8 - New Data 8"]
345    #[inline(always)]
346    #[must_use]
347    pub fn nd8(&mut self) -> Nd8W<Ndat1Spec> {
348        Nd8W::new(self, 8)
349    }
350    #[doc = "Bit 9 - New Data 9"]
351    #[inline(always)]
352    #[must_use]
353    pub fn nd9(&mut self) -> Nd9W<Ndat1Spec> {
354        Nd9W::new(self, 9)
355    }
356    #[doc = "Bit 10 - New Data 10"]
357    #[inline(always)]
358    #[must_use]
359    pub fn nd10(&mut self) -> Nd10W<Ndat1Spec> {
360        Nd10W::new(self, 10)
361    }
362    #[doc = "Bit 11 - New Data 11"]
363    #[inline(always)]
364    #[must_use]
365    pub fn nd11(&mut self) -> Nd11W<Ndat1Spec> {
366        Nd11W::new(self, 11)
367    }
368    #[doc = "Bit 12 - New Data 12"]
369    #[inline(always)]
370    #[must_use]
371    pub fn nd12(&mut self) -> Nd12W<Ndat1Spec> {
372        Nd12W::new(self, 12)
373    }
374    #[doc = "Bit 13 - New Data 13"]
375    #[inline(always)]
376    #[must_use]
377    pub fn nd13(&mut self) -> Nd13W<Ndat1Spec> {
378        Nd13W::new(self, 13)
379    }
380    #[doc = "Bit 14 - New Data 14"]
381    #[inline(always)]
382    #[must_use]
383    pub fn nd14(&mut self) -> Nd14W<Ndat1Spec> {
384        Nd14W::new(self, 14)
385    }
386    #[doc = "Bit 15 - New Data 15"]
387    #[inline(always)]
388    #[must_use]
389    pub fn nd15(&mut self) -> Nd15W<Ndat1Spec> {
390        Nd15W::new(self, 15)
391    }
392    #[doc = "Bit 16 - New Data 16"]
393    #[inline(always)]
394    #[must_use]
395    pub fn nd16(&mut self) -> Nd16W<Ndat1Spec> {
396        Nd16W::new(self, 16)
397    }
398    #[doc = "Bit 17 - New Data 17"]
399    #[inline(always)]
400    #[must_use]
401    pub fn nd17(&mut self) -> Nd17W<Ndat1Spec> {
402        Nd17W::new(self, 17)
403    }
404    #[doc = "Bit 18 - New Data 18"]
405    #[inline(always)]
406    #[must_use]
407    pub fn nd18(&mut self) -> Nd18W<Ndat1Spec> {
408        Nd18W::new(self, 18)
409    }
410    #[doc = "Bit 19 - New Data 19"]
411    #[inline(always)]
412    #[must_use]
413    pub fn nd19(&mut self) -> Nd19W<Ndat1Spec> {
414        Nd19W::new(self, 19)
415    }
416    #[doc = "Bit 20 - New Data 20"]
417    #[inline(always)]
418    #[must_use]
419    pub fn nd20(&mut self) -> Nd20W<Ndat1Spec> {
420        Nd20W::new(self, 20)
421    }
422    #[doc = "Bit 21 - New Data 21"]
423    #[inline(always)]
424    #[must_use]
425    pub fn nd21(&mut self) -> Nd21W<Ndat1Spec> {
426        Nd21W::new(self, 21)
427    }
428    #[doc = "Bit 22 - New Data 22"]
429    #[inline(always)]
430    #[must_use]
431    pub fn nd22(&mut self) -> Nd22W<Ndat1Spec> {
432        Nd22W::new(self, 22)
433    }
434    #[doc = "Bit 23 - New Data 23"]
435    #[inline(always)]
436    #[must_use]
437    pub fn nd23(&mut self) -> Nd23W<Ndat1Spec> {
438        Nd23W::new(self, 23)
439    }
440    #[doc = "Bit 24 - New Data 24"]
441    #[inline(always)]
442    #[must_use]
443    pub fn nd24(&mut self) -> Nd24W<Ndat1Spec> {
444        Nd24W::new(self, 24)
445    }
446    #[doc = "Bit 25 - New Data 25"]
447    #[inline(always)]
448    #[must_use]
449    pub fn nd25(&mut self) -> Nd25W<Ndat1Spec> {
450        Nd25W::new(self, 25)
451    }
452    #[doc = "Bit 26 - New Data 26"]
453    #[inline(always)]
454    #[must_use]
455    pub fn nd26(&mut self) -> Nd26W<Ndat1Spec> {
456        Nd26W::new(self, 26)
457    }
458    #[doc = "Bit 27 - New Data 27"]
459    #[inline(always)]
460    #[must_use]
461    pub fn nd27(&mut self) -> Nd27W<Ndat1Spec> {
462        Nd27W::new(self, 27)
463    }
464    #[doc = "Bit 28 - New Data 28"]
465    #[inline(always)]
466    #[must_use]
467    pub fn nd28(&mut self) -> Nd28W<Ndat1Spec> {
468        Nd28W::new(self, 28)
469    }
470    #[doc = "Bit 29 - New Data 29"]
471    #[inline(always)]
472    #[must_use]
473    pub fn nd29(&mut self) -> Nd29W<Ndat1Spec> {
474        Nd29W::new(self, 29)
475    }
476    #[doc = "Bit 30 - New Data 30"]
477    #[inline(always)]
478    #[must_use]
479    pub fn nd30(&mut self) -> Nd30W<Ndat1Spec> {
480        Nd30W::new(self, 30)
481    }
482    #[doc = "Bit 31 - New Data 31"]
483    #[inline(always)]
484    #[must_use]
485    pub fn nd31(&mut self) -> Nd31W<Ndat1Spec> {
486        Nd31W::new(self, 31)
487    }
488}
489#[doc = "New Data 1\n\nYou can [`read`](crate::Reg::read) this register and get [`ndat1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ndat1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
490pub struct Ndat1Spec;
491impl crate::RegisterSpec for Ndat1Spec {
492    type Ux = u32;
493}
494#[doc = "`read()` method returns [`ndat1::R`](R) reader structure"]
495impl crate::Readable for Ndat1Spec {}
496#[doc = "`write(|w| ..)` method takes [`ndat1::W`](W) writer structure"]
497impl crate::Writable for Ndat1Spec {
498    type Safety = crate::Unsafe;
499    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
500    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
501}
502#[doc = "`reset()` method sets NDAT1 to value 0"]
503impl crate::Resettable for Ndat1Spec {
504    const RESET_VALUE: u32 = 0;
505}