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
#[doc = "Register `MCTM_DICTR` reader"]
pub struct R(crate::R<MCTM_DICTR_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<MCTM_DICTR_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<MCTM_DICTR_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<MCTM_DICTR_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `MCTM_DICTR` writer"]
pub struct W(crate::W<MCTM_DICTR_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<MCTM_DICTR_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<MCTM_DICTR_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<MCTM_DICTR_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `CH0CCIE` reader - CH0CCIE"]
pub type CH0CCIE_R = crate::BitReader;
#[doc = "Field `CH0CCIE` writer - CH0CCIE"]
pub type CH0CCIE_W<'a, const O: u8> = crate::BitWriter<'a, MCTM_DICTR_SPEC, O>;
#[doc = "Field `CH1CCIE` reader - CH1CCIE"]
pub type CH1CCIE_R = crate::BitReader;
#[doc = "Field `CH1CCIE` writer - CH1CCIE"]
pub type CH1CCIE_W<'a, const O: u8> = crate::BitWriter<'a, MCTM_DICTR_SPEC, O>;
#[doc = "Field `CH2CCIE` reader - CH2CCIE"]
pub type CH2CCIE_R = crate::BitReader;
#[doc = "Field `CH2CCIE` writer - CH2CCIE"]
pub type CH2CCIE_W<'a, const O: u8> = crate::BitWriter<'a, MCTM_DICTR_SPEC, O>;
#[doc = "Field `CH3CCIE` reader - CH3CCIE"]
pub type CH3CCIE_R = crate::BitReader;
#[doc = "Field `CH3CCIE` writer - CH3CCIE"]
pub type CH3CCIE_W<'a, const O: u8> = crate::BitWriter<'a, MCTM_DICTR_SPEC, O>;
#[doc = "Field `UEV1IE` reader - UEV1IE"]
pub type UEV1IE_R = crate::BitReader;
#[doc = "Field `UEV1IE` writer - UEV1IE"]
pub type UEV1IE_W<'a, const O: u8> = crate::BitWriter<'a, MCTM_DICTR_SPEC, O>;
#[doc = "Field `UEV2IE` reader - UEV2IE"]
pub type UEV2IE_R = crate::BitReader;
#[doc = "Field `UEV2IE` writer - UEV2IE"]
pub type UEV2IE_W<'a, const O: u8> = crate::BitWriter<'a, MCTM_DICTR_SPEC, O>;
#[doc = "Field `TEVIE` reader - TEVIE"]
pub type TEVIE_R = crate::BitReader;
#[doc = "Field `TEVIE` writer - TEVIE"]
pub type TEVIE_W<'a, const O: u8> = crate::BitWriter<'a, MCTM_DICTR_SPEC, O>;
#[doc = "Field `BRKIE` reader - BRKIE"]
pub type BRKIE_R = crate::BitReader;
#[doc = "Field `BRKIE` writer - BRKIE"]
pub type BRKIE_W<'a, const O: u8> = crate::BitWriter<'a, MCTM_DICTR_SPEC, O>;
#[doc = "Field `CH0CCDE` reader - CH0CCDE"]
pub type CH0CCDE_R = crate::BitReader;
#[doc = "Field `CH0CCDE` writer - CH0CCDE"]
pub type CH0CCDE_W<'a, const O: u8> = crate::BitWriter<'a, MCTM_DICTR_SPEC, O>;
#[doc = "Field `CH1CCDE` reader - CH1CCDE"]
pub type CH1CCDE_R = crate::BitReader;
#[doc = "Field `CH1CCDE` writer - CH1CCDE"]
pub type CH1CCDE_W<'a, const O: u8> = crate::BitWriter<'a, MCTM_DICTR_SPEC, O>;
#[doc = "Field `CH2CCDE` reader - CH2CCDE"]
pub type CH2CCDE_R = crate::BitReader;
#[doc = "Field `CH2CCDE` writer - CH2CCDE"]
pub type CH2CCDE_W<'a, const O: u8> = crate::BitWriter<'a, MCTM_DICTR_SPEC, O>;
#[doc = "Field `CH3CCDE` reader - CH3CCDE"]
pub type CH3CCDE_R = crate::BitReader;
#[doc = "Field `CH3CCDE` writer - CH3CCDE"]
pub type CH3CCDE_W<'a, const O: u8> = crate::BitWriter<'a, MCTM_DICTR_SPEC, O>;
#[doc = "Field `UEV1DE` reader - UEV1DE"]
pub type UEV1DE_R = crate::BitReader;
#[doc = "Field `UEV1DE` writer - UEV1DE"]
pub type UEV1DE_W<'a, const O: u8> = crate::BitWriter<'a, MCTM_DICTR_SPEC, O>;
#[doc = "Field `UEV2DE` reader - UEV2DE"]
pub type UEV2DE_R = crate::BitReader;
#[doc = "Field `UEV2DE` writer - UEV2DE"]
pub type UEV2DE_W<'a, const O: u8> = crate::BitWriter<'a, MCTM_DICTR_SPEC, O>;
#[doc = "Field `TEVDE` reader - TEVDE"]
pub type TEVDE_R = crate::BitReader;
#[doc = "Field `TEVDE` writer - TEVDE"]
pub type TEVDE_W<'a, const O: u8> = crate::BitWriter<'a, MCTM_DICTR_SPEC, O>;
impl R {
    #[doc = "Bit 0 - CH0CCIE"]
    #[inline(always)]
    pub fn ch0ccie(&self) -> CH0CCIE_R {
        CH0CCIE_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - CH1CCIE"]
    #[inline(always)]
    pub fn ch1ccie(&self) -> CH1CCIE_R {
        CH1CCIE_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - CH2CCIE"]
    #[inline(always)]
    pub fn ch2ccie(&self) -> CH2CCIE_R {
        CH2CCIE_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - CH3CCIE"]
    #[inline(always)]
    pub fn ch3ccie(&self) -> CH3CCIE_R {
        CH3CCIE_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 8 - UEV1IE"]
    #[inline(always)]
    pub fn uev1ie(&self) -> UEV1IE_R {
        UEV1IE_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - UEV2IE"]
    #[inline(always)]
    pub fn uev2ie(&self) -> UEV2IE_R {
        UEV2IE_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - TEVIE"]
    #[inline(always)]
    pub fn tevie(&self) -> TEVIE_R {
        TEVIE_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - BRKIE"]
    #[inline(always)]
    pub fn brkie(&self) -> BRKIE_R {
        BRKIE_R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 16 - CH0CCDE"]
    #[inline(always)]
    pub fn ch0ccde(&self) -> CH0CCDE_R {
        CH0CCDE_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - CH1CCDE"]
    #[inline(always)]
    pub fn ch1ccde(&self) -> CH1CCDE_R {
        CH1CCDE_R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - CH2CCDE"]
    #[inline(always)]
    pub fn ch2ccde(&self) -> CH2CCDE_R {
        CH2CCDE_R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 19 - CH3CCDE"]
    #[inline(always)]
    pub fn ch3ccde(&self) -> CH3CCDE_R {
        CH3CCDE_R::new(((self.bits >> 19) & 1) != 0)
    }
    #[doc = "Bit 24 - UEV1DE"]
    #[inline(always)]
    pub fn uev1de(&self) -> UEV1DE_R {
        UEV1DE_R::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Bit 25 - UEV2DE"]
    #[inline(always)]
    pub fn uev2de(&self) -> UEV2DE_R {
        UEV2DE_R::new(((self.bits >> 25) & 1) != 0)
    }
    #[doc = "Bit 26 - TEVDE"]
    #[inline(always)]
    pub fn tevde(&self) -> TEVDE_R {
        TEVDE_R::new(((self.bits >> 26) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - CH0CCIE"]
    #[inline(always)]
    #[must_use]
    pub fn ch0ccie(&mut self) -> CH0CCIE_W<0> {
        CH0CCIE_W::new(self)
    }
    #[doc = "Bit 1 - CH1CCIE"]
    #[inline(always)]
    #[must_use]
    pub fn ch1ccie(&mut self) -> CH1CCIE_W<1> {
        CH1CCIE_W::new(self)
    }
    #[doc = "Bit 2 - CH2CCIE"]
    #[inline(always)]
    #[must_use]
    pub fn ch2ccie(&mut self) -> CH2CCIE_W<2> {
        CH2CCIE_W::new(self)
    }
    #[doc = "Bit 3 - CH3CCIE"]
    #[inline(always)]
    #[must_use]
    pub fn ch3ccie(&mut self) -> CH3CCIE_W<3> {
        CH3CCIE_W::new(self)
    }
    #[doc = "Bit 8 - UEV1IE"]
    #[inline(always)]
    #[must_use]
    pub fn uev1ie(&mut self) -> UEV1IE_W<8> {
        UEV1IE_W::new(self)
    }
    #[doc = "Bit 9 - UEV2IE"]
    #[inline(always)]
    #[must_use]
    pub fn uev2ie(&mut self) -> UEV2IE_W<9> {
        UEV2IE_W::new(self)
    }
    #[doc = "Bit 10 - TEVIE"]
    #[inline(always)]
    #[must_use]
    pub fn tevie(&mut self) -> TEVIE_W<10> {
        TEVIE_W::new(self)
    }
    #[doc = "Bit 11 - BRKIE"]
    #[inline(always)]
    #[must_use]
    pub fn brkie(&mut self) -> BRKIE_W<11> {
        BRKIE_W::new(self)
    }
    #[doc = "Bit 16 - CH0CCDE"]
    #[inline(always)]
    #[must_use]
    pub fn ch0ccde(&mut self) -> CH0CCDE_W<16> {
        CH0CCDE_W::new(self)
    }
    #[doc = "Bit 17 - CH1CCDE"]
    #[inline(always)]
    #[must_use]
    pub fn ch1ccde(&mut self) -> CH1CCDE_W<17> {
        CH1CCDE_W::new(self)
    }
    #[doc = "Bit 18 - CH2CCDE"]
    #[inline(always)]
    #[must_use]
    pub fn ch2ccde(&mut self) -> CH2CCDE_W<18> {
        CH2CCDE_W::new(self)
    }
    #[doc = "Bit 19 - CH3CCDE"]
    #[inline(always)]
    #[must_use]
    pub fn ch3ccde(&mut self) -> CH3CCDE_W<19> {
        CH3CCDE_W::new(self)
    }
    #[doc = "Bit 24 - UEV1DE"]
    #[inline(always)]
    #[must_use]
    pub fn uev1de(&mut self) -> UEV1DE_W<24> {
        UEV1DE_W::new(self)
    }
    #[doc = "Bit 25 - UEV2DE"]
    #[inline(always)]
    #[must_use]
    pub fn uev2de(&mut self) -> UEV2DE_W<25> {
        UEV2DE_W::new(self)
    }
    #[doc = "Bit 26 - TEVDE"]
    #[inline(always)]
    #[must_use]
    pub fn tevde(&mut self) -> TEVDE_W<26> {
        TEVDE_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 = "MCTM_DICTR\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 [mctm_dictr](index.html) module"]
pub struct MCTM_DICTR_SPEC;
impl crate::RegisterSpec for MCTM_DICTR_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [mctm_dictr::R](R) reader structure"]
impl crate::Readable for MCTM_DICTR_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [mctm_dictr::W](W) writer structure"]
impl crate::Writable for MCTM_DICTR_SPEC {
    type Writer = W;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets MCTM_DICTR to value 0"]
impl crate::Resettable for MCTM_DICTR_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}