Skip to main content

mcxa_pac/mau0/
op_ctrl.rs

1#[doc = "Register `OP_CTRL` reader"]
2pub type R = crate::R<OpCtrlSpec>;
3#[doc = "Register `OP_CTRL` writer"]
4pub type W = crate::W<OpCtrlSpec>;
5#[doc = "Override RES0 Data Type Enable\n\nValue on reset: 0"]
6#[cfg_attr(feature = "defmt", derive(defmt::Format))]
7#[derive(Clone, Copy, Debug, PartialEq, Eq)]
8pub enum OvdtEnRes0 {
9    #[doc = "0: Disable"]
10    Disable = 0,
11    #[doc = "1: Enable"]
12    Enable = 1,
13}
14impl From<OvdtEnRes0> for bool {
15    #[inline(always)]
16    fn from(variant: OvdtEnRes0) -> Self {
17        variant as u8 != 0
18    }
19}
20#[doc = "Field `OVDT_EN_RES0` reader - Override RES0 Data Type Enable"]
21pub type OvdtEnRes0R = crate::BitReader<OvdtEnRes0>;
22impl OvdtEnRes0R {
23    #[doc = "Get enumerated values variant"]
24    #[inline(always)]
25    pub const fn variant(&self) -> OvdtEnRes0 {
26        match self.bits {
27            false => OvdtEnRes0::Disable,
28            true => OvdtEnRes0::Enable,
29        }
30    }
31    #[doc = "Disable"]
32    #[inline(always)]
33    pub fn is_disable(&self) -> bool {
34        *self == OvdtEnRes0::Disable
35    }
36    #[doc = "Enable"]
37    #[inline(always)]
38    pub fn is_enable(&self) -> bool {
39        *self == OvdtEnRes0::Enable
40    }
41}
42#[doc = "Field `OVDT_EN_RES0` writer - Override RES0 Data Type Enable"]
43pub type OvdtEnRes0W<'a, REG> = crate::BitWriter<'a, REG, OvdtEnRes0>;
44impl<'a, REG> OvdtEnRes0W<'a, REG>
45where
46    REG: crate::Writable + crate::RegisterSpec,
47{
48    #[doc = "Disable"]
49    #[inline(always)]
50    pub fn disable(self) -> &'a mut crate::W<REG> {
51        self.variant(OvdtEnRes0::Disable)
52    }
53    #[doc = "Enable"]
54    #[inline(always)]
55    pub fn enable(self) -> &'a mut crate::W<REG> {
56        self.variant(OvdtEnRes0::Enable)
57    }
58}
59#[doc = "Override RES0 Data Type\n\nValue on reset: 0"]
60#[cfg_attr(feature = "defmt", derive(defmt::Format))]
61#[derive(Clone, Copy, Debug, PartialEq, Eq)]
62#[repr(u8)]
63pub enum OvdtRes0 {
64    #[doc = "0: UINT"]
65    Uint = 0,
66    #[doc = "1: INT"]
67    Int = 1,
68    #[doc = "2: Q1.X"]
69    Q1X = 2,
70    #[doc = "3: FLOAT"]
71    Float = 3,
72}
73impl From<OvdtRes0> for u8 {
74    #[inline(always)]
75    fn from(variant: OvdtRes0) -> Self {
76        variant as _
77    }
78}
79impl crate::FieldSpec for OvdtRes0 {
80    type Ux = u8;
81}
82impl crate::IsEnum for OvdtRes0 {}
83#[doc = "Field `OVDT_RES0` reader - Override RES0 Data Type"]
84pub type OvdtRes0R = crate::FieldReader<OvdtRes0>;
85impl OvdtRes0R {
86    #[doc = "Get enumerated values variant"]
87    #[inline(always)]
88    pub const fn variant(&self) -> OvdtRes0 {
89        match self.bits {
90            0 => OvdtRes0::Uint,
91            1 => OvdtRes0::Int,
92            2 => OvdtRes0::Q1X,
93            3 => OvdtRes0::Float,
94            _ => unreachable!(),
95        }
96    }
97    #[doc = "UINT"]
98    #[inline(always)]
99    pub fn is_uint(&self) -> bool {
100        *self == OvdtRes0::Uint
101    }
102    #[doc = "INT"]
103    #[inline(always)]
104    pub fn is_int(&self) -> bool {
105        *self == OvdtRes0::Int
106    }
107    #[doc = "Q1.X"]
108    #[inline(always)]
109    pub fn is_q1_x(&self) -> bool {
110        *self == OvdtRes0::Q1X
111    }
112    #[doc = "FLOAT"]
113    #[inline(always)]
114    pub fn is_float(&self) -> bool {
115        *self == OvdtRes0::Float
116    }
117}
118#[doc = "Field `OVDT_RES0` writer - Override RES0 Data Type"]
119pub type OvdtRes0W<'a, REG> = crate::FieldWriter<'a, REG, 2, OvdtRes0, crate::Safe>;
120impl<'a, REG> OvdtRes0W<'a, REG>
121where
122    REG: crate::Writable + crate::RegisterSpec,
123    REG::Ux: From<u8>,
124{
125    #[doc = "UINT"]
126    #[inline(always)]
127    pub fn uint(self) -> &'a mut crate::W<REG> {
128        self.variant(OvdtRes0::Uint)
129    }
130    #[doc = "INT"]
131    #[inline(always)]
132    pub fn int(self) -> &'a mut crate::W<REG> {
133        self.variant(OvdtRes0::Int)
134    }
135    #[doc = "Q1.X"]
136    #[inline(always)]
137    pub fn q1_x(self) -> &'a mut crate::W<REG> {
138        self.variant(OvdtRes0::Q1X)
139    }
140    #[doc = "FLOAT"]
141    #[inline(always)]
142    pub fn float(self) -> &'a mut crate::W<REG> {
143        self.variant(OvdtRes0::Float)
144    }
145}
146#[doc = "Override RES1 Data Type Enable\n\nValue on reset: 0"]
147#[cfg_attr(feature = "defmt", derive(defmt::Format))]
148#[derive(Clone, Copy, Debug, PartialEq, Eq)]
149pub enum OvdtEnRes1 {
150    #[doc = "0: Disable"]
151    Disable = 0,
152    #[doc = "1: Enable"]
153    Enable = 1,
154}
155impl From<OvdtEnRes1> for bool {
156    #[inline(always)]
157    fn from(variant: OvdtEnRes1) -> Self {
158        variant as u8 != 0
159    }
160}
161#[doc = "Field `OVDT_EN_RES1` reader - Override RES1 Data Type Enable"]
162pub type OvdtEnRes1R = crate::BitReader<OvdtEnRes1>;
163impl OvdtEnRes1R {
164    #[doc = "Get enumerated values variant"]
165    #[inline(always)]
166    pub const fn variant(&self) -> OvdtEnRes1 {
167        match self.bits {
168            false => OvdtEnRes1::Disable,
169            true => OvdtEnRes1::Enable,
170        }
171    }
172    #[doc = "Disable"]
173    #[inline(always)]
174    pub fn is_disable(&self) -> bool {
175        *self == OvdtEnRes1::Disable
176    }
177    #[doc = "Enable"]
178    #[inline(always)]
179    pub fn is_enable(&self) -> bool {
180        *self == OvdtEnRes1::Enable
181    }
182}
183#[doc = "Field `OVDT_EN_RES1` writer - Override RES1 Data Type Enable"]
184pub type OvdtEnRes1W<'a, REG> = crate::BitWriter<'a, REG, OvdtEnRes1>;
185impl<'a, REG> OvdtEnRes1W<'a, REG>
186where
187    REG: crate::Writable + crate::RegisterSpec,
188{
189    #[doc = "Disable"]
190    #[inline(always)]
191    pub fn disable(self) -> &'a mut crate::W<REG> {
192        self.variant(OvdtEnRes1::Disable)
193    }
194    #[doc = "Enable"]
195    #[inline(always)]
196    pub fn enable(self) -> &'a mut crate::W<REG> {
197        self.variant(OvdtEnRes1::Enable)
198    }
199}
200#[doc = "Override RES1 Data Type\n\nValue on reset: 0"]
201#[cfg_attr(feature = "defmt", derive(defmt::Format))]
202#[derive(Clone, Copy, Debug, PartialEq, Eq)]
203#[repr(u8)]
204pub enum OvdtRes1 {
205    #[doc = "0: UINT"]
206    Uint = 0,
207    #[doc = "1: INT"]
208    Int = 1,
209    #[doc = "2: Q1.X"]
210    Q1X = 2,
211    #[doc = "3: FLOAT"]
212    Float = 3,
213}
214impl From<OvdtRes1> for u8 {
215    #[inline(always)]
216    fn from(variant: OvdtRes1) -> Self {
217        variant as _
218    }
219}
220impl crate::FieldSpec for OvdtRes1 {
221    type Ux = u8;
222}
223impl crate::IsEnum for OvdtRes1 {}
224#[doc = "Field `OVDT_RES1` reader - Override RES1 Data Type"]
225pub type OvdtRes1R = crate::FieldReader<OvdtRes1>;
226impl OvdtRes1R {
227    #[doc = "Get enumerated values variant"]
228    #[inline(always)]
229    pub const fn variant(&self) -> OvdtRes1 {
230        match self.bits {
231            0 => OvdtRes1::Uint,
232            1 => OvdtRes1::Int,
233            2 => OvdtRes1::Q1X,
234            3 => OvdtRes1::Float,
235            _ => unreachable!(),
236        }
237    }
238    #[doc = "UINT"]
239    #[inline(always)]
240    pub fn is_uint(&self) -> bool {
241        *self == OvdtRes1::Uint
242    }
243    #[doc = "INT"]
244    #[inline(always)]
245    pub fn is_int(&self) -> bool {
246        *self == OvdtRes1::Int
247    }
248    #[doc = "Q1.X"]
249    #[inline(always)]
250    pub fn is_q1_x(&self) -> bool {
251        *self == OvdtRes1::Q1X
252    }
253    #[doc = "FLOAT"]
254    #[inline(always)]
255    pub fn is_float(&self) -> bool {
256        *self == OvdtRes1::Float
257    }
258}
259#[doc = "Field `OVDT_RES1` writer - Override RES1 Data Type"]
260pub type OvdtRes1W<'a, REG> = crate::FieldWriter<'a, REG, 2, OvdtRes1, crate::Safe>;
261impl<'a, REG> OvdtRes1W<'a, REG>
262where
263    REG: crate::Writable + crate::RegisterSpec,
264    REG::Ux: From<u8>,
265{
266    #[doc = "UINT"]
267    #[inline(always)]
268    pub fn uint(self) -> &'a mut crate::W<REG> {
269        self.variant(OvdtRes1::Uint)
270    }
271    #[doc = "INT"]
272    #[inline(always)]
273    pub fn int(self) -> &'a mut crate::W<REG> {
274        self.variant(OvdtRes1::Int)
275    }
276    #[doc = "Q1.X"]
277    #[inline(always)]
278    pub fn q1_x(self) -> &'a mut crate::W<REG> {
279        self.variant(OvdtRes1::Q1X)
280    }
281    #[doc = "FLOAT"]
282    #[inline(always)]
283    pub fn float(self) -> &'a mut crate::W<REG> {
284        self.variant(OvdtRes1::Float)
285    }
286}
287#[doc = "Override RES2 Data Type Enable\n\nValue on reset: 0"]
288#[cfg_attr(feature = "defmt", derive(defmt::Format))]
289#[derive(Clone, Copy, Debug, PartialEq, Eq)]
290pub enum OvdtEnRes2 {
291    #[doc = "0: Disable"]
292    Disable = 0,
293    #[doc = "1: Enable"]
294    Enable = 1,
295}
296impl From<OvdtEnRes2> for bool {
297    #[inline(always)]
298    fn from(variant: OvdtEnRes2) -> Self {
299        variant as u8 != 0
300    }
301}
302#[doc = "Field `OVDT_EN_RES2` reader - Override RES2 Data Type Enable"]
303pub type OvdtEnRes2R = crate::BitReader<OvdtEnRes2>;
304impl OvdtEnRes2R {
305    #[doc = "Get enumerated values variant"]
306    #[inline(always)]
307    pub const fn variant(&self) -> OvdtEnRes2 {
308        match self.bits {
309            false => OvdtEnRes2::Disable,
310            true => OvdtEnRes2::Enable,
311        }
312    }
313    #[doc = "Disable"]
314    #[inline(always)]
315    pub fn is_disable(&self) -> bool {
316        *self == OvdtEnRes2::Disable
317    }
318    #[doc = "Enable"]
319    #[inline(always)]
320    pub fn is_enable(&self) -> bool {
321        *self == OvdtEnRes2::Enable
322    }
323}
324#[doc = "Field `OVDT_EN_RES2` writer - Override RES2 Data Type Enable"]
325pub type OvdtEnRes2W<'a, REG> = crate::BitWriter<'a, REG, OvdtEnRes2>;
326impl<'a, REG> OvdtEnRes2W<'a, REG>
327where
328    REG: crate::Writable + crate::RegisterSpec,
329{
330    #[doc = "Disable"]
331    #[inline(always)]
332    pub fn disable(self) -> &'a mut crate::W<REG> {
333        self.variant(OvdtEnRes2::Disable)
334    }
335    #[doc = "Enable"]
336    #[inline(always)]
337    pub fn enable(self) -> &'a mut crate::W<REG> {
338        self.variant(OvdtEnRes2::Enable)
339    }
340}
341#[doc = "Override RES2 Data Type\n\nValue on reset: 0"]
342#[cfg_attr(feature = "defmt", derive(defmt::Format))]
343#[derive(Clone, Copy, Debug, PartialEq, Eq)]
344#[repr(u8)]
345pub enum OvdtRes2 {
346    #[doc = "0: UINT"]
347    Uint = 0,
348    #[doc = "1: INT"]
349    Int = 1,
350    #[doc = "2: Q1.X"]
351    Q1X = 2,
352    #[doc = "3: FLOAT"]
353    Float = 3,
354}
355impl From<OvdtRes2> for u8 {
356    #[inline(always)]
357    fn from(variant: OvdtRes2) -> Self {
358        variant as _
359    }
360}
361impl crate::FieldSpec for OvdtRes2 {
362    type Ux = u8;
363}
364impl crate::IsEnum for OvdtRes2 {}
365#[doc = "Field `OVDT_RES2` reader - Override RES2 Data Type"]
366pub type OvdtRes2R = crate::FieldReader<OvdtRes2>;
367impl OvdtRes2R {
368    #[doc = "Get enumerated values variant"]
369    #[inline(always)]
370    pub const fn variant(&self) -> OvdtRes2 {
371        match self.bits {
372            0 => OvdtRes2::Uint,
373            1 => OvdtRes2::Int,
374            2 => OvdtRes2::Q1X,
375            3 => OvdtRes2::Float,
376            _ => unreachable!(),
377        }
378    }
379    #[doc = "UINT"]
380    #[inline(always)]
381    pub fn is_uint(&self) -> bool {
382        *self == OvdtRes2::Uint
383    }
384    #[doc = "INT"]
385    #[inline(always)]
386    pub fn is_int(&self) -> bool {
387        *self == OvdtRes2::Int
388    }
389    #[doc = "Q1.X"]
390    #[inline(always)]
391    pub fn is_q1_x(&self) -> bool {
392        *self == OvdtRes2::Q1X
393    }
394    #[doc = "FLOAT"]
395    #[inline(always)]
396    pub fn is_float(&self) -> bool {
397        *self == OvdtRes2::Float
398    }
399}
400#[doc = "Field `OVDT_RES2` writer - Override RES2 Data Type"]
401pub type OvdtRes2W<'a, REG> = crate::FieldWriter<'a, REG, 2, OvdtRes2, crate::Safe>;
402impl<'a, REG> OvdtRes2W<'a, REG>
403where
404    REG: crate::Writable + crate::RegisterSpec,
405    REG::Ux: From<u8>,
406{
407    #[doc = "UINT"]
408    #[inline(always)]
409    pub fn uint(self) -> &'a mut crate::W<REG> {
410        self.variant(OvdtRes2::Uint)
411    }
412    #[doc = "INT"]
413    #[inline(always)]
414    pub fn int(self) -> &'a mut crate::W<REG> {
415        self.variant(OvdtRes2::Int)
416    }
417    #[doc = "Q1.X"]
418    #[inline(always)]
419    pub fn q1_x(self) -> &'a mut crate::W<REG> {
420        self.variant(OvdtRes2::Q1X)
421    }
422    #[doc = "FLOAT"]
423    #[inline(always)]
424    pub fn float(self) -> &'a mut crate::W<REG> {
425        self.variant(OvdtRes2::Float)
426    }
427}
428#[doc = "Override RES3 Data Type Enable\n\nValue on reset: 0"]
429#[cfg_attr(feature = "defmt", derive(defmt::Format))]
430#[derive(Clone, Copy, Debug, PartialEq, Eq)]
431pub enum OvdtEnRes3 {
432    #[doc = "0: Disable"]
433    Disable = 0,
434    #[doc = "1: Enable"]
435    Enable = 1,
436}
437impl From<OvdtEnRes3> for bool {
438    #[inline(always)]
439    fn from(variant: OvdtEnRes3) -> Self {
440        variant as u8 != 0
441    }
442}
443#[doc = "Field `OVDT_EN_RES3` reader - Override RES3 Data Type Enable"]
444pub type OvdtEnRes3R = crate::BitReader<OvdtEnRes3>;
445impl OvdtEnRes3R {
446    #[doc = "Get enumerated values variant"]
447    #[inline(always)]
448    pub const fn variant(&self) -> OvdtEnRes3 {
449        match self.bits {
450            false => OvdtEnRes3::Disable,
451            true => OvdtEnRes3::Enable,
452        }
453    }
454    #[doc = "Disable"]
455    #[inline(always)]
456    pub fn is_disable(&self) -> bool {
457        *self == OvdtEnRes3::Disable
458    }
459    #[doc = "Enable"]
460    #[inline(always)]
461    pub fn is_enable(&self) -> bool {
462        *self == OvdtEnRes3::Enable
463    }
464}
465#[doc = "Field `OVDT_EN_RES3` writer - Override RES3 Data Type Enable"]
466pub type OvdtEnRes3W<'a, REG> = crate::BitWriter<'a, REG, OvdtEnRes3>;
467impl<'a, REG> OvdtEnRes3W<'a, REG>
468where
469    REG: crate::Writable + crate::RegisterSpec,
470{
471    #[doc = "Disable"]
472    #[inline(always)]
473    pub fn disable(self) -> &'a mut crate::W<REG> {
474        self.variant(OvdtEnRes3::Disable)
475    }
476    #[doc = "Enable"]
477    #[inline(always)]
478    pub fn enable(self) -> &'a mut crate::W<REG> {
479        self.variant(OvdtEnRes3::Enable)
480    }
481}
482#[doc = "Override RES3 Data Type\n\nValue on reset: 0"]
483#[cfg_attr(feature = "defmt", derive(defmt::Format))]
484#[derive(Clone, Copy, Debug, PartialEq, Eq)]
485#[repr(u8)]
486pub enum OvdtRes3 {
487    #[doc = "0: UINT"]
488    Uint = 0,
489    #[doc = "1: INT"]
490    Int = 1,
491    #[doc = "2: Q1.X"]
492    Q1X = 2,
493    #[doc = "3: FLOAT"]
494    Float = 3,
495}
496impl From<OvdtRes3> for u8 {
497    #[inline(always)]
498    fn from(variant: OvdtRes3) -> Self {
499        variant as _
500    }
501}
502impl crate::FieldSpec for OvdtRes3 {
503    type Ux = u8;
504}
505impl crate::IsEnum for OvdtRes3 {}
506#[doc = "Field `OVDT_RES3` reader - Override RES3 Data Type"]
507pub type OvdtRes3R = crate::FieldReader<OvdtRes3>;
508impl OvdtRes3R {
509    #[doc = "Get enumerated values variant"]
510    #[inline(always)]
511    pub const fn variant(&self) -> OvdtRes3 {
512        match self.bits {
513            0 => OvdtRes3::Uint,
514            1 => OvdtRes3::Int,
515            2 => OvdtRes3::Q1X,
516            3 => OvdtRes3::Float,
517            _ => unreachable!(),
518        }
519    }
520    #[doc = "UINT"]
521    #[inline(always)]
522    pub fn is_uint(&self) -> bool {
523        *self == OvdtRes3::Uint
524    }
525    #[doc = "INT"]
526    #[inline(always)]
527    pub fn is_int(&self) -> bool {
528        *self == OvdtRes3::Int
529    }
530    #[doc = "Q1.X"]
531    #[inline(always)]
532    pub fn is_q1_x(&self) -> bool {
533        *self == OvdtRes3::Q1X
534    }
535    #[doc = "FLOAT"]
536    #[inline(always)]
537    pub fn is_float(&self) -> bool {
538        *self == OvdtRes3::Float
539    }
540}
541#[doc = "Field `OVDT_RES3` writer - Override RES3 Data Type"]
542pub type OvdtRes3W<'a, REG> = crate::FieldWriter<'a, REG, 2, OvdtRes3, crate::Safe>;
543impl<'a, REG> OvdtRes3W<'a, REG>
544where
545    REG: crate::Writable + crate::RegisterSpec,
546    REG::Ux: From<u8>,
547{
548    #[doc = "UINT"]
549    #[inline(always)]
550    pub fn uint(self) -> &'a mut crate::W<REG> {
551        self.variant(OvdtRes3::Uint)
552    }
553    #[doc = "INT"]
554    #[inline(always)]
555    pub fn int(self) -> &'a mut crate::W<REG> {
556        self.variant(OvdtRes3::Int)
557    }
558    #[doc = "Q1.X"]
559    #[inline(always)]
560    pub fn q1_x(self) -> &'a mut crate::W<REG> {
561        self.variant(OvdtRes3::Q1X)
562    }
563    #[doc = "FLOAT"]
564    #[inline(always)]
565    pub fn float(self) -> &'a mut crate::W<REG> {
566        self.variant(OvdtRes3::Float)
567    }
568}
569impl R {
570    #[doc = "Bit 0 - Override RES0 Data Type Enable"]
571    #[inline(always)]
572    pub fn ovdt_en_res0(&self) -> OvdtEnRes0R {
573        OvdtEnRes0R::new((self.bits & 1) != 0)
574    }
575    #[doc = "Bits 1:2 - Override RES0 Data Type"]
576    #[inline(always)]
577    pub fn ovdt_res0(&self) -> OvdtRes0R {
578        OvdtRes0R::new(((self.bits >> 1) & 3) as u8)
579    }
580    #[doc = "Bit 8 - Override RES1 Data Type Enable"]
581    #[inline(always)]
582    pub fn ovdt_en_res1(&self) -> OvdtEnRes1R {
583        OvdtEnRes1R::new(((self.bits >> 8) & 1) != 0)
584    }
585    #[doc = "Bits 9:10 - Override RES1 Data Type"]
586    #[inline(always)]
587    pub fn ovdt_res1(&self) -> OvdtRes1R {
588        OvdtRes1R::new(((self.bits >> 9) & 3) as u8)
589    }
590    #[doc = "Bit 16 - Override RES2 Data Type Enable"]
591    #[inline(always)]
592    pub fn ovdt_en_res2(&self) -> OvdtEnRes2R {
593        OvdtEnRes2R::new(((self.bits >> 16) & 1) != 0)
594    }
595    #[doc = "Bits 17:18 - Override RES2 Data Type"]
596    #[inline(always)]
597    pub fn ovdt_res2(&self) -> OvdtRes2R {
598        OvdtRes2R::new(((self.bits >> 17) & 3) as u8)
599    }
600    #[doc = "Bit 24 - Override RES3 Data Type Enable"]
601    #[inline(always)]
602    pub fn ovdt_en_res3(&self) -> OvdtEnRes3R {
603        OvdtEnRes3R::new(((self.bits >> 24) & 1) != 0)
604    }
605    #[doc = "Bits 25:26 - Override RES3 Data Type"]
606    #[inline(always)]
607    pub fn ovdt_res3(&self) -> OvdtRes3R {
608        OvdtRes3R::new(((self.bits >> 25) & 3) as u8)
609    }
610}
611#[cfg(feature = "debug")]
612impl core::fmt::Debug for R {
613    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
614        f.debug_struct("OP_CTRL")
615            .field("ovdt_en_res0", &self.ovdt_en_res0())
616            .field("ovdt_res0", &self.ovdt_res0())
617            .field("ovdt_en_res1", &self.ovdt_en_res1())
618            .field("ovdt_res1", &self.ovdt_res1())
619            .field("ovdt_en_res2", &self.ovdt_en_res2())
620            .field("ovdt_res2", &self.ovdt_res2())
621            .field("ovdt_en_res3", &self.ovdt_en_res3())
622            .field("ovdt_res3", &self.ovdt_res3())
623            .finish()
624    }
625}
626impl W {
627    #[doc = "Bit 0 - Override RES0 Data Type Enable"]
628    #[inline(always)]
629    pub fn ovdt_en_res0(&mut self) -> OvdtEnRes0W<'_, OpCtrlSpec> {
630        OvdtEnRes0W::new(self, 0)
631    }
632    #[doc = "Bits 1:2 - Override RES0 Data Type"]
633    #[inline(always)]
634    pub fn ovdt_res0(&mut self) -> OvdtRes0W<'_, OpCtrlSpec> {
635        OvdtRes0W::new(self, 1)
636    }
637    #[doc = "Bit 8 - Override RES1 Data Type Enable"]
638    #[inline(always)]
639    pub fn ovdt_en_res1(&mut self) -> OvdtEnRes1W<'_, OpCtrlSpec> {
640        OvdtEnRes1W::new(self, 8)
641    }
642    #[doc = "Bits 9:10 - Override RES1 Data Type"]
643    #[inline(always)]
644    pub fn ovdt_res1(&mut self) -> OvdtRes1W<'_, OpCtrlSpec> {
645        OvdtRes1W::new(self, 9)
646    }
647    #[doc = "Bit 16 - Override RES2 Data Type Enable"]
648    #[inline(always)]
649    pub fn ovdt_en_res2(&mut self) -> OvdtEnRes2W<'_, OpCtrlSpec> {
650        OvdtEnRes2W::new(self, 16)
651    }
652    #[doc = "Bits 17:18 - Override RES2 Data Type"]
653    #[inline(always)]
654    pub fn ovdt_res2(&mut self) -> OvdtRes2W<'_, OpCtrlSpec> {
655        OvdtRes2W::new(self, 17)
656    }
657    #[doc = "Bit 24 - Override RES3 Data Type Enable"]
658    #[inline(always)]
659    pub fn ovdt_en_res3(&mut self) -> OvdtEnRes3W<'_, OpCtrlSpec> {
660        OvdtEnRes3W::new(self, 24)
661    }
662    #[doc = "Bits 25:26 - Override RES3 Data Type"]
663    #[inline(always)]
664    pub fn ovdt_res3(&mut self) -> OvdtRes3W<'_, OpCtrlSpec> {
665        OvdtRes3W::new(self, 25)
666    }
667}
668#[doc = "Operation Control\n\nYou can [`read`](crate::Reg::read) this register and get [`op_ctrl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`op_ctrl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
669pub struct OpCtrlSpec;
670impl crate::RegisterSpec for OpCtrlSpec {
671    type Ux = u32;
672}
673#[doc = "`read()` method returns [`op_ctrl::R`](R) reader structure"]
674impl crate::Readable for OpCtrlSpec {}
675#[doc = "`write(|w| ..)` method takes [`op_ctrl::W`](W) writer structure"]
676impl crate::Writable for OpCtrlSpec {
677    type Safety = crate::Unsafe;
678}
679#[doc = "`reset()` method sets OP_CTRL to value 0"]
680impl crate::Resettable for OpCtrlSpec {}