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
#[doc = "Register `INTF` reader"]
pub type R = crate::R<IntfSpec>;
#[doc = "Global interrupt flag of channel 0\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Gif0 {
    #[doc = "0: No transfer error, half event, complete event"]
    NoEvent = 0,
    #[doc = "1: A transfer error, half event or complete event has occured"]
    Event = 1,
}
impl From<Gif0> for bool {
    #[inline(always)]
    fn from(variant: Gif0) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `GIF0` reader - Global interrupt flag of channel 0"]
pub type Gif0R = crate::BitReader<Gif0>;
impl Gif0R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Gif0 {
        match self.bits {
            false => Gif0::NoEvent,
            true => Gif0::Event,
        }
    }
    #[doc = "No transfer error, half event, complete event"]
    #[inline(always)]
    pub fn is_no_event(&self) -> bool {
        *self == Gif0::NoEvent
    }
    #[doc = "A transfer error, half event or complete event has occured"]
    #[inline(always)]
    pub fn is_event(&self) -> bool {
        *self == Gif0::Event
    }
}
#[doc = "Full transfer finish flag of channel 0\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Ftfif0 {
    #[doc = "0: No transfer complete event"]
    NotComplete = 0,
    #[doc = "1: A transfer complete event has occured"]
    Complete = 1,
}
impl From<Ftfif0> for bool {
    #[inline(always)]
    fn from(variant: Ftfif0) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `FTFIF0` reader - Full transfer finish flag of channel 0"]
pub type Ftfif0R = crate::BitReader<Ftfif0>;
impl Ftfif0R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Ftfif0 {
        match self.bits {
            false => Ftfif0::NotComplete,
            true => Ftfif0::Complete,
        }
    }
    #[doc = "No transfer complete event"]
    #[inline(always)]
    pub fn is_not_complete(&self) -> bool {
        *self == Ftfif0::NotComplete
    }
    #[doc = "A transfer complete event has occured"]
    #[inline(always)]
    pub fn is_complete(&self) -> bool {
        *self == Ftfif0::Complete
    }
}
#[doc = "Half transfer finish flag of channel 0\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Htfif0 {
    #[doc = "0: No half transfer event"]
    NotHalf = 0,
    #[doc = "1: A half transfer event has occured"]
    Half = 1,
}
impl From<Htfif0> for bool {
    #[inline(always)]
    fn from(variant: Htfif0) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `HTFIF0` reader - Half transfer finish flag of channel 0"]
pub type Htfif0R = crate::BitReader<Htfif0>;
impl Htfif0R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Htfif0 {
        match self.bits {
            false => Htfif0::NotHalf,
            true => Htfif0::Half,
        }
    }
    #[doc = "No half transfer event"]
    #[inline(always)]
    pub fn is_not_half(&self) -> bool {
        *self == Htfif0::NotHalf
    }
    #[doc = "A half transfer event has occured"]
    #[inline(always)]
    pub fn is_half(&self) -> bool {
        *self == Htfif0::Half
    }
}
#[doc = "Transfer access error flag of channel 0\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Errif0 {
    #[doc = "0: No transfer error"]
    NoError = 0,
    #[doc = "1: A transfer error has occured"]
    Error = 1,
}
impl From<Errif0> for bool {
    #[inline(always)]
    fn from(variant: Errif0) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `ERRIF0` reader - Transfer access error flag of channel 0"]
pub type Errif0R = crate::BitReader<Errif0>;
impl Errif0R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Errif0 {
        match self.bits {
            false => Errif0::NoError,
            true => Errif0::Error,
        }
    }
    #[doc = "No transfer error"]
    #[inline(always)]
    pub fn is_no_error(&self) -> bool {
        *self == Errif0::NoError
    }
    #[doc = "A transfer error has occured"]
    #[inline(always)]
    pub fn is_error(&self) -> bool {
        *self == Errif0::Error
    }
}
#[doc = "Field `ERRIF1` reader - Transfer access error flag of channel 1"]
pub use Errif0R as Errif1R;
#[doc = "Field `ERRIF2` reader - Transfer access error flag of channel 2"]
pub use Errif0R as Errif2R;
#[doc = "Field `ERRIF3` reader - Transfer access error flag of channel 3"]
pub use Errif0R as Errif3R;
#[doc = "Field `ERRIF4` reader - Transfer access error flag of channel 4"]
pub use Errif0R as Errif4R;
#[doc = "Field `ERRIF5` reader - Transfer access error flag of channel 5"]
pub use Errif0R as Errif5R;
#[doc = "Field `ERRIF6` reader - Transfer access error flag of channel 6"]
pub use Errif0R as Errif6R;
#[doc = "Field `FTFIF1` reader - Full transfer finish flag of channel 1"]
pub use Ftfif0R as Ftfif1R;
#[doc = "Field `FTFIF2` reader - Full transfer finish flag of channel 2"]
pub use Ftfif0R as Ftfif2R;
#[doc = "Field `FTFIF3` reader - Full transfer finish flag of channel 3"]
pub use Ftfif0R as Ftfif3R;
#[doc = "Field `FTFIF4` reader - Full transfer finish flag of channel 4"]
pub use Ftfif0R as Ftfif4R;
#[doc = "Field `FTFIF5` reader - Full transfer finish flag of channel 5"]
pub use Ftfif0R as Ftfif5R;
#[doc = "Field `FTFIF6` reader - Full transfer finish flag of channel 6"]
pub use Ftfif0R as Ftfif6R;
#[doc = "Field `GIF1` reader - Global interrupt flag of channel 1"]
pub use Gif0R as Gif1R;
#[doc = "Field `GIF2` reader - Global interrupt flag of channel 2"]
pub use Gif0R as Gif2R;
#[doc = "Field `GIF3` reader - Global interrupt flag of channel 3"]
pub use Gif0R as Gif3R;
#[doc = "Field `GIF4` reader - Global interrupt flag of channel 4"]
pub use Gif0R as Gif4R;
#[doc = "Field `GIF5` reader - Global interrupt flag of channel 5"]
pub use Gif0R as Gif5R;
#[doc = "Field `GIF6` reader - Global interrupt flag of channel 6"]
pub use Gif0R as Gif6R;
#[doc = "Field `HTFIF1` reader - Half transfer finish flag of channel 1"]
pub use Htfif0R as Htfif1R;
#[doc = "Field `HTFIF2` reader - Half transfer finish flag of channel 2"]
pub use Htfif0R as Htfif2R;
#[doc = "Field `HTFIF3` reader - Half transfer finish flag of channel 3"]
pub use Htfif0R as Htfif3R;
#[doc = "Field `HTFIF4` reader - Half transfer finish flag of channel 4"]
pub use Htfif0R as Htfif4R;
#[doc = "Field `HTFIF5` reader - Half transfer finish flag of channel 5"]
pub use Htfif0R as Htfif5R;
#[doc = "Field `HTFIF6` reader - Half transfer finish flag of channel 6"]
pub use Htfif0R as Htfif6R;
impl R {
    #[doc = "Bit 0 - Global interrupt flag of channel 0"]
    #[inline(always)]
    pub fn gif0(&self) -> Gif0R {
        Gif0R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Full transfer finish flag of channel 0"]
    #[inline(always)]
    pub fn ftfif0(&self) -> Ftfif0R {
        Ftfif0R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Half transfer finish flag of channel 0"]
    #[inline(always)]
    pub fn htfif0(&self) -> Htfif0R {
        Htfif0R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Transfer access error flag of channel 0"]
    #[inline(always)]
    pub fn errif0(&self) -> Errif0R {
        Errif0R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Global interrupt flag of channel 1"]
    #[inline(always)]
    pub fn gif1(&self) -> Gif1R {
        Gif1R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Full transfer finish flag of channel 1"]
    #[inline(always)]
    pub fn ftfif1(&self) -> Ftfif1R {
        Ftfif1R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Half transfer finish flag of channel 1"]
    #[inline(always)]
    pub fn htfif1(&self) -> Htfif1R {
        Htfif1R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Transfer access error flag of channel 1"]
    #[inline(always)]
    pub fn errif1(&self) -> Errif1R {
        Errif1R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - Global interrupt flag of channel 2"]
    #[inline(always)]
    pub fn gif2(&self) -> Gif2R {
        Gif2R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - Full transfer finish flag of channel 2"]
    #[inline(always)]
    pub fn ftfif2(&self) -> Ftfif2R {
        Ftfif2R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - Half transfer finish flag of channel 2"]
    #[inline(always)]
    pub fn htfif2(&self) -> Htfif2R {
        Htfif2R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - Transfer access error flag of channel 2"]
    #[inline(always)]
    pub fn errif2(&self) -> Errif2R {
        Errif2R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - Global interrupt flag of channel 3"]
    #[inline(always)]
    pub fn gif3(&self) -> Gif3R {
        Gif3R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - Full transfer finish flag of channel 3"]
    #[inline(always)]
    pub fn ftfif3(&self) -> Ftfif3R {
        Ftfif3R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - Half transfer finish flag of channel 3"]
    #[inline(always)]
    pub fn htfif3(&self) -> Htfif3R {
        Htfif3R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - Transfer access error flag of channel 3"]
    #[inline(always)]
    pub fn errif3(&self) -> Errif3R {
        Errif3R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 16 - Global interrupt flag of channel 4"]
    #[inline(always)]
    pub fn gif4(&self) -> Gif4R {
        Gif4R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - Full transfer finish flag of channel 4"]
    #[inline(always)]
    pub fn ftfif4(&self) -> Ftfif4R {
        Ftfif4R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - Half transfer finish flag of channel 4"]
    #[inline(always)]
    pub fn htfif4(&self) -> Htfif4R {
        Htfif4R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 19 - Transfer access error flag of channel 4"]
    #[inline(always)]
    pub fn errif4(&self) -> Errif4R {
        Errif4R::new(((self.bits >> 19) & 1) != 0)
    }
    #[doc = "Bit 20 - Global interrupt flag of channel 5"]
    #[inline(always)]
    pub fn gif5(&self) -> Gif5R {
        Gif5R::new(((self.bits >> 20) & 1) != 0)
    }
    #[doc = "Bit 21 - Full transfer finish flag of channel 5"]
    #[inline(always)]
    pub fn ftfif5(&self) -> Ftfif5R {
        Ftfif5R::new(((self.bits >> 21) & 1) != 0)
    }
    #[doc = "Bit 22 - Half transfer finish flag of channel 5"]
    #[inline(always)]
    pub fn htfif5(&self) -> Htfif5R {
        Htfif5R::new(((self.bits >> 22) & 1) != 0)
    }
    #[doc = "Bit 23 - Transfer access error flag of channel 5"]
    #[inline(always)]
    pub fn errif5(&self) -> Errif5R {
        Errif5R::new(((self.bits >> 23) & 1) != 0)
    }
    #[doc = "Bit 24 - Global interrupt flag of channel 6"]
    #[inline(always)]
    pub fn gif6(&self) -> Gif6R {
        Gif6R::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Bit 25 - Full transfer finish flag of channel 6"]
    #[inline(always)]
    pub fn ftfif6(&self) -> Ftfif6R {
        Ftfif6R::new(((self.bits >> 25) & 1) != 0)
    }
    #[doc = "Bit 26 - Half transfer finish flag of channel 6"]
    #[inline(always)]
    pub fn htfif6(&self) -> Htfif6R {
        Htfif6R::new(((self.bits >> 26) & 1) != 0)
    }
    #[doc = "Bit 27 - Transfer access error flag of channel 6"]
    #[inline(always)]
    pub fn errif6(&self) -> Errif6R {
        Errif6R::new(((self.bits >> 27) & 1) != 0)
    }
}
#[doc = "DMA interrupt flag register (DMA_INTF)\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`intf::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IntfSpec;
impl crate::RegisterSpec for IntfSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`intf::R`](R) reader structure"]
impl crate::Readable for IntfSpec {}
#[doc = "`reset()` method sets INTF to value 0"]
impl crate::Resettable for IntfSpec {
    const RESET_VALUE: u32 = 0;
}