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
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
#[doc = "Register `ASPND` reader"]
pub type R = crate::R<ASPND_SPEC>;
#[doc = "Register `ASPND` writer"]
pub type W = crate::W<ASPND_SPEC>;
#[doc = "Channels Pending\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CHPND0_A {
    #[doc = "0: Ignore this channel"]
    VALUE1 = 0,
    #[doc = "1: Request conversion of this channel"]
    VALUE2 = 1,
}
impl From<CHPND0_A> for bool {
    #[inline(always)]
    fn from(variant: CHPND0_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `CHPND0` reader - Channels Pending"]
pub type CHPND0_R = crate::BitReader<CHPND0_A>;
impl CHPND0_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> CHPND0_A {
        match self.bits {
            false => CHPND0_A::VALUE1,
            true => CHPND0_A::VALUE2,
        }
    }
    #[doc = "Ignore this channel"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == CHPND0_A::VALUE1
    }
    #[doc = "Request conversion of this channel"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == CHPND0_A::VALUE2
    }
}
#[doc = "Field `CHPND0` writer - Channels Pending"]
pub type CHPND0_W<'a, REG> = crate::BitWriter<'a, REG, CHPND0_A>;
impl<'a, REG> CHPND0_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Ignore this channel"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(CHPND0_A::VALUE1)
    }
    #[doc = "Request conversion of this channel"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(CHPND0_A::VALUE2)
    }
}
#[doc = "Channels Pending\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CHPND1_A {
    #[doc = "0: Ignore this channel"]
    VALUE1 = 0,
    #[doc = "1: Request conversion of this channel"]
    VALUE2 = 1,
}
impl From<CHPND1_A> for bool {
    #[inline(always)]
    fn from(variant: CHPND1_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `CHPND1` reader - Channels Pending"]
pub type CHPND1_R = crate::BitReader<CHPND1_A>;
impl CHPND1_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> CHPND1_A {
        match self.bits {
            false => CHPND1_A::VALUE1,
            true => CHPND1_A::VALUE2,
        }
    }
    #[doc = "Ignore this channel"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == CHPND1_A::VALUE1
    }
    #[doc = "Request conversion of this channel"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == CHPND1_A::VALUE2
    }
}
#[doc = "Field `CHPND1` writer - Channels Pending"]
pub type CHPND1_W<'a, REG> = crate::BitWriter<'a, REG, CHPND1_A>;
impl<'a, REG> CHPND1_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Ignore this channel"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(CHPND1_A::VALUE1)
    }
    #[doc = "Request conversion of this channel"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(CHPND1_A::VALUE2)
    }
}
#[doc = "Channels Pending\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CHPND2_A {
    #[doc = "0: Ignore this channel"]
    VALUE1 = 0,
    #[doc = "1: Request conversion of this channel"]
    VALUE2 = 1,
}
impl From<CHPND2_A> for bool {
    #[inline(always)]
    fn from(variant: CHPND2_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `CHPND2` reader - Channels Pending"]
pub type CHPND2_R = crate::BitReader<CHPND2_A>;
impl CHPND2_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> CHPND2_A {
        match self.bits {
            false => CHPND2_A::VALUE1,
            true => CHPND2_A::VALUE2,
        }
    }
    #[doc = "Ignore this channel"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == CHPND2_A::VALUE1
    }
    #[doc = "Request conversion of this channel"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == CHPND2_A::VALUE2
    }
}
#[doc = "Field `CHPND2` writer - Channels Pending"]
pub type CHPND2_W<'a, REG> = crate::BitWriter<'a, REG, CHPND2_A>;
impl<'a, REG> CHPND2_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Ignore this channel"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(CHPND2_A::VALUE1)
    }
    #[doc = "Request conversion of this channel"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(CHPND2_A::VALUE2)
    }
}
#[doc = "Channels Pending\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CHPND3_A {
    #[doc = "0: Ignore this channel"]
    VALUE1 = 0,
    #[doc = "1: Request conversion of this channel"]
    VALUE2 = 1,
}
impl From<CHPND3_A> for bool {
    #[inline(always)]
    fn from(variant: CHPND3_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `CHPND3` reader - Channels Pending"]
pub type CHPND3_R = crate::BitReader<CHPND3_A>;
impl CHPND3_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> CHPND3_A {
        match self.bits {
            false => CHPND3_A::VALUE1,
            true => CHPND3_A::VALUE2,
        }
    }
    #[doc = "Ignore this channel"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == CHPND3_A::VALUE1
    }
    #[doc = "Request conversion of this channel"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == CHPND3_A::VALUE2
    }
}
#[doc = "Field `CHPND3` writer - Channels Pending"]
pub type CHPND3_W<'a, REG> = crate::BitWriter<'a, REG, CHPND3_A>;
impl<'a, REG> CHPND3_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Ignore this channel"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(CHPND3_A::VALUE1)
    }
    #[doc = "Request conversion of this channel"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(CHPND3_A::VALUE2)
    }
}
#[doc = "Channels Pending\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CHPND4_A {
    #[doc = "0: Ignore this channel"]
    VALUE1 = 0,
    #[doc = "1: Request conversion of this channel"]
    VALUE2 = 1,
}
impl From<CHPND4_A> for bool {
    #[inline(always)]
    fn from(variant: CHPND4_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `CHPND4` reader - Channels Pending"]
pub type CHPND4_R = crate::BitReader<CHPND4_A>;
impl CHPND4_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> CHPND4_A {
        match self.bits {
            false => CHPND4_A::VALUE1,
            true => CHPND4_A::VALUE2,
        }
    }
    #[doc = "Ignore this channel"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == CHPND4_A::VALUE1
    }
    #[doc = "Request conversion of this channel"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == CHPND4_A::VALUE2
    }
}
#[doc = "Field `CHPND4` writer - Channels Pending"]
pub type CHPND4_W<'a, REG> = crate::BitWriter<'a, REG, CHPND4_A>;
impl<'a, REG> CHPND4_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Ignore this channel"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(CHPND4_A::VALUE1)
    }
    #[doc = "Request conversion of this channel"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(CHPND4_A::VALUE2)
    }
}
#[doc = "Channels Pending\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CHPND5_A {
    #[doc = "0: Ignore this channel"]
    VALUE1 = 0,
    #[doc = "1: Request conversion of this channel"]
    VALUE2 = 1,
}
impl From<CHPND5_A> for bool {
    #[inline(always)]
    fn from(variant: CHPND5_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `CHPND5` reader - Channels Pending"]
pub type CHPND5_R = crate::BitReader<CHPND5_A>;
impl CHPND5_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> CHPND5_A {
        match self.bits {
            false => CHPND5_A::VALUE1,
            true => CHPND5_A::VALUE2,
        }
    }
    #[doc = "Ignore this channel"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == CHPND5_A::VALUE1
    }
    #[doc = "Request conversion of this channel"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == CHPND5_A::VALUE2
    }
}
#[doc = "Field `CHPND5` writer - Channels Pending"]
pub type CHPND5_W<'a, REG> = crate::BitWriter<'a, REG, CHPND5_A>;
impl<'a, REG> CHPND5_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Ignore this channel"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(CHPND5_A::VALUE1)
    }
    #[doc = "Request conversion of this channel"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(CHPND5_A::VALUE2)
    }
}
#[doc = "Channels Pending\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CHPND6_A {
    #[doc = "0: Ignore this channel"]
    VALUE1 = 0,
    #[doc = "1: Request conversion of this channel"]
    VALUE2 = 1,
}
impl From<CHPND6_A> for bool {
    #[inline(always)]
    fn from(variant: CHPND6_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `CHPND6` reader - Channels Pending"]
pub type CHPND6_R = crate::BitReader<CHPND6_A>;
impl CHPND6_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> CHPND6_A {
        match self.bits {
            false => CHPND6_A::VALUE1,
            true => CHPND6_A::VALUE2,
        }
    }
    #[doc = "Ignore this channel"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == CHPND6_A::VALUE1
    }
    #[doc = "Request conversion of this channel"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == CHPND6_A::VALUE2
    }
}
#[doc = "Field `CHPND6` writer - Channels Pending"]
pub type CHPND6_W<'a, REG> = crate::BitWriter<'a, REG, CHPND6_A>;
impl<'a, REG> CHPND6_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Ignore this channel"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(CHPND6_A::VALUE1)
    }
    #[doc = "Request conversion of this channel"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(CHPND6_A::VALUE2)
    }
}
#[doc = "Channels Pending\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CHPND7_A {
    #[doc = "0: Ignore this channel"]
    VALUE1 = 0,
    #[doc = "1: Request conversion of this channel"]
    VALUE2 = 1,
}
impl From<CHPND7_A> for bool {
    #[inline(always)]
    fn from(variant: CHPND7_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `CHPND7` reader - Channels Pending"]
pub type CHPND7_R = crate::BitReader<CHPND7_A>;
impl CHPND7_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> CHPND7_A {
        match self.bits {
            false => CHPND7_A::VALUE1,
            true => CHPND7_A::VALUE2,
        }
    }
    #[doc = "Ignore this channel"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == CHPND7_A::VALUE1
    }
    #[doc = "Request conversion of this channel"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == CHPND7_A::VALUE2
    }
}
#[doc = "Field `CHPND7` writer - Channels Pending"]
pub type CHPND7_W<'a, REG> = crate::BitWriter<'a, REG, CHPND7_A>;
impl<'a, REG> CHPND7_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Ignore this channel"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(CHPND7_A::VALUE1)
    }
    #[doc = "Request conversion of this channel"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(CHPND7_A::VALUE2)
    }
}
impl R {
    #[doc = "Bit 0 - Channels Pending"]
    #[inline(always)]
    pub fn chpnd0(&self) -> CHPND0_R {
        CHPND0_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Channels Pending"]
    #[inline(always)]
    pub fn chpnd1(&self) -> CHPND1_R {
        CHPND1_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Channels Pending"]
    #[inline(always)]
    pub fn chpnd2(&self) -> CHPND2_R {
        CHPND2_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Channels Pending"]
    #[inline(always)]
    pub fn chpnd3(&self) -> CHPND3_R {
        CHPND3_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Channels Pending"]
    #[inline(always)]
    pub fn chpnd4(&self) -> CHPND4_R {
        CHPND4_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Channels Pending"]
    #[inline(always)]
    pub fn chpnd5(&self) -> CHPND5_R {
        CHPND5_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Channels Pending"]
    #[inline(always)]
    pub fn chpnd6(&self) -> CHPND6_R {
        CHPND6_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Channels Pending"]
    #[inline(always)]
    pub fn chpnd7(&self) -> CHPND7_R {
        CHPND7_R::new(((self.bits >> 7) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Channels Pending"]
    #[inline(always)]
    #[must_use]
    pub fn chpnd0(&mut self) -> CHPND0_W<ASPND_SPEC> {
        CHPND0_W::new(self, 0)
    }
    #[doc = "Bit 1 - Channels Pending"]
    #[inline(always)]
    #[must_use]
    pub fn chpnd1(&mut self) -> CHPND1_W<ASPND_SPEC> {
        CHPND1_W::new(self, 1)
    }
    #[doc = "Bit 2 - Channels Pending"]
    #[inline(always)]
    #[must_use]
    pub fn chpnd2(&mut self) -> CHPND2_W<ASPND_SPEC> {
        CHPND2_W::new(self, 2)
    }
    #[doc = "Bit 3 - Channels Pending"]
    #[inline(always)]
    #[must_use]
    pub fn chpnd3(&mut self) -> CHPND3_W<ASPND_SPEC> {
        CHPND3_W::new(self, 3)
    }
    #[doc = "Bit 4 - Channels Pending"]
    #[inline(always)]
    #[must_use]
    pub fn chpnd4(&mut self) -> CHPND4_W<ASPND_SPEC> {
        CHPND4_W::new(self, 4)
    }
    #[doc = "Bit 5 - Channels Pending"]
    #[inline(always)]
    #[must_use]
    pub fn chpnd5(&mut self) -> CHPND5_W<ASPND_SPEC> {
        CHPND5_W::new(self, 5)
    }
    #[doc = "Bit 6 - Channels Pending"]
    #[inline(always)]
    #[must_use]
    pub fn chpnd6(&mut self) -> CHPND6_W<ASPND_SPEC> {
        CHPND6_W::new(self, 6)
    }
    #[doc = "Bit 7 - Channels Pending"]
    #[inline(always)]
    #[must_use]
    pub fn chpnd7(&mut self) -> CHPND7_W<ASPND_SPEC> {
        CHPND7_W::new(self, 7)
    }
}
#[doc = "Autoscan Source Pending Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`aspnd::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`aspnd::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ASPND_SPEC;
impl crate::RegisterSpec for ASPND_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`aspnd::R`](R) reader structure"]
impl crate::Readable for ASPND_SPEC {}
#[doc = "`write(|w| ..)` method takes [`aspnd::W`](W) writer structure"]
impl crate::Writable for ASPND_SPEC {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets ASPND to value 0"]
impl crate::Resettable for ASPND_SPEC {
    const RESET_VALUE: u32 = 0;
}