stm32f3_staging/stm32f373/cec/
ier.rs1pub type R = crate::R<IERrs>;
3pub type W = crate::W<IERrs>;
5pub type RXBRIE_R = crate::BitReader;
7pub type RXBRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
9pub type RXENDIE_R = crate::BitReader;
11pub type RXENDIE_W<'a, REG> = crate::BitWriter<'a, REG>;
13pub type RXOVRIE_R = crate::BitReader;
15pub type RXOVRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
17pub type BREIE_R = crate::BitReader;
19pub type BREIE_W<'a, REG> = crate::BitWriter<'a, REG>;
21pub type SBPEIE_R = crate::BitReader;
23pub type SBPEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
25pub type LBPEIE_R = crate::BitReader;
27pub type LBPEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
29pub type RXACKIE_R = crate::BitReader;
31pub type RXACKIE_W<'a, REG> = crate::BitWriter<'a, REG>;
33pub type ARBLSTIE_R = crate::BitReader;
35pub type ARBLSTIE_W<'a, REG> = crate::BitWriter<'a, REG>;
37pub type TXBRIE_R = crate::BitReader;
39pub type TXBRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
41pub type TXENDIE_R = crate::BitReader;
43pub type TXENDIE_W<'a, REG> = crate::BitWriter<'a, REG>;
45pub type TXUDRIE_R = crate::BitReader;
47pub type TXUDRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
49pub type TXERRIE_R = crate::BitReader;
51pub type TXERRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
53pub type TXACKIE_R = crate::BitReader;
55pub type TXACKIE_W<'a, REG> = crate::BitWriter<'a, REG>;
57impl R {
58 #[inline(always)]
60 pub fn rxbrie(&self) -> RXBRIE_R {
61 RXBRIE_R::new((self.bits & 1) != 0)
62 }
63 #[inline(always)]
65 pub fn rxendie(&self) -> RXENDIE_R {
66 RXENDIE_R::new(((self.bits >> 1) & 1) != 0)
67 }
68 #[inline(always)]
70 pub fn rxovrie(&self) -> RXOVRIE_R {
71 RXOVRIE_R::new(((self.bits >> 2) & 1) != 0)
72 }
73 #[inline(always)]
75 pub fn breie(&self) -> BREIE_R {
76 BREIE_R::new(((self.bits >> 3) & 1) != 0)
77 }
78 #[inline(always)]
80 pub fn sbpeie(&self) -> SBPEIE_R {
81 SBPEIE_R::new(((self.bits >> 4) & 1) != 0)
82 }
83 #[inline(always)]
85 pub fn lbpeie(&self) -> LBPEIE_R {
86 LBPEIE_R::new(((self.bits >> 5) & 1) != 0)
87 }
88 #[inline(always)]
90 pub fn rxackie(&self) -> RXACKIE_R {
91 RXACKIE_R::new(((self.bits >> 6) & 1) != 0)
92 }
93 #[inline(always)]
95 pub fn arblstie(&self) -> ARBLSTIE_R {
96 ARBLSTIE_R::new(((self.bits >> 7) & 1) != 0)
97 }
98 #[inline(always)]
100 pub fn txbrie(&self) -> TXBRIE_R {
101 TXBRIE_R::new(((self.bits >> 8) & 1) != 0)
102 }
103 #[inline(always)]
105 pub fn txendie(&self) -> TXENDIE_R {
106 TXENDIE_R::new(((self.bits >> 9) & 1) != 0)
107 }
108 #[inline(always)]
110 pub fn txudrie(&self) -> TXUDRIE_R {
111 TXUDRIE_R::new(((self.bits >> 10) & 1) != 0)
112 }
113 #[inline(always)]
115 pub fn txerrie(&self) -> TXERRIE_R {
116 TXERRIE_R::new(((self.bits >> 11) & 1) != 0)
117 }
118 #[inline(always)]
120 pub fn txackie(&self) -> TXACKIE_R {
121 TXACKIE_R::new(((self.bits >> 12) & 1) != 0)
122 }
123}
124impl core::fmt::Debug for R {
125 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
126 f.debug_struct("IER")
127 .field("txackie", &self.txackie())
128 .field("txerrie", &self.txerrie())
129 .field("txudrie", &self.txudrie())
130 .field("txendie", &self.txendie())
131 .field("txbrie", &self.txbrie())
132 .field("arblstie", &self.arblstie())
133 .field("rxackie", &self.rxackie())
134 .field("lbpeie", &self.lbpeie())
135 .field("sbpeie", &self.sbpeie())
136 .field("breie", &self.breie())
137 .field("rxovrie", &self.rxovrie())
138 .field("rxendie", &self.rxendie())
139 .field("rxbrie", &self.rxbrie())
140 .finish()
141 }
142}
143impl W {
144 #[inline(always)]
146 pub fn rxbrie(&mut self) -> RXBRIE_W<IERrs> {
147 RXBRIE_W::new(self, 0)
148 }
149 #[inline(always)]
151 pub fn rxendie(&mut self) -> RXENDIE_W<IERrs> {
152 RXENDIE_W::new(self, 1)
153 }
154 #[inline(always)]
156 pub fn rxovrie(&mut self) -> RXOVRIE_W<IERrs> {
157 RXOVRIE_W::new(self, 2)
158 }
159 #[inline(always)]
161 pub fn breie(&mut self) -> BREIE_W<IERrs> {
162 BREIE_W::new(self, 3)
163 }
164 #[inline(always)]
166 pub fn sbpeie(&mut self) -> SBPEIE_W<IERrs> {
167 SBPEIE_W::new(self, 4)
168 }
169 #[inline(always)]
171 pub fn lbpeie(&mut self) -> LBPEIE_W<IERrs> {
172 LBPEIE_W::new(self, 5)
173 }
174 #[inline(always)]
176 pub fn rxackie(&mut self) -> RXACKIE_W<IERrs> {
177 RXACKIE_W::new(self, 6)
178 }
179 #[inline(always)]
181 pub fn arblstie(&mut self) -> ARBLSTIE_W<IERrs> {
182 ARBLSTIE_W::new(self, 7)
183 }
184 #[inline(always)]
186 pub fn txbrie(&mut self) -> TXBRIE_W<IERrs> {
187 TXBRIE_W::new(self, 8)
188 }
189 #[inline(always)]
191 pub fn txendie(&mut self) -> TXENDIE_W<IERrs> {
192 TXENDIE_W::new(self, 9)
193 }
194 #[inline(always)]
196 pub fn txudrie(&mut self) -> TXUDRIE_W<IERrs> {
197 TXUDRIE_W::new(self, 10)
198 }
199 #[inline(always)]
201 pub fn txerrie(&mut self) -> TXERRIE_W<IERrs> {
202 TXERRIE_W::new(self, 11)
203 }
204 #[inline(always)]
206 pub fn txackie(&mut self) -> TXACKIE_W<IERrs> {
207 TXACKIE_W::new(self, 12)
208 }
209}
210pub struct IERrs;
216impl crate::RegisterSpec for IERrs {
217 type Ux = u32;
218}
219impl crate::Readable for IERrs {}
221impl crate::Writable for IERrs {
223 type Safety = crate::Unsafe;
224 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
225 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
226}
227impl crate::Resettable for IERrs {
229 const RESET_VALUE: u32 = 0;
230}