1#[doc = "Register `ALTEXCONF` reader"]
2pub struct R(crate::R<ALTEXCONF_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<ALTEXCONF_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<ALTEXCONF_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<ALTEXCONF_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `ALTEXCONF` writer"]
17pub struct W(crate::W<ALTEXCONF_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<ALTEXCONF_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<ALTEXCONF_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<ALTEXCONF_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "ALTEX0 Idle Phase Configuration\n\nValue on reset: 0"]
38#[derive(Clone, Copy, Debug, PartialEq)]
39#[repr(u8)]
40pub enum IDLECONF0_A {
41 #[doc = "0: ALTEX0 output is disabled in idle phase"]
42 DISABLE = 0,
43 #[doc = "1: ALTEX0 output is high in idle phase"]
44 HIGH = 1,
45 #[doc = "2: ALTEX0 output is low in idle phase"]
46 LOW = 2,
47}
48impl From<IDLECONF0_A> for u8 {
49 #[inline(always)]
50 fn from(variant: IDLECONF0_A) -> Self {
51 variant as _
52 }
53}
54#[doc = "Field `IDLECONF0` reader - ALTEX0 Idle Phase Configuration"]
55pub type IDLECONF0_R = crate::FieldReader<u8, IDLECONF0_A>;
56impl IDLECONF0_R {
57 #[doc = "Get enumerated values variant"]
58 #[inline(always)]
59 pub fn variant(&self) -> Option<IDLECONF0_A> {
60 match self.bits {
61 0 => Some(IDLECONF0_A::DISABLE),
62 1 => Some(IDLECONF0_A::HIGH),
63 2 => Some(IDLECONF0_A::LOW),
64 _ => None,
65 }
66 }
67 #[doc = "Checks if the value of the field is `DISABLE`"]
68 #[inline(always)]
69 pub fn is_disable(&self) -> bool {
70 *self == IDLECONF0_A::DISABLE
71 }
72 #[doc = "Checks if the value of the field is `HIGH`"]
73 #[inline(always)]
74 pub fn is_high(&self) -> bool {
75 *self == IDLECONF0_A::HIGH
76 }
77 #[doc = "Checks if the value of the field is `LOW`"]
78 #[inline(always)]
79 pub fn is_low(&self) -> bool {
80 *self == IDLECONF0_A::LOW
81 }
82}
83#[doc = "Field `IDLECONF0` writer - ALTEX0 Idle Phase Configuration"]
84pub type IDLECONF0_W<'a> = crate::FieldWriter<'a, u32, ALTEXCONF_SPEC, u8, IDLECONF0_A, 2, 0>;
85impl<'a> IDLECONF0_W<'a> {
86 #[doc = "ALTEX0 output is disabled in idle phase"]
87 #[inline(always)]
88 pub fn disable(self) -> &'a mut W {
89 self.variant(IDLECONF0_A::DISABLE)
90 }
91 #[doc = "ALTEX0 output is high in idle phase"]
92 #[inline(always)]
93 pub fn high(self) -> &'a mut W {
94 self.variant(IDLECONF0_A::HIGH)
95 }
96 #[doc = "ALTEX0 output is low in idle phase"]
97 #[inline(always)]
98 pub fn low(self) -> &'a mut W {
99 self.variant(IDLECONF0_A::LOW)
100 }
101}
102#[doc = "ALTEX1 Idle Phase Configuration\n\nValue on reset: 0"]
103#[derive(Clone, Copy, Debug, PartialEq)]
104#[repr(u8)]
105pub enum IDLECONF1_A {
106 #[doc = "0: ALTEX1 output is disabled in idle phase"]
107 DISABLE = 0,
108 #[doc = "1: ALTEX1 output is high in idle phase"]
109 HIGH = 1,
110 #[doc = "2: ALTEX1 output is low in idle phase"]
111 LOW = 2,
112}
113impl From<IDLECONF1_A> for u8 {
114 #[inline(always)]
115 fn from(variant: IDLECONF1_A) -> Self {
116 variant as _
117 }
118}
119#[doc = "Field `IDLECONF1` reader - ALTEX1 Idle Phase Configuration"]
120pub type IDLECONF1_R = crate::FieldReader<u8, IDLECONF1_A>;
121impl IDLECONF1_R {
122 #[doc = "Get enumerated values variant"]
123 #[inline(always)]
124 pub fn variant(&self) -> Option<IDLECONF1_A> {
125 match self.bits {
126 0 => Some(IDLECONF1_A::DISABLE),
127 1 => Some(IDLECONF1_A::HIGH),
128 2 => Some(IDLECONF1_A::LOW),
129 _ => None,
130 }
131 }
132 #[doc = "Checks if the value of the field is `DISABLE`"]
133 #[inline(always)]
134 pub fn is_disable(&self) -> bool {
135 *self == IDLECONF1_A::DISABLE
136 }
137 #[doc = "Checks if the value of the field is `HIGH`"]
138 #[inline(always)]
139 pub fn is_high(&self) -> bool {
140 *self == IDLECONF1_A::HIGH
141 }
142 #[doc = "Checks if the value of the field is `LOW`"]
143 #[inline(always)]
144 pub fn is_low(&self) -> bool {
145 *self == IDLECONF1_A::LOW
146 }
147}
148#[doc = "Field `IDLECONF1` writer - ALTEX1 Idle Phase Configuration"]
149pub type IDLECONF1_W<'a> = crate::FieldWriter<'a, u32, ALTEXCONF_SPEC, u8, IDLECONF1_A, 2, 2>;
150impl<'a> IDLECONF1_W<'a> {
151 #[doc = "ALTEX1 output is disabled in idle phase"]
152 #[inline(always)]
153 pub fn disable(self) -> &'a mut W {
154 self.variant(IDLECONF1_A::DISABLE)
155 }
156 #[doc = "ALTEX1 output is high in idle phase"]
157 #[inline(always)]
158 pub fn high(self) -> &'a mut W {
159 self.variant(IDLECONF1_A::HIGH)
160 }
161 #[doc = "ALTEX1 output is low in idle phase"]
162 #[inline(always)]
163 pub fn low(self) -> &'a mut W {
164 self.variant(IDLECONF1_A::LOW)
165 }
166}
167#[doc = "ALTEX2 Idle Phase Configuration\n\nValue on reset: 0"]
168#[derive(Clone, Copy, Debug, PartialEq)]
169#[repr(u8)]
170pub enum IDLECONF2_A {
171 #[doc = "0: ALTEX2 output is disabled in idle phase"]
172 DISABLE = 0,
173 #[doc = "1: ALTEX2 output is high in idle phase"]
174 HIGH = 1,
175 #[doc = "2: ALTEX2 output is low in idle phase"]
176 LOW = 2,
177}
178impl From<IDLECONF2_A> for u8 {
179 #[inline(always)]
180 fn from(variant: IDLECONF2_A) -> Self {
181 variant as _
182 }
183}
184#[doc = "Field `IDLECONF2` reader - ALTEX2 Idle Phase Configuration"]
185pub type IDLECONF2_R = crate::FieldReader<u8, IDLECONF2_A>;
186impl IDLECONF2_R {
187 #[doc = "Get enumerated values variant"]
188 #[inline(always)]
189 pub fn variant(&self) -> Option<IDLECONF2_A> {
190 match self.bits {
191 0 => Some(IDLECONF2_A::DISABLE),
192 1 => Some(IDLECONF2_A::HIGH),
193 2 => Some(IDLECONF2_A::LOW),
194 _ => None,
195 }
196 }
197 #[doc = "Checks if the value of the field is `DISABLE`"]
198 #[inline(always)]
199 pub fn is_disable(&self) -> bool {
200 *self == IDLECONF2_A::DISABLE
201 }
202 #[doc = "Checks if the value of the field is `HIGH`"]
203 #[inline(always)]
204 pub fn is_high(&self) -> bool {
205 *self == IDLECONF2_A::HIGH
206 }
207 #[doc = "Checks if the value of the field is `LOW`"]
208 #[inline(always)]
209 pub fn is_low(&self) -> bool {
210 *self == IDLECONF2_A::LOW
211 }
212}
213#[doc = "Field `IDLECONF2` writer - ALTEX2 Idle Phase Configuration"]
214pub type IDLECONF2_W<'a> = crate::FieldWriter<'a, u32, ALTEXCONF_SPEC, u8, IDLECONF2_A, 2, 4>;
215impl<'a> IDLECONF2_W<'a> {
216 #[doc = "ALTEX2 output is disabled in idle phase"]
217 #[inline(always)]
218 pub fn disable(self) -> &'a mut W {
219 self.variant(IDLECONF2_A::DISABLE)
220 }
221 #[doc = "ALTEX2 output is high in idle phase"]
222 #[inline(always)]
223 pub fn high(self) -> &'a mut W {
224 self.variant(IDLECONF2_A::HIGH)
225 }
226 #[doc = "ALTEX2 output is low in idle phase"]
227 #[inline(always)]
228 pub fn low(self) -> &'a mut W {
229 self.variant(IDLECONF2_A::LOW)
230 }
231}
232#[doc = "ALTEX3 Idle Phase Configuration\n\nValue on reset: 0"]
233#[derive(Clone, Copy, Debug, PartialEq)]
234#[repr(u8)]
235pub enum IDLECONF3_A {
236 #[doc = "0: ALTEX3 output is disabled in idle phase"]
237 DISABLE = 0,
238 #[doc = "1: ALTEX3 output is high in idle phase"]
239 HIGH = 1,
240 #[doc = "2: ALTEX3 output is low in idle phase"]
241 LOW = 2,
242}
243impl From<IDLECONF3_A> for u8 {
244 #[inline(always)]
245 fn from(variant: IDLECONF3_A) -> Self {
246 variant as _
247 }
248}
249#[doc = "Field `IDLECONF3` reader - ALTEX3 Idle Phase Configuration"]
250pub type IDLECONF3_R = crate::FieldReader<u8, IDLECONF3_A>;
251impl IDLECONF3_R {
252 #[doc = "Get enumerated values variant"]
253 #[inline(always)]
254 pub fn variant(&self) -> Option<IDLECONF3_A> {
255 match self.bits {
256 0 => Some(IDLECONF3_A::DISABLE),
257 1 => Some(IDLECONF3_A::HIGH),
258 2 => Some(IDLECONF3_A::LOW),
259 _ => None,
260 }
261 }
262 #[doc = "Checks if the value of the field is `DISABLE`"]
263 #[inline(always)]
264 pub fn is_disable(&self) -> bool {
265 *self == IDLECONF3_A::DISABLE
266 }
267 #[doc = "Checks if the value of the field is `HIGH`"]
268 #[inline(always)]
269 pub fn is_high(&self) -> bool {
270 *self == IDLECONF3_A::HIGH
271 }
272 #[doc = "Checks if the value of the field is `LOW`"]
273 #[inline(always)]
274 pub fn is_low(&self) -> bool {
275 *self == IDLECONF3_A::LOW
276 }
277}
278#[doc = "Field `IDLECONF3` writer - ALTEX3 Idle Phase Configuration"]
279pub type IDLECONF3_W<'a> = crate::FieldWriter<'a, u32, ALTEXCONF_SPEC, u8, IDLECONF3_A, 2, 6>;
280impl<'a> IDLECONF3_W<'a> {
281 #[doc = "ALTEX3 output is disabled in idle phase"]
282 #[inline(always)]
283 pub fn disable(self) -> &'a mut W {
284 self.variant(IDLECONF3_A::DISABLE)
285 }
286 #[doc = "ALTEX3 output is high in idle phase"]
287 #[inline(always)]
288 pub fn high(self) -> &'a mut W {
289 self.variant(IDLECONF3_A::HIGH)
290 }
291 #[doc = "ALTEX3 output is low in idle phase"]
292 #[inline(always)]
293 pub fn low(self) -> &'a mut W {
294 self.variant(IDLECONF3_A::LOW)
295 }
296}
297#[doc = "ALTEX4 Idle Phase Configuration\n\nValue on reset: 0"]
298#[derive(Clone, Copy, Debug, PartialEq)]
299#[repr(u8)]
300pub enum IDLECONF4_A {
301 #[doc = "0: ALTEX4 output is disabled in idle phase"]
302 DISABLE = 0,
303 #[doc = "1: ALTEX4 output is high in idle phase"]
304 HIGH = 1,
305 #[doc = "2: ALTEX4 output is low in idle phase"]
306 LOW = 2,
307}
308impl From<IDLECONF4_A> for u8 {
309 #[inline(always)]
310 fn from(variant: IDLECONF4_A) -> Self {
311 variant as _
312 }
313}
314#[doc = "Field `IDLECONF4` reader - ALTEX4 Idle Phase Configuration"]
315pub type IDLECONF4_R = crate::FieldReader<u8, IDLECONF4_A>;
316impl IDLECONF4_R {
317 #[doc = "Get enumerated values variant"]
318 #[inline(always)]
319 pub fn variant(&self) -> Option<IDLECONF4_A> {
320 match self.bits {
321 0 => Some(IDLECONF4_A::DISABLE),
322 1 => Some(IDLECONF4_A::HIGH),
323 2 => Some(IDLECONF4_A::LOW),
324 _ => None,
325 }
326 }
327 #[doc = "Checks if the value of the field is `DISABLE`"]
328 #[inline(always)]
329 pub fn is_disable(&self) -> bool {
330 *self == IDLECONF4_A::DISABLE
331 }
332 #[doc = "Checks if the value of the field is `HIGH`"]
333 #[inline(always)]
334 pub fn is_high(&self) -> bool {
335 *self == IDLECONF4_A::HIGH
336 }
337 #[doc = "Checks if the value of the field is `LOW`"]
338 #[inline(always)]
339 pub fn is_low(&self) -> bool {
340 *self == IDLECONF4_A::LOW
341 }
342}
343#[doc = "Field `IDLECONF4` writer - ALTEX4 Idle Phase Configuration"]
344pub type IDLECONF4_W<'a> = crate::FieldWriter<'a, u32, ALTEXCONF_SPEC, u8, IDLECONF4_A, 2, 8>;
345impl<'a> IDLECONF4_W<'a> {
346 #[doc = "ALTEX4 output is disabled in idle phase"]
347 #[inline(always)]
348 pub fn disable(self) -> &'a mut W {
349 self.variant(IDLECONF4_A::DISABLE)
350 }
351 #[doc = "ALTEX4 output is high in idle phase"]
352 #[inline(always)]
353 pub fn high(self) -> &'a mut W {
354 self.variant(IDLECONF4_A::HIGH)
355 }
356 #[doc = "ALTEX4 output is low in idle phase"]
357 #[inline(always)]
358 pub fn low(self) -> &'a mut W {
359 self.variant(IDLECONF4_A::LOW)
360 }
361}
362#[doc = "ALTEX5 Idle Phase Configuration\n\nValue on reset: 0"]
363#[derive(Clone, Copy, Debug, PartialEq)]
364#[repr(u8)]
365pub enum IDLECONF5_A {
366 #[doc = "0: ALTEX5 output is disabled in idle phase"]
367 DISABLE = 0,
368 #[doc = "1: ALTEX5 output is high in idle phase"]
369 HIGH = 1,
370 #[doc = "2: ALTEX5 output is low in idle phase"]
371 LOW = 2,
372}
373impl From<IDLECONF5_A> for u8 {
374 #[inline(always)]
375 fn from(variant: IDLECONF5_A) -> Self {
376 variant as _
377 }
378}
379#[doc = "Field `IDLECONF5` reader - ALTEX5 Idle Phase Configuration"]
380pub type IDLECONF5_R = crate::FieldReader<u8, IDLECONF5_A>;
381impl IDLECONF5_R {
382 #[doc = "Get enumerated values variant"]
383 #[inline(always)]
384 pub fn variant(&self) -> Option<IDLECONF5_A> {
385 match self.bits {
386 0 => Some(IDLECONF5_A::DISABLE),
387 1 => Some(IDLECONF5_A::HIGH),
388 2 => Some(IDLECONF5_A::LOW),
389 _ => None,
390 }
391 }
392 #[doc = "Checks if the value of the field is `DISABLE`"]
393 #[inline(always)]
394 pub fn is_disable(&self) -> bool {
395 *self == IDLECONF5_A::DISABLE
396 }
397 #[doc = "Checks if the value of the field is `HIGH`"]
398 #[inline(always)]
399 pub fn is_high(&self) -> bool {
400 *self == IDLECONF5_A::HIGH
401 }
402 #[doc = "Checks if the value of the field is `LOW`"]
403 #[inline(always)]
404 pub fn is_low(&self) -> bool {
405 *self == IDLECONF5_A::LOW
406 }
407}
408#[doc = "Field `IDLECONF5` writer - ALTEX5 Idle Phase Configuration"]
409pub type IDLECONF5_W<'a> = crate::FieldWriter<'a, u32, ALTEXCONF_SPEC, u8, IDLECONF5_A, 2, 10>;
410impl<'a> IDLECONF5_W<'a> {
411 #[doc = "ALTEX5 output is disabled in idle phase"]
412 #[inline(always)]
413 pub fn disable(self) -> &'a mut W {
414 self.variant(IDLECONF5_A::DISABLE)
415 }
416 #[doc = "ALTEX5 output is high in idle phase"]
417 #[inline(always)]
418 pub fn high(self) -> &'a mut W {
419 self.variant(IDLECONF5_A::HIGH)
420 }
421 #[doc = "ALTEX5 output is low in idle phase"]
422 #[inline(always)]
423 pub fn low(self) -> &'a mut W {
424 self.variant(IDLECONF5_A::LOW)
425 }
426}
427#[doc = "ALTEX6 Idle Phase Configuration\n\nValue on reset: 0"]
428#[derive(Clone, Copy, Debug, PartialEq)]
429#[repr(u8)]
430pub enum IDLECONF6_A {
431 #[doc = "0: ALTEX6 output is disabled in idle phase"]
432 DISABLE = 0,
433 #[doc = "1: ALTEX6 output is high in idle phase"]
434 HIGH = 1,
435 #[doc = "2: ALTEX6 output is low in idle phase"]
436 LOW = 2,
437}
438impl From<IDLECONF6_A> for u8 {
439 #[inline(always)]
440 fn from(variant: IDLECONF6_A) -> Self {
441 variant as _
442 }
443}
444#[doc = "Field `IDLECONF6` reader - ALTEX6 Idle Phase Configuration"]
445pub type IDLECONF6_R = crate::FieldReader<u8, IDLECONF6_A>;
446impl IDLECONF6_R {
447 #[doc = "Get enumerated values variant"]
448 #[inline(always)]
449 pub fn variant(&self) -> Option<IDLECONF6_A> {
450 match self.bits {
451 0 => Some(IDLECONF6_A::DISABLE),
452 1 => Some(IDLECONF6_A::HIGH),
453 2 => Some(IDLECONF6_A::LOW),
454 _ => None,
455 }
456 }
457 #[doc = "Checks if the value of the field is `DISABLE`"]
458 #[inline(always)]
459 pub fn is_disable(&self) -> bool {
460 *self == IDLECONF6_A::DISABLE
461 }
462 #[doc = "Checks if the value of the field is `HIGH`"]
463 #[inline(always)]
464 pub fn is_high(&self) -> bool {
465 *self == IDLECONF6_A::HIGH
466 }
467 #[doc = "Checks if the value of the field is `LOW`"]
468 #[inline(always)]
469 pub fn is_low(&self) -> bool {
470 *self == IDLECONF6_A::LOW
471 }
472}
473#[doc = "Field `IDLECONF6` writer - ALTEX6 Idle Phase Configuration"]
474pub type IDLECONF6_W<'a> = crate::FieldWriter<'a, u32, ALTEXCONF_SPEC, u8, IDLECONF6_A, 2, 12>;
475impl<'a> IDLECONF6_W<'a> {
476 #[doc = "ALTEX6 output is disabled in idle phase"]
477 #[inline(always)]
478 pub fn disable(self) -> &'a mut W {
479 self.variant(IDLECONF6_A::DISABLE)
480 }
481 #[doc = "ALTEX6 output is high in idle phase"]
482 #[inline(always)]
483 pub fn high(self) -> &'a mut W {
484 self.variant(IDLECONF6_A::HIGH)
485 }
486 #[doc = "ALTEX6 output is low in idle phase"]
487 #[inline(always)]
488 pub fn low(self) -> &'a mut W {
489 self.variant(IDLECONF6_A::LOW)
490 }
491}
492#[doc = "ALTEX7 Idle Phase Configuration\n\nValue on reset: 0"]
493#[derive(Clone, Copy, Debug, PartialEq)]
494#[repr(u8)]
495pub enum IDLECONF7_A {
496 #[doc = "0: ALTEX7 output is disabled in idle phase"]
497 DISABLE = 0,
498 #[doc = "1: ALTEX7 output is high in idle phase"]
499 HIGH = 1,
500 #[doc = "2: ALTEX7 output is low in idle phase"]
501 LOW = 2,
502}
503impl From<IDLECONF7_A> for u8 {
504 #[inline(always)]
505 fn from(variant: IDLECONF7_A) -> Self {
506 variant as _
507 }
508}
509#[doc = "Field `IDLECONF7` reader - ALTEX7 Idle Phase Configuration"]
510pub type IDLECONF7_R = crate::FieldReader<u8, IDLECONF7_A>;
511impl IDLECONF7_R {
512 #[doc = "Get enumerated values variant"]
513 #[inline(always)]
514 pub fn variant(&self) -> Option<IDLECONF7_A> {
515 match self.bits {
516 0 => Some(IDLECONF7_A::DISABLE),
517 1 => Some(IDLECONF7_A::HIGH),
518 2 => Some(IDLECONF7_A::LOW),
519 _ => None,
520 }
521 }
522 #[doc = "Checks if the value of the field is `DISABLE`"]
523 #[inline(always)]
524 pub fn is_disable(&self) -> bool {
525 *self == IDLECONF7_A::DISABLE
526 }
527 #[doc = "Checks if the value of the field is `HIGH`"]
528 #[inline(always)]
529 pub fn is_high(&self) -> bool {
530 *self == IDLECONF7_A::HIGH
531 }
532 #[doc = "Checks if the value of the field is `LOW`"]
533 #[inline(always)]
534 pub fn is_low(&self) -> bool {
535 *self == IDLECONF7_A::LOW
536 }
537}
538#[doc = "Field `IDLECONF7` writer - ALTEX7 Idle Phase Configuration"]
539pub type IDLECONF7_W<'a> = crate::FieldWriter<'a, u32, ALTEXCONF_SPEC, u8, IDLECONF7_A, 2, 14>;
540impl<'a> IDLECONF7_W<'a> {
541 #[doc = "ALTEX7 output is disabled in idle phase"]
542 #[inline(always)]
543 pub fn disable(self) -> &'a mut W {
544 self.variant(IDLECONF7_A::DISABLE)
545 }
546 #[doc = "ALTEX7 output is high in idle phase"]
547 #[inline(always)]
548 pub fn high(self) -> &'a mut W {
549 self.variant(IDLECONF7_A::HIGH)
550 }
551 #[doc = "ALTEX7 output is low in idle phase"]
552 #[inline(always)]
553 pub fn low(self) -> &'a mut W {
554 self.variant(IDLECONF7_A::LOW)
555 }
556}
557#[doc = "Field `AEX0` reader - ALTEX0 Always Excite Enable"]
558pub type AEX0_R = crate::BitReader<bool>;
559#[doc = "Field `AEX0` writer - ALTEX0 Always Excite Enable"]
560pub type AEX0_W<'a> = crate::BitWriter<'a, u32, ALTEXCONF_SPEC, bool, 16>;
561#[doc = "Field `AEX1` reader - ALTEX1 Always Excite Enable"]
562pub type AEX1_R = crate::BitReader<bool>;
563#[doc = "Field `AEX1` writer - ALTEX1 Always Excite Enable"]
564pub type AEX1_W<'a> = crate::BitWriter<'a, u32, ALTEXCONF_SPEC, bool, 17>;
565#[doc = "Field `AEX2` reader - ALTEX2 Always Excite Enable"]
566pub type AEX2_R = crate::BitReader<bool>;
567#[doc = "Field `AEX2` writer - ALTEX2 Always Excite Enable"]
568pub type AEX2_W<'a> = crate::BitWriter<'a, u32, ALTEXCONF_SPEC, bool, 18>;
569#[doc = "Field `AEX3` reader - ALTEX3 Always Excite Enable"]
570pub type AEX3_R = crate::BitReader<bool>;
571#[doc = "Field `AEX3` writer - ALTEX3 Always Excite Enable"]
572pub type AEX3_W<'a> = crate::BitWriter<'a, u32, ALTEXCONF_SPEC, bool, 19>;
573#[doc = "Field `AEX4` reader - ALTEX4 Always Excite Enable"]
574pub type AEX4_R = crate::BitReader<bool>;
575#[doc = "Field `AEX4` writer - ALTEX4 Always Excite Enable"]
576pub type AEX4_W<'a> = crate::BitWriter<'a, u32, ALTEXCONF_SPEC, bool, 20>;
577#[doc = "Field `AEX5` reader - ALTEX5 Always Excite Enable"]
578pub type AEX5_R = crate::BitReader<bool>;
579#[doc = "Field `AEX5` writer - ALTEX5 Always Excite Enable"]
580pub type AEX5_W<'a> = crate::BitWriter<'a, u32, ALTEXCONF_SPEC, bool, 21>;
581#[doc = "Field `AEX6` reader - ALTEX6 Always Excite Enable"]
582pub type AEX6_R = crate::BitReader<bool>;
583#[doc = "Field `AEX6` writer - ALTEX6 Always Excite Enable"]
584pub type AEX6_W<'a> = crate::BitWriter<'a, u32, ALTEXCONF_SPEC, bool, 22>;
585#[doc = "Field `AEX7` reader - ALTEX7 Always Excite Enable"]
586pub type AEX7_R = crate::BitReader<bool>;
587#[doc = "Field `AEX7` writer - ALTEX7 Always Excite Enable"]
588pub type AEX7_W<'a> = crate::BitWriter<'a, u32, ALTEXCONF_SPEC, bool, 23>;
589impl R {
590 #[doc = "Bits 0:1 - ALTEX0 Idle Phase Configuration"]
591 #[inline(always)]
592 pub fn idleconf0(&self) -> IDLECONF0_R {
593 IDLECONF0_R::new((self.bits & 3) as u8)
594 }
595 #[doc = "Bits 2:3 - ALTEX1 Idle Phase Configuration"]
596 #[inline(always)]
597 pub fn idleconf1(&self) -> IDLECONF1_R {
598 IDLECONF1_R::new(((self.bits >> 2) & 3) as u8)
599 }
600 #[doc = "Bits 4:5 - ALTEX2 Idle Phase Configuration"]
601 #[inline(always)]
602 pub fn idleconf2(&self) -> IDLECONF2_R {
603 IDLECONF2_R::new(((self.bits >> 4) & 3) as u8)
604 }
605 #[doc = "Bits 6:7 - ALTEX3 Idle Phase Configuration"]
606 #[inline(always)]
607 pub fn idleconf3(&self) -> IDLECONF3_R {
608 IDLECONF3_R::new(((self.bits >> 6) & 3) as u8)
609 }
610 #[doc = "Bits 8:9 - ALTEX4 Idle Phase Configuration"]
611 #[inline(always)]
612 pub fn idleconf4(&self) -> IDLECONF4_R {
613 IDLECONF4_R::new(((self.bits >> 8) & 3) as u8)
614 }
615 #[doc = "Bits 10:11 - ALTEX5 Idle Phase Configuration"]
616 #[inline(always)]
617 pub fn idleconf5(&self) -> IDLECONF5_R {
618 IDLECONF5_R::new(((self.bits >> 10) & 3) as u8)
619 }
620 #[doc = "Bits 12:13 - ALTEX6 Idle Phase Configuration"]
621 #[inline(always)]
622 pub fn idleconf6(&self) -> IDLECONF6_R {
623 IDLECONF6_R::new(((self.bits >> 12) & 3) as u8)
624 }
625 #[doc = "Bits 14:15 - ALTEX7 Idle Phase Configuration"]
626 #[inline(always)]
627 pub fn idleconf7(&self) -> IDLECONF7_R {
628 IDLECONF7_R::new(((self.bits >> 14) & 3) as u8)
629 }
630 #[doc = "Bit 16 - ALTEX0 Always Excite Enable"]
631 #[inline(always)]
632 pub fn aex0(&self) -> AEX0_R {
633 AEX0_R::new(((self.bits >> 16) & 1) != 0)
634 }
635 #[doc = "Bit 17 - ALTEX1 Always Excite Enable"]
636 #[inline(always)]
637 pub fn aex1(&self) -> AEX1_R {
638 AEX1_R::new(((self.bits >> 17) & 1) != 0)
639 }
640 #[doc = "Bit 18 - ALTEX2 Always Excite Enable"]
641 #[inline(always)]
642 pub fn aex2(&self) -> AEX2_R {
643 AEX2_R::new(((self.bits >> 18) & 1) != 0)
644 }
645 #[doc = "Bit 19 - ALTEX3 Always Excite Enable"]
646 #[inline(always)]
647 pub fn aex3(&self) -> AEX3_R {
648 AEX3_R::new(((self.bits >> 19) & 1) != 0)
649 }
650 #[doc = "Bit 20 - ALTEX4 Always Excite Enable"]
651 #[inline(always)]
652 pub fn aex4(&self) -> AEX4_R {
653 AEX4_R::new(((self.bits >> 20) & 1) != 0)
654 }
655 #[doc = "Bit 21 - ALTEX5 Always Excite Enable"]
656 #[inline(always)]
657 pub fn aex5(&self) -> AEX5_R {
658 AEX5_R::new(((self.bits >> 21) & 1) != 0)
659 }
660 #[doc = "Bit 22 - ALTEX6 Always Excite Enable"]
661 #[inline(always)]
662 pub fn aex6(&self) -> AEX6_R {
663 AEX6_R::new(((self.bits >> 22) & 1) != 0)
664 }
665 #[doc = "Bit 23 - ALTEX7 Always Excite Enable"]
666 #[inline(always)]
667 pub fn aex7(&self) -> AEX7_R {
668 AEX7_R::new(((self.bits >> 23) & 1) != 0)
669 }
670}
671impl W {
672 #[doc = "Bits 0:1 - ALTEX0 Idle Phase Configuration"]
673 #[inline(always)]
674 pub fn idleconf0(&mut self) -> IDLECONF0_W {
675 IDLECONF0_W::new(self)
676 }
677 #[doc = "Bits 2:3 - ALTEX1 Idle Phase Configuration"]
678 #[inline(always)]
679 pub fn idleconf1(&mut self) -> IDLECONF1_W {
680 IDLECONF1_W::new(self)
681 }
682 #[doc = "Bits 4:5 - ALTEX2 Idle Phase Configuration"]
683 #[inline(always)]
684 pub fn idleconf2(&mut self) -> IDLECONF2_W {
685 IDLECONF2_W::new(self)
686 }
687 #[doc = "Bits 6:7 - ALTEX3 Idle Phase Configuration"]
688 #[inline(always)]
689 pub fn idleconf3(&mut self) -> IDLECONF3_W {
690 IDLECONF3_W::new(self)
691 }
692 #[doc = "Bits 8:9 - ALTEX4 Idle Phase Configuration"]
693 #[inline(always)]
694 pub fn idleconf4(&mut self) -> IDLECONF4_W {
695 IDLECONF4_W::new(self)
696 }
697 #[doc = "Bits 10:11 - ALTEX5 Idle Phase Configuration"]
698 #[inline(always)]
699 pub fn idleconf5(&mut self) -> IDLECONF5_W {
700 IDLECONF5_W::new(self)
701 }
702 #[doc = "Bits 12:13 - ALTEX6 Idle Phase Configuration"]
703 #[inline(always)]
704 pub fn idleconf6(&mut self) -> IDLECONF6_W {
705 IDLECONF6_W::new(self)
706 }
707 #[doc = "Bits 14:15 - ALTEX7 Idle Phase Configuration"]
708 #[inline(always)]
709 pub fn idleconf7(&mut self) -> IDLECONF7_W {
710 IDLECONF7_W::new(self)
711 }
712 #[doc = "Bit 16 - ALTEX0 Always Excite Enable"]
713 #[inline(always)]
714 pub fn aex0(&mut self) -> AEX0_W {
715 AEX0_W::new(self)
716 }
717 #[doc = "Bit 17 - ALTEX1 Always Excite Enable"]
718 #[inline(always)]
719 pub fn aex1(&mut self) -> AEX1_W {
720 AEX1_W::new(self)
721 }
722 #[doc = "Bit 18 - ALTEX2 Always Excite Enable"]
723 #[inline(always)]
724 pub fn aex2(&mut self) -> AEX2_W {
725 AEX2_W::new(self)
726 }
727 #[doc = "Bit 19 - ALTEX3 Always Excite Enable"]
728 #[inline(always)]
729 pub fn aex3(&mut self) -> AEX3_W {
730 AEX3_W::new(self)
731 }
732 #[doc = "Bit 20 - ALTEX4 Always Excite Enable"]
733 #[inline(always)]
734 pub fn aex4(&mut self) -> AEX4_W {
735 AEX4_W::new(self)
736 }
737 #[doc = "Bit 21 - ALTEX5 Always Excite Enable"]
738 #[inline(always)]
739 pub fn aex5(&mut self) -> AEX5_W {
740 AEX5_W::new(self)
741 }
742 #[doc = "Bit 22 - ALTEX6 Always Excite Enable"]
743 #[inline(always)]
744 pub fn aex6(&mut self) -> AEX6_W {
745 AEX6_W::new(self)
746 }
747 #[doc = "Bit 23 - ALTEX7 Always Excite Enable"]
748 #[inline(always)]
749 pub fn aex7(&mut self) -> AEX7_W {
750 AEX7_W::new(self)
751 }
752 #[doc = "Writes raw bits to the register."]
753 #[inline(always)]
754 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
755 self.0.bits(bits);
756 self
757 }
758}
759#[doc = "Alternative Excite Pin Configuration\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 [altexconf](index.html) module"]
760pub struct ALTEXCONF_SPEC;
761impl crate::RegisterSpec for ALTEXCONF_SPEC {
762 type Ux = u32;
763}
764#[doc = "`read()` method returns [altexconf::R](R) reader structure"]
765impl crate::Readable for ALTEXCONF_SPEC {
766 type Reader = R;
767}
768#[doc = "`write(|w| ..)` method takes [altexconf::W](W) writer structure"]
769impl crate::Writable for ALTEXCONF_SPEC {
770 type Writer = W;
771}
772#[doc = "`reset()` method sets ALTEXCONF to value 0"]
773impl crate::Resettable for ALTEXCONF_SPEC {
774 #[inline(always)]
775 fn reset_value() -> Self::Ux {
776 0
777 }
778}