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
#[doc = "Register `IER0` reader"]
pub struct R(crate::R<IER0_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<IER0_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<IER0_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<IER0_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `IER0` writer"]
pub struct W(crate::W<IER0_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<IER0_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<IER0_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<IER0_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `PE4IE` reader - PHY error 4 interrupt enable"]
pub type PE4IE_R = crate::BitReader<bool>;
#[doc = "Field `PE4IE` writer - PHY error 4 interrupt enable"]
pub type PE4IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `PE3IE` reader - PHY error 3 interrupt enable"]
pub type PE3IE_R = crate::BitReader<bool>;
#[doc = "Field `PE3IE` writer - PHY error 3 interrupt enable"]
pub type PE3IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `PE2IE` reader - PHY error 2 interrupt enable"]
pub type PE2IE_R = crate::BitReader<bool>;
#[doc = "Field `PE2IE` writer - PHY error 2 interrupt enable"]
pub type PE2IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `PE1IE` reader - PHY error 1 interrupt enable"]
pub type PE1IE_R = crate::BitReader<bool>;
#[doc = "Field `PE1IE` writer - PHY error 1 interrupt enable"]
pub type PE1IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `PE0IE` reader - PHY error 0 interrupt enable"]
pub type PE0IE_R = crate::BitReader<bool>;
#[doc = "Field `PE0IE` writer - PHY error 0 interrupt enable"]
pub type PE0IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `AE15IE` reader - Acknowledge error 15 interrupt enable"]
pub type AE15IE_R = crate::BitReader<bool>;
#[doc = "Field `AE15IE` writer - Acknowledge error 15 interrupt enable"]
pub type AE15IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `AE14IE` reader - Acknowledge error 14 interrupt enable"]
pub type AE14IE_R = crate::BitReader<bool>;
#[doc = "Field `AE14IE` writer - Acknowledge error 14 interrupt enable"]
pub type AE14IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `AE13IE` reader - Acknowledge error 13 interrupt enable"]
pub type AE13IE_R = crate::BitReader<bool>;
#[doc = "Field `AE13IE` writer - Acknowledge error 13 interrupt enable"]
pub type AE13IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `AE12IE` reader - Acknowledge error 12 interrupt enable"]
pub type AE12IE_R = crate::BitReader<bool>;
#[doc = "Field `AE12IE` writer - Acknowledge error 12 interrupt enable"]
pub type AE12IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `AE11IE` reader - Acknowledge error 11 interrupt enable"]
pub type AE11IE_R = crate::BitReader<bool>;
#[doc = "Field `AE11IE` writer - Acknowledge error 11 interrupt enable"]
pub type AE11IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `AE10IE` reader - Acknowledge error 10 interrupt enable"]
pub type AE10IE_R = crate::BitReader<bool>;
#[doc = "Field `AE10IE` writer - Acknowledge error 10 interrupt enable"]
pub type AE10IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `AE9IE` reader - Acknowledge error 9 interrupt enable"]
pub type AE9IE_R = crate::BitReader<bool>;
#[doc = "Field `AE9IE` writer - Acknowledge error 9 interrupt enable"]
pub type AE9IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `AE8IE` reader - Acknowledge error 8 interrupt enable"]
pub type AE8IE_R = crate::BitReader<bool>;
#[doc = "Field `AE8IE` writer - Acknowledge error 8 interrupt enable"]
pub type AE8IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `AE7IE` reader - Acknowledge error 7 interrupt enable"]
pub type AE7IE_R = crate::BitReader<bool>;
#[doc = "Field `AE7IE` writer - Acknowledge error 7 interrupt enable"]
pub type AE7IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `AE6IE` reader - Acknowledge error 6 interrupt enable"]
pub type AE6IE_R = crate::BitReader<bool>;
#[doc = "Field `AE6IE` writer - Acknowledge error 6 interrupt enable"]
pub type AE6IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `AE5IE` reader - Acknowledge error 5 interrupt enable"]
pub type AE5IE_R = crate::BitReader<bool>;
#[doc = "Field `AE5IE` writer - Acknowledge error 5 interrupt enable"]
pub type AE5IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `AE4IE` reader - Acknowledge error 4 interrupt enable"]
pub type AE4IE_R = crate::BitReader<bool>;
#[doc = "Field `AE4IE` writer - Acknowledge error 4 interrupt enable"]
pub type AE4IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `AE3IE` reader - Acknowledge error 3 interrupt enable"]
pub type AE3IE_R = crate::BitReader<bool>;
#[doc = "Field `AE3IE` writer - Acknowledge error 3 interrupt enable"]
pub type AE3IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `AE2IE` reader - Acknowledge error 2 interrupt enable"]
pub type AE2IE_R = crate::BitReader<bool>;
#[doc = "Field `AE2IE` writer - Acknowledge error 2 interrupt enable"]
pub type AE2IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `AE1IE` reader - Acknowledge error 1 interrupt enable"]
pub type AE1IE_R = crate::BitReader<bool>;
#[doc = "Field `AE1IE` writer - Acknowledge error 1 interrupt enable"]
pub type AE1IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
#[doc = "Field `AE0IE` reader - Acknowledge error 0 interrupt enable"]
pub type AE0IE_R = crate::BitReader<bool>;
#[doc = "Field `AE0IE` writer - Acknowledge error 0 interrupt enable"]
pub type AE0IE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IER0_SPEC, bool, O>;
impl R {
    #[doc = "Bit 20 - PHY error 4 interrupt enable"]
    #[inline(always)]
    pub fn pe4ie(&self) -> PE4IE_R {
        PE4IE_R::new(((self.bits >> 20) & 1) != 0)
    }
    #[doc = "Bit 19 - PHY error 3 interrupt enable"]
    #[inline(always)]
    pub fn pe3ie(&self) -> PE3IE_R {
        PE3IE_R::new(((self.bits >> 19) & 1) != 0)
    }
    #[doc = "Bit 18 - PHY error 2 interrupt enable"]
    #[inline(always)]
    pub fn pe2ie(&self) -> PE2IE_R {
        PE2IE_R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 17 - PHY error 1 interrupt enable"]
    #[inline(always)]
    pub fn pe1ie(&self) -> PE1IE_R {
        PE1IE_R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 16 - PHY error 0 interrupt enable"]
    #[inline(always)]
    pub fn pe0ie(&self) -> PE0IE_R {
        PE0IE_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 15 - Acknowledge error 15 interrupt enable"]
    #[inline(always)]
    pub fn ae15ie(&self) -> AE15IE_R {
        AE15IE_R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 14 - Acknowledge error 14 interrupt enable"]
    #[inline(always)]
    pub fn ae14ie(&self) -> AE14IE_R {
        AE14IE_R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 13 - Acknowledge error 13 interrupt enable"]
    #[inline(always)]
    pub fn ae13ie(&self) -> AE13IE_R {
        AE13IE_R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 12 - Acknowledge error 12 interrupt enable"]
    #[inline(always)]
    pub fn ae12ie(&self) -> AE12IE_R {
        AE12IE_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 11 - Acknowledge error 11 interrupt enable"]
    #[inline(always)]
    pub fn ae11ie(&self) -> AE11IE_R {
        AE11IE_R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 10 - Acknowledge error 10 interrupt enable"]
    #[inline(always)]
    pub fn ae10ie(&self) -> AE10IE_R {
        AE10IE_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 9 - Acknowledge error 9 interrupt enable"]
    #[inline(always)]
    pub fn ae9ie(&self) -> AE9IE_R {
        AE9IE_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 8 - Acknowledge error 8 interrupt enable"]
    #[inline(always)]
    pub fn ae8ie(&self) -> AE8IE_R {
        AE8IE_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 7 - Acknowledge error 7 interrupt enable"]
    #[inline(always)]
    pub fn ae7ie(&self) -> AE7IE_R {
        AE7IE_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 6 - Acknowledge error 6 interrupt enable"]
    #[inline(always)]
    pub fn ae6ie(&self) -> AE6IE_R {
        AE6IE_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 5 - Acknowledge error 5 interrupt enable"]
    #[inline(always)]
    pub fn ae5ie(&self) -> AE5IE_R {
        AE5IE_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 4 - Acknowledge error 4 interrupt enable"]
    #[inline(always)]
    pub fn ae4ie(&self) -> AE4IE_R {
        AE4IE_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 3 - Acknowledge error 3 interrupt enable"]
    #[inline(always)]
    pub fn ae3ie(&self) -> AE3IE_R {
        AE3IE_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 2 - Acknowledge error 2 interrupt enable"]
    #[inline(always)]
    pub fn ae2ie(&self) -> AE2IE_R {
        AE2IE_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 1 - Acknowledge error 1 interrupt enable"]
    #[inline(always)]
    pub fn ae1ie(&self) -> AE1IE_R {
        AE1IE_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 0 - Acknowledge error 0 interrupt enable"]
    #[inline(always)]
    pub fn ae0ie(&self) -> AE0IE_R {
        AE0IE_R::new((self.bits & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 20 - PHY error 4 interrupt enable"]
    #[inline(always)]
    pub fn pe4ie(&mut self) -> PE4IE_W<20> {
        PE4IE_W::new(self)
    }
    #[doc = "Bit 19 - PHY error 3 interrupt enable"]
    #[inline(always)]
    pub fn pe3ie(&mut self) -> PE3IE_W<19> {
        PE3IE_W::new(self)
    }
    #[doc = "Bit 18 - PHY error 2 interrupt enable"]
    #[inline(always)]
    pub fn pe2ie(&mut self) -> PE2IE_W<18> {
        PE2IE_W::new(self)
    }
    #[doc = "Bit 17 - PHY error 1 interrupt enable"]
    #[inline(always)]
    pub fn pe1ie(&mut self) -> PE1IE_W<17> {
        PE1IE_W::new(self)
    }
    #[doc = "Bit 16 - PHY error 0 interrupt enable"]
    #[inline(always)]
    pub fn pe0ie(&mut self) -> PE0IE_W<16> {
        PE0IE_W::new(self)
    }
    #[doc = "Bit 15 - Acknowledge error 15 interrupt enable"]
    #[inline(always)]
    pub fn ae15ie(&mut self) -> AE15IE_W<15> {
        AE15IE_W::new(self)
    }
    #[doc = "Bit 14 - Acknowledge error 14 interrupt enable"]
    #[inline(always)]
    pub fn ae14ie(&mut self) -> AE14IE_W<14> {
        AE14IE_W::new(self)
    }
    #[doc = "Bit 13 - Acknowledge error 13 interrupt enable"]
    #[inline(always)]
    pub fn ae13ie(&mut self) -> AE13IE_W<13> {
        AE13IE_W::new(self)
    }
    #[doc = "Bit 12 - Acknowledge error 12 interrupt enable"]
    #[inline(always)]
    pub fn ae12ie(&mut self) -> AE12IE_W<12> {
        AE12IE_W::new(self)
    }
    #[doc = "Bit 11 - Acknowledge error 11 interrupt enable"]
    #[inline(always)]
    pub fn ae11ie(&mut self) -> AE11IE_W<11> {
        AE11IE_W::new(self)
    }
    #[doc = "Bit 10 - Acknowledge error 10 interrupt enable"]
    #[inline(always)]
    pub fn ae10ie(&mut self) -> AE10IE_W<10> {
        AE10IE_W::new(self)
    }
    #[doc = "Bit 9 - Acknowledge error 9 interrupt enable"]
    #[inline(always)]
    pub fn ae9ie(&mut self) -> AE9IE_W<9> {
        AE9IE_W::new(self)
    }
    #[doc = "Bit 8 - Acknowledge error 8 interrupt enable"]
    #[inline(always)]
    pub fn ae8ie(&mut self) -> AE8IE_W<8> {
        AE8IE_W::new(self)
    }
    #[doc = "Bit 7 - Acknowledge error 7 interrupt enable"]
    #[inline(always)]
    pub fn ae7ie(&mut self) -> AE7IE_W<7> {
        AE7IE_W::new(self)
    }
    #[doc = "Bit 6 - Acknowledge error 6 interrupt enable"]
    #[inline(always)]
    pub fn ae6ie(&mut self) -> AE6IE_W<6> {
        AE6IE_W::new(self)
    }
    #[doc = "Bit 5 - Acknowledge error 5 interrupt enable"]
    #[inline(always)]
    pub fn ae5ie(&mut self) -> AE5IE_W<5> {
        AE5IE_W::new(self)
    }
    #[doc = "Bit 4 - Acknowledge error 4 interrupt enable"]
    #[inline(always)]
    pub fn ae4ie(&mut self) -> AE4IE_W<4> {
        AE4IE_W::new(self)
    }
    #[doc = "Bit 3 - Acknowledge error 3 interrupt enable"]
    #[inline(always)]
    pub fn ae3ie(&mut self) -> AE3IE_W<3> {
        AE3IE_W::new(self)
    }
    #[doc = "Bit 2 - Acknowledge error 2 interrupt enable"]
    #[inline(always)]
    pub fn ae2ie(&mut self) -> AE2IE_W<2> {
        AE2IE_W::new(self)
    }
    #[doc = "Bit 1 - Acknowledge error 1 interrupt enable"]
    #[inline(always)]
    pub fn ae1ie(&mut self) -> AE1IE_W<1> {
        AE1IE_W::new(self)
    }
    #[doc = "Bit 0 - Acknowledge error 0 interrupt enable"]
    #[inline(always)]
    pub fn ae0ie(&mut self) -> AE0IE_W<0> {
        AE0IE_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 = "DSI Host interrupt enable register 0\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ier0](index.html) module"]
pub struct IER0_SPEC;
impl crate::RegisterSpec for IER0_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [ier0::R](R) reader structure"]
impl crate::Readable for IER0_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [ier0::W](W) writer structure"]
impl crate::Writable for IER0_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets IER0 to value 0"]
impl crate::Resettable for IER0_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}