stm32f3/stm32f303/can/
ffa1r.rs1pub type R = crate::R<FFA1Rrs>;
3pub type W = crate::W<FFA1Rrs>;
5pub type FFA_R = crate::BitReader;
7pub type FFA_W<'a, REG> = crate::BitWriter<'a, REG>;
9impl R {
10 #[inline(always)]
14 pub fn ffa(&self, n: u8) -> FFA_R {
15 #[allow(clippy::no_effect)]
16 [(); 28][n as usize];
17 FFA_R::new(((self.bits >> n) & 1) != 0)
18 }
19 #[inline(always)]
22 pub fn ffa_iter(&self) -> impl Iterator<Item = FFA_R> + '_ {
23 (0..28).map(move |n| FFA_R::new(((self.bits >> n) & 1) != 0))
24 }
25 #[inline(always)]
27 pub fn ffa0(&self) -> FFA_R {
28 FFA_R::new((self.bits & 1) != 0)
29 }
30 #[inline(always)]
32 pub fn ffa1(&self) -> FFA_R {
33 FFA_R::new(((self.bits >> 1) & 1) != 0)
34 }
35 #[inline(always)]
37 pub fn ffa2(&self) -> FFA_R {
38 FFA_R::new(((self.bits >> 2) & 1) != 0)
39 }
40 #[inline(always)]
42 pub fn ffa3(&self) -> FFA_R {
43 FFA_R::new(((self.bits >> 3) & 1) != 0)
44 }
45 #[inline(always)]
47 pub fn ffa4(&self) -> FFA_R {
48 FFA_R::new(((self.bits >> 4) & 1) != 0)
49 }
50 #[inline(always)]
52 pub fn ffa5(&self) -> FFA_R {
53 FFA_R::new(((self.bits >> 5) & 1) != 0)
54 }
55 #[inline(always)]
57 pub fn ffa6(&self) -> FFA_R {
58 FFA_R::new(((self.bits >> 6) & 1) != 0)
59 }
60 #[inline(always)]
62 pub fn ffa7(&self) -> FFA_R {
63 FFA_R::new(((self.bits >> 7) & 1) != 0)
64 }
65 #[inline(always)]
67 pub fn ffa8(&self) -> FFA_R {
68 FFA_R::new(((self.bits >> 8) & 1) != 0)
69 }
70 #[inline(always)]
72 pub fn ffa9(&self) -> FFA_R {
73 FFA_R::new(((self.bits >> 9) & 1) != 0)
74 }
75 #[inline(always)]
77 pub fn ffa10(&self) -> FFA_R {
78 FFA_R::new(((self.bits >> 10) & 1) != 0)
79 }
80 #[inline(always)]
82 pub fn ffa11(&self) -> FFA_R {
83 FFA_R::new(((self.bits >> 11) & 1) != 0)
84 }
85 #[inline(always)]
87 pub fn ffa12(&self) -> FFA_R {
88 FFA_R::new(((self.bits >> 12) & 1) != 0)
89 }
90 #[inline(always)]
92 pub fn ffa13(&self) -> FFA_R {
93 FFA_R::new(((self.bits >> 13) & 1) != 0)
94 }
95 #[inline(always)]
97 pub fn ffa14(&self) -> FFA_R {
98 FFA_R::new(((self.bits >> 14) & 1) != 0)
99 }
100 #[inline(always)]
102 pub fn ffa15(&self) -> FFA_R {
103 FFA_R::new(((self.bits >> 15) & 1) != 0)
104 }
105 #[inline(always)]
107 pub fn ffa16(&self) -> FFA_R {
108 FFA_R::new(((self.bits >> 16) & 1) != 0)
109 }
110 #[inline(always)]
112 pub fn ffa17(&self) -> FFA_R {
113 FFA_R::new(((self.bits >> 17) & 1) != 0)
114 }
115 #[inline(always)]
117 pub fn ffa18(&self) -> FFA_R {
118 FFA_R::new(((self.bits >> 18) & 1) != 0)
119 }
120 #[inline(always)]
122 pub fn ffa19(&self) -> FFA_R {
123 FFA_R::new(((self.bits >> 19) & 1) != 0)
124 }
125 #[inline(always)]
127 pub fn ffa20(&self) -> FFA_R {
128 FFA_R::new(((self.bits >> 20) & 1) != 0)
129 }
130 #[inline(always)]
132 pub fn ffa21(&self) -> FFA_R {
133 FFA_R::new(((self.bits >> 21) & 1) != 0)
134 }
135 #[inline(always)]
137 pub fn ffa22(&self) -> FFA_R {
138 FFA_R::new(((self.bits >> 22) & 1) != 0)
139 }
140 #[inline(always)]
142 pub fn ffa23(&self) -> FFA_R {
143 FFA_R::new(((self.bits >> 23) & 1) != 0)
144 }
145 #[inline(always)]
147 pub fn ffa24(&self) -> FFA_R {
148 FFA_R::new(((self.bits >> 24) & 1) != 0)
149 }
150 #[inline(always)]
152 pub fn ffa25(&self) -> FFA_R {
153 FFA_R::new(((self.bits >> 25) & 1) != 0)
154 }
155 #[inline(always)]
157 pub fn ffa26(&self) -> FFA_R {
158 FFA_R::new(((self.bits >> 26) & 1) != 0)
159 }
160 #[inline(always)]
162 pub fn ffa27(&self) -> FFA_R {
163 FFA_R::new(((self.bits >> 27) & 1) != 0)
164 }
165}
166impl core::fmt::Debug for R {
167 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
168 f.debug_struct("FFA1R")
169 .field("ffa0", &self.ffa0())
170 .field("ffa1", &self.ffa1())
171 .field("ffa2", &self.ffa2())
172 .field("ffa3", &self.ffa3())
173 .field("ffa4", &self.ffa4())
174 .field("ffa5", &self.ffa5())
175 .field("ffa6", &self.ffa6())
176 .field("ffa7", &self.ffa7())
177 .field("ffa8", &self.ffa8())
178 .field("ffa9", &self.ffa9())
179 .field("ffa10", &self.ffa10())
180 .field("ffa11", &self.ffa11())
181 .field("ffa12", &self.ffa12())
182 .field("ffa13", &self.ffa13())
183 .field("ffa14", &self.ffa14())
184 .field("ffa15", &self.ffa15())
185 .field("ffa16", &self.ffa16())
186 .field("ffa17", &self.ffa17())
187 .field("ffa18", &self.ffa18())
188 .field("ffa19", &self.ffa19())
189 .field("ffa20", &self.ffa20())
190 .field("ffa21", &self.ffa21())
191 .field("ffa22", &self.ffa22())
192 .field("ffa23", &self.ffa23())
193 .field("ffa24", &self.ffa24())
194 .field("ffa25", &self.ffa25())
195 .field("ffa26", &self.ffa26())
196 .field("ffa27", &self.ffa27())
197 .finish()
198 }
199}
200impl W {
201 #[inline(always)]
205 pub fn ffa(&mut self, n: u8) -> FFA_W<FFA1Rrs> {
206 #[allow(clippy::no_effect)]
207 [(); 28][n as usize];
208 FFA_W::new(self, n)
209 }
210 #[inline(always)]
212 pub fn ffa0(&mut self) -> FFA_W<FFA1Rrs> {
213 FFA_W::new(self, 0)
214 }
215 #[inline(always)]
217 pub fn ffa1(&mut self) -> FFA_W<FFA1Rrs> {
218 FFA_W::new(self, 1)
219 }
220 #[inline(always)]
222 pub fn ffa2(&mut self) -> FFA_W<FFA1Rrs> {
223 FFA_W::new(self, 2)
224 }
225 #[inline(always)]
227 pub fn ffa3(&mut self) -> FFA_W<FFA1Rrs> {
228 FFA_W::new(self, 3)
229 }
230 #[inline(always)]
232 pub fn ffa4(&mut self) -> FFA_W<FFA1Rrs> {
233 FFA_W::new(self, 4)
234 }
235 #[inline(always)]
237 pub fn ffa5(&mut self) -> FFA_W<FFA1Rrs> {
238 FFA_W::new(self, 5)
239 }
240 #[inline(always)]
242 pub fn ffa6(&mut self) -> FFA_W<FFA1Rrs> {
243 FFA_W::new(self, 6)
244 }
245 #[inline(always)]
247 pub fn ffa7(&mut self) -> FFA_W<FFA1Rrs> {
248 FFA_W::new(self, 7)
249 }
250 #[inline(always)]
252 pub fn ffa8(&mut self) -> FFA_W<FFA1Rrs> {
253 FFA_W::new(self, 8)
254 }
255 #[inline(always)]
257 pub fn ffa9(&mut self) -> FFA_W<FFA1Rrs> {
258 FFA_W::new(self, 9)
259 }
260 #[inline(always)]
262 pub fn ffa10(&mut self) -> FFA_W<FFA1Rrs> {
263 FFA_W::new(self, 10)
264 }
265 #[inline(always)]
267 pub fn ffa11(&mut self) -> FFA_W<FFA1Rrs> {
268 FFA_W::new(self, 11)
269 }
270 #[inline(always)]
272 pub fn ffa12(&mut self) -> FFA_W<FFA1Rrs> {
273 FFA_W::new(self, 12)
274 }
275 #[inline(always)]
277 pub fn ffa13(&mut self) -> FFA_W<FFA1Rrs> {
278 FFA_W::new(self, 13)
279 }
280 #[inline(always)]
282 pub fn ffa14(&mut self) -> FFA_W<FFA1Rrs> {
283 FFA_W::new(self, 14)
284 }
285 #[inline(always)]
287 pub fn ffa15(&mut self) -> FFA_W<FFA1Rrs> {
288 FFA_W::new(self, 15)
289 }
290 #[inline(always)]
292 pub fn ffa16(&mut self) -> FFA_W<FFA1Rrs> {
293 FFA_W::new(self, 16)
294 }
295 #[inline(always)]
297 pub fn ffa17(&mut self) -> FFA_W<FFA1Rrs> {
298 FFA_W::new(self, 17)
299 }
300 #[inline(always)]
302 pub fn ffa18(&mut self) -> FFA_W<FFA1Rrs> {
303 FFA_W::new(self, 18)
304 }
305 #[inline(always)]
307 pub fn ffa19(&mut self) -> FFA_W<FFA1Rrs> {
308 FFA_W::new(self, 19)
309 }
310 #[inline(always)]
312 pub fn ffa20(&mut self) -> FFA_W<FFA1Rrs> {
313 FFA_W::new(self, 20)
314 }
315 #[inline(always)]
317 pub fn ffa21(&mut self) -> FFA_W<FFA1Rrs> {
318 FFA_W::new(self, 21)
319 }
320 #[inline(always)]
322 pub fn ffa22(&mut self) -> FFA_W<FFA1Rrs> {
323 FFA_W::new(self, 22)
324 }
325 #[inline(always)]
327 pub fn ffa23(&mut self) -> FFA_W<FFA1Rrs> {
328 FFA_W::new(self, 23)
329 }
330 #[inline(always)]
332 pub fn ffa24(&mut self) -> FFA_W<FFA1Rrs> {
333 FFA_W::new(self, 24)
334 }
335 #[inline(always)]
337 pub fn ffa25(&mut self) -> FFA_W<FFA1Rrs> {
338 FFA_W::new(self, 25)
339 }
340 #[inline(always)]
342 pub fn ffa26(&mut self) -> FFA_W<FFA1Rrs> {
343 FFA_W::new(self, 26)
344 }
345 #[inline(always)]
347 pub fn ffa27(&mut self) -> FFA_W<FFA1Rrs> {
348 FFA_W::new(self, 27)
349 }
350}
351pub struct FFA1Rrs;
357impl crate::RegisterSpec for FFA1Rrs {
358 type Ux = u32;
359}
360impl crate::Readable for FFA1Rrs {}
362impl crate::Writable for FFA1Rrs {
364 type Safety = crate::Unsafe;
365}
366impl crate::Resettable for FFA1Rrs {}