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
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
#[doc = "Register `CH6CTL` reader"]
pub type R = crate::R<Ch6ctlSpec>;
#[doc = "Register `CH6CTL` writer"]
pub type W = crate::W<Ch6ctlSpec>;
#[doc = "Channel enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Chen {
    #[doc = "0: Channel disabled"]
    Disabled = 0,
    #[doc = "1: Channel enabled"]
    Enabled = 1,
}
impl From<Chen> for bool {
    #[inline(always)]
    fn from(variant: Chen) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `CHEN` reader - Channel enable"]
pub type ChenR = crate::BitReader<Chen>;
impl ChenR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Chen {
        match self.bits {
            false => Chen::Disabled,
            true => Chen::Enabled,
        }
    }
    #[doc = "Channel disabled"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == Chen::Disabled
    }
    #[doc = "Channel enabled"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == Chen::Enabled
    }
}
#[doc = "Field `CHEN` writer - Channel enable"]
pub type ChenW<'a, REG> = crate::BitWriter<'a, REG, Chen>;
impl<'a, REG> ChenW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Channel disabled"]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut crate::W<REG> {
        self.variant(Chen::Disabled)
    }
    #[doc = "Channel enabled"]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut crate::W<REG> {
        self.variant(Chen::Enabled)
    }
}
#[doc = "Enable bit for full transfer finish interrupt\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Ftfie {
    #[doc = "0: Full transfer interrupt disabled"]
    Disabled = 0,
    #[doc = "1: Full transfer interrupt enabled"]
    Enabled = 1,
}
impl From<Ftfie> for bool {
    #[inline(always)]
    fn from(variant: Ftfie) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `FTFIE` reader - Enable bit for full transfer finish interrupt"]
pub type FtfieR = crate::BitReader<Ftfie>;
impl FtfieR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Ftfie {
        match self.bits {
            false => Ftfie::Disabled,
            true => Ftfie::Enabled,
        }
    }
    #[doc = "Full transfer interrupt disabled"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == Ftfie::Disabled
    }
    #[doc = "Full transfer interrupt enabled"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == Ftfie::Enabled
    }
}
#[doc = "Field `FTFIE` writer - Enable bit for full transfer finish interrupt"]
pub type FtfieW<'a, REG> = crate::BitWriter<'a, REG, Ftfie>;
impl<'a, REG> FtfieW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Full transfer interrupt disabled"]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut crate::W<REG> {
        self.variant(Ftfie::Disabled)
    }
    #[doc = "Full transfer interrupt enabled"]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut crate::W<REG> {
        self.variant(Ftfie::Enabled)
    }
}
#[doc = "Enable bit for full transfer finish interrupt\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Htfie {
    #[doc = "0: Half transfer interrupt disabled"]
    Disabled = 0,
    #[doc = "1: Half transfer interrupt enabled"]
    Enabled = 1,
}
impl From<Htfie> for bool {
    #[inline(always)]
    fn from(variant: Htfie) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `HTFIE` reader - Enable bit for full transfer finish interrupt"]
pub type HtfieR = crate::BitReader<Htfie>;
impl HtfieR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Htfie {
        match self.bits {
            false => Htfie::Disabled,
            true => Htfie::Enabled,
        }
    }
    #[doc = "Half transfer interrupt disabled"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == Htfie::Disabled
    }
    #[doc = "Half transfer interrupt enabled"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == Htfie::Enabled
    }
}
#[doc = "Field `HTFIE` writer - Enable bit for full transfer finish interrupt"]
pub type HtfieW<'a, REG> = crate::BitWriter<'a, REG, Htfie>;
impl<'a, REG> HtfieW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Half transfer interrupt disabled"]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut crate::W<REG> {
        self.variant(Htfie::Disabled)
    }
    #[doc = "Half transfer interrupt enabled"]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut crate::W<REG> {
        self.variant(Htfie::Enabled)
    }
}
#[doc = "Enable bit for tranfer access error interrupt\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Errie {
    #[doc = "0: Transfer error interrupt disabled"]
    Disabled = 0,
    #[doc = "1: Transfer error interrupt enabled"]
    Enabled = 1,
}
impl From<Errie> for bool {
    #[inline(always)]
    fn from(variant: Errie) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `ERRIE` reader - Enable bit for tranfer access error interrupt"]
pub type ErrieR = crate::BitReader<Errie>;
impl ErrieR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Errie {
        match self.bits {
            false => Errie::Disabled,
            true => Errie::Enabled,
        }
    }
    #[doc = "Transfer error interrupt disabled"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == Errie::Disabled
    }
    #[doc = "Transfer error interrupt enabled"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == Errie::Enabled
    }
}
#[doc = "Field `ERRIE` writer - Enable bit for tranfer access error interrupt"]
pub type ErrieW<'a, REG> = crate::BitWriter<'a, REG, Errie>;
impl<'a, REG> ErrieW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Transfer error interrupt disabled"]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut crate::W<REG> {
        self.variant(Errie::Disabled)
    }
    #[doc = "Transfer error interrupt enabled"]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut crate::W<REG> {
        self.variant(Errie::Enabled)
    }
}
#[doc = "Transfer mode\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Dir {
    #[doc = "0: Read from peripheral"]
    FromPeripheral = 0,
    #[doc = "1: Read from memory"]
    FromMemory = 1,
}
impl From<Dir> for bool {
    #[inline(always)]
    fn from(variant: Dir) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `DIR` reader - Transfer mode"]
pub type DirR = crate::BitReader<Dir>;
impl DirR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Dir {
        match self.bits {
            false => Dir::FromPeripheral,
            true => Dir::FromMemory,
        }
    }
    #[doc = "Read from peripheral"]
    #[inline(always)]
    pub fn is_from_peripheral(&self) -> bool {
        *self == Dir::FromPeripheral
    }
    #[doc = "Read from memory"]
    #[inline(always)]
    pub fn is_from_memory(&self) -> bool {
        *self == Dir::FromMemory
    }
}
#[doc = "Field `DIR` writer - Transfer mode"]
pub type DirW<'a, REG> = crate::BitWriter<'a, REG, Dir>;
impl<'a, REG> DirW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Read from peripheral"]
    #[inline(always)]
    pub fn from_peripheral(self) -> &'a mut crate::W<REG> {
        self.variant(Dir::FromPeripheral)
    }
    #[doc = "Read from memory"]
    #[inline(always)]
    pub fn from_memory(self) -> &'a mut crate::W<REG> {
        self.variant(Dir::FromMemory)
    }
}
#[doc = "Circular mode enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Cmen {
    #[doc = "0: Circular buffer disabled"]
    Disabled = 0,
    #[doc = "1: Circular buffer enabled"]
    Enabled = 1,
}
impl From<Cmen> for bool {
    #[inline(always)]
    fn from(variant: Cmen) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `CMEN` reader - Circular mode enable"]
pub type CmenR = crate::BitReader<Cmen>;
impl CmenR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Cmen {
        match self.bits {
            false => Cmen::Disabled,
            true => Cmen::Enabled,
        }
    }
    #[doc = "Circular buffer disabled"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == Cmen::Disabled
    }
    #[doc = "Circular buffer enabled"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == Cmen::Enabled
    }
}
#[doc = "Field `CMEN` writer - Circular mode enable"]
pub type CmenW<'a, REG> = crate::BitWriter<'a, REG, Cmen>;
impl<'a, REG> CmenW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Circular buffer disabled"]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut crate::W<REG> {
        self.variant(Cmen::Disabled)
    }
    #[doc = "Circular buffer enabled"]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut crate::W<REG> {
        self.variant(Cmen::Enabled)
    }
}
#[doc = "Next address generation algorithm of peripheral\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Pnaga {
    #[doc = "0: Fixed address mode"]
    Fixed = 0,
    #[doc = "1: Increment address mode"]
    Increment = 1,
}
impl From<Pnaga> for bool {
    #[inline(always)]
    fn from(variant: Pnaga) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `PNAGA` reader - Next address generation algorithm of peripheral"]
pub type PnagaR = crate::BitReader<Pnaga>;
impl PnagaR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Pnaga {
        match self.bits {
            false => Pnaga::Fixed,
            true => Pnaga::Increment,
        }
    }
    #[doc = "Fixed address mode"]
    #[inline(always)]
    pub fn is_fixed(&self) -> bool {
        *self == Pnaga::Fixed
    }
    #[doc = "Increment address mode"]
    #[inline(always)]
    pub fn is_increment(&self) -> bool {
        *self == Pnaga::Increment
    }
}
#[doc = "Field `PNAGA` writer - Next address generation algorithm of peripheral"]
pub type PnagaW<'a, REG> = crate::BitWriter<'a, REG, Pnaga>;
impl<'a, REG> PnagaW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Fixed address mode"]
    #[inline(always)]
    pub fn fixed(self) -> &'a mut crate::W<REG> {
        self.variant(Pnaga::Fixed)
    }
    #[doc = "Increment address mode"]
    #[inline(always)]
    pub fn increment(self) -> &'a mut crate::W<REG> {
        self.variant(Pnaga::Increment)
    }
}
#[doc = "Field `MNAGA` reader - Next address generation algorithm of memory"]
pub use PnagaR as MnagaR;
#[doc = "Field `MNAGA` writer - Next address generation algorithm of memory"]
pub use PnagaW as MnagaW;
#[doc = "Transfer data size of peripheral\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum Pwidth {
    #[doc = "0: 8-bit size"]
    Bits8 = 0,
    #[doc = "1: 16-bit size"]
    Bits16 = 1,
    #[doc = "2: 32-bit size"]
    Bits32 = 2,
}
impl From<Pwidth> for u8 {
    #[inline(always)]
    fn from(variant: Pwidth) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for Pwidth {
    type Ux = u8;
}
#[doc = "Field `PWIDTH` reader - Transfer data size of peripheral"]
pub type PwidthR = crate::FieldReader<Pwidth>;
impl PwidthR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Option<Pwidth> {
        match self.bits {
            0 => Some(Pwidth::Bits8),
            1 => Some(Pwidth::Bits16),
            2 => Some(Pwidth::Bits32),
            _ => None,
        }
    }
    #[doc = "8-bit size"]
    #[inline(always)]
    pub fn is_bits8(&self) -> bool {
        *self == Pwidth::Bits8
    }
    #[doc = "16-bit size"]
    #[inline(always)]
    pub fn is_bits16(&self) -> bool {
        *self == Pwidth::Bits16
    }
    #[doc = "32-bit size"]
    #[inline(always)]
    pub fn is_bits32(&self) -> bool {
        *self == Pwidth::Bits32
    }
}
#[doc = "Field `PWIDTH` writer - Transfer data size of peripheral"]
pub type PwidthW<'a, REG> = crate::FieldWriter<'a, REG, 2, Pwidth>;
impl<'a, REG> PwidthW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    #[doc = "8-bit size"]
    #[inline(always)]
    pub fn bits8(self) -> &'a mut crate::W<REG> {
        self.variant(Pwidth::Bits8)
    }
    #[doc = "16-bit size"]
    #[inline(always)]
    pub fn bits16(self) -> &'a mut crate::W<REG> {
        self.variant(Pwidth::Bits16)
    }
    #[doc = "32-bit size"]
    #[inline(always)]
    pub fn bits32(self) -> &'a mut crate::W<REG> {
        self.variant(Pwidth::Bits32)
    }
}
#[doc = "Field `MWIDTH` reader - Transfer data size of memory"]
pub use PwidthR as MwidthR;
#[doc = "Field `MWIDTH` writer - Transfer data size of memory"]
pub use PwidthW as MwidthW;
#[doc = "Priority Level of this channel\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum Prio {
    #[doc = "0: Low priority"]
    Low = 0,
    #[doc = "1: Medium priority"]
    Medium = 1,
    #[doc = "2: High priority"]
    High = 2,
    #[doc = "3: Very high priority"]
    VeryHigh = 3,
}
impl From<Prio> for u8 {
    #[inline(always)]
    fn from(variant: Prio) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for Prio {
    type Ux = u8;
}
#[doc = "Field `PRIO` reader - Priority Level of this channel"]
pub type PrioR = crate::FieldReader<Prio>;
impl PrioR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Prio {
        match self.bits {
            0 => Prio::Low,
            1 => Prio::Medium,
            2 => Prio::High,
            3 => Prio::VeryHigh,
            _ => unreachable!(),
        }
    }
    #[doc = "Low priority"]
    #[inline(always)]
    pub fn is_low(&self) -> bool {
        *self == Prio::Low
    }
    #[doc = "Medium priority"]
    #[inline(always)]
    pub fn is_medium(&self) -> bool {
        *self == Prio::Medium
    }
    #[doc = "High priority"]
    #[inline(always)]
    pub fn is_high(&self) -> bool {
        *self == Prio::High
    }
    #[doc = "Very high priority"]
    #[inline(always)]
    pub fn is_very_high(&self) -> bool {
        *self == Prio::VeryHigh
    }
}
#[doc = "Field `PRIO` writer - Priority Level of this channel"]
pub type PrioW<'a, REG> = crate::FieldWriterSafe<'a, REG, 2, Prio>;
impl<'a, REG> PrioW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    #[doc = "Low priority"]
    #[inline(always)]
    pub fn low(self) -> &'a mut crate::W<REG> {
        self.variant(Prio::Low)
    }
    #[doc = "Medium priority"]
    #[inline(always)]
    pub fn medium(self) -> &'a mut crate::W<REG> {
        self.variant(Prio::Medium)
    }
    #[doc = "High priority"]
    #[inline(always)]
    pub fn high(self) -> &'a mut crate::W<REG> {
        self.variant(Prio::High)
    }
    #[doc = "Very high priority"]
    #[inline(always)]
    pub fn very_high(self) -> &'a mut crate::W<REG> {
        self.variant(Prio::VeryHigh)
    }
}
#[doc = "Memory to memory mode\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum M2m {
    #[doc = "0: Memory to memory mode disabled"]
    Disabled = 0,
    #[doc = "1: Memory to memory mode enabled"]
    Enabled = 1,
}
impl From<M2m> for bool {
    #[inline(always)]
    fn from(variant: M2m) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `M2M` reader - Memory to memory mode"]
pub type M2mR = crate::BitReader<M2m>;
impl M2mR {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> M2m {
        match self.bits {
            false => M2m::Disabled,
            true => M2m::Enabled,
        }
    }
    #[doc = "Memory to memory mode disabled"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        *self == M2m::Disabled
    }
    #[doc = "Memory to memory mode enabled"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        *self == M2m::Enabled
    }
}
#[doc = "Field `M2M` writer - Memory to memory mode"]
pub type M2mW<'a, REG> = crate::BitWriter<'a, REG, M2m>;
impl<'a, REG> M2mW<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Memory to memory mode disabled"]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut crate::W<REG> {
        self.variant(M2m::Disabled)
    }
    #[doc = "Memory to memory mode enabled"]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut crate::W<REG> {
        self.variant(M2m::Enabled)
    }
}
impl R {
    #[doc = "Bit 0 - Channel enable"]
    #[inline(always)]
    pub fn chen(&self) -> ChenR {
        ChenR::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Enable bit for full transfer finish interrupt"]
    #[inline(always)]
    pub fn ftfie(&self) -> FtfieR {
        FtfieR::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Enable bit for full transfer finish interrupt"]
    #[inline(always)]
    pub fn htfie(&self) -> HtfieR {
        HtfieR::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Enable bit for tranfer access error interrupt"]
    #[inline(always)]
    pub fn errie(&self) -> ErrieR {
        ErrieR::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Transfer mode"]
    #[inline(always)]
    pub fn dir(&self) -> DirR {
        DirR::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Circular mode enable"]
    #[inline(always)]
    pub fn cmen(&self) -> CmenR {
        CmenR::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Next address generation algorithm of peripheral"]
    #[inline(always)]
    pub fn pnaga(&self) -> PnagaR {
        PnagaR::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Next address generation algorithm of memory"]
    #[inline(always)]
    pub fn mnaga(&self) -> MnagaR {
        MnagaR::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bits 8:9 - Transfer data size of peripheral"]
    #[inline(always)]
    pub fn pwidth(&self) -> PwidthR {
        PwidthR::new(((self.bits >> 8) & 3) as u8)
    }
    #[doc = "Bits 10:11 - Transfer data size of memory"]
    #[inline(always)]
    pub fn mwidth(&self) -> MwidthR {
        MwidthR::new(((self.bits >> 10) & 3) as u8)
    }
    #[doc = "Bits 12:13 - Priority Level of this channel"]
    #[inline(always)]
    pub fn prio(&self) -> PrioR {
        PrioR::new(((self.bits >> 12) & 3) as u8)
    }
    #[doc = "Bit 14 - Memory to memory mode"]
    #[inline(always)]
    pub fn m2m(&self) -> M2mR {
        M2mR::new(((self.bits >> 14) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Channel enable"]
    #[inline(always)]
    #[must_use]
    pub fn chen(&mut self) -> ChenW<Ch6ctlSpec> {
        ChenW::new(self, 0)
    }
    #[doc = "Bit 1 - Enable bit for full transfer finish interrupt"]
    #[inline(always)]
    #[must_use]
    pub fn ftfie(&mut self) -> FtfieW<Ch6ctlSpec> {
        FtfieW::new(self, 1)
    }
    #[doc = "Bit 2 - Enable bit for full transfer finish interrupt"]
    #[inline(always)]
    #[must_use]
    pub fn htfie(&mut self) -> HtfieW<Ch6ctlSpec> {
        HtfieW::new(self, 2)
    }
    #[doc = "Bit 3 - Enable bit for tranfer access error interrupt"]
    #[inline(always)]
    #[must_use]
    pub fn errie(&mut self) -> ErrieW<Ch6ctlSpec> {
        ErrieW::new(self, 3)
    }
    #[doc = "Bit 4 - Transfer mode"]
    #[inline(always)]
    #[must_use]
    pub fn dir(&mut self) -> DirW<Ch6ctlSpec> {
        DirW::new(self, 4)
    }
    #[doc = "Bit 5 - Circular mode enable"]
    #[inline(always)]
    #[must_use]
    pub fn cmen(&mut self) -> CmenW<Ch6ctlSpec> {
        CmenW::new(self, 5)
    }
    #[doc = "Bit 6 - Next address generation algorithm of peripheral"]
    #[inline(always)]
    #[must_use]
    pub fn pnaga(&mut self) -> PnagaW<Ch6ctlSpec> {
        PnagaW::new(self, 6)
    }
    #[doc = "Bit 7 - Next address generation algorithm of memory"]
    #[inline(always)]
    #[must_use]
    pub fn mnaga(&mut self) -> MnagaW<Ch6ctlSpec> {
        MnagaW::new(self, 7)
    }
    #[doc = "Bits 8:9 - Transfer data size of peripheral"]
    #[inline(always)]
    #[must_use]
    pub fn pwidth(&mut self) -> PwidthW<Ch6ctlSpec> {
        PwidthW::new(self, 8)
    }
    #[doc = "Bits 10:11 - Transfer data size of memory"]
    #[inline(always)]
    #[must_use]
    pub fn mwidth(&mut self) -> MwidthW<Ch6ctlSpec> {
        MwidthW::new(self, 10)
    }
    #[doc = "Bits 12:13 - Priority Level of this channel"]
    #[inline(always)]
    #[must_use]
    pub fn prio(&mut self) -> PrioW<Ch6ctlSpec> {
        PrioW::new(self, 12)
    }
    #[doc = "Bit 14 - Memory to memory mode"]
    #[inline(always)]
    #[must_use]
    pub fn m2m(&mut self) -> M2mW<Ch6ctlSpec> {
        M2mW::new(self, 14)
    }
}
#[doc = "DMA channel configuration register (DMA_CH6CTL0)\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ch6ctl::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 [`ch6ctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Ch6ctlSpec;
impl crate::RegisterSpec for Ch6ctlSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`ch6ctl::R`](R) reader structure"]
impl crate::Readable for Ch6ctlSpec {}
#[doc = "`write(|w| ..)` method takes [`ch6ctl::W`](W) writer structure"]
impl crate::Writable for Ch6ctlSpec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets CH6CTL to value 0"]
impl crate::Resettable for Ch6ctlSpec {
    const RESET_VALUE: u32 = 0;
}