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
#[doc = "Register `CH_ENA_AD0_CLR` writer"]
pub struct W(crate::W<CH_ENA_AD0_CLR_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<CH_ENA_AD0_CLR_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<CH_ENA_AD0_CLR_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<CH_ENA_AD0_CLR_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `CH_CLR0` writer - ch0 clear"]
pub type CH_CLR0_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR1` writer - ch1 clear"]
pub type CH_CLR1_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR2` writer - ch2 clear"]
pub type CH_CLR2_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR3` writer - ch3 clear"]
pub type CH_CLR3_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR4` writer - ch4 clear"]
pub type CH_CLR4_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR5` writer - ch5 clear"]
pub type CH_CLR5_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR6` writer - ch6 clear"]
pub type CH_CLR6_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR7` writer - ch7 clear"]
pub type CH_CLR7_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR8` writer - ch8 clear"]
pub type CH_CLR8_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR9` writer - ch9 clear"]
pub type CH_CLR9_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR10` writer - ch10 clear"]
pub type CH_CLR10_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR11` writer - ch11 clear"]
pub type CH_CLR11_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR12` writer - ch12 clear"]
pub type CH_CLR12_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR13` writer - ch13 clear"]
pub type CH_CLR13_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR14` writer - ch14 clear"]
pub type CH_CLR14_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR15` writer - ch15 clear"]
pub type CH_CLR15_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR16` writer - ch16 clear"]
pub type CH_CLR16_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR17` writer - ch17 clear"]
pub type CH_CLR17_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR18` writer - ch18 clear"]
pub type CH_CLR18_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR19` writer - ch19 clear"]
pub type CH_CLR19_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR20` writer - ch20 clear"]
pub type CH_CLR20_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR21` writer - ch21 clear"]
pub type CH_CLR21_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR22` writer - ch22 clear"]
pub type CH_CLR22_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR23` writer - ch23 clear"]
pub type CH_CLR23_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR24` writer - ch24 clear"]
pub type CH_CLR24_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR25` writer - ch25 clear"]
pub type CH_CLR25_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR26` writer - ch26 clear"]
pub type CH_CLR26_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR27` writer - ch27 clear"]
pub type CH_CLR27_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR28` writer - ch28 clear"]
pub type CH_CLR28_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR29` writer - ch29 clear"]
pub type CH_CLR29_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR30` writer - ch30 clear"]
pub type CH_CLR30_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[doc = "Field `CH_CLR31` writer - ch31 clear"]
pub type CH_CLR31_W<'a, const O: u8> = crate::BitWriter<'a, CH_ENA_AD0_CLR_SPEC, O>;
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<CH_ENA_AD0_CLR_SPEC> {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        write!(f, "(not readable)")
    }
}
impl W {
    #[doc = "Bit 0 - ch0 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr0(&mut self) -> CH_CLR0_W<0> {
        CH_CLR0_W::new(self)
    }
    #[doc = "Bit 1 - ch1 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr1(&mut self) -> CH_CLR1_W<1> {
        CH_CLR1_W::new(self)
    }
    #[doc = "Bit 2 - ch2 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr2(&mut self) -> CH_CLR2_W<2> {
        CH_CLR2_W::new(self)
    }
    #[doc = "Bit 3 - ch3 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr3(&mut self) -> CH_CLR3_W<3> {
        CH_CLR3_W::new(self)
    }
    #[doc = "Bit 4 - ch4 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr4(&mut self) -> CH_CLR4_W<4> {
        CH_CLR4_W::new(self)
    }
    #[doc = "Bit 5 - ch5 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr5(&mut self) -> CH_CLR5_W<5> {
        CH_CLR5_W::new(self)
    }
    #[doc = "Bit 6 - ch6 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr6(&mut self) -> CH_CLR6_W<6> {
        CH_CLR6_W::new(self)
    }
    #[doc = "Bit 7 - ch7 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr7(&mut self) -> CH_CLR7_W<7> {
        CH_CLR7_W::new(self)
    }
    #[doc = "Bit 8 - ch8 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr8(&mut self) -> CH_CLR8_W<8> {
        CH_CLR8_W::new(self)
    }
    #[doc = "Bit 9 - ch9 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr9(&mut self) -> CH_CLR9_W<9> {
        CH_CLR9_W::new(self)
    }
    #[doc = "Bit 10 - ch10 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr10(&mut self) -> CH_CLR10_W<10> {
        CH_CLR10_W::new(self)
    }
    #[doc = "Bit 11 - ch11 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr11(&mut self) -> CH_CLR11_W<11> {
        CH_CLR11_W::new(self)
    }
    #[doc = "Bit 12 - ch12 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr12(&mut self) -> CH_CLR12_W<12> {
        CH_CLR12_W::new(self)
    }
    #[doc = "Bit 13 - ch13 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr13(&mut self) -> CH_CLR13_W<13> {
        CH_CLR13_W::new(self)
    }
    #[doc = "Bit 14 - ch14 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr14(&mut self) -> CH_CLR14_W<14> {
        CH_CLR14_W::new(self)
    }
    #[doc = "Bit 15 - ch15 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr15(&mut self) -> CH_CLR15_W<15> {
        CH_CLR15_W::new(self)
    }
    #[doc = "Bit 16 - ch16 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr16(&mut self) -> CH_CLR16_W<16> {
        CH_CLR16_W::new(self)
    }
    #[doc = "Bit 17 - ch17 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr17(&mut self) -> CH_CLR17_W<17> {
        CH_CLR17_W::new(self)
    }
    #[doc = "Bit 18 - ch18 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr18(&mut self) -> CH_CLR18_W<18> {
        CH_CLR18_W::new(self)
    }
    #[doc = "Bit 19 - ch19 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr19(&mut self) -> CH_CLR19_W<19> {
        CH_CLR19_W::new(self)
    }
    #[doc = "Bit 20 - ch20 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr20(&mut self) -> CH_CLR20_W<20> {
        CH_CLR20_W::new(self)
    }
    #[doc = "Bit 21 - ch21 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr21(&mut self) -> CH_CLR21_W<21> {
        CH_CLR21_W::new(self)
    }
    #[doc = "Bit 22 - ch22 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr22(&mut self) -> CH_CLR22_W<22> {
        CH_CLR22_W::new(self)
    }
    #[doc = "Bit 23 - ch23 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr23(&mut self) -> CH_CLR23_W<23> {
        CH_CLR23_W::new(self)
    }
    #[doc = "Bit 24 - ch24 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr24(&mut self) -> CH_CLR24_W<24> {
        CH_CLR24_W::new(self)
    }
    #[doc = "Bit 25 - ch25 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr25(&mut self) -> CH_CLR25_W<25> {
        CH_CLR25_W::new(self)
    }
    #[doc = "Bit 26 - ch26 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr26(&mut self) -> CH_CLR26_W<26> {
        CH_CLR26_W::new(self)
    }
    #[doc = "Bit 27 - ch27 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr27(&mut self) -> CH_CLR27_W<27> {
        CH_CLR27_W::new(self)
    }
    #[doc = "Bit 28 - ch28 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr28(&mut self) -> CH_CLR28_W<28> {
        CH_CLR28_W::new(self)
    }
    #[doc = "Bit 29 - ch29 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr29(&mut self) -> CH_CLR29_W<29> {
        CH_CLR29_W::new(self)
    }
    #[doc = "Bit 30 - ch30 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr30(&mut self) -> CH_CLR30_W<30> {
        CH_CLR30_W::new(self)
    }
    #[doc = "Bit 31 - ch31 clear"]
    #[inline(always)]
    #[must_use]
    pub fn ch_clr31(&mut self) -> CH_CLR31_W<31> {
        CH_CLR31_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 = "channel enable clear register\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ch_ena_ad0_clr](index.html) module"]
pub struct CH_ENA_AD0_CLR_SPEC;
impl crate::RegisterSpec for CH_ENA_AD0_CLR_SPEC {
    type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [ch_ena_ad0_clr::W](W) writer structure"]
impl crate::Writable for CH_ENA_AD0_CLR_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 CH_ENA_AD0_CLR to value 0"]
impl crate::Resettable for CH_ENA_AD0_CLR_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}