efm32gg_pac/efm32gg230/lesense/
altexconf.rs

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