1#[doc = "Register `IER` reader"]
2pub type R = crate::R<IerSpec>;
3#[doc = "Register `IER` writer"]
4pub type W = crate::W<IerSpec>;
5#[doc = "Field `PARE` reader - PARE"]
6pub type PareR = crate::BitReader;
7#[doc = "Field `PARE` writer - PARE"]
8pub type PareW<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `RXCE` reader - RXCE"]
10pub type RxceR = crate::BitReader;
11#[doc = "Field `RXCE` writer - RXCE"]
12pub type RxceW<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `TXCE` reader - TXCE"]
14pub type TxceR = crate::BitReader;
15#[doc = "Field `TXCE` writer - TXCE"]
16pub type TxceW<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `WTE` reader - WTE"]
18pub type WteR = crate::BitReader;
19#[doc = "Field `WTE` writer - WTE"]
20pub type WteW<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `CARDIRE` reader - CARDIRE"]
22pub type CardireR = crate::BitReader;
23#[doc = "Field `CARDIRE` writer - CARDIRE"]
24pub type CardireW<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `TXBEE` reader - TXBEE"]
26pub type TxbeeR = crate::BitReader;
27#[doc = "Field `TXBEE` writer - TXBEE"]
28pub type TxbeeW<'a, REG> = crate::BitWriter<'a, REG>;
29impl R {
30 #[doc = "Bit 0 - PARE"]
31 #[inline(always)]
32 pub fn pare(&self) -> PareR {
33 PareR::new((self.bits & 1) != 0)
34 }
35 #[doc = "Bit 1 - RXCE"]
36 #[inline(always)]
37 pub fn rxce(&self) -> RxceR {
38 RxceR::new(((self.bits >> 1) & 1) != 0)
39 }
40 #[doc = "Bit 2 - TXCE"]
41 #[inline(always)]
42 pub fn txce(&self) -> TxceR {
43 TxceR::new(((self.bits >> 2) & 1) != 0)
44 }
45 #[doc = "Bit 3 - WTE"]
46 #[inline(always)]
47 pub fn wte(&self) -> WteR {
48 WteR::new(((self.bits >> 3) & 1) != 0)
49 }
50 #[doc = "Bit 6 - CARDIRE"]
51 #[inline(always)]
52 pub fn cardire(&self) -> CardireR {
53 CardireR::new(((self.bits >> 6) & 1) != 0)
54 }
55 #[doc = "Bit 7 - TXBEE"]
56 #[inline(always)]
57 pub fn txbee(&self) -> TxbeeR {
58 TxbeeR::new(((self.bits >> 7) & 1) != 0)
59 }
60}
61impl W {
62 #[doc = "Bit 0 - PARE"]
63 #[inline(always)]
64 #[must_use]
65 pub fn pare(&mut self) -> PareW<IerSpec> {
66 PareW::new(self, 0)
67 }
68 #[doc = "Bit 1 - RXCE"]
69 #[inline(always)]
70 #[must_use]
71 pub fn rxce(&mut self) -> RxceW<IerSpec> {
72 RxceW::new(self, 1)
73 }
74 #[doc = "Bit 2 - TXCE"]
75 #[inline(always)]
76 #[must_use]
77 pub fn txce(&mut self) -> TxceW<IerSpec> {
78 TxceW::new(self, 2)
79 }
80 #[doc = "Bit 3 - WTE"]
81 #[inline(always)]
82 #[must_use]
83 pub fn wte(&mut self) -> WteW<IerSpec> {
84 WteW::new(self, 3)
85 }
86 #[doc = "Bit 6 - CARDIRE"]
87 #[inline(always)]
88 #[must_use]
89 pub fn cardire(&mut self) -> CardireW<IerSpec> {
90 CardireW::new(self, 6)
91 }
92 #[doc = "Bit 7 - TXBEE"]
93 #[inline(always)]
94 #[must_use]
95 pub fn txbee(&mut self) -> TxbeeW<IerSpec> {
96 TxbeeW::new(self, 7)
97 }
98}
99#[doc = "IER\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ier::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ier::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
100pub struct IerSpec;
101impl crate::RegisterSpec for IerSpec {
102 type Ux = u32;
103}
104#[doc = "`read()` method returns [`ier::R`](R) reader structure"]
105impl crate::Readable for IerSpec {}
106#[doc = "`write(|w| ..)` method takes [`ier::W`](W) writer structure"]
107impl crate::Writable for IerSpec {
108 type Safety = crate::Unsafe;
109 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
110 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
111}
112#[doc = "`reset()` method sets IER to value 0"]
113impl crate::Resettable for IerSpec {
114 const RESET_VALUE: u32 = 0;
115}