efm32wg230_pac/dac0/
opa2mux.rs

1#[doc = "Register `OPA2MUX` reader"]
2pub struct R(crate::R<OPA2MUX_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<OPA2MUX_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<OPA2MUX_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<OPA2MUX_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `OPA2MUX` writer"]
17pub struct W(crate::W<OPA2MUX_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<OPA2MUX_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<OPA2MUX_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<OPA2MUX_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "OPA2 non-inverting Input Mux\n\nValue on reset: 0"]
38#[derive(Clone, Copy, Debug, PartialEq)]
39#[repr(u8)]
40pub enum POSSEL_A {
41    #[doc = "0: Input disabled"]
42    DISABLE = 0,
43    #[doc = "2: POS PAD as input"]
44    POSPAD = 2,
45    #[doc = "3: OPA1 as input"]
46    OPA1INP = 3,
47    #[doc = "4: OPA0 Resistor ladder as input"]
48    OPATAP = 4,
49}
50impl From<POSSEL_A> for u8 {
51    #[inline(always)]
52    fn from(variant: POSSEL_A) -> Self {
53        variant as _
54    }
55}
56#[doc = "Field `POSSEL` reader - OPA2 non-inverting Input Mux"]
57pub type POSSEL_R = crate::FieldReader<u8, POSSEL_A>;
58impl POSSEL_R {
59    #[doc = "Get enumerated values variant"]
60    #[inline(always)]
61    pub fn variant(&self) -> Option<POSSEL_A> {
62        match self.bits {
63            0 => Some(POSSEL_A::DISABLE),
64            2 => Some(POSSEL_A::POSPAD),
65            3 => Some(POSSEL_A::OPA1INP),
66            4 => Some(POSSEL_A::OPATAP),
67            _ => None,
68        }
69    }
70    #[doc = "Checks if the value of the field is `DISABLE`"]
71    #[inline(always)]
72    pub fn is_disable(&self) -> bool {
73        *self == POSSEL_A::DISABLE
74    }
75    #[doc = "Checks if the value of the field is `POSPAD`"]
76    #[inline(always)]
77    pub fn is_pospad(&self) -> bool {
78        *self == POSSEL_A::POSPAD
79    }
80    #[doc = "Checks if the value of the field is `OPA1INP`"]
81    #[inline(always)]
82    pub fn is_opa1inp(&self) -> bool {
83        *self == POSSEL_A::OPA1INP
84    }
85    #[doc = "Checks if the value of the field is `OPATAP`"]
86    #[inline(always)]
87    pub fn is_opatap(&self) -> bool {
88        *self == POSSEL_A::OPATAP
89    }
90}
91#[doc = "Field `POSSEL` writer - OPA2 non-inverting Input Mux"]
92pub type POSSEL_W<'a> = crate::FieldWriter<'a, u32, OPA2MUX_SPEC, u8, POSSEL_A, 3, 0>;
93impl<'a> POSSEL_W<'a> {
94    #[doc = "Input disabled"]
95    #[inline(always)]
96    pub fn disable(self) -> &'a mut W {
97        self.variant(POSSEL_A::DISABLE)
98    }
99    #[doc = "POS PAD as input"]
100    #[inline(always)]
101    pub fn pospad(self) -> &'a mut W {
102        self.variant(POSSEL_A::POSPAD)
103    }
104    #[doc = "OPA1 as input"]
105    #[inline(always)]
106    pub fn opa1inp(self) -> &'a mut W {
107        self.variant(POSSEL_A::OPA1INP)
108    }
109    #[doc = "OPA0 Resistor ladder as input"]
110    #[inline(always)]
111    pub fn opatap(self) -> &'a mut W {
112        self.variant(POSSEL_A::OPATAP)
113    }
114}
115#[doc = "OPA2 inverting Input Mux\n\nValue on reset: 0"]
116#[derive(Clone, Copy, Debug, PartialEq)]
117#[repr(u8)]
118pub enum NEGSEL_A {
119    #[doc = "0: Input disabled"]
120    DISABLE = 0,
121    #[doc = "1: Unity Gain feedback path"]
122    UG = 1,
123    #[doc = "2: OPA2 Resistor ladder as input"]
124    OPATAP = 2,
125    #[doc = "3: Input from NEG PAD"]
126    NEGPAD = 3,
127}
128impl From<NEGSEL_A> for u8 {
129    #[inline(always)]
130    fn from(variant: NEGSEL_A) -> Self {
131        variant as _
132    }
133}
134#[doc = "Field `NEGSEL` reader - OPA2 inverting Input Mux"]
135pub type NEGSEL_R = crate::FieldReader<u8, NEGSEL_A>;
136impl NEGSEL_R {
137    #[doc = "Get enumerated values variant"]
138    #[inline(always)]
139    pub fn variant(&self) -> NEGSEL_A {
140        match self.bits {
141            0 => NEGSEL_A::DISABLE,
142            1 => NEGSEL_A::UG,
143            2 => NEGSEL_A::OPATAP,
144            3 => NEGSEL_A::NEGPAD,
145            _ => unreachable!(),
146        }
147    }
148    #[doc = "Checks if the value of the field is `DISABLE`"]
149    #[inline(always)]
150    pub fn is_disable(&self) -> bool {
151        *self == NEGSEL_A::DISABLE
152    }
153    #[doc = "Checks if the value of the field is `UG`"]
154    #[inline(always)]
155    pub fn is_ug(&self) -> bool {
156        *self == NEGSEL_A::UG
157    }
158    #[doc = "Checks if the value of the field is `OPATAP`"]
159    #[inline(always)]
160    pub fn is_opatap(&self) -> bool {
161        *self == NEGSEL_A::OPATAP
162    }
163    #[doc = "Checks if the value of the field is `NEGPAD`"]
164    #[inline(always)]
165    pub fn is_negpad(&self) -> bool {
166        *self == NEGSEL_A::NEGPAD
167    }
168}
169#[doc = "Field `NEGSEL` writer - OPA2 inverting Input Mux"]
170pub type NEGSEL_W<'a> = crate::FieldWriterSafe<'a, u32, OPA2MUX_SPEC, u8, NEGSEL_A, 2, 4>;
171impl<'a> NEGSEL_W<'a> {
172    #[doc = "Input disabled"]
173    #[inline(always)]
174    pub fn disable(self) -> &'a mut W {
175        self.variant(NEGSEL_A::DISABLE)
176    }
177    #[doc = "Unity Gain feedback path"]
178    #[inline(always)]
179    pub fn ug(self) -> &'a mut W {
180        self.variant(NEGSEL_A::UG)
181    }
182    #[doc = "OPA2 Resistor ladder as input"]
183    #[inline(always)]
184    pub fn opatap(self) -> &'a mut W {
185        self.variant(NEGSEL_A::OPATAP)
186    }
187    #[doc = "Input from NEG PAD"]
188    #[inline(always)]
189    pub fn negpad(self) -> &'a mut W {
190        self.variant(NEGSEL_A::NEGPAD)
191    }
192}
193#[doc = "OPA2 Resistor Ladder Input Mux\n\nValue on reset: 0"]
194#[derive(Clone, Copy, Debug, PartialEq)]
195#[repr(u8)]
196pub enum RESINMUX_A {
197    #[doc = "0: Set for Unity Gain"]
198    DISABLE = 0,
199    #[doc = "1: Set for OPA1 input"]
200    OPA1INP = 1,
201    #[doc = "2: NEG PAD connected"]
202    NEGPAD = 2,
203    #[doc = "3: POS PAD connected"]
204    POSPAD = 3,
205    #[doc = "4: VSS connected"]
206    VSS = 4,
207}
208impl From<RESINMUX_A> for u8 {
209    #[inline(always)]
210    fn from(variant: RESINMUX_A) -> Self {
211        variant as _
212    }
213}
214#[doc = "Field `RESINMUX` reader - OPA2 Resistor Ladder Input Mux"]
215pub type RESINMUX_R = crate::FieldReader<u8, RESINMUX_A>;
216impl RESINMUX_R {
217    #[doc = "Get enumerated values variant"]
218    #[inline(always)]
219    pub fn variant(&self) -> Option<RESINMUX_A> {
220        match self.bits {
221            0 => Some(RESINMUX_A::DISABLE),
222            1 => Some(RESINMUX_A::OPA1INP),
223            2 => Some(RESINMUX_A::NEGPAD),
224            3 => Some(RESINMUX_A::POSPAD),
225            4 => Some(RESINMUX_A::VSS),
226            _ => None,
227        }
228    }
229    #[doc = "Checks if the value of the field is `DISABLE`"]
230    #[inline(always)]
231    pub fn is_disable(&self) -> bool {
232        *self == RESINMUX_A::DISABLE
233    }
234    #[doc = "Checks if the value of the field is `OPA1INP`"]
235    #[inline(always)]
236    pub fn is_opa1inp(&self) -> bool {
237        *self == RESINMUX_A::OPA1INP
238    }
239    #[doc = "Checks if the value of the field is `NEGPAD`"]
240    #[inline(always)]
241    pub fn is_negpad(&self) -> bool {
242        *self == RESINMUX_A::NEGPAD
243    }
244    #[doc = "Checks if the value of the field is `POSPAD`"]
245    #[inline(always)]
246    pub fn is_pospad(&self) -> bool {
247        *self == RESINMUX_A::POSPAD
248    }
249    #[doc = "Checks if the value of the field is `VSS`"]
250    #[inline(always)]
251    pub fn is_vss(&self) -> bool {
252        *self == RESINMUX_A::VSS
253    }
254}
255#[doc = "Field `RESINMUX` writer - OPA2 Resistor Ladder Input Mux"]
256pub type RESINMUX_W<'a> = crate::FieldWriter<'a, u32, OPA2MUX_SPEC, u8, RESINMUX_A, 3, 8>;
257impl<'a> RESINMUX_W<'a> {
258    #[doc = "Set for Unity Gain"]
259    #[inline(always)]
260    pub fn disable(self) -> &'a mut W {
261        self.variant(RESINMUX_A::DISABLE)
262    }
263    #[doc = "Set for OPA1 input"]
264    #[inline(always)]
265    pub fn opa1inp(self) -> &'a mut W {
266        self.variant(RESINMUX_A::OPA1INP)
267    }
268    #[doc = "NEG PAD connected"]
269    #[inline(always)]
270    pub fn negpad(self) -> &'a mut W {
271        self.variant(RESINMUX_A::NEGPAD)
272    }
273    #[doc = "POS PAD connected"]
274    #[inline(always)]
275    pub fn pospad(self) -> &'a mut W {
276        self.variant(RESINMUX_A::POSPAD)
277    }
278    #[doc = "VSS connected"]
279    #[inline(always)]
280    pub fn vss(self) -> &'a mut W {
281        self.variant(RESINMUX_A::VSS)
282    }
283}
284#[doc = "Field `PPEN` reader - OPA2 Positive Pad Input Enable"]
285pub type PPEN_R = crate::BitReader<bool>;
286#[doc = "Field `PPEN` writer - OPA2 Positive Pad Input Enable"]
287pub type PPEN_W<'a> = crate::BitWriter<'a, u32, OPA2MUX_SPEC, bool, 12>;
288#[doc = "Field `NPEN` reader - OPA2 Negative Pad Input Enable"]
289pub type NPEN_R = crate::BitReader<bool>;
290#[doc = "Field `NPEN` writer - OPA2 Negative Pad Input Enable"]
291pub type NPEN_W<'a> = crate::BitWriter<'a, u32, OPA2MUX_SPEC, bool, 13>;
292#[doc = "OPA2 Output Location\n\nValue on reset: 0"]
293#[derive(Clone, Copy, Debug, PartialEq)]
294#[repr(u8)]
295pub enum OUTPEN_A {
296    #[doc = "1: Main Output 0"]
297    OUT0 = 1,
298    #[doc = "2: Main Output 1"]
299    OUT1 = 2,
300}
301impl From<OUTPEN_A> for u8 {
302    #[inline(always)]
303    fn from(variant: OUTPEN_A) -> Self {
304        variant as _
305    }
306}
307#[doc = "Field `OUTPEN` reader - OPA2 Output Location"]
308pub type OUTPEN_R = crate::FieldReader<u8, OUTPEN_A>;
309impl OUTPEN_R {
310    #[doc = "Get enumerated values variant"]
311    #[inline(always)]
312    pub fn variant(&self) -> Option<OUTPEN_A> {
313        match self.bits {
314            1 => Some(OUTPEN_A::OUT0),
315            2 => Some(OUTPEN_A::OUT1),
316            _ => None,
317        }
318    }
319    #[doc = "Checks if the value of the field is `OUT0`"]
320    #[inline(always)]
321    pub fn is_out0(&self) -> bool {
322        *self == OUTPEN_A::OUT0
323    }
324    #[doc = "Checks if the value of the field is `OUT1`"]
325    #[inline(always)]
326    pub fn is_out1(&self) -> bool {
327        *self == OUTPEN_A::OUT1
328    }
329}
330#[doc = "Field `OUTPEN` writer - OPA2 Output Location"]
331pub type OUTPEN_W<'a> = crate::FieldWriter<'a, u32, OPA2MUX_SPEC, u8, OUTPEN_A, 2, 14>;
332impl<'a> OUTPEN_W<'a> {
333    #[doc = "Main Output 0"]
334    #[inline(always)]
335    pub fn out0(self) -> &'a mut W {
336        self.variant(OUTPEN_A::OUT0)
337    }
338    #[doc = "Main Output 1"]
339    #[inline(always)]
340    pub fn out1(self) -> &'a mut W {
341        self.variant(OUTPEN_A::OUT1)
342    }
343}
344#[doc = "Field `OUTMODE` reader - Output Select"]
345pub type OUTMODE_R = crate::BitReader<bool>;
346#[doc = "Field `OUTMODE` writer - Output Select"]
347pub type OUTMODE_W<'a> = crate::BitWriter<'a, u32, OPA2MUX_SPEC, bool, 22>;
348#[doc = "Field `NEXTOUT` reader - OPA2 Next Enable"]
349pub type NEXTOUT_R = crate::BitReader<bool>;
350#[doc = "Field `NEXTOUT` writer - OPA2 Next Enable"]
351pub type NEXTOUT_W<'a> = crate::BitWriter<'a, u32, OPA2MUX_SPEC, bool, 26>;
352#[doc = "OPA2 Resistor Ladder Select\n\nValue on reset: 0"]
353#[derive(Clone, Copy, Debug, PartialEq)]
354#[repr(u8)]
355pub enum RESSEL_A {
356    #[doc = "0: Gain of 1/3"]
357    RES0 = 0,
358    #[doc = "1: Gain of 1"]
359    RES1 = 1,
360    #[doc = "2: Gain of 1 2/3"]
361    RES2 = 2,
362    #[doc = "3: Gain of 2"]
363    RES3 = 3,
364    #[doc = "4: Gain of 3"]
365    RES4 = 4,
366    #[doc = "5: Gain of 4 1/3"]
367    RES5 = 5,
368    #[doc = "6: Gain of 7"]
369    RES6 = 6,
370    #[doc = "7: Gain of 15"]
371    RES7 = 7,
372}
373impl From<RESSEL_A> for u8 {
374    #[inline(always)]
375    fn from(variant: RESSEL_A) -> Self {
376        variant as _
377    }
378}
379#[doc = "Field `RESSEL` reader - OPA2 Resistor Ladder Select"]
380pub type RESSEL_R = crate::FieldReader<u8, RESSEL_A>;
381impl RESSEL_R {
382    #[doc = "Get enumerated values variant"]
383    #[inline(always)]
384    pub fn variant(&self) -> RESSEL_A {
385        match self.bits {
386            0 => RESSEL_A::RES0,
387            1 => RESSEL_A::RES1,
388            2 => RESSEL_A::RES2,
389            3 => RESSEL_A::RES3,
390            4 => RESSEL_A::RES4,
391            5 => RESSEL_A::RES5,
392            6 => RESSEL_A::RES6,
393            7 => RESSEL_A::RES7,
394            _ => unreachable!(),
395        }
396    }
397    #[doc = "Checks if the value of the field is `RES0`"]
398    #[inline(always)]
399    pub fn is_res0(&self) -> bool {
400        *self == RESSEL_A::RES0
401    }
402    #[doc = "Checks if the value of the field is `RES1`"]
403    #[inline(always)]
404    pub fn is_res1(&self) -> bool {
405        *self == RESSEL_A::RES1
406    }
407    #[doc = "Checks if the value of the field is `RES2`"]
408    #[inline(always)]
409    pub fn is_res2(&self) -> bool {
410        *self == RESSEL_A::RES2
411    }
412    #[doc = "Checks if the value of the field is `RES3`"]
413    #[inline(always)]
414    pub fn is_res3(&self) -> bool {
415        *self == RESSEL_A::RES3
416    }
417    #[doc = "Checks if the value of the field is `RES4`"]
418    #[inline(always)]
419    pub fn is_res4(&self) -> bool {
420        *self == RESSEL_A::RES4
421    }
422    #[doc = "Checks if the value of the field is `RES5`"]
423    #[inline(always)]
424    pub fn is_res5(&self) -> bool {
425        *self == RESSEL_A::RES5
426    }
427    #[doc = "Checks if the value of the field is `RES6`"]
428    #[inline(always)]
429    pub fn is_res6(&self) -> bool {
430        *self == RESSEL_A::RES6
431    }
432    #[doc = "Checks if the value of the field is `RES7`"]
433    #[inline(always)]
434    pub fn is_res7(&self) -> bool {
435        *self == RESSEL_A::RES7
436    }
437}
438#[doc = "Field `RESSEL` writer - OPA2 Resistor Ladder Select"]
439pub type RESSEL_W<'a> = crate::FieldWriterSafe<'a, u32, OPA2MUX_SPEC, u8, RESSEL_A, 3, 28>;
440impl<'a> RESSEL_W<'a> {
441    #[doc = "Gain of 1/3"]
442    #[inline(always)]
443    pub fn res0(self) -> &'a mut W {
444        self.variant(RESSEL_A::RES0)
445    }
446    #[doc = "Gain of 1"]
447    #[inline(always)]
448    pub fn res1(self) -> &'a mut W {
449        self.variant(RESSEL_A::RES1)
450    }
451    #[doc = "Gain of 1 2/3"]
452    #[inline(always)]
453    pub fn res2(self) -> &'a mut W {
454        self.variant(RESSEL_A::RES2)
455    }
456    #[doc = "Gain of 2"]
457    #[inline(always)]
458    pub fn res3(self) -> &'a mut W {
459        self.variant(RESSEL_A::RES3)
460    }
461    #[doc = "Gain of 3"]
462    #[inline(always)]
463    pub fn res4(self) -> &'a mut W {
464        self.variant(RESSEL_A::RES4)
465    }
466    #[doc = "Gain of 4 1/3"]
467    #[inline(always)]
468    pub fn res5(self) -> &'a mut W {
469        self.variant(RESSEL_A::RES5)
470    }
471    #[doc = "Gain of 7"]
472    #[inline(always)]
473    pub fn res6(self) -> &'a mut W {
474        self.variant(RESSEL_A::RES6)
475    }
476    #[doc = "Gain of 15"]
477    #[inline(always)]
478    pub fn res7(self) -> &'a mut W {
479        self.variant(RESSEL_A::RES7)
480    }
481}
482impl R {
483    #[doc = "Bits 0:2 - OPA2 non-inverting Input Mux"]
484    #[inline(always)]
485    pub fn possel(&self) -> POSSEL_R {
486        POSSEL_R::new((self.bits & 7) as u8)
487    }
488    #[doc = "Bits 4:5 - OPA2 inverting Input Mux"]
489    #[inline(always)]
490    pub fn negsel(&self) -> NEGSEL_R {
491        NEGSEL_R::new(((self.bits >> 4) & 3) as u8)
492    }
493    #[doc = "Bits 8:10 - OPA2 Resistor Ladder Input Mux"]
494    #[inline(always)]
495    pub fn resinmux(&self) -> RESINMUX_R {
496        RESINMUX_R::new(((self.bits >> 8) & 7) as u8)
497    }
498    #[doc = "Bit 12 - OPA2 Positive Pad Input Enable"]
499    #[inline(always)]
500    pub fn ppen(&self) -> PPEN_R {
501        PPEN_R::new(((self.bits >> 12) & 1) != 0)
502    }
503    #[doc = "Bit 13 - OPA2 Negative Pad Input Enable"]
504    #[inline(always)]
505    pub fn npen(&self) -> NPEN_R {
506        NPEN_R::new(((self.bits >> 13) & 1) != 0)
507    }
508    #[doc = "Bits 14:15 - OPA2 Output Location"]
509    #[inline(always)]
510    pub fn outpen(&self) -> OUTPEN_R {
511        OUTPEN_R::new(((self.bits >> 14) & 3) as u8)
512    }
513    #[doc = "Bit 22 - Output Select"]
514    #[inline(always)]
515    pub fn outmode(&self) -> OUTMODE_R {
516        OUTMODE_R::new(((self.bits >> 22) & 1) != 0)
517    }
518    #[doc = "Bit 26 - OPA2 Next Enable"]
519    #[inline(always)]
520    pub fn nextout(&self) -> NEXTOUT_R {
521        NEXTOUT_R::new(((self.bits >> 26) & 1) != 0)
522    }
523    #[doc = "Bits 28:30 - OPA2 Resistor Ladder Select"]
524    #[inline(always)]
525    pub fn ressel(&self) -> RESSEL_R {
526        RESSEL_R::new(((self.bits >> 28) & 7) as u8)
527    }
528}
529impl W {
530    #[doc = "Bits 0:2 - OPA2 non-inverting Input Mux"]
531    #[inline(always)]
532    pub fn possel(&mut self) -> POSSEL_W {
533        POSSEL_W::new(self)
534    }
535    #[doc = "Bits 4:5 - OPA2 inverting Input Mux"]
536    #[inline(always)]
537    pub fn negsel(&mut self) -> NEGSEL_W {
538        NEGSEL_W::new(self)
539    }
540    #[doc = "Bits 8:10 - OPA2 Resistor Ladder Input Mux"]
541    #[inline(always)]
542    pub fn resinmux(&mut self) -> RESINMUX_W {
543        RESINMUX_W::new(self)
544    }
545    #[doc = "Bit 12 - OPA2 Positive Pad Input Enable"]
546    #[inline(always)]
547    pub fn ppen(&mut self) -> PPEN_W {
548        PPEN_W::new(self)
549    }
550    #[doc = "Bit 13 - OPA2 Negative Pad Input Enable"]
551    #[inline(always)]
552    pub fn npen(&mut self) -> NPEN_W {
553        NPEN_W::new(self)
554    }
555    #[doc = "Bits 14:15 - OPA2 Output Location"]
556    #[inline(always)]
557    pub fn outpen(&mut self) -> OUTPEN_W {
558        OUTPEN_W::new(self)
559    }
560    #[doc = "Bit 22 - Output Select"]
561    #[inline(always)]
562    pub fn outmode(&mut self) -> OUTMODE_W {
563        OUTMODE_W::new(self)
564    }
565    #[doc = "Bit 26 - OPA2 Next Enable"]
566    #[inline(always)]
567    pub fn nextout(&mut self) -> NEXTOUT_W {
568        NEXTOUT_W::new(self)
569    }
570    #[doc = "Bits 28:30 - OPA2 Resistor Ladder Select"]
571    #[inline(always)]
572    pub fn ressel(&mut self) -> RESSEL_W {
573        RESSEL_W::new(self)
574    }
575    #[doc = "Writes raw bits to the register."]
576    #[inline(always)]
577    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
578        self.0.bits(bits);
579        self
580    }
581}
582#[doc = "Operational Amplifier Mux Configuration Register\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 [opa2mux](index.html) module"]
583pub struct OPA2MUX_SPEC;
584impl crate::RegisterSpec for OPA2MUX_SPEC {
585    type Ux = u32;
586}
587#[doc = "`read()` method returns [opa2mux::R](R) reader structure"]
588impl crate::Readable for OPA2MUX_SPEC {
589    type Reader = R;
590}
591#[doc = "`write(|w| ..)` method takes [opa2mux::W](W) writer structure"]
592impl crate::Writable for OPA2MUX_SPEC {
593    type Writer = W;
594}
595#[doc = "`reset()` method sets OPA2MUX to value 0"]
596impl crate::Resettable for OPA2MUX_SPEC {
597    #[inline(always)]
598    fn reset_value() -> Self::Ux {
599        0
600    }
601}