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
///Register `PR` reader
pub struct R(crate::R<PR_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<PR_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<PR_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<PR_SPEC>) -> Self {
        R(reader)
    }
}
///Register `PR` writer
pub struct W(crate::W<PR_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<PR_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<PR_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<PR_SPEC>) -> Self {
        W(writer)
    }
}
///Field `PR0` reader - configurable event inputs x rising edge Pending bit.
pub type PR0_R = crate::BitReader<PR0R_A>;
///configurable event inputs x rising edge Pending bit.
///
///Value on reset: 0
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum PR0R_A {
    ///0: No trigger request occurred
    NotPending = 0,
    ///1: Selected trigger request occurred
    Pending = 1,
}
impl From<PR0R_A> for bool {
    #[inline(always)]
    fn from(variant: PR0R_A) -> Self {
        variant as u8 != 0
    }
}
impl PR0_R {
    ///Get enumerated values variant
    #[inline(always)]
    pub fn variant(&self) -> PR0R_A {
        match self.bits {
            false => PR0R_A::NotPending,
            true => PR0R_A::Pending,
        }
    }
    ///Checks if the value of the field is `NotPending`
    #[inline(always)]
    pub fn is_not_pending(&self) -> bool {
        *self == PR0R_A::NotPending
    }
    ///Checks if the value of the field is `Pending`
    #[inline(always)]
    pub fn is_pending(&self) -> bool {
        *self == PR0R_A::Pending
    }
}
///configurable event inputs x rising edge Pending bit.
///
///Value on reset: 0
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum PR0W_AW {
    ///1: Clears pending bit
    Clear = 1,
}
impl From<PR0W_AW> for bool {
    #[inline(always)]
    fn from(variant: PR0W_AW) -> Self {
        variant as u8 != 0
    }
}
///Field `PR0` writer - configurable event inputs x rising edge Pending bit.
pub type PR0_W<'a, const O: u8> = crate::BitWriter1C<'a, u32, PR_SPEC, PR0W_AW, O>;
impl<'a, const O: u8> PR0_W<'a, O> {
    ///Clears pending bit
    #[inline(always)]
    pub fn clear(self) -> &'a mut W {
        self.variant(PR0W_AW::Clear)
    }
}
///Field `PR1` reader - configurable event inputs x rising edge Pending bit.
pub use PR0_R as PR1_R;
///Field `PR2` reader - configurable event inputs x rising edge Pending bit.
pub use PR0_R as PR2_R;
///Field `PR3` reader - configurable event inputs x rising edge Pending bit.
pub use PR0_R as PR3_R;
///Field `PR4` reader - configurable event inputs x rising edge Pending bit.
pub use PR0_R as PR4_R;
///Field `PR5` reader - configurable event inputs x rising edge Pending bit.
pub use PR0_R as PR5_R;
///Field `PR6` reader - configurable event inputs x rising edge Pending bit.
pub use PR0_R as PR6_R;
///Field `PR7` reader - configurable event inputs x rising edge Pending bit.
pub use PR0_R as PR7_R;
///Field `PR8` reader - configurable event inputs x rising edge Pending bit.
pub use PR0_R as PR8_R;
///Field `PR9` reader - configurable event inputs x rising edge Pending bit.
pub use PR0_R as PR9_R;
///Field `PR10` reader - configurable event inputs x rising edge Pending bit.
pub use PR0_R as PR10_R;
///Field `PR11` reader - configurable event inputs x rising edge Pending bit.
pub use PR0_R as PR11_R;
///Field `PR12` reader - configurable event inputs x rising edge Pending bit.
pub use PR0_R as PR12_R;
///Field `PR13` reader - configurable event inputs x rising edge Pending bit
pub use PR0_R as PR13_R;
///Field `PR14` reader - configurable event inputs x rising edge Pending bit.
pub use PR0_R as PR14_R;
///Field `PR15` reader - configurable event inputs x rising edge Pending bit.
pub use PR0_R as PR15_R;
///Field `PR16` reader - configurable event inputs x rising edge Pending bit.
pub use PR0_R as PR16_R;
///Field `PR17` reader - configurable event inputs x rising edge Pending bit.
pub use PR0_R as PR17_R;
///Field `PR18` reader - configurable event inputs x rising edge Pending bit.
pub use PR0_R as PR18_R;
///Field `PR1` writer - configurable event inputs x rising edge Pending bit.
pub use PR0_W as PR1_W;
///Field `PR2` writer - configurable event inputs x rising edge Pending bit.
pub use PR0_W as PR2_W;
///Field `PR3` writer - configurable event inputs x rising edge Pending bit.
pub use PR0_W as PR3_W;
///Field `PR4` writer - configurable event inputs x rising edge Pending bit.
pub use PR0_W as PR4_W;
///Field `PR5` writer - configurable event inputs x rising edge Pending bit.
pub use PR0_W as PR5_W;
///Field `PR6` writer - configurable event inputs x rising edge Pending bit.
pub use PR0_W as PR6_W;
///Field `PR7` writer - configurable event inputs x rising edge Pending bit.
pub use PR0_W as PR7_W;
///Field `PR8` writer - configurable event inputs x rising edge Pending bit.
pub use PR0_W as PR8_W;
///Field `PR9` writer - configurable event inputs x rising edge Pending bit.
pub use PR0_W as PR9_W;
///Field `PR10` writer - configurable event inputs x rising edge Pending bit.
pub use PR0_W as PR10_W;
///Field `PR11` writer - configurable event inputs x rising edge Pending bit.
pub use PR0_W as PR11_W;
///Field `PR12` writer - configurable event inputs x rising edge Pending bit.
pub use PR0_W as PR12_W;
///Field `PR13` writer - configurable event inputs x rising edge Pending bit
pub use PR0_W as PR13_W;
///Field `PR14` writer - configurable event inputs x rising edge Pending bit.
pub use PR0_W as PR14_W;
///Field `PR15` writer - configurable event inputs x rising edge Pending bit.
pub use PR0_W as PR15_W;
///Field `PR16` writer - configurable event inputs x rising edge Pending bit.
pub use PR0_W as PR16_W;
///Field `PR17` writer - configurable event inputs x rising edge Pending bit.
pub use PR0_W as PR17_W;
///Field `PR18` writer - configurable event inputs x rising edge Pending bit.
pub use PR0_W as PR18_W;
impl R {
    ///Bit 0 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    pub fn pr0(&self) -> PR0_R {
        PR0_R::new((self.bits & 1) != 0)
    }
    ///Bit 1 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    pub fn pr1(&self) -> PR1_R {
        PR1_R::new(((self.bits >> 1) & 1) != 0)
    }
    ///Bit 2 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    pub fn pr2(&self) -> PR2_R {
        PR2_R::new(((self.bits >> 2) & 1) != 0)
    }
    ///Bit 3 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    pub fn pr3(&self) -> PR3_R {
        PR3_R::new(((self.bits >> 3) & 1) != 0)
    }
    ///Bit 4 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    pub fn pr4(&self) -> PR4_R {
        PR4_R::new(((self.bits >> 4) & 1) != 0)
    }
    ///Bit 5 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    pub fn pr5(&self) -> PR5_R {
        PR5_R::new(((self.bits >> 5) & 1) != 0)
    }
    ///Bit 6 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    pub fn pr6(&self) -> PR6_R {
        PR6_R::new(((self.bits >> 6) & 1) != 0)
    }
    ///Bit 7 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    pub fn pr7(&self) -> PR7_R {
        PR7_R::new(((self.bits >> 7) & 1) != 0)
    }
    ///Bit 8 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    pub fn pr8(&self) -> PR8_R {
        PR8_R::new(((self.bits >> 8) & 1) != 0)
    }
    ///Bit 9 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    pub fn pr9(&self) -> PR9_R {
        PR9_R::new(((self.bits >> 9) & 1) != 0)
    }
    ///Bit 10 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    pub fn pr10(&self) -> PR10_R {
        PR10_R::new(((self.bits >> 10) & 1) != 0)
    }
    ///Bit 11 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    pub fn pr11(&self) -> PR11_R {
        PR11_R::new(((self.bits >> 11) & 1) != 0)
    }
    ///Bit 12 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    pub fn pr12(&self) -> PR12_R {
        PR12_R::new(((self.bits >> 12) & 1) != 0)
    }
    ///Bit 13 - configurable event inputs x rising edge Pending bit
    #[inline(always)]
    pub fn pr13(&self) -> PR13_R {
        PR13_R::new(((self.bits >> 13) & 1) != 0)
    }
    ///Bit 14 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    pub fn pr14(&self) -> PR14_R {
        PR14_R::new(((self.bits >> 14) & 1) != 0)
    }
    ///Bit 15 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    pub fn pr15(&self) -> PR15_R {
        PR15_R::new(((self.bits >> 15) & 1) != 0)
    }
    ///Bit 16 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    pub fn pr16(&self) -> PR16_R {
        PR16_R::new(((self.bits >> 16) & 1) != 0)
    }
    ///Bit 17 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    pub fn pr17(&self) -> PR17_R {
        PR17_R::new(((self.bits >> 17) & 1) != 0)
    }
    ///Bit 18 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    pub fn pr18(&self) -> PR18_R {
        PR18_R::new(((self.bits >> 18) & 1) != 0)
    }
}
impl W {
    ///Bit 0 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    #[must_use]
    pub fn pr0(&mut self) -> PR0_W<0> {
        PR0_W::new(self)
    }
    ///Bit 1 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    #[must_use]
    pub fn pr1(&mut self) -> PR1_W<1> {
        PR1_W::new(self)
    }
    ///Bit 2 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    #[must_use]
    pub fn pr2(&mut self) -> PR2_W<2> {
        PR2_W::new(self)
    }
    ///Bit 3 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    #[must_use]
    pub fn pr3(&mut self) -> PR3_W<3> {
        PR3_W::new(self)
    }
    ///Bit 4 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    #[must_use]
    pub fn pr4(&mut self) -> PR4_W<4> {
        PR4_W::new(self)
    }
    ///Bit 5 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    #[must_use]
    pub fn pr5(&mut self) -> PR5_W<5> {
        PR5_W::new(self)
    }
    ///Bit 6 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    #[must_use]
    pub fn pr6(&mut self) -> PR6_W<6> {
        PR6_W::new(self)
    }
    ///Bit 7 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    #[must_use]
    pub fn pr7(&mut self) -> PR7_W<7> {
        PR7_W::new(self)
    }
    ///Bit 8 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    #[must_use]
    pub fn pr8(&mut self) -> PR8_W<8> {
        PR8_W::new(self)
    }
    ///Bit 9 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    #[must_use]
    pub fn pr9(&mut self) -> PR9_W<9> {
        PR9_W::new(self)
    }
    ///Bit 10 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    #[must_use]
    pub fn pr10(&mut self) -> PR10_W<10> {
        PR10_W::new(self)
    }
    ///Bit 11 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    #[must_use]
    pub fn pr11(&mut self) -> PR11_W<11> {
        PR11_W::new(self)
    }
    ///Bit 12 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    #[must_use]
    pub fn pr12(&mut self) -> PR12_W<12> {
        PR12_W::new(self)
    }
    ///Bit 13 - configurable event inputs x rising edge Pending bit
    #[inline(always)]
    #[must_use]
    pub fn pr13(&mut self) -> PR13_W<13> {
        PR13_W::new(self)
    }
    ///Bit 14 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    #[must_use]
    pub fn pr14(&mut self) -> PR14_W<14> {
        PR14_W::new(self)
    }
    ///Bit 15 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    #[must_use]
    pub fn pr15(&mut self) -> PR15_W<15> {
        PR15_W::new(self)
    }
    ///Bit 16 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    #[must_use]
    pub fn pr16(&mut self) -> PR16_W<16> {
        PR16_W::new(self)
    }
    ///Bit 17 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    #[must_use]
    pub fn pr17(&mut self) -> PR17_W<17> {
        PR17_W::new(self)
    }
    ///Bit 18 - configurable event inputs x rising edge Pending bit.
    #[inline(always)]
    #[must_use]
    pub fn pr18(&mut self) -> PR18_W<18> {
        PR18_W::new(self)
    }
    ///Writes raw bits to the register.
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
///EXTI pending register
///
///This 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).
///
///For information about available fields see [pr](index.html) module
pub struct PR_SPEC;
impl crate::RegisterSpec for PR_SPEC {
    type Ux = u32;
}
///`read()` method returns [pr::R](R) reader structure
impl crate::Readable for PR_SPEC {
    type Reader = R;
}
///`write(|w| ..)` method takes [pr::W](W) writer structure
impl crate::Writable for PR_SPEC {
    type Writer = W;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0x0007_ffff;
}
///`reset()` method sets PR to value 0
impl crate::Resettable for PR_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}