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
#[doc = "DMAMUX"]
#[repr(C)]
pub struct RegisterBlock {
    #[doc = "Channel 0 Configuration Register"]
    pub CHCFG: [crate::RWRegister<u32>; 32usize],
}
#[doc = "Channel 0 Configuration Register"]
pub mod CHCFG {
    #[doc = "DMA Channel Source (Slot Number)"]
    pub mod SOURCE {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x7f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "DMA Channel Always Enable"]
    pub mod A_ON {
        pub const offset: u32 = 29;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "DMA Channel Always ON function is disabled"]
            pub const A_ON_0: u32 = 0;
            #[doc = "DMA Channel Always ON function is enabled"]
            pub const A_ON_1: u32 = 0x01;
        }
    }
    #[doc = "DMA Channel Trigger Enable"]
    pub mod TRIG {
        pub const offset: u32 = 30;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Triggering is disabled. If triggering is disabled and ENBL is set, the DMA Channel will simply route the specified source to the DMA channel. (Normal mode)"]
            pub const TRIG_0: u32 = 0;
            #[doc = "Triggering is enabled. If triggering is enabled and ENBL is set, the DMA_CH_MUX is in Periodic Trigger mode."]
            pub const TRIG_1: u32 = 0x01;
        }
    }
    #[doc = "DMA Mux Channel Enable"]
    pub mod ENBL {
        pub const offset: u32 = 31;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "DMA Mux channel is disabled"]
            pub const ENBL_0: u32 = 0;
            #[doc = "DMA Mux channel is enabled"]
            pub const ENBL_1: u32 = 0x01;
        }
    }
}