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
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
#[doc = "Register `PR1` reader"]
pub struct R(crate::R<PR1_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<PR1_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<PR1_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<PR1_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `PR1` writer"]
pub struct W(crate::W<PR1_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<PR1_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<PR1_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<PR1_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Pending bit 0\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PIF0_A {
    #[doc = "0: No trigger request occurred"]
    NotPending = 0,
    #[doc = "1: Selected trigger request occurred"]
    Pending = 1,
}
impl From<PIF0_A> for bool {
    #[inline(always)]
    fn from(variant: PIF0_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `PIF0` reader - Pending bit 0"]
pub type PIF0_R = crate::BitReader<PIF0_A>;
impl PIF0_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> PIF0_A {
        match self.bits {
            false => PIF0_A::NotPending,
            true => PIF0_A::Pending,
        }
    }
    #[doc = "Checks if the value of the field is `NotPending`"]
    #[inline(always)]
    pub fn is_not_pending(&self) -> bool {
        *self == PIF0_A::NotPending
    }
    #[doc = "Checks if the value of the field is `Pending`"]
    #[inline(always)]
    pub fn is_pending(&self) -> bool {
        *self == PIF0_A::Pending
    }
}
#[doc = "Pending bit 0\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PIF0_AW {
    #[doc = "1: Clears pending bit"]
    Clear = 1,
}
impl From<PIF0_AW> for bool {
    #[inline(always)]
    fn from(variant: PIF0_AW) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `PIF0` writer - Pending bit 0"]
pub type PIF0_W<'a, const O: u8> = crate::BitWriter<'a, u32, PR1_SPEC, PIF0_AW, O>;
impl<'a, const O: u8> PIF0_W<'a, O> {
    #[doc = "Clears pending bit"]
    #[inline(always)]
    pub fn clear(self) -> &'a mut W {
        self.variant(PIF0_AW::Clear)
    }
}
#[doc = "Pending bit 1"]
pub use PIF0_A as PIF1_A;
#[doc = "Pending bit 2"]
pub use PIF0_A as PIF2_A;
#[doc = "Pending bit 3"]
pub use PIF0_A as PIF3_A;
#[doc = "Pending bit 4"]
pub use PIF0_A as PIF4_A;
#[doc = "Pending bit 5"]
pub use PIF0_A as PIF5_A;
#[doc = "Pending bit 6"]
pub use PIF0_A as PIF6_A;
#[doc = "Pending bit 7"]
pub use PIF0_A as PIF7_A;
#[doc = "Pending bit 8"]
pub use PIF0_A as PIF8_A;
#[doc = "Pending bit 9"]
pub use PIF0_A as PIF9_A;
#[doc = "Pending bit 10"]
pub use PIF0_A as PIF10_A;
#[doc = "Pending bit 11"]
pub use PIF0_A as PIF11_A;
#[doc = "Pending bit 12"]
pub use PIF0_A as PIF12_A;
#[doc = "Pending bit 13"]
pub use PIF0_A as PIF13_A;
#[doc = "Pending bit 14"]
pub use PIF0_A as PIF14_A;
#[doc = "Pending bit 15"]
pub use PIF0_A as PIF15_A;
#[doc = "Pending bit 16"]
pub use PIF0_A as PIF16_A;
#[doc = "Pending bit 19"]
pub use PIF0_A as PIF19_A;
#[doc = "Pending bit 20"]
pub use PIF0_A as PIF20_A;
#[doc = "Pending bit 21"]
pub use PIF0_A as PIF21_A;
#[doc = "Pending bit 22"]
pub use PIF0_A as PIF22_A;
#[doc = "Pending bit 17"]
pub use PIF0_A as PIF17_A;
#[doc = "Pending bit 1"]
pub use PIF0_AW as PIF1_AW;
#[doc = "Pending bit 2"]
pub use PIF0_AW as PIF2_AW;
#[doc = "Pending bit 3"]
pub use PIF0_AW as PIF3_AW;
#[doc = "Pending bit 4"]
pub use PIF0_AW as PIF4_AW;
#[doc = "Pending bit 5"]
pub use PIF0_AW as PIF5_AW;
#[doc = "Pending bit 6"]
pub use PIF0_AW as PIF6_AW;
#[doc = "Pending bit 7"]
pub use PIF0_AW as PIF7_AW;
#[doc = "Pending bit 8"]
pub use PIF0_AW as PIF8_AW;
#[doc = "Pending bit 9"]
pub use PIF0_AW as PIF9_AW;
#[doc = "Pending bit 10"]
pub use PIF0_AW as PIF10_AW;
#[doc = "Pending bit 11"]
pub use PIF0_AW as PIF11_AW;
#[doc = "Pending bit 12"]
pub use PIF0_AW as PIF12_AW;
#[doc = "Pending bit 13"]
pub use PIF0_AW as PIF13_AW;
#[doc = "Pending bit 14"]
pub use PIF0_AW as PIF14_AW;
#[doc = "Pending bit 15"]
pub use PIF0_AW as PIF15_AW;
#[doc = "Pending bit 16"]
pub use PIF0_AW as PIF16_AW;
#[doc = "Pending bit 19"]
pub use PIF0_AW as PIF19_AW;
#[doc = "Pending bit 20"]
pub use PIF0_AW as PIF20_AW;
#[doc = "Pending bit 21"]
pub use PIF0_AW as PIF21_AW;
#[doc = "Pending bit 22"]
pub use PIF0_AW as PIF22_AW;
#[doc = "Pending bit 17"]
pub use PIF0_AW as PIF17_AW;
#[doc = "Field `PIF1` reader - Pending bit 1"]
pub use PIF0_R as PIF1_R;
#[doc = "Field `PIF2` reader - Pending bit 2"]
pub use PIF0_R as PIF2_R;
#[doc = "Field `PIF3` reader - Pending bit 3"]
pub use PIF0_R as PIF3_R;
#[doc = "Field `PIF4` reader - Pending bit 4"]
pub use PIF0_R as PIF4_R;
#[doc = "Field `PIF5` reader - Pending bit 5"]
pub use PIF0_R as PIF5_R;
#[doc = "Field `PIF6` reader - Pending bit 6"]
pub use PIF0_R as PIF6_R;
#[doc = "Field `PIF7` reader - Pending bit 7"]
pub use PIF0_R as PIF7_R;
#[doc = "Field `PIF8` reader - Pending bit 8"]
pub use PIF0_R as PIF8_R;
#[doc = "Field `PIF9` reader - Pending bit 9"]
pub use PIF0_R as PIF9_R;
#[doc = "Field `PIF10` reader - Pending bit 10"]
pub use PIF0_R as PIF10_R;
#[doc = "Field `PIF11` reader - Pending bit 11"]
pub use PIF0_R as PIF11_R;
#[doc = "Field `PIF12` reader - Pending bit 12"]
pub use PIF0_R as PIF12_R;
#[doc = "Field `PIF13` reader - Pending bit 13"]
pub use PIF0_R as PIF13_R;
#[doc = "Field `PIF14` reader - Pending bit 14"]
pub use PIF0_R as PIF14_R;
#[doc = "Field `PIF15` reader - Pending bit 15"]
pub use PIF0_R as PIF15_R;
#[doc = "Field `PIF16` reader - Pending bit 16"]
pub use PIF0_R as PIF16_R;
#[doc = "Field `PIF19` reader - Pending bit 19"]
pub use PIF0_R as PIF19_R;
#[doc = "Field `PIF20` reader - Pending bit 20"]
pub use PIF0_R as PIF20_R;
#[doc = "Field `PIF21` reader - Pending bit 21"]
pub use PIF0_R as PIF21_R;
#[doc = "Field `PIF22` reader - Pending bit 22"]
pub use PIF0_R as PIF22_R;
#[doc = "Field `PIF17` reader - Pending bit 17"]
pub use PIF0_R as PIF17_R;
#[doc = "Field `PIF1` writer - Pending bit 1"]
pub use PIF0_W as PIF1_W;
#[doc = "Field `PIF2` writer - Pending bit 2"]
pub use PIF0_W as PIF2_W;
#[doc = "Field `PIF3` writer - Pending bit 3"]
pub use PIF0_W as PIF3_W;
#[doc = "Field `PIF4` writer - Pending bit 4"]
pub use PIF0_W as PIF4_W;
#[doc = "Field `PIF5` writer - Pending bit 5"]
pub use PIF0_W as PIF5_W;
#[doc = "Field `PIF6` writer - Pending bit 6"]
pub use PIF0_W as PIF6_W;
#[doc = "Field `PIF7` writer - Pending bit 7"]
pub use PIF0_W as PIF7_W;
#[doc = "Field `PIF8` writer - Pending bit 8"]
pub use PIF0_W as PIF8_W;
#[doc = "Field `PIF9` writer - Pending bit 9"]
pub use PIF0_W as PIF9_W;
#[doc = "Field `PIF10` writer - Pending bit 10"]
pub use PIF0_W as PIF10_W;
#[doc = "Field `PIF11` writer - Pending bit 11"]
pub use PIF0_W as PIF11_W;
#[doc = "Field `PIF12` writer - Pending bit 12"]
pub use PIF0_W as PIF12_W;
#[doc = "Field `PIF13` writer - Pending bit 13"]
pub use PIF0_W as PIF13_W;
#[doc = "Field `PIF14` writer - Pending bit 14"]
pub use PIF0_W as PIF14_W;
#[doc = "Field `PIF15` writer - Pending bit 15"]
pub use PIF0_W as PIF15_W;
#[doc = "Field `PIF16` writer - Pending bit 16"]
pub use PIF0_W as PIF16_W;
#[doc = "Field `PIF19` writer - Pending bit 19"]
pub use PIF0_W as PIF19_W;
#[doc = "Field `PIF20` writer - Pending bit 20"]
pub use PIF0_W as PIF20_W;
#[doc = "Field `PIF21` writer - Pending bit 21"]
pub use PIF0_W as PIF21_W;
#[doc = "Field `PIF22` writer - Pending bit 22"]
pub use PIF0_W as PIF22_W;
#[doc = "Field `PIF17` writer - Pending bit 17"]
pub use PIF0_W as PIF17_W;
impl R {
    #[doc = "Bit 0 - Pending bit 0"]
    #[inline(always)]
    pub fn pif0(&self) -> PIF0_R {
        PIF0_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Pending bit 1"]
    #[inline(always)]
    pub fn pif1(&self) -> PIF1_R {
        PIF1_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Pending bit 2"]
    #[inline(always)]
    pub fn pif2(&self) -> PIF2_R {
        PIF2_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Pending bit 3"]
    #[inline(always)]
    pub fn pif3(&self) -> PIF3_R {
        PIF3_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Pending bit 4"]
    #[inline(always)]
    pub fn pif4(&self) -> PIF4_R {
        PIF4_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Pending bit 5"]
    #[inline(always)]
    pub fn pif5(&self) -> PIF5_R {
        PIF5_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Pending bit 6"]
    #[inline(always)]
    pub fn pif6(&self) -> PIF6_R {
        PIF6_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Pending bit 7"]
    #[inline(always)]
    pub fn pif7(&self) -> PIF7_R {
        PIF7_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - Pending bit 8"]
    #[inline(always)]
    pub fn pif8(&self) -> PIF8_R {
        PIF8_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - Pending bit 9"]
    #[inline(always)]
    pub fn pif9(&self) -> PIF9_R {
        PIF9_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - Pending bit 10"]
    #[inline(always)]
    pub fn pif10(&self) -> PIF10_R {
        PIF10_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - Pending bit 11"]
    #[inline(always)]
    pub fn pif11(&self) -> PIF11_R {
        PIF11_R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - Pending bit 12"]
    #[inline(always)]
    pub fn pif12(&self) -> PIF12_R {
        PIF12_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - Pending bit 13"]
    #[inline(always)]
    pub fn pif13(&self) -> PIF13_R {
        PIF13_R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - Pending bit 14"]
    #[inline(always)]
    pub fn pif14(&self) -> PIF14_R {
        PIF14_R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - Pending bit 15"]
    #[inline(always)]
    pub fn pif15(&self) -> PIF15_R {
        PIF15_R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 16 - Pending bit 16"]
    #[inline(always)]
    pub fn pif16(&self) -> PIF16_R {
        PIF16_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 19 - Pending bit 19"]
    #[inline(always)]
    pub fn pif19(&self) -> PIF19_R {
        PIF19_R::new(((self.bits >> 19) & 1) != 0)
    }
    #[doc = "Bit 20 - Pending bit 20"]
    #[inline(always)]
    pub fn pif20(&self) -> PIF20_R {
        PIF20_R::new(((self.bits >> 20) & 1) != 0)
    }
    #[doc = "Bit 21 - Pending bit 21"]
    #[inline(always)]
    pub fn pif21(&self) -> PIF21_R {
        PIF21_R::new(((self.bits >> 21) & 1) != 0)
    }
    #[doc = "Bit 22 - Pending bit 22"]
    #[inline(always)]
    pub fn pif22(&self) -> PIF22_R {
        PIF22_R::new(((self.bits >> 22) & 1) != 0)
    }
    #[doc = "Bit 17 - Pending bit 17"]
    #[inline(always)]
    pub fn pif17(&self) -> PIF17_R {
        PIF17_R::new(((self.bits >> 17) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Pending bit 0"]
    #[inline(always)]
    pub fn pif0(&mut self) -> PIF0_W<0> {
        PIF0_W::new(self)
    }
    #[doc = "Bit 1 - Pending bit 1"]
    #[inline(always)]
    pub fn pif1(&mut self) -> PIF1_W<1> {
        PIF1_W::new(self)
    }
    #[doc = "Bit 2 - Pending bit 2"]
    #[inline(always)]
    pub fn pif2(&mut self) -> PIF2_W<2> {
        PIF2_W::new(self)
    }
    #[doc = "Bit 3 - Pending bit 3"]
    #[inline(always)]
    pub fn pif3(&mut self) -> PIF3_W<3> {
        PIF3_W::new(self)
    }
    #[doc = "Bit 4 - Pending bit 4"]
    #[inline(always)]
    pub fn pif4(&mut self) -> PIF4_W<4> {
        PIF4_W::new(self)
    }
    #[doc = "Bit 5 - Pending bit 5"]
    #[inline(always)]
    pub fn pif5(&mut self) -> PIF5_W<5> {
        PIF5_W::new(self)
    }
    #[doc = "Bit 6 - Pending bit 6"]
    #[inline(always)]
    pub fn pif6(&mut self) -> PIF6_W<6> {
        PIF6_W::new(self)
    }
    #[doc = "Bit 7 - Pending bit 7"]
    #[inline(always)]
    pub fn pif7(&mut self) -> PIF7_W<7> {
        PIF7_W::new(self)
    }
    #[doc = "Bit 8 - Pending bit 8"]
    #[inline(always)]
    pub fn pif8(&mut self) -> PIF8_W<8> {
        PIF8_W::new(self)
    }
    #[doc = "Bit 9 - Pending bit 9"]
    #[inline(always)]
    pub fn pif9(&mut self) -> PIF9_W<9> {
        PIF9_W::new(self)
    }
    #[doc = "Bit 10 - Pending bit 10"]
    #[inline(always)]
    pub fn pif10(&mut self) -> PIF10_W<10> {
        PIF10_W::new(self)
    }
    #[doc = "Bit 11 - Pending bit 11"]
    #[inline(always)]
    pub fn pif11(&mut self) -> PIF11_W<11> {
        PIF11_W::new(self)
    }
    #[doc = "Bit 12 - Pending bit 12"]
    #[inline(always)]
    pub fn pif12(&mut self) -> PIF12_W<12> {
        PIF12_W::new(self)
    }
    #[doc = "Bit 13 - Pending bit 13"]
    #[inline(always)]
    pub fn pif13(&mut self) -> PIF13_W<13> {
        PIF13_W::new(self)
    }
    #[doc = "Bit 14 - Pending bit 14"]
    #[inline(always)]
    pub fn pif14(&mut self) -> PIF14_W<14> {
        PIF14_W::new(self)
    }
    #[doc = "Bit 15 - Pending bit 15"]
    #[inline(always)]
    pub fn pif15(&mut self) -> PIF15_W<15> {
        PIF15_W::new(self)
    }
    #[doc = "Bit 16 - Pending bit 16"]
    #[inline(always)]
    pub fn pif16(&mut self) -> PIF16_W<16> {
        PIF16_W::new(self)
    }
    #[doc = "Bit 19 - Pending bit 19"]
    #[inline(always)]
    pub fn pif19(&mut self) -> PIF19_W<19> {
        PIF19_W::new(self)
    }
    #[doc = "Bit 20 - Pending bit 20"]
    #[inline(always)]
    pub fn pif20(&mut self) -> PIF20_W<20> {
        PIF20_W::new(self)
    }
    #[doc = "Bit 21 - Pending bit 21"]
    #[inline(always)]
    pub fn pif21(&mut self) -> PIF21_W<21> {
        PIF21_W::new(self)
    }
    #[doc = "Bit 22 - Pending bit 22"]
    #[inline(always)]
    pub fn pif22(&mut self) -> PIF22_W<22> {
        PIF22_W::new(self)
    }
    #[doc = "Bit 17 - Pending bit 17"]
    #[inline(always)]
    pub fn pif17(&mut self) -> PIF17_W<17> {
        PIF17_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 = "Pending register\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 [pr1](index.html) module"]
pub struct PR1_SPEC;
impl crate::RegisterSpec for PR1_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [pr1::R](R) reader structure"]
impl crate::Readable for PR1_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [pr1::W](W) writer structure"]
impl crate::Writable for PR1_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets PR1 to value 0"]
impl crate::Resettable for PR1_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}