1#[doc = "Register `CH_ENA_AD0` reader"]
2pub type R = crate::R<CH_ENA_AD0_SPEC>;
3#[doc = "Register `CH_ENA_AD0` writer"]
4pub type W = crate::W<CH_ENA_AD0_SPEC>;
5#[doc = "Field `CH_ENA(0-31)` reader - Represents ch%s enable status.\\\\0: Disable\\\\1: Enable"]
6pub type CH_ENA_R = crate::BitReader;
7#[doc = "Field `CH_ENA(0-31)` writer - Represents ch%s enable status.\\\\0: Disable\\\\1: Enable"]
8pub type CH_ENA_W<'a, REG> = crate::BitWriter<'a, REG>;
9impl R {
10 #[doc = "Represents ch(0-31) enable status.\\\\0: Disable\\\\1: Enable"]
11 #[doc = ""]
12 #[doc = "NOTE: `n` is number of field in register. `n == 0` corresponds to `CH_ENA0` field"]
13 #[inline(always)]
14 pub fn ch_ena(&self, n: u8) -> CH_ENA_R {
15 #[allow(clippy::no_effect)]
16 [(); 32][n as usize];
17 CH_ENA_R::new(((self.bits >> n) & 1) != 0)
18 }
19 #[doc = "Iterator for array of:"]
20 #[doc = "Represents ch(0-31) enable status.\\\\0: Disable\\\\1: Enable"]
21 #[inline(always)]
22 pub fn ch_ena_iter(&self) -> impl Iterator<Item = CH_ENA_R> + '_ {
23 (0..32).map(move |n| CH_ENA_R::new(((self.bits >> n) & 1) != 0))
24 }
25 #[doc = "Bit 0 - Represents ch0 enable status.\\\\0: Disable\\\\1: Enable"]
26 #[inline(always)]
27 pub fn ch_ena0(&self) -> CH_ENA_R {
28 CH_ENA_R::new((self.bits & 1) != 0)
29 }
30 #[doc = "Bit 1 - Represents ch1 enable status.\\\\0: Disable\\\\1: Enable"]
31 #[inline(always)]
32 pub fn ch_ena1(&self) -> CH_ENA_R {
33 CH_ENA_R::new(((self.bits >> 1) & 1) != 0)
34 }
35 #[doc = "Bit 2 - Represents ch2 enable status.\\\\0: Disable\\\\1: Enable"]
36 #[inline(always)]
37 pub fn ch_ena2(&self) -> CH_ENA_R {
38 CH_ENA_R::new(((self.bits >> 2) & 1) != 0)
39 }
40 #[doc = "Bit 3 - Represents ch3 enable status.\\\\0: Disable\\\\1: Enable"]
41 #[inline(always)]
42 pub fn ch_ena3(&self) -> CH_ENA_R {
43 CH_ENA_R::new(((self.bits >> 3) & 1) != 0)
44 }
45 #[doc = "Bit 4 - Represents ch4 enable status.\\\\0: Disable\\\\1: Enable"]
46 #[inline(always)]
47 pub fn ch_ena4(&self) -> CH_ENA_R {
48 CH_ENA_R::new(((self.bits >> 4) & 1) != 0)
49 }
50 #[doc = "Bit 5 - Represents ch5 enable status.\\\\0: Disable\\\\1: Enable"]
51 #[inline(always)]
52 pub fn ch_ena5(&self) -> CH_ENA_R {
53 CH_ENA_R::new(((self.bits >> 5) & 1) != 0)
54 }
55 #[doc = "Bit 6 - Represents ch6 enable status.\\\\0: Disable\\\\1: Enable"]
56 #[inline(always)]
57 pub fn ch_ena6(&self) -> CH_ENA_R {
58 CH_ENA_R::new(((self.bits >> 6) & 1) != 0)
59 }
60 #[doc = "Bit 7 - Represents ch7 enable status.\\\\0: Disable\\\\1: Enable"]
61 #[inline(always)]
62 pub fn ch_ena7(&self) -> CH_ENA_R {
63 CH_ENA_R::new(((self.bits >> 7) & 1) != 0)
64 }
65 #[doc = "Bit 8 - Represents ch8 enable status.\\\\0: Disable\\\\1: Enable"]
66 #[inline(always)]
67 pub fn ch_ena8(&self) -> CH_ENA_R {
68 CH_ENA_R::new(((self.bits >> 8) & 1) != 0)
69 }
70 #[doc = "Bit 9 - Represents ch9 enable status.\\\\0: Disable\\\\1: Enable"]
71 #[inline(always)]
72 pub fn ch_ena9(&self) -> CH_ENA_R {
73 CH_ENA_R::new(((self.bits >> 9) & 1) != 0)
74 }
75 #[doc = "Bit 10 - Represents ch10 enable status.\\\\0: Disable\\\\1: Enable"]
76 #[inline(always)]
77 pub fn ch_ena10(&self) -> CH_ENA_R {
78 CH_ENA_R::new(((self.bits >> 10) & 1) != 0)
79 }
80 #[doc = "Bit 11 - Represents ch11 enable status.\\\\0: Disable\\\\1: Enable"]
81 #[inline(always)]
82 pub fn ch_ena11(&self) -> CH_ENA_R {
83 CH_ENA_R::new(((self.bits >> 11) & 1) != 0)
84 }
85 #[doc = "Bit 12 - Represents ch12 enable status.\\\\0: Disable\\\\1: Enable"]
86 #[inline(always)]
87 pub fn ch_ena12(&self) -> CH_ENA_R {
88 CH_ENA_R::new(((self.bits >> 12) & 1) != 0)
89 }
90 #[doc = "Bit 13 - Represents ch13 enable status.\\\\0: Disable\\\\1: Enable"]
91 #[inline(always)]
92 pub fn ch_ena13(&self) -> CH_ENA_R {
93 CH_ENA_R::new(((self.bits >> 13) & 1) != 0)
94 }
95 #[doc = "Bit 14 - Represents ch14 enable status.\\\\0: Disable\\\\1: Enable"]
96 #[inline(always)]
97 pub fn ch_ena14(&self) -> CH_ENA_R {
98 CH_ENA_R::new(((self.bits >> 14) & 1) != 0)
99 }
100 #[doc = "Bit 15 - Represents ch15 enable status.\\\\0: Disable\\\\1: Enable"]
101 #[inline(always)]
102 pub fn ch_ena15(&self) -> CH_ENA_R {
103 CH_ENA_R::new(((self.bits >> 15) & 1) != 0)
104 }
105 #[doc = "Bit 16 - Represents ch16 enable status.\\\\0: Disable\\\\1: Enable"]
106 #[inline(always)]
107 pub fn ch_ena16(&self) -> CH_ENA_R {
108 CH_ENA_R::new(((self.bits >> 16) & 1) != 0)
109 }
110 #[doc = "Bit 17 - Represents ch17 enable status.\\\\0: Disable\\\\1: Enable"]
111 #[inline(always)]
112 pub fn ch_ena17(&self) -> CH_ENA_R {
113 CH_ENA_R::new(((self.bits >> 17) & 1) != 0)
114 }
115 #[doc = "Bit 18 - Represents ch18 enable status.\\\\0: Disable\\\\1: Enable"]
116 #[inline(always)]
117 pub fn ch_ena18(&self) -> CH_ENA_R {
118 CH_ENA_R::new(((self.bits >> 18) & 1) != 0)
119 }
120 #[doc = "Bit 19 - Represents ch19 enable status.\\\\0: Disable\\\\1: Enable"]
121 #[inline(always)]
122 pub fn ch_ena19(&self) -> CH_ENA_R {
123 CH_ENA_R::new(((self.bits >> 19) & 1) != 0)
124 }
125 #[doc = "Bit 20 - Represents ch20 enable status.\\\\0: Disable\\\\1: Enable"]
126 #[inline(always)]
127 pub fn ch_ena20(&self) -> CH_ENA_R {
128 CH_ENA_R::new(((self.bits >> 20) & 1) != 0)
129 }
130 #[doc = "Bit 21 - Represents ch21 enable status.\\\\0: Disable\\\\1: Enable"]
131 #[inline(always)]
132 pub fn ch_ena21(&self) -> CH_ENA_R {
133 CH_ENA_R::new(((self.bits >> 21) & 1) != 0)
134 }
135 #[doc = "Bit 22 - Represents ch22 enable status.\\\\0: Disable\\\\1: Enable"]
136 #[inline(always)]
137 pub fn ch_ena22(&self) -> CH_ENA_R {
138 CH_ENA_R::new(((self.bits >> 22) & 1) != 0)
139 }
140 #[doc = "Bit 23 - Represents ch23 enable status.\\\\0: Disable\\\\1: Enable"]
141 #[inline(always)]
142 pub fn ch_ena23(&self) -> CH_ENA_R {
143 CH_ENA_R::new(((self.bits >> 23) & 1) != 0)
144 }
145 #[doc = "Bit 24 - Represents ch24 enable status.\\\\0: Disable\\\\1: Enable"]
146 #[inline(always)]
147 pub fn ch_ena24(&self) -> CH_ENA_R {
148 CH_ENA_R::new(((self.bits >> 24) & 1) != 0)
149 }
150 #[doc = "Bit 25 - Represents ch25 enable status.\\\\0: Disable\\\\1: Enable"]
151 #[inline(always)]
152 pub fn ch_ena25(&self) -> CH_ENA_R {
153 CH_ENA_R::new(((self.bits >> 25) & 1) != 0)
154 }
155 #[doc = "Bit 26 - Represents ch26 enable status.\\\\0: Disable\\\\1: Enable"]
156 #[inline(always)]
157 pub fn ch_ena26(&self) -> CH_ENA_R {
158 CH_ENA_R::new(((self.bits >> 26) & 1) != 0)
159 }
160 #[doc = "Bit 27 - Represents ch27 enable status.\\\\0: Disable\\\\1: Enable"]
161 #[inline(always)]
162 pub fn ch_ena27(&self) -> CH_ENA_R {
163 CH_ENA_R::new(((self.bits >> 27) & 1) != 0)
164 }
165 #[doc = "Bit 28 - Represents ch28 enable status.\\\\0: Disable\\\\1: Enable"]
166 #[inline(always)]
167 pub fn ch_ena28(&self) -> CH_ENA_R {
168 CH_ENA_R::new(((self.bits >> 28) & 1) != 0)
169 }
170 #[doc = "Bit 29 - Represents ch29 enable status.\\\\0: Disable\\\\1: Enable"]
171 #[inline(always)]
172 pub fn ch_ena29(&self) -> CH_ENA_R {
173 CH_ENA_R::new(((self.bits >> 29) & 1) != 0)
174 }
175 #[doc = "Bit 30 - Represents ch30 enable status.\\\\0: Disable\\\\1: Enable"]
176 #[inline(always)]
177 pub fn ch_ena30(&self) -> CH_ENA_R {
178 CH_ENA_R::new(((self.bits >> 30) & 1) != 0)
179 }
180 #[doc = "Bit 31 - Represents ch31 enable status.\\\\0: Disable\\\\1: Enable"]
181 #[inline(always)]
182 pub fn ch_ena31(&self) -> CH_ENA_R {
183 CH_ENA_R::new(((self.bits >> 31) & 1) != 0)
184 }
185}
186#[cfg(feature = "impl-register-debug")]
187impl core::fmt::Debug for R {
188 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
189 f.debug_struct("CH_ENA_AD0")
190 .field("ch_ena0", &format_args!("{}", self.ch_ena0().bit()))
191 .field("ch_ena1", &format_args!("{}", self.ch_ena1().bit()))
192 .field("ch_ena2", &format_args!("{}", self.ch_ena2().bit()))
193 .field("ch_ena3", &format_args!("{}", self.ch_ena3().bit()))
194 .field("ch_ena4", &format_args!("{}", self.ch_ena4().bit()))
195 .field("ch_ena5", &format_args!("{}", self.ch_ena5().bit()))
196 .field("ch_ena6", &format_args!("{}", self.ch_ena6().bit()))
197 .field("ch_ena7", &format_args!("{}", self.ch_ena7().bit()))
198 .field("ch_ena8", &format_args!("{}", self.ch_ena8().bit()))
199 .field("ch_ena9", &format_args!("{}", self.ch_ena9().bit()))
200 .field("ch_ena10", &format_args!("{}", self.ch_ena10().bit()))
201 .field("ch_ena11", &format_args!("{}", self.ch_ena11().bit()))
202 .field("ch_ena12", &format_args!("{}", self.ch_ena12().bit()))
203 .field("ch_ena13", &format_args!("{}", self.ch_ena13().bit()))
204 .field("ch_ena14", &format_args!("{}", self.ch_ena14().bit()))
205 .field("ch_ena15", &format_args!("{}", self.ch_ena15().bit()))
206 .field("ch_ena16", &format_args!("{}", self.ch_ena16().bit()))
207 .field("ch_ena17", &format_args!("{}", self.ch_ena17().bit()))
208 .field("ch_ena18", &format_args!("{}", self.ch_ena18().bit()))
209 .field("ch_ena19", &format_args!("{}", self.ch_ena19().bit()))
210 .field("ch_ena20", &format_args!("{}", self.ch_ena20().bit()))
211 .field("ch_ena21", &format_args!("{}", self.ch_ena21().bit()))
212 .field("ch_ena22", &format_args!("{}", self.ch_ena22().bit()))
213 .field("ch_ena23", &format_args!("{}", self.ch_ena23().bit()))
214 .field("ch_ena24", &format_args!("{}", self.ch_ena24().bit()))
215 .field("ch_ena25", &format_args!("{}", self.ch_ena25().bit()))
216 .field("ch_ena26", &format_args!("{}", self.ch_ena26().bit()))
217 .field("ch_ena27", &format_args!("{}", self.ch_ena27().bit()))
218 .field("ch_ena28", &format_args!("{}", self.ch_ena28().bit()))
219 .field("ch_ena29", &format_args!("{}", self.ch_ena29().bit()))
220 .field("ch_ena30", &format_args!("{}", self.ch_ena30().bit()))
221 .field("ch_ena31", &format_args!("{}", self.ch_ena31().bit()))
222 .finish()
223 }
224}
225#[cfg(feature = "impl-register-debug")]
226impl core::fmt::Debug for crate::generic::Reg<CH_ENA_AD0_SPEC> {
227 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
228 core::fmt::Debug::fmt(&self.read(), f)
229 }
230}
231impl W {
232 #[doc = "Represents ch(0-31) enable status.\\\\0: Disable\\\\1: Enable"]
233 #[doc = ""]
234 #[doc = "NOTE: `n` is number of field in register. `n == 0` corresponds to `CH_ENA0` field"]
235 #[inline(always)]
236 #[must_use]
237 pub fn ch_ena(&mut self, n: u8) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
238 #[allow(clippy::no_effect)]
239 [(); 32][n as usize];
240 CH_ENA_W::new(self, n)
241 }
242 #[doc = "Bit 0 - Represents ch0 enable status.\\\\0: Disable\\\\1: Enable"]
243 #[inline(always)]
244 #[must_use]
245 pub fn ch_ena0(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
246 CH_ENA_W::new(self, 0)
247 }
248 #[doc = "Bit 1 - Represents ch1 enable status.\\\\0: Disable\\\\1: Enable"]
249 #[inline(always)]
250 #[must_use]
251 pub fn ch_ena1(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
252 CH_ENA_W::new(self, 1)
253 }
254 #[doc = "Bit 2 - Represents ch2 enable status.\\\\0: Disable\\\\1: Enable"]
255 #[inline(always)]
256 #[must_use]
257 pub fn ch_ena2(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
258 CH_ENA_W::new(self, 2)
259 }
260 #[doc = "Bit 3 - Represents ch3 enable status.\\\\0: Disable\\\\1: Enable"]
261 #[inline(always)]
262 #[must_use]
263 pub fn ch_ena3(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
264 CH_ENA_W::new(self, 3)
265 }
266 #[doc = "Bit 4 - Represents ch4 enable status.\\\\0: Disable\\\\1: Enable"]
267 #[inline(always)]
268 #[must_use]
269 pub fn ch_ena4(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
270 CH_ENA_W::new(self, 4)
271 }
272 #[doc = "Bit 5 - Represents ch5 enable status.\\\\0: Disable\\\\1: Enable"]
273 #[inline(always)]
274 #[must_use]
275 pub fn ch_ena5(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
276 CH_ENA_W::new(self, 5)
277 }
278 #[doc = "Bit 6 - Represents ch6 enable status.\\\\0: Disable\\\\1: Enable"]
279 #[inline(always)]
280 #[must_use]
281 pub fn ch_ena6(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
282 CH_ENA_W::new(self, 6)
283 }
284 #[doc = "Bit 7 - Represents ch7 enable status.\\\\0: Disable\\\\1: Enable"]
285 #[inline(always)]
286 #[must_use]
287 pub fn ch_ena7(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
288 CH_ENA_W::new(self, 7)
289 }
290 #[doc = "Bit 8 - Represents ch8 enable status.\\\\0: Disable\\\\1: Enable"]
291 #[inline(always)]
292 #[must_use]
293 pub fn ch_ena8(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
294 CH_ENA_W::new(self, 8)
295 }
296 #[doc = "Bit 9 - Represents ch9 enable status.\\\\0: Disable\\\\1: Enable"]
297 #[inline(always)]
298 #[must_use]
299 pub fn ch_ena9(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
300 CH_ENA_W::new(self, 9)
301 }
302 #[doc = "Bit 10 - Represents ch10 enable status.\\\\0: Disable\\\\1: Enable"]
303 #[inline(always)]
304 #[must_use]
305 pub fn ch_ena10(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
306 CH_ENA_W::new(self, 10)
307 }
308 #[doc = "Bit 11 - Represents ch11 enable status.\\\\0: Disable\\\\1: Enable"]
309 #[inline(always)]
310 #[must_use]
311 pub fn ch_ena11(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
312 CH_ENA_W::new(self, 11)
313 }
314 #[doc = "Bit 12 - Represents ch12 enable status.\\\\0: Disable\\\\1: Enable"]
315 #[inline(always)]
316 #[must_use]
317 pub fn ch_ena12(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
318 CH_ENA_W::new(self, 12)
319 }
320 #[doc = "Bit 13 - Represents ch13 enable status.\\\\0: Disable\\\\1: Enable"]
321 #[inline(always)]
322 #[must_use]
323 pub fn ch_ena13(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
324 CH_ENA_W::new(self, 13)
325 }
326 #[doc = "Bit 14 - Represents ch14 enable status.\\\\0: Disable\\\\1: Enable"]
327 #[inline(always)]
328 #[must_use]
329 pub fn ch_ena14(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
330 CH_ENA_W::new(self, 14)
331 }
332 #[doc = "Bit 15 - Represents ch15 enable status.\\\\0: Disable\\\\1: Enable"]
333 #[inline(always)]
334 #[must_use]
335 pub fn ch_ena15(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
336 CH_ENA_W::new(self, 15)
337 }
338 #[doc = "Bit 16 - Represents ch16 enable status.\\\\0: Disable\\\\1: Enable"]
339 #[inline(always)]
340 #[must_use]
341 pub fn ch_ena16(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
342 CH_ENA_W::new(self, 16)
343 }
344 #[doc = "Bit 17 - Represents ch17 enable status.\\\\0: Disable\\\\1: Enable"]
345 #[inline(always)]
346 #[must_use]
347 pub fn ch_ena17(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
348 CH_ENA_W::new(self, 17)
349 }
350 #[doc = "Bit 18 - Represents ch18 enable status.\\\\0: Disable\\\\1: Enable"]
351 #[inline(always)]
352 #[must_use]
353 pub fn ch_ena18(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
354 CH_ENA_W::new(self, 18)
355 }
356 #[doc = "Bit 19 - Represents ch19 enable status.\\\\0: Disable\\\\1: Enable"]
357 #[inline(always)]
358 #[must_use]
359 pub fn ch_ena19(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
360 CH_ENA_W::new(self, 19)
361 }
362 #[doc = "Bit 20 - Represents ch20 enable status.\\\\0: Disable\\\\1: Enable"]
363 #[inline(always)]
364 #[must_use]
365 pub fn ch_ena20(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
366 CH_ENA_W::new(self, 20)
367 }
368 #[doc = "Bit 21 - Represents ch21 enable status.\\\\0: Disable\\\\1: Enable"]
369 #[inline(always)]
370 #[must_use]
371 pub fn ch_ena21(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
372 CH_ENA_W::new(self, 21)
373 }
374 #[doc = "Bit 22 - Represents ch22 enable status.\\\\0: Disable\\\\1: Enable"]
375 #[inline(always)]
376 #[must_use]
377 pub fn ch_ena22(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
378 CH_ENA_W::new(self, 22)
379 }
380 #[doc = "Bit 23 - Represents ch23 enable status.\\\\0: Disable\\\\1: Enable"]
381 #[inline(always)]
382 #[must_use]
383 pub fn ch_ena23(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
384 CH_ENA_W::new(self, 23)
385 }
386 #[doc = "Bit 24 - Represents ch24 enable status.\\\\0: Disable\\\\1: Enable"]
387 #[inline(always)]
388 #[must_use]
389 pub fn ch_ena24(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
390 CH_ENA_W::new(self, 24)
391 }
392 #[doc = "Bit 25 - Represents ch25 enable status.\\\\0: Disable\\\\1: Enable"]
393 #[inline(always)]
394 #[must_use]
395 pub fn ch_ena25(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
396 CH_ENA_W::new(self, 25)
397 }
398 #[doc = "Bit 26 - Represents ch26 enable status.\\\\0: Disable\\\\1: Enable"]
399 #[inline(always)]
400 #[must_use]
401 pub fn ch_ena26(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
402 CH_ENA_W::new(self, 26)
403 }
404 #[doc = "Bit 27 - Represents ch27 enable status.\\\\0: Disable\\\\1: Enable"]
405 #[inline(always)]
406 #[must_use]
407 pub fn ch_ena27(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
408 CH_ENA_W::new(self, 27)
409 }
410 #[doc = "Bit 28 - Represents ch28 enable status.\\\\0: Disable\\\\1: Enable"]
411 #[inline(always)]
412 #[must_use]
413 pub fn ch_ena28(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
414 CH_ENA_W::new(self, 28)
415 }
416 #[doc = "Bit 29 - Represents ch29 enable status.\\\\0: Disable\\\\1: Enable"]
417 #[inline(always)]
418 #[must_use]
419 pub fn ch_ena29(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
420 CH_ENA_W::new(self, 29)
421 }
422 #[doc = "Bit 30 - Represents ch30 enable status.\\\\0: Disable\\\\1: Enable"]
423 #[inline(always)]
424 #[must_use]
425 pub fn ch_ena30(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
426 CH_ENA_W::new(self, 30)
427 }
428 #[doc = "Bit 31 - Represents ch31 enable status.\\\\0: Disable\\\\1: Enable"]
429 #[inline(always)]
430 #[must_use]
431 pub fn ch_ena31(&mut self) -> CH_ENA_W<CH_ENA_AD0_SPEC> {
432 CH_ENA_W::new(self, 31)
433 }
434}
435#[doc = "Channel enable status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ch_ena_ad0::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 [`ch_ena_ad0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
436pub struct CH_ENA_AD0_SPEC;
437impl crate::RegisterSpec for CH_ENA_AD0_SPEC {
438 type Ux = u32;
439}
440#[doc = "`read()` method returns [`ch_ena_ad0::R`](R) reader structure"]
441impl crate::Readable for CH_ENA_AD0_SPEC {}
442#[doc = "`write(|w| ..)` method takes [`ch_ena_ad0::W`](W) writer structure"]
443impl crate::Writable for CH_ENA_AD0_SPEC {
444 type Safety = crate::Unsafe;
445 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
446 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
447}
448#[doc = "`reset()` method sets CH_ENA_AD0 to value 0"]
449impl crate::Resettable for CH_ENA_AD0_SPEC {
450 const RESET_VALUE: u32 = 0;
451}