gd32f4pac 0.9.2

Device support crate for GD32F4 devices
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
#[doc = "Register `FAFIFO` reader"]
pub type R = crate::R<FafifoSpec>;
#[doc = "Register `FAFIFO` writer"]
pub type W = crate::W<FafifoSpec>;
#[doc = "Field `FAF0` reader - Filter 0 associated with FIFO"]
pub type Faf0R = crate::BitReader;
#[doc = "Field `FAF0` writer - Filter 0 associated with FIFO"]
pub type Faf0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF1` reader - Filter 1 associated with FIFO"]
pub type Faf1R = crate::BitReader;
#[doc = "Field `FAF1` writer - Filter 1 associated with FIFO"]
pub type Faf1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF2` reader - Filter 2 associated with FIFO"]
pub type Faf2R = crate::BitReader;
#[doc = "Field `FAF2` writer - Filter 2 associated with FIFO"]
pub type Faf2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF3` reader - Filter 3 associated with FIFO"]
pub type Faf3R = crate::BitReader;
#[doc = "Field `FAF3` writer - Filter 3 associated with FIFO"]
pub type Faf3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF4` reader - Filter 4 associated with FIFO"]
pub type Faf4R = crate::BitReader;
#[doc = "Field `FAF4` writer - Filter 4 associated with FIFO"]
pub type Faf4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF5` reader - Filter 5 associated with FIFO"]
pub type Faf5R = crate::BitReader;
#[doc = "Field `FAF5` writer - Filter 5 associated with FIFO"]
pub type Faf5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF6` reader - Filter 6 associated with FIFO"]
pub type Faf6R = crate::BitReader;
#[doc = "Field `FAF6` writer - Filter 6 associated with FIFO"]
pub type Faf6W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF7` reader - Filter 7 associated with FIFO"]
pub type Faf7R = crate::BitReader;
#[doc = "Field `FAF7` writer - Filter 7 associated with FIFO"]
pub type Faf7W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF8` reader - Filter 8 associated with FIFO"]
pub type Faf8R = crate::BitReader;
#[doc = "Field `FAF8` writer - Filter 8 associated with FIFO"]
pub type Faf8W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF9` reader - Filter 9 associated with FIFO"]
pub type Faf9R = crate::BitReader;
#[doc = "Field `FAF9` writer - Filter 9 associated with FIFO"]
pub type Faf9W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF10` reader - Filter 10 associated with FIFO"]
pub type Faf10R = crate::BitReader;
#[doc = "Field `FAF10` writer - Filter 10 associated with FIFO"]
pub type Faf10W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF11` reader - Filter 11 associated with FIFO"]
pub type Faf11R = crate::BitReader;
#[doc = "Field `FAF11` writer - Filter 11 associated with FIFO"]
pub type Faf11W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF12` reader - Filter 12 associated with FIFO"]
pub type Faf12R = crate::BitReader;
#[doc = "Field `FAF12` writer - Filter 12 associated with FIFO"]
pub type Faf12W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF13` reader - Filter 13 associated with FIFO"]
pub type Faf13R = crate::BitReader;
#[doc = "Field `FAF13` writer - Filter 13 associated with FIFO"]
pub type Faf13W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF14` reader - Filter 14 associated with FIFO"]
pub type Faf14R = crate::BitReader;
#[doc = "Field `FAF14` writer - Filter 14 associated with FIFO"]
pub type Faf14W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF15` reader - Filter 15 associated with FIFO"]
pub type Faf15R = crate::BitReader;
#[doc = "Field `FAF15` writer - Filter 15 associated with FIFO"]
pub type Faf15W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF16` reader - Filter 16 associated with FIFO"]
pub type Faf16R = crate::BitReader;
#[doc = "Field `FAF16` writer - Filter 16 associated with FIFO"]
pub type Faf16W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF17` reader - Filter 17 associated with FIFO"]
pub type Faf17R = crate::BitReader;
#[doc = "Field `FAF17` writer - Filter 17 associated with FIFO"]
pub type Faf17W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF18` reader - Filter 18 associated with FIFO"]
pub type Faf18R = crate::BitReader;
#[doc = "Field `FAF18` writer - Filter 18 associated with FIFO"]
pub type Faf18W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF19` reader - Filter 19 associated with FIFO"]
pub type Faf19R = crate::BitReader;
#[doc = "Field `FAF19` writer - Filter 19 associated with FIFO"]
pub type Faf19W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF20` reader - Filter 20 associated with FIFO"]
pub type Faf20R = crate::BitReader;
#[doc = "Field `FAF20` writer - Filter 20 associated with FIFO"]
pub type Faf20W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF21` reader - Filter 21 associated with FIFO"]
pub type Faf21R = crate::BitReader;
#[doc = "Field `FAF21` writer - Filter 21 associated with FIFO"]
pub type Faf21W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF22` reader - Filter 22 associated with FIFO"]
pub type Faf22R = crate::BitReader;
#[doc = "Field `FAF22` writer - Filter 22 associated with FIFO"]
pub type Faf22W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF23` reader - Filter 23 associated with FIFO"]
pub type Faf23R = crate::BitReader;
#[doc = "Field `FAF23` writer - Filter 23 associated with FIFO"]
pub type Faf23W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF24` reader - Filter 24 associated with FIFO"]
pub type Faf24R = crate::BitReader;
#[doc = "Field `FAF24` writer - Filter 24 associated with FIFO"]
pub type Faf24W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF25` reader - Filter 25 associated with FIFO"]
pub type Faf25R = crate::BitReader;
#[doc = "Field `FAF25` writer - Filter 25 associated with FIFO"]
pub type Faf25W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF26` reader - Filter 26 associated with FIFO"]
pub type Faf26R = crate::BitReader;
#[doc = "Field `FAF26` writer - Filter 26 associated with FIFO"]
pub type Faf26W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FAF27` reader - Filter 27 associated with FIFO"]
pub type Faf27R = crate::BitReader;
#[doc = "Field `FAF27` writer - Filter 27 associated with FIFO"]
pub type Faf27W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 0 - Filter 0 associated with FIFO"]
    #[inline(always)]
    pub fn faf0(&self) -> Faf0R {
        Faf0R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Filter 1 associated with FIFO"]
    #[inline(always)]
    pub fn faf1(&self) -> Faf1R {
        Faf1R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Filter 2 associated with FIFO"]
    #[inline(always)]
    pub fn faf2(&self) -> Faf2R {
        Faf2R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Filter 3 associated with FIFO"]
    #[inline(always)]
    pub fn faf3(&self) -> Faf3R {
        Faf3R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Filter 4 associated with FIFO"]
    #[inline(always)]
    pub fn faf4(&self) -> Faf4R {
        Faf4R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Filter 5 associated with FIFO"]
    #[inline(always)]
    pub fn faf5(&self) -> Faf5R {
        Faf5R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Filter 6 associated with FIFO"]
    #[inline(always)]
    pub fn faf6(&self) -> Faf6R {
        Faf6R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Filter 7 associated with FIFO"]
    #[inline(always)]
    pub fn faf7(&self) -> Faf7R {
        Faf7R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - Filter 8 associated with FIFO"]
    #[inline(always)]
    pub fn faf8(&self) -> Faf8R {
        Faf8R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - Filter 9 associated with FIFO"]
    #[inline(always)]
    pub fn faf9(&self) -> Faf9R {
        Faf9R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - Filter 10 associated with FIFO"]
    #[inline(always)]
    pub fn faf10(&self) -> Faf10R {
        Faf10R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - Filter 11 associated with FIFO"]
    #[inline(always)]
    pub fn faf11(&self) -> Faf11R {
        Faf11R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - Filter 12 associated with FIFO"]
    #[inline(always)]
    pub fn faf12(&self) -> Faf12R {
        Faf12R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - Filter 13 associated with FIFO"]
    #[inline(always)]
    pub fn faf13(&self) -> Faf13R {
        Faf13R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - Filter 14 associated with FIFO"]
    #[inline(always)]
    pub fn faf14(&self) -> Faf14R {
        Faf14R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - Filter 15 associated with FIFO"]
    #[inline(always)]
    pub fn faf15(&self) -> Faf15R {
        Faf15R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 16 - Filter 16 associated with FIFO"]
    #[inline(always)]
    pub fn faf16(&self) -> Faf16R {
        Faf16R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - Filter 17 associated with FIFO"]
    #[inline(always)]
    pub fn faf17(&self) -> Faf17R {
        Faf17R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - Filter 18 associated with FIFO"]
    #[inline(always)]
    pub fn faf18(&self) -> Faf18R {
        Faf18R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 19 - Filter 19 associated with FIFO"]
    #[inline(always)]
    pub fn faf19(&self) -> Faf19R {
        Faf19R::new(((self.bits >> 19) & 1) != 0)
    }
    #[doc = "Bit 20 - Filter 20 associated with FIFO"]
    #[inline(always)]
    pub fn faf20(&self) -> Faf20R {
        Faf20R::new(((self.bits >> 20) & 1) != 0)
    }
    #[doc = "Bit 21 - Filter 21 associated with FIFO"]
    #[inline(always)]
    pub fn faf21(&self) -> Faf21R {
        Faf21R::new(((self.bits >> 21) & 1) != 0)
    }
    #[doc = "Bit 22 - Filter 22 associated with FIFO"]
    #[inline(always)]
    pub fn faf22(&self) -> Faf22R {
        Faf22R::new(((self.bits >> 22) & 1) != 0)
    }
    #[doc = "Bit 23 - Filter 23 associated with FIFO"]
    #[inline(always)]
    pub fn faf23(&self) -> Faf23R {
        Faf23R::new(((self.bits >> 23) & 1) != 0)
    }
    #[doc = "Bit 24 - Filter 24 associated with FIFO"]
    #[inline(always)]
    pub fn faf24(&self) -> Faf24R {
        Faf24R::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Bit 25 - Filter 25 associated with FIFO"]
    #[inline(always)]
    pub fn faf25(&self) -> Faf25R {
        Faf25R::new(((self.bits >> 25) & 1) != 0)
    }
    #[doc = "Bit 26 - Filter 26 associated with FIFO"]
    #[inline(always)]
    pub fn faf26(&self) -> Faf26R {
        Faf26R::new(((self.bits >> 26) & 1) != 0)
    }
    #[doc = "Bit 27 - Filter 27 associated with FIFO"]
    #[inline(always)]
    pub fn faf27(&self) -> Faf27R {
        Faf27R::new(((self.bits >> 27) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Filter 0 associated with FIFO"]
    #[inline(always)]
    pub fn faf0(&mut self) -> Faf0W<FafifoSpec> {
        Faf0W::new(self, 0)
    }
    #[doc = "Bit 1 - Filter 1 associated with FIFO"]
    #[inline(always)]
    pub fn faf1(&mut self) -> Faf1W<FafifoSpec> {
        Faf1W::new(self, 1)
    }
    #[doc = "Bit 2 - Filter 2 associated with FIFO"]
    #[inline(always)]
    pub fn faf2(&mut self) -> Faf2W<FafifoSpec> {
        Faf2W::new(self, 2)
    }
    #[doc = "Bit 3 - Filter 3 associated with FIFO"]
    #[inline(always)]
    pub fn faf3(&mut self) -> Faf3W<FafifoSpec> {
        Faf3W::new(self, 3)
    }
    #[doc = "Bit 4 - Filter 4 associated with FIFO"]
    #[inline(always)]
    pub fn faf4(&mut self) -> Faf4W<FafifoSpec> {
        Faf4W::new(self, 4)
    }
    #[doc = "Bit 5 - Filter 5 associated with FIFO"]
    #[inline(always)]
    pub fn faf5(&mut self) -> Faf5W<FafifoSpec> {
        Faf5W::new(self, 5)
    }
    #[doc = "Bit 6 - Filter 6 associated with FIFO"]
    #[inline(always)]
    pub fn faf6(&mut self) -> Faf6W<FafifoSpec> {
        Faf6W::new(self, 6)
    }
    #[doc = "Bit 7 - Filter 7 associated with FIFO"]
    #[inline(always)]
    pub fn faf7(&mut self) -> Faf7W<FafifoSpec> {
        Faf7W::new(self, 7)
    }
    #[doc = "Bit 8 - Filter 8 associated with FIFO"]
    #[inline(always)]
    pub fn faf8(&mut self) -> Faf8W<FafifoSpec> {
        Faf8W::new(self, 8)
    }
    #[doc = "Bit 9 - Filter 9 associated with FIFO"]
    #[inline(always)]
    pub fn faf9(&mut self) -> Faf9W<FafifoSpec> {
        Faf9W::new(self, 9)
    }
    #[doc = "Bit 10 - Filter 10 associated with FIFO"]
    #[inline(always)]
    pub fn faf10(&mut self) -> Faf10W<FafifoSpec> {
        Faf10W::new(self, 10)
    }
    #[doc = "Bit 11 - Filter 11 associated with FIFO"]
    #[inline(always)]
    pub fn faf11(&mut self) -> Faf11W<FafifoSpec> {
        Faf11W::new(self, 11)
    }
    #[doc = "Bit 12 - Filter 12 associated with FIFO"]
    #[inline(always)]
    pub fn faf12(&mut self) -> Faf12W<FafifoSpec> {
        Faf12W::new(self, 12)
    }
    #[doc = "Bit 13 - Filter 13 associated with FIFO"]
    #[inline(always)]
    pub fn faf13(&mut self) -> Faf13W<FafifoSpec> {
        Faf13W::new(self, 13)
    }
    #[doc = "Bit 14 - Filter 14 associated with FIFO"]
    #[inline(always)]
    pub fn faf14(&mut self) -> Faf14W<FafifoSpec> {
        Faf14W::new(self, 14)
    }
    #[doc = "Bit 15 - Filter 15 associated with FIFO"]
    #[inline(always)]
    pub fn faf15(&mut self) -> Faf15W<FafifoSpec> {
        Faf15W::new(self, 15)
    }
    #[doc = "Bit 16 - Filter 16 associated with FIFO"]
    #[inline(always)]
    pub fn faf16(&mut self) -> Faf16W<FafifoSpec> {
        Faf16W::new(self, 16)
    }
    #[doc = "Bit 17 - Filter 17 associated with FIFO"]
    #[inline(always)]
    pub fn faf17(&mut self) -> Faf17W<FafifoSpec> {
        Faf17W::new(self, 17)
    }
    #[doc = "Bit 18 - Filter 18 associated with FIFO"]
    #[inline(always)]
    pub fn faf18(&mut self) -> Faf18W<FafifoSpec> {
        Faf18W::new(self, 18)
    }
    #[doc = "Bit 19 - Filter 19 associated with FIFO"]
    #[inline(always)]
    pub fn faf19(&mut self) -> Faf19W<FafifoSpec> {
        Faf19W::new(self, 19)
    }
    #[doc = "Bit 20 - Filter 20 associated with FIFO"]
    #[inline(always)]
    pub fn faf20(&mut self) -> Faf20W<FafifoSpec> {
        Faf20W::new(self, 20)
    }
    #[doc = "Bit 21 - Filter 21 associated with FIFO"]
    #[inline(always)]
    pub fn faf21(&mut self) -> Faf21W<FafifoSpec> {
        Faf21W::new(self, 21)
    }
    #[doc = "Bit 22 - Filter 22 associated with FIFO"]
    #[inline(always)]
    pub fn faf22(&mut self) -> Faf22W<FafifoSpec> {
        Faf22W::new(self, 22)
    }
    #[doc = "Bit 23 - Filter 23 associated with FIFO"]
    #[inline(always)]
    pub fn faf23(&mut self) -> Faf23W<FafifoSpec> {
        Faf23W::new(self, 23)
    }
    #[doc = "Bit 24 - Filter 24 associated with FIFO"]
    #[inline(always)]
    pub fn faf24(&mut self) -> Faf24W<FafifoSpec> {
        Faf24W::new(self, 24)
    }
    #[doc = "Bit 25 - Filter 25 associated with FIFO"]
    #[inline(always)]
    pub fn faf25(&mut self) -> Faf25W<FafifoSpec> {
        Faf25W::new(self, 25)
    }
    #[doc = "Bit 26 - Filter 26 associated with FIFO"]
    #[inline(always)]
    pub fn faf26(&mut self) -> Faf26W<FafifoSpec> {
        Faf26W::new(self, 26)
    }
    #[doc = "Bit 27 - Filter 27 associated with FIFO"]
    #[inline(always)]
    pub fn faf27(&mut self) -> Faf27W<FafifoSpec> {
        Faf27W::new(self, 27)
    }
}
#[doc = "Filter associated FIFO register\n\nYou can [`read`](crate::Reg::read) this register and get [`fafifo::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fafifo::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FafifoSpec;
impl crate::RegisterSpec for FafifoSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`fafifo::R`](R) reader structure"]
impl crate::Readable for FafifoSpec {}
#[doc = "`write(|w| ..)` method takes [`fafifo::W`](W) writer structure"]
impl crate::Writable for FafifoSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets FAFIFO to value 0"]
impl crate::Resettable for FafifoSpec {}