1#[doc = "Register `MCAN_IE` reader"]
2pub struct R(crate::R<MCAN_IE_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<MCAN_IE_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<MCAN_IE_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<MCAN_IE_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `MCAN_IE` writer"]
17pub struct W(crate::W<MCAN_IE_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<MCAN_IE_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_IE_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<MCAN_IE_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `RF0NE` reader - Receive FIFO 0 New Message Interrupt Enable"]
38pub struct RF0NE_R(crate::FieldReader<bool, bool>);
39impl RF0NE_R {
40 #[inline(always)]
41 pub(crate) fn new(bits: bool) -> Self {
42 RF0NE_R(crate::FieldReader::new(bits))
43 }
44}
45impl core::ops::Deref for RF0NE_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 `RF0NE` writer - Receive FIFO 0 New Message Interrupt Enable"]
53pub struct RF0NE_W<'a> {
54 w: &'a mut W,
55}
56impl<'a> RF0NE_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 `RF0WE` reader - Receive FIFO 0 Watermark Reached Interrupt Enable"]
75pub struct RF0WE_R(crate::FieldReader<bool, bool>);
76impl RF0WE_R {
77 #[inline(always)]
78 pub(crate) fn new(bits: bool) -> Self {
79 RF0WE_R(crate::FieldReader::new(bits))
80 }
81}
82impl core::ops::Deref for RF0WE_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 `RF0WE` writer - Receive FIFO 0 Watermark Reached Interrupt Enable"]
90pub struct RF0WE_W<'a> {
91 w: &'a mut W,
92}
93impl<'a> RF0WE_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 `RF0FE` reader - Receive FIFO 0 Full Interrupt Enable"]
112pub struct RF0FE_R(crate::FieldReader<bool, bool>);
113impl RF0FE_R {
114 #[inline(always)]
115 pub(crate) fn new(bits: bool) -> Self {
116 RF0FE_R(crate::FieldReader::new(bits))
117 }
118}
119impl core::ops::Deref for RF0FE_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 `RF0FE` writer - Receive FIFO 0 Full Interrupt Enable"]
127pub struct RF0FE_W<'a> {
128 w: &'a mut W,
129}
130impl<'a> RF0FE_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 `RF0LE` reader - Receive FIFO 0 Message Lost Interrupt Enable"]
149pub struct RF0LE_R(crate::FieldReader<bool, bool>);
150impl RF0LE_R {
151 #[inline(always)]
152 pub(crate) fn new(bits: bool) -> Self {
153 RF0LE_R(crate::FieldReader::new(bits))
154 }
155}
156impl core::ops::Deref for RF0LE_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 `RF0LE` writer - Receive FIFO 0 Message Lost Interrupt Enable"]
164pub struct RF0LE_W<'a> {
165 w: &'a mut W,
166}
167impl<'a> RF0LE_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 `RF1NE` reader - Receive FIFO 1 New Message Interrupt Enable"]
186pub struct RF1NE_R(crate::FieldReader<bool, bool>);
187impl RF1NE_R {
188 #[inline(always)]
189 pub(crate) fn new(bits: bool) -> Self {
190 RF1NE_R(crate::FieldReader::new(bits))
191 }
192}
193impl core::ops::Deref for RF1NE_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 `RF1NE` writer - Receive FIFO 1 New Message Interrupt Enable"]
201pub struct RF1NE_W<'a> {
202 w: &'a mut W,
203}
204impl<'a> RF1NE_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 `RF1WE` reader - Receive FIFO 1 Watermark Reached Interrupt Enable"]
223pub struct RF1WE_R(crate::FieldReader<bool, bool>);
224impl RF1WE_R {
225 #[inline(always)]
226 pub(crate) fn new(bits: bool) -> Self {
227 RF1WE_R(crate::FieldReader::new(bits))
228 }
229}
230impl core::ops::Deref for RF1WE_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 `RF1WE` writer - Receive FIFO 1 Watermark Reached Interrupt Enable"]
238pub struct RF1WE_W<'a> {
239 w: &'a mut W,
240}
241impl<'a> RF1WE_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 `RF1FE` reader - Receive FIFO 1 Full Interrupt Enable"]
260pub struct RF1FE_R(crate::FieldReader<bool, bool>);
261impl RF1FE_R {
262 #[inline(always)]
263 pub(crate) fn new(bits: bool) -> Self {
264 RF1FE_R(crate::FieldReader::new(bits))
265 }
266}
267impl core::ops::Deref for RF1FE_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 `RF1FE` writer - Receive FIFO 1 Full Interrupt Enable"]
275pub struct RF1FE_W<'a> {
276 w: &'a mut W,
277}
278impl<'a> RF1FE_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 `RF1LE` reader - Receive FIFO 1 Message Lost Interrupt Enable"]
297pub struct RF1LE_R(crate::FieldReader<bool, bool>);
298impl RF1LE_R {
299 #[inline(always)]
300 pub(crate) fn new(bits: bool) -> Self {
301 RF1LE_R(crate::FieldReader::new(bits))
302 }
303}
304impl core::ops::Deref for RF1LE_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 `RF1LE` writer - Receive FIFO 1 Message Lost Interrupt Enable"]
312pub struct RF1LE_W<'a> {
313 w: &'a mut W,
314}
315impl<'a> RF1LE_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 `HPME` reader - High Priority Message Interrupt Enable"]
334pub struct HPME_R(crate::FieldReader<bool, bool>);
335impl HPME_R {
336 #[inline(always)]
337 pub(crate) fn new(bits: bool) -> Self {
338 HPME_R(crate::FieldReader::new(bits))
339 }
340}
341impl core::ops::Deref for HPME_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 `HPME` writer - High Priority Message Interrupt Enable"]
349pub struct HPME_W<'a> {
350 w: &'a mut W,
351}
352impl<'a> HPME_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 `TCE` reader - Transmission Completed Interrupt Enable"]
371pub struct TCE_R(crate::FieldReader<bool, bool>);
372impl TCE_R {
373 #[inline(always)]
374 pub(crate) fn new(bits: bool) -> Self {
375 TCE_R(crate::FieldReader::new(bits))
376 }
377}
378impl core::ops::Deref for TCE_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 `TCE` writer - Transmission Completed Interrupt Enable"]
386pub struct TCE_W<'a> {
387 w: &'a mut W,
388}
389impl<'a> TCE_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 `TCFE` reader - Transmission Cancellation Finished Interrupt Enable"]
408pub struct TCFE_R(crate::FieldReader<bool, bool>);
409impl TCFE_R {
410 #[inline(always)]
411 pub(crate) fn new(bits: bool) -> Self {
412 TCFE_R(crate::FieldReader::new(bits))
413 }
414}
415impl core::ops::Deref for TCFE_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 `TCFE` writer - Transmission Cancellation Finished Interrupt Enable"]
423pub struct TCFE_W<'a> {
424 w: &'a mut W,
425}
426impl<'a> TCFE_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 `TFEE` reader - Tx FIFO Empty Interrupt Enable"]
445pub struct TFEE_R(crate::FieldReader<bool, bool>);
446impl TFEE_R {
447 #[inline(always)]
448 pub(crate) fn new(bits: bool) -> Self {
449 TFEE_R(crate::FieldReader::new(bits))
450 }
451}
452impl core::ops::Deref for TFEE_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 `TFEE` writer - Tx FIFO Empty Interrupt Enable"]
460pub struct TFEE_W<'a> {
461 w: &'a mut W,
462}
463impl<'a> TFEE_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 `TEFNE` reader - Tx Event FIFO New Entry Interrupt Enable"]
482pub struct TEFNE_R(crate::FieldReader<bool, bool>);
483impl TEFNE_R {
484 #[inline(always)]
485 pub(crate) fn new(bits: bool) -> Self {
486 TEFNE_R(crate::FieldReader::new(bits))
487 }
488}
489impl core::ops::Deref for TEFNE_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 `TEFNE` writer - Tx Event FIFO New Entry Interrupt Enable"]
497pub struct TEFNE_W<'a> {
498 w: &'a mut W,
499}
500impl<'a> TEFNE_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 `TEFWE` reader - Tx Event FIFO Watermark Reached Interrupt Enable"]
519pub struct TEFWE_R(crate::FieldReader<bool, bool>);
520impl TEFWE_R {
521 #[inline(always)]
522 pub(crate) fn new(bits: bool) -> Self {
523 TEFWE_R(crate::FieldReader::new(bits))
524 }
525}
526impl core::ops::Deref for TEFWE_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 `TEFWE` writer - Tx Event FIFO Watermark Reached Interrupt Enable"]
534pub struct TEFWE_W<'a> {
535 w: &'a mut W,
536}
537impl<'a> TEFWE_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 `TEFFE` reader - Tx Event FIFO Full Interrupt Enable"]
556pub struct TEFFE_R(crate::FieldReader<bool, bool>);
557impl TEFFE_R {
558 #[inline(always)]
559 pub(crate) fn new(bits: bool) -> Self {
560 TEFFE_R(crate::FieldReader::new(bits))
561 }
562}
563impl core::ops::Deref for TEFFE_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 `TEFFE` writer - Tx Event FIFO Full Interrupt Enable"]
571pub struct TEFFE_W<'a> {
572 w: &'a mut W,
573}
574impl<'a> TEFFE_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 `TEFLE` reader - Tx Event FIFO Event Lost Interrupt Enable"]
593pub struct TEFLE_R(crate::FieldReader<bool, bool>);
594impl TEFLE_R {
595 #[inline(always)]
596 pub(crate) fn new(bits: bool) -> Self {
597 TEFLE_R(crate::FieldReader::new(bits))
598 }
599}
600impl core::ops::Deref for TEFLE_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 `TEFLE` writer - Tx Event FIFO Event Lost Interrupt Enable"]
608pub struct TEFLE_W<'a> {
609 w: &'a mut W,
610}
611impl<'a> TEFLE_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 `TSWE` reader - Timestamp Wraparound Interrupt Enable"]
630pub struct TSWE_R(crate::FieldReader<bool, bool>);
631impl TSWE_R {
632 #[inline(always)]
633 pub(crate) fn new(bits: bool) -> Self {
634 TSWE_R(crate::FieldReader::new(bits))
635 }
636}
637impl core::ops::Deref for TSWE_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 `TSWE` writer - Timestamp Wraparound Interrupt Enable"]
645pub struct TSWE_W<'a> {
646 w: &'a mut W,
647}
648impl<'a> TSWE_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 `MRAFE` reader - Message RAM Access Failure Interrupt Enable"]
667pub struct MRAFE_R(crate::FieldReader<bool, bool>);
668impl MRAFE_R {
669 #[inline(always)]
670 pub(crate) fn new(bits: bool) -> Self {
671 MRAFE_R(crate::FieldReader::new(bits))
672 }
673}
674impl core::ops::Deref for MRAFE_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 `MRAFE` writer - Message RAM Access Failure Interrupt Enable"]
682pub struct MRAFE_W<'a> {
683 w: &'a mut W,
684}
685impl<'a> MRAFE_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 `TOOE` reader - Timeout Occurred Interrupt Enable"]
704pub struct TOOE_R(crate::FieldReader<bool, bool>);
705impl TOOE_R {
706 #[inline(always)]
707 pub(crate) fn new(bits: bool) -> Self {
708 TOOE_R(crate::FieldReader::new(bits))
709 }
710}
711impl core::ops::Deref for TOOE_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 `TOOE` writer - Timeout Occurred Interrupt Enable"]
719pub struct TOOE_W<'a> {
720 w: &'a mut W,
721}
722impl<'a> TOOE_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 `DRXE` reader - Message stored to Dedicated Receive Buffer Interrupt Enable"]
741pub struct DRXE_R(crate::FieldReader<bool, bool>);
742impl DRXE_R {
743 #[inline(always)]
744 pub(crate) fn new(bits: bool) -> Self {
745 DRXE_R(crate::FieldReader::new(bits))
746 }
747}
748impl core::ops::Deref for DRXE_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 `DRXE` writer - Message stored to Dedicated Receive Buffer Interrupt Enable"]
756pub struct DRXE_W<'a> {
757 w: &'a mut W,
758}
759impl<'a> DRXE_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 `BECE` reader - Bit Error Corrected Interrupt Enable"]
778pub struct BECE_R(crate::FieldReader<bool, bool>);
779impl BECE_R {
780 #[inline(always)]
781 pub(crate) fn new(bits: bool) -> Self {
782 BECE_R(crate::FieldReader::new(bits))
783 }
784}
785impl core::ops::Deref for BECE_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 `BECE` writer - Bit Error Corrected Interrupt Enable"]
793pub struct BECE_W<'a> {
794 w: &'a mut W,
795}
796impl<'a> BECE_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 `BEUE` reader - Bit Error Uncorrected Interrupt Enable"]
815pub struct BEUE_R(crate::FieldReader<bool, bool>);
816impl BEUE_R {
817 #[inline(always)]
818 pub(crate) fn new(bits: bool) -> Self {
819 BEUE_R(crate::FieldReader::new(bits))
820 }
821}
822impl core::ops::Deref for BEUE_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 `BEUE` writer - Bit Error Uncorrected Interrupt Enable"]
830pub struct BEUE_W<'a> {
831 w: &'a mut W,
832}
833impl<'a> BEUE_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 `ELOE` reader - Error Logging Overflow Interrupt Enable"]
852pub struct ELOE_R(crate::FieldReader<bool, bool>);
853impl ELOE_R {
854 #[inline(always)]
855 pub(crate) fn new(bits: bool) -> Self {
856 ELOE_R(crate::FieldReader::new(bits))
857 }
858}
859impl core::ops::Deref for ELOE_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 `ELOE` writer - Error Logging Overflow Interrupt Enable"]
867pub struct ELOE_W<'a> {
868 w: &'a mut W,
869}
870impl<'a> ELOE_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 `EPE` reader - Error Passive Interrupt Enable"]
889pub struct EPE_R(crate::FieldReader<bool, bool>);
890impl EPE_R {
891 #[inline(always)]
892 pub(crate) fn new(bits: bool) -> Self {
893 EPE_R(crate::FieldReader::new(bits))
894 }
895}
896impl core::ops::Deref for EPE_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 `EPE` writer - Error Passive Interrupt Enable"]
904pub struct EPE_W<'a> {
905 w: &'a mut W,
906}
907impl<'a> EPE_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 `EWE` reader - Warning Status Interrupt Enable"]
926pub struct EWE_R(crate::FieldReader<bool, bool>);
927impl EWE_R {
928 #[inline(always)]
929 pub(crate) fn new(bits: bool) -> Self {
930 EWE_R(crate::FieldReader::new(bits))
931 }
932}
933impl core::ops::Deref for EWE_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 `EWE` writer - Warning Status Interrupt Enable"]
941pub struct EWE_W<'a> {
942 w: &'a mut W,
943}
944impl<'a> EWE_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 `BOE` reader - Bus_Off Status Interrupt Enable"]
963pub struct BOE_R(crate::FieldReader<bool, bool>);
964impl BOE_R {
965 #[inline(always)]
966 pub(crate) fn new(bits: bool) -> Self {
967 BOE_R(crate::FieldReader::new(bits))
968 }
969}
970impl core::ops::Deref for BOE_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 `BOE` writer - Bus_Off Status Interrupt Enable"]
978pub struct BOE_W<'a> {
979 w: &'a mut W,
980}
981impl<'a> BOE_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 `WDIE` reader - Watchdog Interrupt Enable"]
1000pub struct WDIE_R(crate::FieldReader<bool, bool>);
1001impl WDIE_R {
1002 #[inline(always)]
1003 pub(crate) fn new(bits: bool) -> Self {
1004 WDIE_R(crate::FieldReader::new(bits))
1005 }
1006}
1007impl core::ops::Deref for WDIE_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 `WDIE` writer - Watchdog Interrupt Enable"]
1015pub struct WDIE_W<'a> {
1016 w: &'a mut W,
1017}
1018impl<'a> WDIE_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 `CRCEE` reader - CRC Error Interrupt Enable"]
1037pub struct CRCEE_R(crate::FieldReader<bool, bool>);
1038impl CRCEE_R {
1039 #[inline(always)]
1040 pub(crate) fn new(bits: bool) -> Self {
1041 CRCEE_R(crate::FieldReader::new(bits))
1042 }
1043}
1044impl core::ops::Deref for CRCEE_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 `CRCEE` writer - CRC Error Interrupt Enable"]
1052pub struct CRCEE_W<'a> {
1053 w: &'a mut W,
1054}
1055impl<'a> CRCEE_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 `BEE` reader - Bit Error Interrupt Enable"]
1074pub struct BEE_R(crate::FieldReader<bool, bool>);
1075impl BEE_R {
1076 #[inline(always)]
1077 pub(crate) fn new(bits: bool) -> Self {
1078 BEE_R(crate::FieldReader::new(bits))
1079 }
1080}
1081impl core::ops::Deref for BEE_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 `BEE` writer - Bit Error Interrupt Enable"]
1089pub struct BEE_W<'a> {
1090 w: &'a mut W,
1091}
1092impl<'a> BEE_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 `ACKEE` reader - Acknowledge Error Interrupt Enable"]
1111pub struct ACKEE_R(crate::FieldReader<bool, bool>);
1112impl ACKEE_R {
1113 #[inline(always)]
1114 pub(crate) fn new(bits: bool) -> Self {
1115 ACKEE_R(crate::FieldReader::new(bits))
1116 }
1117}
1118impl core::ops::Deref for ACKEE_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 `ACKEE` writer - Acknowledge Error Interrupt Enable"]
1126pub struct ACKEE_W<'a> {
1127 w: &'a mut W,
1128}
1129impl<'a> ACKEE_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 `FOEE` reader - Format Error Interrupt Enable"]
1148pub struct FOEE_R(crate::FieldReader<bool, bool>);
1149impl FOEE_R {
1150 #[inline(always)]
1151 pub(crate) fn new(bits: bool) -> Self {
1152 FOEE_R(crate::FieldReader::new(bits))
1153 }
1154}
1155impl core::ops::Deref for FOEE_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 `FOEE` writer - Format Error Interrupt Enable"]
1163pub struct FOEE_W<'a> {
1164 w: &'a mut W,
1165}
1166impl<'a> FOEE_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 `STEE` reader - Stuff Error Interrupt Enable"]
1185pub struct STEE_R(crate::FieldReader<bool, bool>);
1186impl STEE_R {
1187 #[inline(always)]
1188 pub(crate) fn new(bits: bool) -> Self {
1189 STEE_R(crate::FieldReader::new(bits))
1190 }
1191}
1192impl core::ops::Deref for STEE_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 `STEE` writer - Stuff Error Interrupt Enable"]
1200pub struct STEE_W<'a> {
1201 w: &'a mut W,
1202}
1203impl<'a> STEE_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 - Receive FIFO 0 New Message Interrupt Enable"]
1223 #[inline(always)]
1224 pub fn rf0ne(&self) -> RF0NE_R {
1225 RF0NE_R::new((self.bits & 0x01) != 0)
1226 }
1227 #[doc = "Bit 1 - Receive FIFO 0 Watermark Reached Interrupt Enable"]
1228 #[inline(always)]
1229 pub fn rf0we(&self) -> RF0WE_R {
1230 RF0WE_R::new(((self.bits >> 1) & 0x01) != 0)
1231 }
1232 #[doc = "Bit 2 - Receive FIFO 0 Full Interrupt Enable"]
1233 #[inline(always)]
1234 pub fn rf0fe(&self) -> RF0FE_R {
1235 RF0FE_R::new(((self.bits >> 2) & 0x01) != 0)
1236 }
1237 #[doc = "Bit 3 - Receive FIFO 0 Message Lost Interrupt Enable"]
1238 #[inline(always)]
1239 pub fn rf0le(&self) -> RF0LE_R {
1240 RF0LE_R::new(((self.bits >> 3) & 0x01) != 0)
1241 }
1242 #[doc = "Bit 4 - Receive FIFO 1 New Message Interrupt Enable"]
1243 #[inline(always)]
1244 pub fn rf1ne(&self) -> RF1NE_R {
1245 RF1NE_R::new(((self.bits >> 4) & 0x01) != 0)
1246 }
1247 #[doc = "Bit 5 - Receive FIFO 1 Watermark Reached Interrupt Enable"]
1248 #[inline(always)]
1249 pub fn rf1we(&self) -> RF1WE_R {
1250 RF1WE_R::new(((self.bits >> 5) & 0x01) != 0)
1251 }
1252 #[doc = "Bit 6 - Receive FIFO 1 Full Interrupt Enable"]
1253 #[inline(always)]
1254 pub fn rf1fe(&self) -> RF1FE_R {
1255 RF1FE_R::new(((self.bits >> 6) & 0x01) != 0)
1256 }
1257 #[doc = "Bit 7 - Receive FIFO 1 Message Lost Interrupt Enable"]
1258 #[inline(always)]
1259 pub fn rf1le(&self) -> RF1LE_R {
1260 RF1LE_R::new(((self.bits >> 7) & 0x01) != 0)
1261 }
1262 #[doc = "Bit 8 - High Priority Message Interrupt Enable"]
1263 #[inline(always)]
1264 pub fn hpme(&self) -> HPME_R {
1265 HPME_R::new(((self.bits >> 8) & 0x01) != 0)
1266 }
1267 #[doc = "Bit 9 - Transmission Completed Interrupt Enable"]
1268 #[inline(always)]
1269 pub fn tce(&self) -> TCE_R {
1270 TCE_R::new(((self.bits >> 9) & 0x01) != 0)
1271 }
1272 #[doc = "Bit 10 - Transmission Cancellation Finished Interrupt Enable"]
1273 #[inline(always)]
1274 pub fn tcfe(&self) -> TCFE_R {
1275 TCFE_R::new(((self.bits >> 10) & 0x01) != 0)
1276 }
1277 #[doc = "Bit 11 - Tx FIFO Empty Interrupt Enable"]
1278 #[inline(always)]
1279 pub fn tfee(&self) -> TFEE_R {
1280 TFEE_R::new(((self.bits >> 11) & 0x01) != 0)
1281 }
1282 #[doc = "Bit 12 - Tx Event FIFO New Entry Interrupt Enable"]
1283 #[inline(always)]
1284 pub fn tefne(&self) -> TEFNE_R {
1285 TEFNE_R::new(((self.bits >> 12) & 0x01) != 0)
1286 }
1287 #[doc = "Bit 13 - Tx Event FIFO Watermark Reached Interrupt Enable"]
1288 #[inline(always)]
1289 pub fn tefwe(&self) -> TEFWE_R {
1290 TEFWE_R::new(((self.bits >> 13) & 0x01) != 0)
1291 }
1292 #[doc = "Bit 14 - Tx Event FIFO Full Interrupt Enable"]
1293 #[inline(always)]
1294 pub fn teffe(&self) -> TEFFE_R {
1295 TEFFE_R::new(((self.bits >> 14) & 0x01) != 0)
1296 }
1297 #[doc = "Bit 15 - Tx Event FIFO Event Lost Interrupt Enable"]
1298 #[inline(always)]
1299 pub fn tefle(&self) -> TEFLE_R {
1300 TEFLE_R::new(((self.bits >> 15) & 0x01) != 0)
1301 }
1302 #[doc = "Bit 16 - Timestamp Wraparound Interrupt Enable"]
1303 #[inline(always)]
1304 pub fn tswe(&self) -> TSWE_R {
1305 TSWE_R::new(((self.bits >> 16) & 0x01) != 0)
1306 }
1307 #[doc = "Bit 17 - Message RAM Access Failure Interrupt Enable"]
1308 #[inline(always)]
1309 pub fn mrafe(&self) -> MRAFE_R {
1310 MRAFE_R::new(((self.bits >> 17) & 0x01) != 0)
1311 }
1312 #[doc = "Bit 18 - Timeout Occurred Interrupt Enable"]
1313 #[inline(always)]
1314 pub fn tooe(&self) -> TOOE_R {
1315 TOOE_R::new(((self.bits >> 18) & 0x01) != 0)
1316 }
1317 #[doc = "Bit 19 - Message stored to Dedicated Receive Buffer Interrupt Enable"]
1318 #[inline(always)]
1319 pub fn drxe(&self) -> DRXE_R {
1320 DRXE_R::new(((self.bits >> 19) & 0x01) != 0)
1321 }
1322 #[doc = "Bit 20 - Bit Error Corrected Interrupt Enable"]
1323 #[inline(always)]
1324 pub fn bece(&self) -> BECE_R {
1325 BECE_R::new(((self.bits >> 20) & 0x01) != 0)
1326 }
1327 #[doc = "Bit 21 - Bit Error Uncorrected Interrupt Enable"]
1328 #[inline(always)]
1329 pub fn beue(&self) -> BEUE_R {
1330 BEUE_R::new(((self.bits >> 21) & 0x01) != 0)
1331 }
1332 #[doc = "Bit 22 - Error Logging Overflow Interrupt Enable"]
1333 #[inline(always)]
1334 pub fn eloe(&self) -> ELOE_R {
1335 ELOE_R::new(((self.bits >> 22) & 0x01) != 0)
1336 }
1337 #[doc = "Bit 23 - Error Passive Interrupt Enable"]
1338 #[inline(always)]
1339 pub fn epe(&self) -> EPE_R {
1340 EPE_R::new(((self.bits >> 23) & 0x01) != 0)
1341 }
1342 #[doc = "Bit 24 - Warning Status Interrupt Enable"]
1343 #[inline(always)]
1344 pub fn ewe(&self) -> EWE_R {
1345 EWE_R::new(((self.bits >> 24) & 0x01) != 0)
1346 }
1347 #[doc = "Bit 25 - Bus_Off Status Interrupt Enable"]
1348 #[inline(always)]
1349 pub fn boe(&self) -> BOE_R {
1350 BOE_R::new(((self.bits >> 25) & 0x01) != 0)
1351 }
1352 #[doc = "Bit 26 - Watchdog Interrupt Enable"]
1353 #[inline(always)]
1354 pub fn wdie(&self) -> WDIE_R {
1355 WDIE_R::new(((self.bits >> 26) & 0x01) != 0)
1356 }
1357 #[doc = "Bit 27 - CRC Error Interrupt Enable"]
1358 #[inline(always)]
1359 pub fn crcee(&self) -> CRCEE_R {
1360 CRCEE_R::new(((self.bits >> 27) & 0x01) != 0)
1361 }
1362 #[doc = "Bit 28 - Bit Error Interrupt Enable"]
1363 #[inline(always)]
1364 pub fn bee(&self) -> BEE_R {
1365 BEE_R::new(((self.bits >> 28) & 0x01) != 0)
1366 }
1367 #[doc = "Bit 29 - Acknowledge Error Interrupt Enable"]
1368 #[inline(always)]
1369 pub fn ackee(&self) -> ACKEE_R {
1370 ACKEE_R::new(((self.bits >> 29) & 0x01) != 0)
1371 }
1372 #[doc = "Bit 30 - Format Error Interrupt Enable"]
1373 #[inline(always)]
1374 pub fn foee(&self) -> FOEE_R {
1375 FOEE_R::new(((self.bits >> 30) & 0x01) != 0)
1376 }
1377 #[doc = "Bit 31 - Stuff Error Interrupt Enable"]
1378 #[inline(always)]
1379 pub fn stee(&self) -> STEE_R {
1380 STEE_R::new(((self.bits >> 31) & 0x01) != 0)
1381 }
1382}
1383impl W {
1384 #[doc = "Bit 0 - Receive FIFO 0 New Message Interrupt Enable"]
1385 #[inline(always)]
1386 pub fn rf0ne(&mut self) -> RF0NE_W {
1387 RF0NE_W { w: self }
1388 }
1389 #[doc = "Bit 1 - Receive FIFO 0 Watermark Reached Interrupt Enable"]
1390 #[inline(always)]
1391 pub fn rf0we(&mut self) -> RF0WE_W {
1392 RF0WE_W { w: self }
1393 }
1394 #[doc = "Bit 2 - Receive FIFO 0 Full Interrupt Enable"]
1395 #[inline(always)]
1396 pub fn rf0fe(&mut self) -> RF0FE_W {
1397 RF0FE_W { w: self }
1398 }
1399 #[doc = "Bit 3 - Receive FIFO 0 Message Lost Interrupt Enable"]
1400 #[inline(always)]
1401 pub fn rf0le(&mut self) -> RF0LE_W {
1402 RF0LE_W { w: self }
1403 }
1404 #[doc = "Bit 4 - Receive FIFO 1 New Message Interrupt Enable"]
1405 #[inline(always)]
1406 pub fn rf1ne(&mut self) -> RF1NE_W {
1407 RF1NE_W { w: self }
1408 }
1409 #[doc = "Bit 5 - Receive FIFO 1 Watermark Reached Interrupt Enable"]
1410 #[inline(always)]
1411 pub fn rf1we(&mut self) -> RF1WE_W {
1412 RF1WE_W { w: self }
1413 }
1414 #[doc = "Bit 6 - Receive FIFO 1 Full Interrupt Enable"]
1415 #[inline(always)]
1416 pub fn rf1fe(&mut self) -> RF1FE_W {
1417 RF1FE_W { w: self }
1418 }
1419 #[doc = "Bit 7 - Receive FIFO 1 Message Lost Interrupt Enable"]
1420 #[inline(always)]
1421 pub fn rf1le(&mut self) -> RF1LE_W {
1422 RF1LE_W { w: self }
1423 }
1424 #[doc = "Bit 8 - High Priority Message Interrupt Enable"]
1425 #[inline(always)]
1426 pub fn hpme(&mut self) -> HPME_W {
1427 HPME_W { w: self }
1428 }
1429 #[doc = "Bit 9 - Transmission Completed Interrupt Enable"]
1430 #[inline(always)]
1431 pub fn tce(&mut self) -> TCE_W {
1432 TCE_W { w: self }
1433 }
1434 #[doc = "Bit 10 - Transmission Cancellation Finished Interrupt Enable"]
1435 #[inline(always)]
1436 pub fn tcfe(&mut self) -> TCFE_W {
1437 TCFE_W { w: self }
1438 }
1439 #[doc = "Bit 11 - Tx FIFO Empty Interrupt Enable"]
1440 #[inline(always)]
1441 pub fn tfee(&mut self) -> TFEE_W {
1442 TFEE_W { w: self }
1443 }
1444 #[doc = "Bit 12 - Tx Event FIFO New Entry Interrupt Enable"]
1445 #[inline(always)]
1446 pub fn tefne(&mut self) -> TEFNE_W {
1447 TEFNE_W { w: self }
1448 }
1449 #[doc = "Bit 13 - Tx Event FIFO Watermark Reached Interrupt Enable"]
1450 #[inline(always)]
1451 pub fn tefwe(&mut self) -> TEFWE_W {
1452 TEFWE_W { w: self }
1453 }
1454 #[doc = "Bit 14 - Tx Event FIFO Full Interrupt Enable"]
1455 #[inline(always)]
1456 pub fn teffe(&mut self) -> TEFFE_W {
1457 TEFFE_W { w: self }
1458 }
1459 #[doc = "Bit 15 - Tx Event FIFO Event Lost Interrupt Enable"]
1460 #[inline(always)]
1461 pub fn tefle(&mut self) -> TEFLE_W {
1462 TEFLE_W { w: self }
1463 }
1464 #[doc = "Bit 16 - Timestamp Wraparound Interrupt Enable"]
1465 #[inline(always)]
1466 pub fn tswe(&mut self) -> TSWE_W {
1467 TSWE_W { w: self }
1468 }
1469 #[doc = "Bit 17 - Message RAM Access Failure Interrupt Enable"]
1470 #[inline(always)]
1471 pub fn mrafe(&mut self) -> MRAFE_W {
1472 MRAFE_W { w: self }
1473 }
1474 #[doc = "Bit 18 - Timeout Occurred Interrupt Enable"]
1475 #[inline(always)]
1476 pub fn tooe(&mut self) -> TOOE_W {
1477 TOOE_W { w: self }
1478 }
1479 #[doc = "Bit 19 - Message stored to Dedicated Receive Buffer Interrupt Enable"]
1480 #[inline(always)]
1481 pub fn drxe(&mut self) -> DRXE_W {
1482 DRXE_W { w: self }
1483 }
1484 #[doc = "Bit 20 - Bit Error Corrected Interrupt Enable"]
1485 #[inline(always)]
1486 pub fn bece(&mut self) -> BECE_W {
1487 BECE_W { w: self }
1488 }
1489 #[doc = "Bit 21 - Bit Error Uncorrected Interrupt Enable"]
1490 #[inline(always)]
1491 pub fn beue(&mut self) -> BEUE_W {
1492 BEUE_W { w: self }
1493 }
1494 #[doc = "Bit 22 - Error Logging Overflow Interrupt Enable"]
1495 #[inline(always)]
1496 pub fn eloe(&mut self) -> ELOE_W {
1497 ELOE_W { w: self }
1498 }
1499 #[doc = "Bit 23 - Error Passive Interrupt Enable"]
1500 #[inline(always)]
1501 pub fn epe(&mut self) -> EPE_W {
1502 EPE_W { w: self }
1503 }
1504 #[doc = "Bit 24 - Warning Status Interrupt Enable"]
1505 #[inline(always)]
1506 pub fn ewe(&mut self) -> EWE_W {
1507 EWE_W { w: self }
1508 }
1509 #[doc = "Bit 25 - Bus_Off Status Interrupt Enable"]
1510 #[inline(always)]
1511 pub fn boe(&mut self) -> BOE_W {
1512 BOE_W { w: self }
1513 }
1514 #[doc = "Bit 26 - Watchdog Interrupt Enable"]
1515 #[inline(always)]
1516 pub fn wdie(&mut self) -> WDIE_W {
1517 WDIE_W { w: self }
1518 }
1519 #[doc = "Bit 27 - CRC Error Interrupt Enable"]
1520 #[inline(always)]
1521 pub fn crcee(&mut self) -> CRCEE_W {
1522 CRCEE_W { w: self }
1523 }
1524 #[doc = "Bit 28 - Bit Error Interrupt Enable"]
1525 #[inline(always)]
1526 pub fn bee(&mut self) -> BEE_W {
1527 BEE_W { w: self }
1528 }
1529 #[doc = "Bit 29 - Acknowledge Error Interrupt Enable"]
1530 #[inline(always)]
1531 pub fn ackee(&mut self) -> ACKEE_W {
1532 ACKEE_W { w: self }
1533 }
1534 #[doc = "Bit 30 - Format Error Interrupt Enable"]
1535 #[inline(always)]
1536 pub fn foee(&mut self) -> FOEE_W {
1537 FOEE_W { w: self }
1538 }
1539 #[doc = "Bit 31 - Stuff Error Interrupt Enable"]
1540 #[inline(always)]
1541 pub fn stee(&mut self) -> STEE_W {
1542 STEE_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 = "Interrupt Enable 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_ie](index.html) module"]
1552pub struct MCAN_IE_SPEC;
1553impl crate::RegisterSpec for MCAN_IE_SPEC {
1554 type Ux = u32;
1555}
1556#[doc = "`read()` method returns [mcan_ie::R](R) reader structure"]
1557impl crate::Readable for MCAN_IE_SPEC {
1558 type Reader = R;
1559}
1560#[doc = "`write(|w| ..)` method takes [mcan_ie::W](W) writer structure"]
1561impl crate::Writable for MCAN_IE_SPEC {
1562 type Writer = W;
1563}
1564#[doc = "`reset()` method sets MCAN_IE to value 0"]
1565impl crate::Resettable for MCAN_IE_SPEC {
1566 #[inline(always)]
1567 fn reset_value() -> Self::Ux {
1568 0
1569 }
1570}