stm32f1_staging/stm32f107/can1/
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)] [(); 28][n as usize];
16 FFA_R::new(((self.bits >> n) & 1) != 0)
17 }
18 #[inline(always)]
21 pub fn ffa_iter(&self) -> impl Iterator<Item = FFA_R> + '_ {
22 (0..28).map(move |n| FFA_R::new(((self.bits >> n) & 1) != 0))
23 }
24 #[inline(always)]
26 pub fn ffa0(&self) -> FFA_R {
27 FFA_R::new((self.bits & 1) != 0)
28 }
29 #[inline(always)]
31 pub fn ffa1(&self) -> FFA_R {
32 FFA_R::new(((self.bits >> 1) & 1) != 0)
33 }
34 #[inline(always)]
36 pub fn ffa2(&self) -> FFA_R {
37 FFA_R::new(((self.bits >> 2) & 1) != 0)
38 }
39 #[inline(always)]
41 pub fn ffa3(&self) -> FFA_R {
42 FFA_R::new(((self.bits >> 3) & 1) != 0)
43 }
44 #[inline(always)]
46 pub fn ffa4(&self) -> FFA_R {
47 FFA_R::new(((self.bits >> 4) & 1) != 0)
48 }
49 #[inline(always)]
51 pub fn ffa5(&self) -> FFA_R {
52 FFA_R::new(((self.bits >> 5) & 1) != 0)
53 }
54 #[inline(always)]
56 pub fn ffa6(&self) -> FFA_R {
57 FFA_R::new(((self.bits >> 6) & 1) != 0)
58 }
59 #[inline(always)]
61 pub fn ffa7(&self) -> FFA_R {
62 FFA_R::new(((self.bits >> 7) & 1) != 0)
63 }
64 #[inline(always)]
66 pub fn ffa8(&self) -> FFA_R {
67 FFA_R::new(((self.bits >> 8) & 1) != 0)
68 }
69 #[inline(always)]
71 pub fn ffa9(&self) -> FFA_R {
72 FFA_R::new(((self.bits >> 9) & 1) != 0)
73 }
74 #[inline(always)]
76 pub fn ffa10(&self) -> FFA_R {
77 FFA_R::new(((self.bits >> 10) & 1) != 0)
78 }
79 #[inline(always)]
81 pub fn ffa11(&self) -> FFA_R {
82 FFA_R::new(((self.bits >> 11) & 1) != 0)
83 }
84 #[inline(always)]
86 pub fn ffa12(&self) -> FFA_R {
87 FFA_R::new(((self.bits >> 12) & 1) != 0)
88 }
89 #[inline(always)]
91 pub fn ffa13(&self) -> FFA_R {
92 FFA_R::new(((self.bits >> 13) & 1) != 0)
93 }
94 #[inline(always)]
96 pub fn ffa14(&self) -> FFA_R {
97 FFA_R::new(((self.bits >> 14) & 1) != 0)
98 }
99 #[inline(always)]
101 pub fn ffa15(&self) -> FFA_R {
102 FFA_R::new(((self.bits >> 15) & 1) != 0)
103 }
104 #[inline(always)]
106 pub fn ffa16(&self) -> FFA_R {
107 FFA_R::new(((self.bits >> 16) & 1) != 0)
108 }
109 #[inline(always)]
111 pub fn ffa17(&self) -> FFA_R {
112 FFA_R::new(((self.bits >> 17) & 1) != 0)
113 }
114 #[inline(always)]
116 pub fn ffa18(&self) -> FFA_R {
117 FFA_R::new(((self.bits >> 18) & 1) != 0)
118 }
119 #[inline(always)]
121 pub fn ffa19(&self) -> FFA_R {
122 FFA_R::new(((self.bits >> 19) & 1) != 0)
123 }
124 #[inline(always)]
126 pub fn ffa20(&self) -> FFA_R {
127 FFA_R::new(((self.bits >> 20) & 1) != 0)
128 }
129 #[inline(always)]
131 pub fn ffa21(&self) -> FFA_R {
132 FFA_R::new(((self.bits >> 21) & 1) != 0)
133 }
134 #[inline(always)]
136 pub fn ffa22(&self) -> FFA_R {
137 FFA_R::new(((self.bits >> 22) & 1) != 0)
138 }
139 #[inline(always)]
141 pub fn ffa23(&self) -> FFA_R {
142 FFA_R::new(((self.bits >> 23) & 1) != 0)
143 }
144 #[inline(always)]
146 pub fn ffa24(&self) -> FFA_R {
147 FFA_R::new(((self.bits >> 24) & 1) != 0)
148 }
149 #[inline(always)]
151 pub fn ffa25(&self) -> FFA_R {
152 FFA_R::new(((self.bits >> 25) & 1) != 0)
153 }
154 #[inline(always)]
156 pub fn ffa26(&self) -> FFA_R {
157 FFA_R::new(((self.bits >> 26) & 1) != 0)
158 }
159 #[inline(always)]
161 pub fn ffa27(&self) -> FFA_R {
162 FFA_R::new(((self.bits >> 27) & 1) != 0)
163 }
164}
165impl core::fmt::Debug for R {
166 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
167 f.debug_struct("FFA1R")
168 .field("ffa0", &self.ffa0())
169 .field("ffa1", &self.ffa1())
170 .field("ffa2", &self.ffa2())
171 .field("ffa3", &self.ffa3())
172 .field("ffa4", &self.ffa4())
173 .field("ffa5", &self.ffa5())
174 .field("ffa6", &self.ffa6())
175 .field("ffa7", &self.ffa7())
176 .field("ffa8", &self.ffa8())
177 .field("ffa9", &self.ffa9())
178 .field("ffa10", &self.ffa10())
179 .field("ffa11", &self.ffa11())
180 .field("ffa12", &self.ffa12())
181 .field("ffa13", &self.ffa13())
182 .field("ffa14", &self.ffa14())
183 .field("ffa15", &self.ffa15())
184 .field("ffa16", &self.ffa16())
185 .field("ffa17", &self.ffa17())
186 .field("ffa18", &self.ffa18())
187 .field("ffa19", &self.ffa19())
188 .field("ffa20", &self.ffa20())
189 .field("ffa21", &self.ffa21())
190 .field("ffa22", &self.ffa22())
191 .field("ffa23", &self.ffa23())
192 .field("ffa24", &self.ffa24())
193 .field("ffa25", &self.ffa25())
194 .field("ffa26", &self.ffa26())
195 .field("ffa27", &self.ffa27())
196 .finish()
197 }
198}
199impl W {
200 #[inline(always)]
204 pub fn ffa(&mut self, n: u8) -> FFA_W<FFA1Rrs> {
205 #[allow(clippy::no_effect)] [(); 28][n as usize];
206 FFA_W::new(self, n)
207 }
208 #[inline(always)]
210 pub fn ffa0(&mut self) -> FFA_W<FFA1Rrs> {
211 FFA_W::new(self, 0)
212 }
213 #[inline(always)]
215 pub fn ffa1(&mut self) -> FFA_W<FFA1Rrs> {
216 FFA_W::new(self, 1)
217 }
218 #[inline(always)]
220 pub fn ffa2(&mut self) -> FFA_W<FFA1Rrs> {
221 FFA_W::new(self, 2)
222 }
223 #[inline(always)]
225 pub fn ffa3(&mut self) -> FFA_W<FFA1Rrs> {
226 FFA_W::new(self, 3)
227 }
228 #[inline(always)]
230 pub fn ffa4(&mut self) -> FFA_W<FFA1Rrs> {
231 FFA_W::new(self, 4)
232 }
233 #[inline(always)]
235 pub fn ffa5(&mut self) -> FFA_W<FFA1Rrs> {
236 FFA_W::new(self, 5)
237 }
238 #[inline(always)]
240 pub fn ffa6(&mut self) -> FFA_W<FFA1Rrs> {
241 FFA_W::new(self, 6)
242 }
243 #[inline(always)]
245 pub fn ffa7(&mut self) -> FFA_W<FFA1Rrs> {
246 FFA_W::new(self, 7)
247 }
248 #[inline(always)]
250 pub fn ffa8(&mut self) -> FFA_W<FFA1Rrs> {
251 FFA_W::new(self, 8)
252 }
253 #[inline(always)]
255 pub fn ffa9(&mut self) -> FFA_W<FFA1Rrs> {
256 FFA_W::new(self, 9)
257 }
258 #[inline(always)]
260 pub fn ffa10(&mut self) -> FFA_W<FFA1Rrs> {
261 FFA_W::new(self, 10)
262 }
263 #[inline(always)]
265 pub fn ffa11(&mut self) -> FFA_W<FFA1Rrs> {
266 FFA_W::new(self, 11)
267 }
268 #[inline(always)]
270 pub fn ffa12(&mut self) -> FFA_W<FFA1Rrs> {
271 FFA_W::new(self, 12)
272 }
273 #[inline(always)]
275 pub fn ffa13(&mut self) -> FFA_W<FFA1Rrs> {
276 FFA_W::new(self, 13)
277 }
278 #[inline(always)]
280 pub fn ffa14(&mut self) -> FFA_W<FFA1Rrs> {
281 FFA_W::new(self, 14)
282 }
283 #[inline(always)]
285 pub fn ffa15(&mut self) -> FFA_W<FFA1Rrs> {
286 FFA_W::new(self, 15)
287 }
288 #[inline(always)]
290 pub fn ffa16(&mut self) -> FFA_W<FFA1Rrs> {
291 FFA_W::new(self, 16)
292 }
293 #[inline(always)]
295 pub fn ffa17(&mut self) -> FFA_W<FFA1Rrs> {
296 FFA_W::new(self, 17)
297 }
298 #[inline(always)]
300 pub fn ffa18(&mut self) -> FFA_W<FFA1Rrs> {
301 FFA_W::new(self, 18)
302 }
303 #[inline(always)]
305 pub fn ffa19(&mut self) -> FFA_W<FFA1Rrs> {
306 FFA_W::new(self, 19)
307 }
308 #[inline(always)]
310 pub fn ffa20(&mut self) -> FFA_W<FFA1Rrs> {
311 FFA_W::new(self, 20)
312 }
313 #[inline(always)]
315 pub fn ffa21(&mut self) -> FFA_W<FFA1Rrs> {
316 FFA_W::new(self, 21)
317 }
318 #[inline(always)]
320 pub fn ffa22(&mut self) -> FFA_W<FFA1Rrs> {
321 FFA_W::new(self, 22)
322 }
323 #[inline(always)]
325 pub fn ffa23(&mut self) -> FFA_W<FFA1Rrs> {
326 FFA_W::new(self, 23)
327 }
328 #[inline(always)]
330 pub fn ffa24(&mut self) -> FFA_W<FFA1Rrs> {
331 FFA_W::new(self, 24)
332 }
333 #[inline(always)]
335 pub fn ffa25(&mut self) -> FFA_W<FFA1Rrs> {
336 FFA_W::new(self, 25)
337 }
338 #[inline(always)]
340 pub fn ffa26(&mut self) -> FFA_W<FFA1Rrs> {
341 FFA_W::new(self, 26)
342 }
343 #[inline(always)]
345 pub fn ffa27(&mut self) -> FFA_W<FFA1Rrs> {
346 FFA_W::new(self, 27)
347 }
348}
349pub struct FFA1Rrs;
355impl crate::RegisterSpec for FFA1Rrs {
356 type Ux = u32;
357}
358impl crate::Readable for FFA1Rrs {}
360impl crate::Writable for FFA1Rrs {
362 type Safety = crate::Unsafe;
363}
364impl crate::Resettable for FFA1Rrs {}