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
#[doc = "Register `IFCR` writer"]
pub struct W(crate::W<IFCR_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<IFCR_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<IFCR_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<IFCR_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Channel x global interrupt clear This bit is set and cleared by software.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CGIF1_AW {
    #[doc = "1: Clear the corresponding CGIFx flag"]
    Clear = 1,
}
impl From<CGIF1_AW> for bool {
    #[inline(always)]
    fn from(variant: CGIF1_AW) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `CGIF1` writer - Channel x global interrupt clear This bit is set and cleared by software."]
pub type CGIF1_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFCR_SPEC, CGIF1_AW, O>;
impl<'a, const O: u8> CGIF1_W<'a, O> {
    #[doc = "Clear the corresponding CGIFx flag"]
    #[inline(always)]
    pub fn clear(self) -> &'a mut W {
        self.variant(CGIF1_AW::Clear)
    }
}
#[doc = "Channel x transfer complete clear This bit is set and cleared by software.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CTCIF1_AW {
    #[doc = "1: Clear the corresponding TCIFx flag"]
    Clear = 1,
}
impl From<CTCIF1_AW> for bool {
    #[inline(always)]
    fn from(variant: CTCIF1_AW) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `CTCIF1` writer - Channel x transfer complete clear This bit is set and cleared by software."]
pub type CTCIF1_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFCR_SPEC, CTCIF1_AW, O>;
impl<'a, const O: u8> CTCIF1_W<'a, O> {
    #[doc = "Clear the corresponding TCIFx flag"]
    #[inline(always)]
    pub fn clear(self) -> &'a mut W {
        self.variant(CTCIF1_AW::Clear)
    }
}
#[doc = "Channel x half transfer clear This bit is set and cleared by software.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CHTIF1_AW {
    #[doc = "1: Clear the corresponding HTIFx flag"]
    Clear = 1,
}
impl From<CHTIF1_AW> for bool {
    #[inline(always)]
    fn from(variant: CHTIF1_AW) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `CHTIF1` writer - Channel x half transfer clear This bit is set and cleared by software."]
pub type CHTIF1_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFCR_SPEC, CHTIF1_AW, O>;
impl<'a, const O: u8> CHTIF1_W<'a, O> {
    #[doc = "Clear the corresponding HTIFx flag"]
    #[inline(always)]
    pub fn clear(self) -> &'a mut W {
        self.variant(CHTIF1_AW::Clear)
    }
}
#[doc = "Channel x transfer error clear This bit is set and cleared by software.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CTEIF1_AW {
    #[doc = "1: Clear the corresponding TEIFx flag"]
    Clear = 1,
}
impl From<CTEIF1_AW> for bool {
    #[inline(always)]
    fn from(variant: CTEIF1_AW) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `CTEIF1` writer - Channel x transfer error clear This bit is set and cleared by software."]
pub type CTEIF1_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFCR_SPEC, CTEIF1_AW, O>;
impl<'a, const O: u8> CTEIF1_W<'a, O> {
    #[doc = "Clear the corresponding TEIFx flag"]
    #[inline(always)]
    pub fn clear(self) -> &'a mut W {
        self.variant(CTEIF1_AW::Clear)
    }
}
#[doc = "Channel x global interrupt clear This bit is set and cleared by software."]
pub use CGIF1_AW as CGIF2_AW;
#[doc = "Channel x global interrupt clear This bit is set and cleared by software."]
pub use CGIF1_AW as CGIF3_AW;
#[doc = "Channel x global interrupt clear This bit is set and cleared by software."]
pub use CGIF1_AW as CGIF4_AW;
#[doc = "Channel x global interrupt clear This bit is set and cleared by software."]
pub use CGIF1_AW as CGIF5_AW;
#[doc = "Channel x global interrupt clear This bit is set and cleared by software."]
pub use CGIF1_AW as CGIF6_AW;
#[doc = "Channel x global interrupt clear This bit is set and cleared by software."]
pub use CGIF1_AW as CGIF7_AW;
#[doc = "Channel x global interrupt clear This bit is set and cleared by software."]
pub use CGIF1_AW as CGIF8_AW;
#[doc = "Field `CGIF2` writer - Channel x global interrupt clear This bit is set and cleared by software."]
pub use CGIF1_W as CGIF2_W;
#[doc = "Field `CGIF3` writer - Channel x global interrupt clear This bit is set and cleared by software."]
pub use CGIF1_W as CGIF3_W;
#[doc = "Field `CGIF4` writer - Channel x global interrupt clear This bit is set and cleared by software."]
pub use CGIF1_W as CGIF4_W;
#[doc = "Field `CGIF5` writer - Channel x global interrupt clear This bit is set and cleared by software."]
pub use CGIF1_W as CGIF5_W;
#[doc = "Field `CGIF6` writer - Channel x global interrupt clear This bit is set and cleared by software."]
pub use CGIF1_W as CGIF6_W;
#[doc = "Field `CGIF7` writer - Channel x global interrupt clear This bit is set and cleared by software."]
pub use CGIF1_W as CGIF7_W;
#[doc = "Field `CGIF8` writer - Channel x global interrupt clear This bit is set and cleared by software."]
pub use CGIF1_W as CGIF8_W;
#[doc = "Channel x half transfer clear This bit is set and cleared by software."]
pub use CHTIF1_AW as CHTIF2_AW;
#[doc = "Channel x half transfer clear This bit is set and cleared by software."]
pub use CHTIF1_AW as CHTIF3_AW;
#[doc = "Channel x half transfer clear This bit is set and cleared by software."]
pub use CHTIF1_AW as CHTIF4_AW;
#[doc = "Channel x half transfer clear This bit is set and cleared by software."]
pub use CHTIF1_AW as CHTIF5_AW;
#[doc = "Channel x half transfer clear This bit is set and cleared by software."]
pub use CHTIF1_AW as CHTIF6_AW;
#[doc = "Channel x half transfer clear This bit is set and cleared by software."]
pub use CHTIF1_AW as CHTIF7_AW;
#[doc = "Channel x half transfer clear This bit is set and cleared by software."]
pub use CHTIF1_AW as CHTIF8_AW;
#[doc = "Field `CHTIF2` writer - Channel x half transfer clear This bit is set and cleared by software."]
pub use CHTIF1_W as CHTIF2_W;
#[doc = "Field `CHTIF3` writer - Channel x half transfer clear This bit is set and cleared by software."]
pub use CHTIF1_W as CHTIF3_W;
#[doc = "Field `CHTIF4` writer - Channel x half transfer clear This bit is set and cleared by software."]
pub use CHTIF1_W as CHTIF4_W;
#[doc = "Field `CHTIF5` writer - Channel x half transfer clear This bit is set and cleared by software."]
pub use CHTIF1_W as CHTIF5_W;
#[doc = "Field `CHTIF6` writer - Channel x half transfer clear This bit is set and cleared by software."]
pub use CHTIF1_W as CHTIF6_W;
#[doc = "Field `CHTIF7` writer - Channel x half transfer clear This bit is set and cleared by software."]
pub use CHTIF1_W as CHTIF7_W;
#[doc = "Field `CHTIF8` writer - Channel x half transfer clear This bit is set and cleared by software."]
pub use CHTIF1_W as CHTIF8_W;
#[doc = "Channel x transfer complete clear This bit is set and cleared by software."]
pub use CTCIF1_AW as CTCIF2_AW;
#[doc = "Channel x transfer complete clear This bit is set and cleared by software."]
pub use CTCIF1_AW as CTCIF3_AW;
#[doc = "Channel x transfer complete clear This bit is set and cleared by software."]
pub use CTCIF1_AW as CTCIF4_AW;
#[doc = "Channel x transfer complete clear This bit is set and cleared by software."]
pub use CTCIF1_AW as CTCIF5_AW;
#[doc = "Channel x transfer complete clear This bit is set and cleared by software."]
pub use CTCIF1_AW as CTCIF6_AW;
#[doc = "Channel x transfer complete clear This bit is set and cleared by software."]
pub use CTCIF1_AW as CTCIF7_AW;
#[doc = "Channel x transfer complete clear This bit is set and cleared by software."]
pub use CTCIF1_AW as CTCIF8_AW;
#[doc = "Field `CTCIF2` writer - Channel x transfer complete clear This bit is set and cleared by software."]
pub use CTCIF1_W as CTCIF2_W;
#[doc = "Field `CTCIF3` writer - Channel x transfer complete clear This bit is set and cleared by software."]
pub use CTCIF1_W as CTCIF3_W;
#[doc = "Field `CTCIF4` writer - Channel x transfer complete clear This bit is set and cleared by software."]
pub use CTCIF1_W as CTCIF4_W;
#[doc = "Field `CTCIF5` writer - Channel x transfer complete clear This bit is set and cleared by software."]
pub use CTCIF1_W as CTCIF5_W;
#[doc = "Field `CTCIF6` writer - Channel x transfer complete clear This bit is set and cleared by software."]
pub use CTCIF1_W as CTCIF6_W;
#[doc = "Field `CTCIF7` writer - Channel x transfer complete clear This bit is set and cleared by software."]
pub use CTCIF1_W as CTCIF7_W;
#[doc = "Field `CTCIF8` writer - Channel x transfer complete clear This bit is set and cleared by software."]
pub use CTCIF1_W as CTCIF8_W;
#[doc = "Channel x transfer error clear This bit is set and cleared by software."]
pub use CTEIF1_AW as CTEIF2_AW;
#[doc = "Channel x transfer error clear This bit is set and cleared by software."]
pub use CTEIF1_AW as CTEIF3_AW;
#[doc = "Channel x transfer error clear This bit is set and cleared by software."]
pub use CTEIF1_AW as CTEIF4_AW;
#[doc = "Channel x transfer error clear This bit is set and cleared by software."]
pub use CTEIF1_AW as CTEIF5_AW;
#[doc = "Channel x transfer error clear This bit is set and cleared by software."]
pub use CTEIF1_AW as CTEIF6_AW;
#[doc = "Channel x transfer error clear This bit is set and cleared by software."]
pub use CTEIF1_AW as CTEIF7_AW;
#[doc = "Channel x transfer error clear This bit is set and cleared by software."]
pub use CTEIF1_AW as CTEIF8_AW;
#[doc = "Field `CTEIF2` writer - Channel x transfer error clear This bit is set and cleared by software."]
pub use CTEIF1_W as CTEIF2_W;
#[doc = "Field `CTEIF3` writer - Channel x transfer error clear This bit is set and cleared by software."]
pub use CTEIF1_W as CTEIF3_W;
#[doc = "Field `CTEIF4` writer - Channel x transfer error clear This bit is set and cleared by software."]
pub use CTEIF1_W as CTEIF4_W;
#[doc = "Field `CTEIF5` writer - Channel x transfer error clear This bit is set and cleared by software."]
pub use CTEIF1_W as CTEIF5_W;
#[doc = "Field `CTEIF6` writer - Channel x transfer error clear This bit is set and cleared by software."]
pub use CTEIF1_W as CTEIF6_W;
#[doc = "Field `CTEIF7` writer - Channel x transfer error clear This bit is set and cleared by software."]
pub use CTEIF1_W as CTEIF7_W;
#[doc = "Field `CTEIF8` writer - Channel x transfer error clear This bit is set and cleared by software."]
pub use CTEIF1_W as CTEIF8_W;
impl W {
    #[doc = "Bit 0 - Channel x global interrupt clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn cgif1(&mut self) -> CGIF1_W<0> {
        CGIF1_W::new(self)
    }
    #[doc = "Bit 1 - Channel x transfer complete clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn ctcif1(&mut self) -> CTCIF1_W<1> {
        CTCIF1_W::new(self)
    }
    #[doc = "Bit 2 - Channel x half transfer clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn chtif1(&mut self) -> CHTIF1_W<2> {
        CHTIF1_W::new(self)
    }
    #[doc = "Bit 3 - Channel x transfer error clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn cteif1(&mut self) -> CTEIF1_W<3> {
        CTEIF1_W::new(self)
    }
    #[doc = "Bit 4 - Channel x global interrupt clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn cgif2(&mut self) -> CGIF2_W<4> {
        CGIF2_W::new(self)
    }
    #[doc = "Bit 5 - Channel x transfer complete clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn ctcif2(&mut self) -> CTCIF2_W<5> {
        CTCIF2_W::new(self)
    }
    #[doc = "Bit 6 - Channel x half transfer clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn chtif2(&mut self) -> CHTIF2_W<6> {
        CHTIF2_W::new(self)
    }
    #[doc = "Bit 7 - Channel x transfer error clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn cteif2(&mut self) -> CTEIF2_W<7> {
        CTEIF2_W::new(self)
    }
    #[doc = "Bit 8 - Channel x global interrupt clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn cgif3(&mut self) -> CGIF3_W<8> {
        CGIF3_W::new(self)
    }
    #[doc = "Bit 9 - Channel x transfer complete clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn ctcif3(&mut self) -> CTCIF3_W<9> {
        CTCIF3_W::new(self)
    }
    #[doc = "Bit 10 - Channel x half transfer clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn chtif3(&mut self) -> CHTIF3_W<10> {
        CHTIF3_W::new(self)
    }
    #[doc = "Bit 11 - Channel x transfer error clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn cteif3(&mut self) -> CTEIF3_W<11> {
        CTEIF3_W::new(self)
    }
    #[doc = "Bit 12 - Channel x global interrupt clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn cgif4(&mut self) -> CGIF4_W<12> {
        CGIF4_W::new(self)
    }
    #[doc = "Bit 13 - Channel x transfer complete clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn ctcif4(&mut self) -> CTCIF4_W<13> {
        CTCIF4_W::new(self)
    }
    #[doc = "Bit 14 - Channel x half transfer clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn chtif4(&mut self) -> CHTIF4_W<14> {
        CHTIF4_W::new(self)
    }
    #[doc = "Bit 15 - Channel x transfer error clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn cteif4(&mut self) -> CTEIF4_W<15> {
        CTEIF4_W::new(self)
    }
    #[doc = "Bit 16 - Channel x global interrupt clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn cgif5(&mut self) -> CGIF5_W<16> {
        CGIF5_W::new(self)
    }
    #[doc = "Bit 17 - Channel x transfer complete clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn ctcif5(&mut self) -> CTCIF5_W<17> {
        CTCIF5_W::new(self)
    }
    #[doc = "Bit 18 - Channel x half transfer clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn chtif5(&mut self) -> CHTIF5_W<18> {
        CHTIF5_W::new(self)
    }
    #[doc = "Bit 19 - Channel x transfer error clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn cteif5(&mut self) -> CTEIF5_W<19> {
        CTEIF5_W::new(self)
    }
    #[doc = "Bit 20 - Channel x global interrupt clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn cgif6(&mut self) -> CGIF6_W<20> {
        CGIF6_W::new(self)
    }
    #[doc = "Bit 21 - Channel x transfer complete clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn ctcif6(&mut self) -> CTCIF6_W<21> {
        CTCIF6_W::new(self)
    }
    #[doc = "Bit 22 - Channel x half transfer clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn chtif6(&mut self) -> CHTIF6_W<22> {
        CHTIF6_W::new(self)
    }
    #[doc = "Bit 23 - Channel x transfer error clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn cteif6(&mut self) -> CTEIF6_W<23> {
        CTEIF6_W::new(self)
    }
    #[doc = "Bit 24 - Channel x global interrupt clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn cgif7(&mut self) -> CGIF7_W<24> {
        CGIF7_W::new(self)
    }
    #[doc = "Bit 25 - Channel x transfer complete clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn ctcif7(&mut self) -> CTCIF7_W<25> {
        CTCIF7_W::new(self)
    }
    #[doc = "Bit 26 - Channel x half transfer clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn chtif7(&mut self) -> CHTIF7_W<26> {
        CHTIF7_W::new(self)
    }
    #[doc = "Bit 27 - Channel x transfer error clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn cteif7(&mut self) -> CTEIF7_W<27> {
        CTEIF7_W::new(self)
    }
    #[doc = "Bit 28 - Channel x global interrupt clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn cgif8(&mut self) -> CGIF8_W<28> {
        CGIF8_W::new(self)
    }
    #[doc = "Bit 29 - Channel x transfer complete clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn ctcif8(&mut self) -> CTCIF8_W<29> {
        CTCIF8_W::new(self)
    }
    #[doc = "Bit 30 - Channel x half transfer clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn chtif8(&mut self) -> CHTIF8_W<30> {
        CHTIF8_W::new(self)
    }
    #[doc = "Bit 31 - Channel x transfer error clear This bit is set and cleared by software."]
    #[inline(always)]
    pub fn cteif8(&mut self) -> CTEIF8_W<31> {
        CTEIF8_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "DMA interrupt flag clear register\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ifcr](index.html) module"]
pub struct IFCR_SPEC;
impl crate::RegisterSpec for IFCR_SPEC {
    type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [ifcr::W](W) writer structure"]
impl crate::Writable for IFCR_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets IFCR to value 0"]
impl crate::Resettable for IFCR_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}