1#[doc = "Register `MCAN_NDAT1` reader"]
2pub struct R(crate::R<MCAN_NDAT1_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<MCAN_NDAT1_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<MCAN_NDAT1_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<MCAN_NDAT1_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `MCAN_NDAT1` writer"]
17pub struct W(crate::W<MCAN_NDAT1_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<MCAN_NDAT1_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<MCAN_NDAT1_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<MCAN_NDAT1_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `ND0` reader - New Data"]
38pub struct ND0_R(crate::FieldReader<bool, bool>);
39impl ND0_R {
40 #[inline(always)]
41 pub(crate) fn new(bits: bool) -> Self {
42 ND0_R(crate::FieldReader::new(bits))
43 }
44}
45impl core::ops::Deref for ND0_R {
46 type Target = crate::FieldReader<bool, bool>;
47 #[inline(always)]
48 fn deref(&self) -> &Self::Target {
49 &self.0
50 }
51}
52#[doc = "Field `ND0` writer - New Data"]
53pub struct ND0_W<'a> {
54 w: &'a mut W,
55}
56impl<'a> ND0_W<'a> {
57 #[doc = r"Sets the field bit"]
58 #[inline(always)]
59 pub fn set_bit(self) -> &'a mut W {
60 self.bit(true)
61 }
62 #[doc = r"Clears the field bit"]
63 #[inline(always)]
64 pub fn clear_bit(self) -> &'a mut W {
65 self.bit(false)
66 }
67 #[doc = r"Writes raw bits to the field"]
68 #[inline(always)]
69 pub fn bit(self, value: bool) -> &'a mut W {
70 self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01);
71 self.w
72 }
73}
74#[doc = "Field `ND1` reader - New Data"]
75pub struct ND1_R(crate::FieldReader<bool, bool>);
76impl ND1_R {
77 #[inline(always)]
78 pub(crate) fn new(bits: bool) -> Self {
79 ND1_R(crate::FieldReader::new(bits))
80 }
81}
82impl core::ops::Deref for ND1_R {
83 type Target = crate::FieldReader<bool, bool>;
84 #[inline(always)]
85 fn deref(&self) -> &Self::Target {
86 &self.0
87 }
88}
89#[doc = "Field `ND1` writer - New Data"]
90pub struct ND1_W<'a> {
91 w: &'a mut W,
92}
93impl<'a> ND1_W<'a> {
94 #[doc = r"Sets the field bit"]
95 #[inline(always)]
96 pub fn set_bit(self) -> &'a mut W {
97 self.bit(true)
98 }
99 #[doc = r"Clears the field bit"]
100 #[inline(always)]
101 pub fn clear_bit(self) -> &'a mut W {
102 self.bit(false)
103 }
104 #[doc = r"Writes raw bits to the field"]
105 #[inline(always)]
106 pub fn bit(self, value: bool) -> &'a mut W {
107 self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1);
108 self.w
109 }
110}
111#[doc = "Field `ND2` reader - New Data"]
112pub struct ND2_R(crate::FieldReader<bool, bool>);
113impl ND2_R {
114 #[inline(always)]
115 pub(crate) fn new(bits: bool) -> Self {
116 ND2_R(crate::FieldReader::new(bits))
117 }
118}
119impl core::ops::Deref for ND2_R {
120 type Target = crate::FieldReader<bool, bool>;
121 #[inline(always)]
122 fn deref(&self) -> &Self::Target {
123 &self.0
124 }
125}
126#[doc = "Field `ND2` writer - New Data"]
127pub struct ND2_W<'a> {
128 w: &'a mut W,
129}
130impl<'a> ND2_W<'a> {
131 #[doc = r"Sets the field bit"]
132 #[inline(always)]
133 pub fn set_bit(self) -> &'a mut W {
134 self.bit(true)
135 }
136 #[doc = r"Clears the field bit"]
137 #[inline(always)]
138 pub fn clear_bit(self) -> &'a mut W {
139 self.bit(false)
140 }
141 #[doc = r"Writes raw bits to the field"]
142 #[inline(always)]
143 pub fn bit(self, value: bool) -> &'a mut W {
144 self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2);
145 self.w
146 }
147}
148#[doc = "Field `ND3` reader - New Data"]
149pub struct ND3_R(crate::FieldReader<bool, bool>);
150impl ND3_R {
151 #[inline(always)]
152 pub(crate) fn new(bits: bool) -> Self {
153 ND3_R(crate::FieldReader::new(bits))
154 }
155}
156impl core::ops::Deref for ND3_R {
157 type Target = crate::FieldReader<bool, bool>;
158 #[inline(always)]
159 fn deref(&self) -> &Self::Target {
160 &self.0
161 }
162}
163#[doc = "Field `ND3` writer - New Data"]
164pub struct ND3_W<'a> {
165 w: &'a mut W,
166}
167impl<'a> ND3_W<'a> {
168 #[doc = r"Sets the field bit"]
169 #[inline(always)]
170 pub fn set_bit(self) -> &'a mut W {
171 self.bit(true)
172 }
173 #[doc = r"Clears the field bit"]
174 #[inline(always)]
175 pub fn clear_bit(self) -> &'a mut W {
176 self.bit(false)
177 }
178 #[doc = r"Writes raw bits to the field"]
179 #[inline(always)]
180 pub fn bit(self, value: bool) -> &'a mut W {
181 self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3);
182 self.w
183 }
184}
185#[doc = "Field `ND4` reader - New Data"]
186pub struct ND4_R(crate::FieldReader<bool, bool>);
187impl ND4_R {
188 #[inline(always)]
189 pub(crate) fn new(bits: bool) -> Self {
190 ND4_R(crate::FieldReader::new(bits))
191 }
192}
193impl core::ops::Deref for ND4_R {
194 type Target = crate::FieldReader<bool, bool>;
195 #[inline(always)]
196 fn deref(&self) -> &Self::Target {
197 &self.0
198 }
199}
200#[doc = "Field `ND4` writer - New Data"]
201pub struct ND4_W<'a> {
202 w: &'a mut W,
203}
204impl<'a> ND4_W<'a> {
205 #[doc = r"Sets the field bit"]
206 #[inline(always)]
207 pub fn set_bit(self) -> &'a mut W {
208 self.bit(true)
209 }
210 #[doc = r"Clears the field bit"]
211 #[inline(always)]
212 pub fn clear_bit(self) -> &'a mut W {
213 self.bit(false)
214 }
215 #[doc = r"Writes raw bits to the field"]
216 #[inline(always)]
217 pub fn bit(self, value: bool) -> &'a mut W {
218 self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4);
219 self.w
220 }
221}
222#[doc = "Field `ND5` reader - New Data"]
223pub struct ND5_R(crate::FieldReader<bool, bool>);
224impl ND5_R {
225 #[inline(always)]
226 pub(crate) fn new(bits: bool) -> Self {
227 ND5_R(crate::FieldReader::new(bits))
228 }
229}
230impl core::ops::Deref for ND5_R {
231 type Target = crate::FieldReader<bool, bool>;
232 #[inline(always)]
233 fn deref(&self) -> &Self::Target {
234 &self.0
235 }
236}
237#[doc = "Field `ND5` writer - New Data"]
238pub struct ND5_W<'a> {
239 w: &'a mut W,
240}
241impl<'a> ND5_W<'a> {
242 #[doc = r"Sets the field bit"]
243 #[inline(always)]
244 pub fn set_bit(self) -> &'a mut W {
245 self.bit(true)
246 }
247 #[doc = r"Clears the field bit"]
248 #[inline(always)]
249 pub fn clear_bit(self) -> &'a mut W {
250 self.bit(false)
251 }
252 #[doc = r"Writes raw bits to the field"]
253 #[inline(always)]
254 pub fn bit(self, value: bool) -> &'a mut W {
255 self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5);
256 self.w
257 }
258}
259#[doc = "Field `ND6` reader - New Data"]
260pub struct ND6_R(crate::FieldReader<bool, bool>);
261impl ND6_R {
262 #[inline(always)]
263 pub(crate) fn new(bits: bool) -> Self {
264 ND6_R(crate::FieldReader::new(bits))
265 }
266}
267impl core::ops::Deref for ND6_R {
268 type Target = crate::FieldReader<bool, bool>;
269 #[inline(always)]
270 fn deref(&self) -> &Self::Target {
271 &self.0
272 }
273}
274#[doc = "Field `ND6` writer - New Data"]
275pub struct ND6_W<'a> {
276 w: &'a mut W,
277}
278impl<'a> ND6_W<'a> {
279 #[doc = r"Sets the field bit"]
280 #[inline(always)]
281 pub fn set_bit(self) -> &'a mut W {
282 self.bit(true)
283 }
284 #[doc = r"Clears the field bit"]
285 #[inline(always)]
286 pub fn clear_bit(self) -> &'a mut W {
287 self.bit(false)
288 }
289 #[doc = r"Writes raw bits to the field"]
290 #[inline(always)]
291 pub fn bit(self, value: bool) -> &'a mut W {
292 self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6);
293 self.w
294 }
295}
296#[doc = "Field `ND7` reader - New Data"]
297pub struct ND7_R(crate::FieldReader<bool, bool>);
298impl ND7_R {
299 #[inline(always)]
300 pub(crate) fn new(bits: bool) -> Self {
301 ND7_R(crate::FieldReader::new(bits))
302 }
303}
304impl core::ops::Deref for ND7_R {
305 type Target = crate::FieldReader<bool, bool>;
306 #[inline(always)]
307 fn deref(&self) -> &Self::Target {
308 &self.0
309 }
310}
311#[doc = "Field `ND7` writer - New Data"]
312pub struct ND7_W<'a> {
313 w: &'a mut W,
314}
315impl<'a> ND7_W<'a> {
316 #[doc = r"Sets the field bit"]
317 #[inline(always)]
318 pub fn set_bit(self) -> &'a mut W {
319 self.bit(true)
320 }
321 #[doc = r"Clears the field bit"]
322 #[inline(always)]
323 pub fn clear_bit(self) -> &'a mut W {
324 self.bit(false)
325 }
326 #[doc = r"Writes raw bits to the field"]
327 #[inline(always)]
328 pub fn bit(self, value: bool) -> &'a mut W {
329 self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7);
330 self.w
331 }
332}
333#[doc = "Field `ND8` reader - New Data"]
334pub struct ND8_R(crate::FieldReader<bool, bool>);
335impl ND8_R {
336 #[inline(always)]
337 pub(crate) fn new(bits: bool) -> Self {
338 ND8_R(crate::FieldReader::new(bits))
339 }
340}
341impl core::ops::Deref for ND8_R {
342 type Target = crate::FieldReader<bool, bool>;
343 #[inline(always)]
344 fn deref(&self) -> &Self::Target {
345 &self.0
346 }
347}
348#[doc = "Field `ND8` writer - New Data"]
349pub struct ND8_W<'a> {
350 w: &'a mut W,
351}
352impl<'a> ND8_W<'a> {
353 #[doc = r"Sets the field bit"]
354 #[inline(always)]
355 pub fn set_bit(self) -> &'a mut W {
356 self.bit(true)
357 }
358 #[doc = r"Clears the field bit"]
359 #[inline(always)]
360 pub fn clear_bit(self) -> &'a mut W {
361 self.bit(false)
362 }
363 #[doc = r"Writes raw bits to the field"]
364 #[inline(always)]
365 pub fn bit(self, value: bool) -> &'a mut W {
366 self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8);
367 self.w
368 }
369}
370#[doc = "Field `ND9` reader - New Data"]
371pub struct ND9_R(crate::FieldReader<bool, bool>);
372impl ND9_R {
373 #[inline(always)]
374 pub(crate) fn new(bits: bool) -> Self {
375 ND9_R(crate::FieldReader::new(bits))
376 }
377}
378impl core::ops::Deref for ND9_R {
379 type Target = crate::FieldReader<bool, bool>;
380 #[inline(always)]
381 fn deref(&self) -> &Self::Target {
382 &self.0
383 }
384}
385#[doc = "Field `ND9` writer - New Data"]
386pub struct ND9_W<'a> {
387 w: &'a mut W,
388}
389impl<'a> ND9_W<'a> {
390 #[doc = r"Sets the field bit"]
391 #[inline(always)]
392 pub fn set_bit(self) -> &'a mut W {
393 self.bit(true)
394 }
395 #[doc = r"Clears the field bit"]
396 #[inline(always)]
397 pub fn clear_bit(self) -> &'a mut W {
398 self.bit(false)
399 }
400 #[doc = r"Writes raw bits to the field"]
401 #[inline(always)]
402 pub fn bit(self, value: bool) -> &'a mut W {
403 self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9);
404 self.w
405 }
406}
407#[doc = "Field `ND10` reader - New Data"]
408pub struct ND10_R(crate::FieldReader<bool, bool>);
409impl ND10_R {
410 #[inline(always)]
411 pub(crate) fn new(bits: bool) -> Self {
412 ND10_R(crate::FieldReader::new(bits))
413 }
414}
415impl core::ops::Deref for ND10_R {
416 type Target = crate::FieldReader<bool, bool>;
417 #[inline(always)]
418 fn deref(&self) -> &Self::Target {
419 &self.0
420 }
421}
422#[doc = "Field `ND10` writer - New Data"]
423pub struct ND10_W<'a> {
424 w: &'a mut W,
425}
426impl<'a> ND10_W<'a> {
427 #[doc = r"Sets the field bit"]
428 #[inline(always)]
429 pub fn set_bit(self) -> &'a mut W {
430 self.bit(true)
431 }
432 #[doc = r"Clears the field bit"]
433 #[inline(always)]
434 pub fn clear_bit(self) -> &'a mut W {
435 self.bit(false)
436 }
437 #[doc = r"Writes raw bits to the field"]
438 #[inline(always)]
439 pub fn bit(self, value: bool) -> &'a mut W {
440 self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10);
441 self.w
442 }
443}
444#[doc = "Field `ND11` reader - New Data"]
445pub struct ND11_R(crate::FieldReader<bool, bool>);
446impl ND11_R {
447 #[inline(always)]
448 pub(crate) fn new(bits: bool) -> Self {
449 ND11_R(crate::FieldReader::new(bits))
450 }
451}
452impl core::ops::Deref for ND11_R {
453 type Target = crate::FieldReader<bool, bool>;
454 #[inline(always)]
455 fn deref(&self) -> &Self::Target {
456 &self.0
457 }
458}
459#[doc = "Field `ND11` writer - New Data"]
460pub struct ND11_W<'a> {
461 w: &'a mut W,
462}
463impl<'a> ND11_W<'a> {
464 #[doc = r"Sets the field bit"]
465 #[inline(always)]
466 pub fn set_bit(self) -> &'a mut W {
467 self.bit(true)
468 }
469 #[doc = r"Clears the field bit"]
470 #[inline(always)]
471 pub fn clear_bit(self) -> &'a mut W {
472 self.bit(false)
473 }
474 #[doc = r"Writes raw bits to the field"]
475 #[inline(always)]
476 pub fn bit(self, value: bool) -> &'a mut W {
477 self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11);
478 self.w
479 }
480}
481#[doc = "Field `ND12` reader - New Data"]
482pub struct ND12_R(crate::FieldReader<bool, bool>);
483impl ND12_R {
484 #[inline(always)]
485 pub(crate) fn new(bits: bool) -> Self {
486 ND12_R(crate::FieldReader::new(bits))
487 }
488}
489impl core::ops::Deref for ND12_R {
490 type Target = crate::FieldReader<bool, bool>;
491 #[inline(always)]
492 fn deref(&self) -> &Self::Target {
493 &self.0
494 }
495}
496#[doc = "Field `ND12` writer - New Data"]
497pub struct ND12_W<'a> {
498 w: &'a mut W,
499}
500impl<'a> ND12_W<'a> {
501 #[doc = r"Sets the field bit"]
502 #[inline(always)]
503 pub fn set_bit(self) -> &'a mut W {
504 self.bit(true)
505 }
506 #[doc = r"Clears the field bit"]
507 #[inline(always)]
508 pub fn clear_bit(self) -> &'a mut W {
509 self.bit(false)
510 }
511 #[doc = r"Writes raw bits to the field"]
512 #[inline(always)]
513 pub fn bit(self, value: bool) -> &'a mut W {
514 self.w.bits = (self.w.bits & !(0x01 << 12)) | ((value as u32 & 0x01) << 12);
515 self.w
516 }
517}
518#[doc = "Field `ND13` reader - New Data"]
519pub struct ND13_R(crate::FieldReader<bool, bool>);
520impl ND13_R {
521 #[inline(always)]
522 pub(crate) fn new(bits: bool) -> Self {
523 ND13_R(crate::FieldReader::new(bits))
524 }
525}
526impl core::ops::Deref for ND13_R {
527 type Target = crate::FieldReader<bool, bool>;
528 #[inline(always)]
529 fn deref(&self) -> &Self::Target {
530 &self.0
531 }
532}
533#[doc = "Field `ND13` writer - New Data"]
534pub struct ND13_W<'a> {
535 w: &'a mut W,
536}
537impl<'a> ND13_W<'a> {
538 #[doc = r"Sets the field bit"]
539 #[inline(always)]
540 pub fn set_bit(self) -> &'a mut W {
541 self.bit(true)
542 }
543 #[doc = r"Clears the field bit"]
544 #[inline(always)]
545 pub fn clear_bit(self) -> &'a mut W {
546 self.bit(false)
547 }
548 #[doc = r"Writes raw bits to the field"]
549 #[inline(always)]
550 pub fn bit(self, value: bool) -> &'a mut W {
551 self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13);
552 self.w
553 }
554}
555#[doc = "Field `ND14` reader - New Data"]
556pub struct ND14_R(crate::FieldReader<bool, bool>);
557impl ND14_R {
558 #[inline(always)]
559 pub(crate) fn new(bits: bool) -> Self {
560 ND14_R(crate::FieldReader::new(bits))
561 }
562}
563impl core::ops::Deref for ND14_R {
564 type Target = crate::FieldReader<bool, bool>;
565 #[inline(always)]
566 fn deref(&self) -> &Self::Target {
567 &self.0
568 }
569}
570#[doc = "Field `ND14` writer - New Data"]
571pub struct ND14_W<'a> {
572 w: &'a mut W,
573}
574impl<'a> ND14_W<'a> {
575 #[doc = r"Sets the field bit"]
576 #[inline(always)]
577 pub fn set_bit(self) -> &'a mut W {
578 self.bit(true)
579 }
580 #[doc = r"Clears the field bit"]
581 #[inline(always)]
582 pub fn clear_bit(self) -> &'a mut W {
583 self.bit(false)
584 }
585 #[doc = r"Writes raw bits to the field"]
586 #[inline(always)]
587 pub fn bit(self, value: bool) -> &'a mut W {
588 self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14);
589 self.w
590 }
591}
592#[doc = "Field `ND15` reader - New Data"]
593pub struct ND15_R(crate::FieldReader<bool, bool>);
594impl ND15_R {
595 #[inline(always)]
596 pub(crate) fn new(bits: bool) -> Self {
597 ND15_R(crate::FieldReader::new(bits))
598 }
599}
600impl core::ops::Deref for ND15_R {
601 type Target = crate::FieldReader<bool, bool>;
602 #[inline(always)]
603 fn deref(&self) -> &Self::Target {
604 &self.0
605 }
606}
607#[doc = "Field `ND15` writer - New Data"]
608pub struct ND15_W<'a> {
609 w: &'a mut W,
610}
611impl<'a> ND15_W<'a> {
612 #[doc = r"Sets the field bit"]
613 #[inline(always)]
614 pub fn set_bit(self) -> &'a mut W {
615 self.bit(true)
616 }
617 #[doc = r"Clears the field bit"]
618 #[inline(always)]
619 pub fn clear_bit(self) -> &'a mut W {
620 self.bit(false)
621 }
622 #[doc = r"Writes raw bits to the field"]
623 #[inline(always)]
624 pub fn bit(self, value: bool) -> &'a mut W {
625 self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15);
626 self.w
627 }
628}
629#[doc = "Field `ND16` reader - New Data"]
630pub struct ND16_R(crate::FieldReader<bool, bool>);
631impl ND16_R {
632 #[inline(always)]
633 pub(crate) fn new(bits: bool) -> Self {
634 ND16_R(crate::FieldReader::new(bits))
635 }
636}
637impl core::ops::Deref for ND16_R {
638 type Target = crate::FieldReader<bool, bool>;
639 #[inline(always)]
640 fn deref(&self) -> &Self::Target {
641 &self.0
642 }
643}
644#[doc = "Field `ND16` writer - New Data"]
645pub struct ND16_W<'a> {
646 w: &'a mut W,
647}
648impl<'a> ND16_W<'a> {
649 #[doc = r"Sets the field bit"]
650 #[inline(always)]
651 pub fn set_bit(self) -> &'a mut W {
652 self.bit(true)
653 }
654 #[doc = r"Clears the field bit"]
655 #[inline(always)]
656 pub fn clear_bit(self) -> &'a mut W {
657 self.bit(false)
658 }
659 #[doc = r"Writes raw bits to the field"]
660 #[inline(always)]
661 pub fn bit(self, value: bool) -> &'a mut W {
662 self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16);
663 self.w
664 }
665}
666#[doc = "Field `ND17` reader - New Data"]
667pub struct ND17_R(crate::FieldReader<bool, bool>);
668impl ND17_R {
669 #[inline(always)]
670 pub(crate) fn new(bits: bool) -> Self {
671 ND17_R(crate::FieldReader::new(bits))
672 }
673}
674impl core::ops::Deref for ND17_R {
675 type Target = crate::FieldReader<bool, bool>;
676 #[inline(always)]
677 fn deref(&self) -> &Self::Target {
678 &self.0
679 }
680}
681#[doc = "Field `ND17` writer - New Data"]
682pub struct ND17_W<'a> {
683 w: &'a mut W,
684}
685impl<'a> ND17_W<'a> {
686 #[doc = r"Sets the field bit"]
687 #[inline(always)]
688 pub fn set_bit(self) -> &'a mut W {
689 self.bit(true)
690 }
691 #[doc = r"Clears the field bit"]
692 #[inline(always)]
693 pub fn clear_bit(self) -> &'a mut W {
694 self.bit(false)
695 }
696 #[doc = r"Writes raw bits to the field"]
697 #[inline(always)]
698 pub fn bit(self, value: bool) -> &'a mut W {
699 self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17);
700 self.w
701 }
702}
703#[doc = "Field `ND18` reader - New Data"]
704pub struct ND18_R(crate::FieldReader<bool, bool>);
705impl ND18_R {
706 #[inline(always)]
707 pub(crate) fn new(bits: bool) -> Self {
708 ND18_R(crate::FieldReader::new(bits))
709 }
710}
711impl core::ops::Deref for ND18_R {
712 type Target = crate::FieldReader<bool, bool>;
713 #[inline(always)]
714 fn deref(&self) -> &Self::Target {
715 &self.0
716 }
717}
718#[doc = "Field `ND18` writer - New Data"]
719pub struct ND18_W<'a> {
720 w: &'a mut W,
721}
722impl<'a> ND18_W<'a> {
723 #[doc = r"Sets the field bit"]
724 #[inline(always)]
725 pub fn set_bit(self) -> &'a mut W {
726 self.bit(true)
727 }
728 #[doc = r"Clears the field bit"]
729 #[inline(always)]
730 pub fn clear_bit(self) -> &'a mut W {
731 self.bit(false)
732 }
733 #[doc = r"Writes raw bits to the field"]
734 #[inline(always)]
735 pub fn bit(self, value: bool) -> &'a mut W {
736 self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18);
737 self.w
738 }
739}
740#[doc = "Field `ND19` reader - New Data"]
741pub struct ND19_R(crate::FieldReader<bool, bool>);
742impl ND19_R {
743 #[inline(always)]
744 pub(crate) fn new(bits: bool) -> Self {
745 ND19_R(crate::FieldReader::new(bits))
746 }
747}
748impl core::ops::Deref for ND19_R {
749 type Target = crate::FieldReader<bool, bool>;
750 #[inline(always)]
751 fn deref(&self) -> &Self::Target {
752 &self.0
753 }
754}
755#[doc = "Field `ND19` writer - New Data"]
756pub struct ND19_W<'a> {
757 w: &'a mut W,
758}
759impl<'a> ND19_W<'a> {
760 #[doc = r"Sets the field bit"]
761 #[inline(always)]
762 pub fn set_bit(self) -> &'a mut W {
763 self.bit(true)
764 }
765 #[doc = r"Clears the field bit"]
766 #[inline(always)]
767 pub fn clear_bit(self) -> &'a mut W {
768 self.bit(false)
769 }
770 #[doc = r"Writes raw bits to the field"]
771 #[inline(always)]
772 pub fn bit(self, value: bool) -> &'a mut W {
773 self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19);
774 self.w
775 }
776}
777#[doc = "Field `ND20` reader - New Data"]
778pub struct ND20_R(crate::FieldReader<bool, bool>);
779impl ND20_R {
780 #[inline(always)]
781 pub(crate) fn new(bits: bool) -> Self {
782 ND20_R(crate::FieldReader::new(bits))
783 }
784}
785impl core::ops::Deref for ND20_R {
786 type Target = crate::FieldReader<bool, bool>;
787 #[inline(always)]
788 fn deref(&self) -> &Self::Target {
789 &self.0
790 }
791}
792#[doc = "Field `ND20` writer - New Data"]
793pub struct ND20_W<'a> {
794 w: &'a mut W,
795}
796impl<'a> ND20_W<'a> {
797 #[doc = r"Sets the field bit"]
798 #[inline(always)]
799 pub fn set_bit(self) -> &'a mut W {
800 self.bit(true)
801 }
802 #[doc = r"Clears the field bit"]
803 #[inline(always)]
804 pub fn clear_bit(self) -> &'a mut W {
805 self.bit(false)
806 }
807 #[doc = r"Writes raw bits to the field"]
808 #[inline(always)]
809 pub fn bit(self, value: bool) -> &'a mut W {
810 self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20);
811 self.w
812 }
813}
814#[doc = "Field `ND21` reader - New Data"]
815pub struct ND21_R(crate::FieldReader<bool, bool>);
816impl ND21_R {
817 #[inline(always)]
818 pub(crate) fn new(bits: bool) -> Self {
819 ND21_R(crate::FieldReader::new(bits))
820 }
821}
822impl core::ops::Deref for ND21_R {
823 type Target = crate::FieldReader<bool, bool>;
824 #[inline(always)]
825 fn deref(&self) -> &Self::Target {
826 &self.0
827 }
828}
829#[doc = "Field `ND21` writer - New Data"]
830pub struct ND21_W<'a> {
831 w: &'a mut W,
832}
833impl<'a> ND21_W<'a> {
834 #[doc = r"Sets the field bit"]
835 #[inline(always)]
836 pub fn set_bit(self) -> &'a mut W {
837 self.bit(true)
838 }
839 #[doc = r"Clears the field bit"]
840 #[inline(always)]
841 pub fn clear_bit(self) -> &'a mut W {
842 self.bit(false)
843 }
844 #[doc = r"Writes raw bits to the field"]
845 #[inline(always)]
846 pub fn bit(self, value: bool) -> &'a mut W {
847 self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21);
848 self.w
849 }
850}
851#[doc = "Field `ND22` reader - New Data"]
852pub struct ND22_R(crate::FieldReader<bool, bool>);
853impl ND22_R {
854 #[inline(always)]
855 pub(crate) fn new(bits: bool) -> Self {
856 ND22_R(crate::FieldReader::new(bits))
857 }
858}
859impl core::ops::Deref for ND22_R {
860 type Target = crate::FieldReader<bool, bool>;
861 #[inline(always)]
862 fn deref(&self) -> &Self::Target {
863 &self.0
864 }
865}
866#[doc = "Field `ND22` writer - New Data"]
867pub struct ND22_W<'a> {
868 w: &'a mut W,
869}
870impl<'a> ND22_W<'a> {
871 #[doc = r"Sets the field bit"]
872 #[inline(always)]
873 pub fn set_bit(self) -> &'a mut W {
874 self.bit(true)
875 }
876 #[doc = r"Clears the field bit"]
877 #[inline(always)]
878 pub fn clear_bit(self) -> &'a mut W {
879 self.bit(false)
880 }
881 #[doc = r"Writes raw bits to the field"]
882 #[inline(always)]
883 pub fn bit(self, value: bool) -> &'a mut W {
884 self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22);
885 self.w
886 }
887}
888#[doc = "Field `ND23` reader - New Data"]
889pub struct ND23_R(crate::FieldReader<bool, bool>);
890impl ND23_R {
891 #[inline(always)]
892 pub(crate) fn new(bits: bool) -> Self {
893 ND23_R(crate::FieldReader::new(bits))
894 }
895}
896impl core::ops::Deref for ND23_R {
897 type Target = crate::FieldReader<bool, bool>;
898 #[inline(always)]
899 fn deref(&self) -> &Self::Target {
900 &self.0
901 }
902}
903#[doc = "Field `ND23` writer - New Data"]
904pub struct ND23_W<'a> {
905 w: &'a mut W,
906}
907impl<'a> ND23_W<'a> {
908 #[doc = r"Sets the field bit"]
909 #[inline(always)]
910 pub fn set_bit(self) -> &'a mut W {
911 self.bit(true)
912 }
913 #[doc = r"Clears the field bit"]
914 #[inline(always)]
915 pub fn clear_bit(self) -> &'a mut W {
916 self.bit(false)
917 }
918 #[doc = r"Writes raw bits to the field"]
919 #[inline(always)]
920 pub fn bit(self, value: bool) -> &'a mut W {
921 self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23);
922 self.w
923 }
924}
925#[doc = "Field `ND24` reader - New Data"]
926pub struct ND24_R(crate::FieldReader<bool, bool>);
927impl ND24_R {
928 #[inline(always)]
929 pub(crate) fn new(bits: bool) -> Self {
930 ND24_R(crate::FieldReader::new(bits))
931 }
932}
933impl core::ops::Deref for ND24_R {
934 type Target = crate::FieldReader<bool, bool>;
935 #[inline(always)]
936 fn deref(&self) -> &Self::Target {
937 &self.0
938 }
939}
940#[doc = "Field `ND24` writer - New Data"]
941pub struct ND24_W<'a> {
942 w: &'a mut W,
943}
944impl<'a> ND24_W<'a> {
945 #[doc = r"Sets the field bit"]
946 #[inline(always)]
947 pub fn set_bit(self) -> &'a mut W {
948 self.bit(true)
949 }
950 #[doc = r"Clears the field bit"]
951 #[inline(always)]
952 pub fn clear_bit(self) -> &'a mut W {
953 self.bit(false)
954 }
955 #[doc = r"Writes raw bits to the field"]
956 #[inline(always)]
957 pub fn bit(self, value: bool) -> &'a mut W {
958 self.w.bits = (self.w.bits & !(0x01 << 24)) | ((value as u32 & 0x01) << 24);
959 self.w
960 }
961}
962#[doc = "Field `ND25` reader - New Data"]
963pub struct ND25_R(crate::FieldReader<bool, bool>);
964impl ND25_R {
965 #[inline(always)]
966 pub(crate) fn new(bits: bool) -> Self {
967 ND25_R(crate::FieldReader::new(bits))
968 }
969}
970impl core::ops::Deref for ND25_R {
971 type Target = crate::FieldReader<bool, bool>;
972 #[inline(always)]
973 fn deref(&self) -> &Self::Target {
974 &self.0
975 }
976}
977#[doc = "Field `ND25` writer - New Data"]
978pub struct ND25_W<'a> {
979 w: &'a mut W,
980}
981impl<'a> ND25_W<'a> {
982 #[doc = r"Sets the field bit"]
983 #[inline(always)]
984 pub fn set_bit(self) -> &'a mut W {
985 self.bit(true)
986 }
987 #[doc = r"Clears the field bit"]
988 #[inline(always)]
989 pub fn clear_bit(self) -> &'a mut W {
990 self.bit(false)
991 }
992 #[doc = r"Writes raw bits to the field"]
993 #[inline(always)]
994 pub fn bit(self, value: bool) -> &'a mut W {
995 self.w.bits = (self.w.bits & !(0x01 << 25)) | ((value as u32 & 0x01) << 25);
996 self.w
997 }
998}
999#[doc = "Field `ND26` reader - New Data"]
1000pub struct ND26_R(crate::FieldReader<bool, bool>);
1001impl ND26_R {
1002 #[inline(always)]
1003 pub(crate) fn new(bits: bool) -> Self {
1004 ND26_R(crate::FieldReader::new(bits))
1005 }
1006}
1007impl core::ops::Deref for ND26_R {
1008 type Target = crate::FieldReader<bool, bool>;
1009 #[inline(always)]
1010 fn deref(&self) -> &Self::Target {
1011 &self.0
1012 }
1013}
1014#[doc = "Field `ND26` writer - New Data"]
1015pub struct ND26_W<'a> {
1016 w: &'a mut W,
1017}
1018impl<'a> ND26_W<'a> {
1019 #[doc = r"Sets the field bit"]
1020 #[inline(always)]
1021 pub fn set_bit(self) -> &'a mut W {
1022 self.bit(true)
1023 }
1024 #[doc = r"Clears the field bit"]
1025 #[inline(always)]
1026 pub fn clear_bit(self) -> &'a mut W {
1027 self.bit(false)
1028 }
1029 #[doc = r"Writes raw bits to the field"]
1030 #[inline(always)]
1031 pub fn bit(self, value: bool) -> &'a mut W {
1032 self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26);
1033 self.w
1034 }
1035}
1036#[doc = "Field `ND27` reader - New Data"]
1037pub struct ND27_R(crate::FieldReader<bool, bool>);
1038impl ND27_R {
1039 #[inline(always)]
1040 pub(crate) fn new(bits: bool) -> Self {
1041 ND27_R(crate::FieldReader::new(bits))
1042 }
1043}
1044impl core::ops::Deref for ND27_R {
1045 type Target = crate::FieldReader<bool, bool>;
1046 #[inline(always)]
1047 fn deref(&self) -> &Self::Target {
1048 &self.0
1049 }
1050}
1051#[doc = "Field `ND27` writer - New Data"]
1052pub struct ND27_W<'a> {
1053 w: &'a mut W,
1054}
1055impl<'a> ND27_W<'a> {
1056 #[doc = r"Sets the field bit"]
1057 #[inline(always)]
1058 pub fn set_bit(self) -> &'a mut W {
1059 self.bit(true)
1060 }
1061 #[doc = r"Clears the field bit"]
1062 #[inline(always)]
1063 pub fn clear_bit(self) -> &'a mut W {
1064 self.bit(false)
1065 }
1066 #[doc = r"Writes raw bits to the field"]
1067 #[inline(always)]
1068 pub fn bit(self, value: bool) -> &'a mut W {
1069 self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27);
1070 self.w
1071 }
1072}
1073#[doc = "Field `ND28` reader - New Data"]
1074pub struct ND28_R(crate::FieldReader<bool, bool>);
1075impl ND28_R {
1076 #[inline(always)]
1077 pub(crate) fn new(bits: bool) -> Self {
1078 ND28_R(crate::FieldReader::new(bits))
1079 }
1080}
1081impl core::ops::Deref for ND28_R {
1082 type Target = crate::FieldReader<bool, bool>;
1083 #[inline(always)]
1084 fn deref(&self) -> &Self::Target {
1085 &self.0
1086 }
1087}
1088#[doc = "Field `ND28` writer - New Data"]
1089pub struct ND28_W<'a> {
1090 w: &'a mut W,
1091}
1092impl<'a> ND28_W<'a> {
1093 #[doc = r"Sets the field bit"]
1094 #[inline(always)]
1095 pub fn set_bit(self) -> &'a mut W {
1096 self.bit(true)
1097 }
1098 #[doc = r"Clears the field bit"]
1099 #[inline(always)]
1100 pub fn clear_bit(self) -> &'a mut W {
1101 self.bit(false)
1102 }
1103 #[doc = r"Writes raw bits to the field"]
1104 #[inline(always)]
1105 pub fn bit(self, value: bool) -> &'a mut W {
1106 self.w.bits = (self.w.bits & !(0x01 << 28)) | ((value as u32 & 0x01) << 28);
1107 self.w
1108 }
1109}
1110#[doc = "Field `ND29` reader - New Data"]
1111pub struct ND29_R(crate::FieldReader<bool, bool>);
1112impl ND29_R {
1113 #[inline(always)]
1114 pub(crate) fn new(bits: bool) -> Self {
1115 ND29_R(crate::FieldReader::new(bits))
1116 }
1117}
1118impl core::ops::Deref for ND29_R {
1119 type Target = crate::FieldReader<bool, bool>;
1120 #[inline(always)]
1121 fn deref(&self) -> &Self::Target {
1122 &self.0
1123 }
1124}
1125#[doc = "Field `ND29` writer - New Data"]
1126pub struct ND29_W<'a> {
1127 w: &'a mut W,
1128}
1129impl<'a> ND29_W<'a> {
1130 #[doc = r"Sets the field bit"]
1131 #[inline(always)]
1132 pub fn set_bit(self) -> &'a mut W {
1133 self.bit(true)
1134 }
1135 #[doc = r"Clears the field bit"]
1136 #[inline(always)]
1137 pub fn clear_bit(self) -> &'a mut W {
1138 self.bit(false)
1139 }
1140 #[doc = r"Writes raw bits to the field"]
1141 #[inline(always)]
1142 pub fn bit(self, value: bool) -> &'a mut W {
1143 self.w.bits = (self.w.bits & !(0x01 << 29)) | ((value as u32 & 0x01) << 29);
1144 self.w
1145 }
1146}
1147#[doc = "Field `ND30` reader - New Data"]
1148pub struct ND30_R(crate::FieldReader<bool, bool>);
1149impl ND30_R {
1150 #[inline(always)]
1151 pub(crate) fn new(bits: bool) -> Self {
1152 ND30_R(crate::FieldReader::new(bits))
1153 }
1154}
1155impl core::ops::Deref for ND30_R {
1156 type Target = crate::FieldReader<bool, bool>;
1157 #[inline(always)]
1158 fn deref(&self) -> &Self::Target {
1159 &self.0
1160 }
1161}
1162#[doc = "Field `ND30` writer - New Data"]
1163pub struct ND30_W<'a> {
1164 w: &'a mut W,
1165}
1166impl<'a> ND30_W<'a> {
1167 #[doc = r"Sets the field bit"]
1168 #[inline(always)]
1169 pub fn set_bit(self) -> &'a mut W {
1170 self.bit(true)
1171 }
1172 #[doc = r"Clears the field bit"]
1173 #[inline(always)]
1174 pub fn clear_bit(self) -> &'a mut W {
1175 self.bit(false)
1176 }
1177 #[doc = r"Writes raw bits to the field"]
1178 #[inline(always)]
1179 pub fn bit(self, value: bool) -> &'a mut W {
1180 self.w.bits = (self.w.bits & !(0x01 << 30)) | ((value as u32 & 0x01) << 30);
1181 self.w
1182 }
1183}
1184#[doc = "Field `ND31` reader - New Data"]
1185pub struct ND31_R(crate::FieldReader<bool, bool>);
1186impl ND31_R {
1187 #[inline(always)]
1188 pub(crate) fn new(bits: bool) -> Self {
1189 ND31_R(crate::FieldReader::new(bits))
1190 }
1191}
1192impl core::ops::Deref for ND31_R {
1193 type Target = crate::FieldReader<bool, bool>;
1194 #[inline(always)]
1195 fn deref(&self) -> &Self::Target {
1196 &self.0
1197 }
1198}
1199#[doc = "Field `ND31` writer - New Data"]
1200pub struct ND31_W<'a> {
1201 w: &'a mut W,
1202}
1203impl<'a> ND31_W<'a> {
1204 #[doc = r"Sets the field bit"]
1205 #[inline(always)]
1206 pub fn set_bit(self) -> &'a mut W {
1207 self.bit(true)
1208 }
1209 #[doc = r"Clears the field bit"]
1210 #[inline(always)]
1211 pub fn clear_bit(self) -> &'a mut W {
1212 self.bit(false)
1213 }
1214 #[doc = r"Writes raw bits to the field"]
1215 #[inline(always)]
1216 pub fn bit(self, value: bool) -> &'a mut W {
1217 self.w.bits = (self.w.bits & !(0x01 << 31)) | ((value as u32 & 0x01) << 31);
1218 self.w
1219 }
1220}
1221impl R {
1222 #[doc = "Bit 0 - New Data"]
1223 #[inline(always)]
1224 pub fn nd0(&self) -> ND0_R {
1225 ND0_R::new((self.bits & 0x01) != 0)
1226 }
1227 #[doc = "Bit 1 - New Data"]
1228 #[inline(always)]
1229 pub fn nd1(&self) -> ND1_R {
1230 ND1_R::new(((self.bits >> 1) & 0x01) != 0)
1231 }
1232 #[doc = "Bit 2 - New Data"]
1233 #[inline(always)]
1234 pub fn nd2(&self) -> ND2_R {
1235 ND2_R::new(((self.bits >> 2) & 0x01) != 0)
1236 }
1237 #[doc = "Bit 3 - New Data"]
1238 #[inline(always)]
1239 pub fn nd3(&self) -> ND3_R {
1240 ND3_R::new(((self.bits >> 3) & 0x01) != 0)
1241 }
1242 #[doc = "Bit 4 - New Data"]
1243 #[inline(always)]
1244 pub fn nd4(&self) -> ND4_R {
1245 ND4_R::new(((self.bits >> 4) & 0x01) != 0)
1246 }
1247 #[doc = "Bit 5 - New Data"]
1248 #[inline(always)]
1249 pub fn nd5(&self) -> ND5_R {
1250 ND5_R::new(((self.bits >> 5) & 0x01) != 0)
1251 }
1252 #[doc = "Bit 6 - New Data"]
1253 #[inline(always)]
1254 pub fn nd6(&self) -> ND6_R {
1255 ND6_R::new(((self.bits >> 6) & 0x01) != 0)
1256 }
1257 #[doc = "Bit 7 - New Data"]
1258 #[inline(always)]
1259 pub fn nd7(&self) -> ND7_R {
1260 ND7_R::new(((self.bits >> 7) & 0x01) != 0)
1261 }
1262 #[doc = "Bit 8 - New Data"]
1263 #[inline(always)]
1264 pub fn nd8(&self) -> ND8_R {
1265 ND8_R::new(((self.bits >> 8) & 0x01) != 0)
1266 }
1267 #[doc = "Bit 9 - New Data"]
1268 #[inline(always)]
1269 pub fn nd9(&self) -> ND9_R {
1270 ND9_R::new(((self.bits >> 9) & 0x01) != 0)
1271 }
1272 #[doc = "Bit 10 - New Data"]
1273 #[inline(always)]
1274 pub fn nd10(&self) -> ND10_R {
1275 ND10_R::new(((self.bits >> 10) & 0x01) != 0)
1276 }
1277 #[doc = "Bit 11 - New Data"]
1278 #[inline(always)]
1279 pub fn nd11(&self) -> ND11_R {
1280 ND11_R::new(((self.bits >> 11) & 0x01) != 0)
1281 }
1282 #[doc = "Bit 12 - New Data"]
1283 #[inline(always)]
1284 pub fn nd12(&self) -> ND12_R {
1285 ND12_R::new(((self.bits >> 12) & 0x01) != 0)
1286 }
1287 #[doc = "Bit 13 - New Data"]
1288 #[inline(always)]
1289 pub fn nd13(&self) -> ND13_R {
1290 ND13_R::new(((self.bits >> 13) & 0x01) != 0)
1291 }
1292 #[doc = "Bit 14 - New Data"]
1293 #[inline(always)]
1294 pub fn nd14(&self) -> ND14_R {
1295 ND14_R::new(((self.bits >> 14) & 0x01) != 0)
1296 }
1297 #[doc = "Bit 15 - New Data"]
1298 #[inline(always)]
1299 pub fn nd15(&self) -> ND15_R {
1300 ND15_R::new(((self.bits >> 15) & 0x01) != 0)
1301 }
1302 #[doc = "Bit 16 - New Data"]
1303 #[inline(always)]
1304 pub fn nd16(&self) -> ND16_R {
1305 ND16_R::new(((self.bits >> 16) & 0x01) != 0)
1306 }
1307 #[doc = "Bit 17 - New Data"]
1308 #[inline(always)]
1309 pub fn nd17(&self) -> ND17_R {
1310 ND17_R::new(((self.bits >> 17) & 0x01) != 0)
1311 }
1312 #[doc = "Bit 18 - New Data"]
1313 #[inline(always)]
1314 pub fn nd18(&self) -> ND18_R {
1315 ND18_R::new(((self.bits >> 18) & 0x01) != 0)
1316 }
1317 #[doc = "Bit 19 - New Data"]
1318 #[inline(always)]
1319 pub fn nd19(&self) -> ND19_R {
1320 ND19_R::new(((self.bits >> 19) & 0x01) != 0)
1321 }
1322 #[doc = "Bit 20 - New Data"]
1323 #[inline(always)]
1324 pub fn nd20(&self) -> ND20_R {
1325 ND20_R::new(((self.bits >> 20) & 0x01) != 0)
1326 }
1327 #[doc = "Bit 21 - New Data"]
1328 #[inline(always)]
1329 pub fn nd21(&self) -> ND21_R {
1330 ND21_R::new(((self.bits >> 21) & 0x01) != 0)
1331 }
1332 #[doc = "Bit 22 - New Data"]
1333 #[inline(always)]
1334 pub fn nd22(&self) -> ND22_R {
1335 ND22_R::new(((self.bits >> 22) & 0x01) != 0)
1336 }
1337 #[doc = "Bit 23 - New Data"]
1338 #[inline(always)]
1339 pub fn nd23(&self) -> ND23_R {
1340 ND23_R::new(((self.bits >> 23) & 0x01) != 0)
1341 }
1342 #[doc = "Bit 24 - New Data"]
1343 #[inline(always)]
1344 pub fn nd24(&self) -> ND24_R {
1345 ND24_R::new(((self.bits >> 24) & 0x01) != 0)
1346 }
1347 #[doc = "Bit 25 - New Data"]
1348 #[inline(always)]
1349 pub fn nd25(&self) -> ND25_R {
1350 ND25_R::new(((self.bits >> 25) & 0x01) != 0)
1351 }
1352 #[doc = "Bit 26 - New Data"]
1353 #[inline(always)]
1354 pub fn nd26(&self) -> ND26_R {
1355 ND26_R::new(((self.bits >> 26) & 0x01) != 0)
1356 }
1357 #[doc = "Bit 27 - New Data"]
1358 #[inline(always)]
1359 pub fn nd27(&self) -> ND27_R {
1360 ND27_R::new(((self.bits >> 27) & 0x01) != 0)
1361 }
1362 #[doc = "Bit 28 - New Data"]
1363 #[inline(always)]
1364 pub fn nd28(&self) -> ND28_R {
1365 ND28_R::new(((self.bits >> 28) & 0x01) != 0)
1366 }
1367 #[doc = "Bit 29 - New Data"]
1368 #[inline(always)]
1369 pub fn nd29(&self) -> ND29_R {
1370 ND29_R::new(((self.bits >> 29) & 0x01) != 0)
1371 }
1372 #[doc = "Bit 30 - New Data"]
1373 #[inline(always)]
1374 pub fn nd30(&self) -> ND30_R {
1375 ND30_R::new(((self.bits >> 30) & 0x01) != 0)
1376 }
1377 #[doc = "Bit 31 - New Data"]
1378 #[inline(always)]
1379 pub fn nd31(&self) -> ND31_R {
1380 ND31_R::new(((self.bits >> 31) & 0x01) != 0)
1381 }
1382}
1383impl W {
1384 #[doc = "Bit 0 - New Data"]
1385 #[inline(always)]
1386 pub fn nd0(&mut self) -> ND0_W {
1387 ND0_W { w: self }
1388 }
1389 #[doc = "Bit 1 - New Data"]
1390 #[inline(always)]
1391 pub fn nd1(&mut self) -> ND1_W {
1392 ND1_W { w: self }
1393 }
1394 #[doc = "Bit 2 - New Data"]
1395 #[inline(always)]
1396 pub fn nd2(&mut self) -> ND2_W {
1397 ND2_W { w: self }
1398 }
1399 #[doc = "Bit 3 - New Data"]
1400 #[inline(always)]
1401 pub fn nd3(&mut self) -> ND3_W {
1402 ND3_W { w: self }
1403 }
1404 #[doc = "Bit 4 - New Data"]
1405 #[inline(always)]
1406 pub fn nd4(&mut self) -> ND4_W {
1407 ND4_W { w: self }
1408 }
1409 #[doc = "Bit 5 - New Data"]
1410 #[inline(always)]
1411 pub fn nd5(&mut self) -> ND5_W {
1412 ND5_W { w: self }
1413 }
1414 #[doc = "Bit 6 - New Data"]
1415 #[inline(always)]
1416 pub fn nd6(&mut self) -> ND6_W {
1417 ND6_W { w: self }
1418 }
1419 #[doc = "Bit 7 - New Data"]
1420 #[inline(always)]
1421 pub fn nd7(&mut self) -> ND7_W {
1422 ND7_W { w: self }
1423 }
1424 #[doc = "Bit 8 - New Data"]
1425 #[inline(always)]
1426 pub fn nd8(&mut self) -> ND8_W {
1427 ND8_W { w: self }
1428 }
1429 #[doc = "Bit 9 - New Data"]
1430 #[inline(always)]
1431 pub fn nd9(&mut self) -> ND9_W {
1432 ND9_W { w: self }
1433 }
1434 #[doc = "Bit 10 - New Data"]
1435 #[inline(always)]
1436 pub fn nd10(&mut self) -> ND10_W {
1437 ND10_W { w: self }
1438 }
1439 #[doc = "Bit 11 - New Data"]
1440 #[inline(always)]
1441 pub fn nd11(&mut self) -> ND11_W {
1442 ND11_W { w: self }
1443 }
1444 #[doc = "Bit 12 - New Data"]
1445 #[inline(always)]
1446 pub fn nd12(&mut self) -> ND12_W {
1447 ND12_W { w: self }
1448 }
1449 #[doc = "Bit 13 - New Data"]
1450 #[inline(always)]
1451 pub fn nd13(&mut self) -> ND13_W {
1452 ND13_W { w: self }
1453 }
1454 #[doc = "Bit 14 - New Data"]
1455 #[inline(always)]
1456 pub fn nd14(&mut self) -> ND14_W {
1457 ND14_W { w: self }
1458 }
1459 #[doc = "Bit 15 - New Data"]
1460 #[inline(always)]
1461 pub fn nd15(&mut self) -> ND15_W {
1462 ND15_W { w: self }
1463 }
1464 #[doc = "Bit 16 - New Data"]
1465 #[inline(always)]
1466 pub fn nd16(&mut self) -> ND16_W {
1467 ND16_W { w: self }
1468 }
1469 #[doc = "Bit 17 - New Data"]
1470 #[inline(always)]
1471 pub fn nd17(&mut self) -> ND17_W {
1472 ND17_W { w: self }
1473 }
1474 #[doc = "Bit 18 - New Data"]
1475 #[inline(always)]
1476 pub fn nd18(&mut self) -> ND18_W {
1477 ND18_W { w: self }
1478 }
1479 #[doc = "Bit 19 - New Data"]
1480 #[inline(always)]
1481 pub fn nd19(&mut self) -> ND19_W {
1482 ND19_W { w: self }
1483 }
1484 #[doc = "Bit 20 - New Data"]
1485 #[inline(always)]
1486 pub fn nd20(&mut self) -> ND20_W {
1487 ND20_W { w: self }
1488 }
1489 #[doc = "Bit 21 - New Data"]
1490 #[inline(always)]
1491 pub fn nd21(&mut self) -> ND21_W {
1492 ND21_W { w: self }
1493 }
1494 #[doc = "Bit 22 - New Data"]
1495 #[inline(always)]
1496 pub fn nd22(&mut self) -> ND22_W {
1497 ND22_W { w: self }
1498 }
1499 #[doc = "Bit 23 - New Data"]
1500 #[inline(always)]
1501 pub fn nd23(&mut self) -> ND23_W {
1502 ND23_W { w: self }
1503 }
1504 #[doc = "Bit 24 - New Data"]
1505 #[inline(always)]
1506 pub fn nd24(&mut self) -> ND24_W {
1507 ND24_W { w: self }
1508 }
1509 #[doc = "Bit 25 - New Data"]
1510 #[inline(always)]
1511 pub fn nd25(&mut self) -> ND25_W {
1512 ND25_W { w: self }
1513 }
1514 #[doc = "Bit 26 - New Data"]
1515 #[inline(always)]
1516 pub fn nd26(&mut self) -> ND26_W {
1517 ND26_W { w: self }
1518 }
1519 #[doc = "Bit 27 - New Data"]
1520 #[inline(always)]
1521 pub fn nd27(&mut self) -> ND27_W {
1522 ND27_W { w: self }
1523 }
1524 #[doc = "Bit 28 - New Data"]
1525 #[inline(always)]
1526 pub fn nd28(&mut self) -> ND28_W {
1527 ND28_W { w: self }
1528 }
1529 #[doc = "Bit 29 - New Data"]
1530 #[inline(always)]
1531 pub fn nd29(&mut self) -> ND29_W {
1532 ND29_W { w: self }
1533 }
1534 #[doc = "Bit 30 - New Data"]
1535 #[inline(always)]
1536 pub fn nd30(&mut self) -> ND30_W {
1537 ND30_W { w: self }
1538 }
1539 #[doc = "Bit 31 - New Data"]
1540 #[inline(always)]
1541 pub fn nd31(&mut self) -> ND31_W {
1542 ND31_W { w: self }
1543 }
1544 #[doc = "Writes raw bits to the register."]
1545 #[inline(always)]
1546 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1547 self.0.bits(bits);
1548 self
1549 }
1550}
1551#[doc = "New Data 1 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 [mcan_ndat1](index.html) module"]
1552pub struct MCAN_NDAT1_SPEC;
1553impl crate::RegisterSpec for MCAN_NDAT1_SPEC {
1554 type Ux = u32;
1555}
1556#[doc = "`read()` method returns [mcan_ndat1::R](R) reader structure"]
1557impl crate::Readable for MCAN_NDAT1_SPEC {
1558 type Reader = R;
1559}
1560#[doc = "`write(|w| ..)` method takes [mcan_ndat1::W](W) writer structure"]
1561impl crate::Writable for MCAN_NDAT1_SPEC {
1562 type Writer = W;
1563}
1564#[doc = "`reset()` method sets MCAN_NDAT1 to value 0"]
1565impl crate::Resettable for MCAN_NDAT1_SPEC {
1566 #[inline(always)]
1567 fn reset_value() -> Self::Ux {
1568 0
1569 }
1570}