1#![allow(clippy::identity_op)]
21#![allow(clippy::module_inception)]
22#![allow(clippy::derivable_impls)]
23#[allow(unused_imports)]
24use crate::common::sealed;
25#[allow(unused_imports)]
26use crate::common::*;
27#[doc = r"OperationalAmplifier"]
28unsafe impl ::core::marker::Send for super::Opamp {}
29unsafe impl ::core::marker::Sync for super::Opamp {}
30impl super::Opamp {
31 #[allow(unused)]
32 #[inline(always)]
33 pub(crate) const fn _svd2pac_as_ptr(&self) -> *mut u8 {
34 self.ptr
35 }
36
37 #[doc = "Operational amplifier mode control register"]
38 #[inline(always)]
39 pub const fn ampmc(&self) -> &'static crate::common::Reg<self::Ampmc_SPEC, crate::common::RW> {
40 unsafe {
41 crate::common::Reg::<self::Ampmc_SPEC, crate::common::RW>::from_ptr(
42 self._svd2pac_as_ptr().add(0usize),
43 )
44 }
45 }
46
47 #[doc = "Operational amplifier trigger mode control register"]
48 #[inline(always)]
49 pub const fn amptrm(
50 &self,
51 ) -> &'static crate::common::Reg<self::Amptrm_SPEC, crate::common::RW> {
52 unsafe {
53 crate::common::Reg::<self::Amptrm_SPEC, crate::common::RW>::from_ptr(
54 self._svd2pac_as_ptr().add(1usize),
55 )
56 }
57 }
58
59 #[doc = "Operational Amplifier Activation Trigger Select Register"]
60 #[inline(always)]
61 pub const fn amptrs(
62 &self,
63 ) -> &'static crate::common::Reg<self::Amptrs_SPEC, crate::common::RW> {
64 unsafe {
65 crate::common::Reg::<self::Amptrs_SPEC, crate::common::RW>::from_ptr(
66 self._svd2pac_as_ptr().add(2usize),
67 )
68 }
69 }
70
71 #[doc = "Operational amplifier control register"]
72 #[inline(always)]
73 pub const fn ampc(&self) -> &'static crate::common::Reg<self::Ampc_SPEC, crate::common::RW> {
74 unsafe {
75 crate::common::Reg::<self::Ampc_SPEC, crate::common::RW>::from_ptr(
76 self._svd2pac_as_ptr().add(3usize),
77 )
78 }
79 }
80
81 #[doc = "Operational amplifier monitor register"]
82 #[inline(always)]
83 pub const fn ampmon(&self) -> &'static crate::common::Reg<self::Ampmon_SPEC, crate::common::R> {
84 unsafe {
85 crate::common::Reg::<self::Ampmon_SPEC, crate::common::R>::from_ptr(
86 self._svd2pac_as_ptr().add(4usize),
87 )
88 }
89 }
90
91 #[doc = "Operational Amplifier 0 Output Select Register"]
92 #[inline(always)]
93 pub const fn amp0os(
94 &self,
95 ) -> &'static crate::common::Reg<self::Amp0Os_SPEC, crate::common::RW> {
96 unsafe {
97 crate::common::Reg::<self::Amp0Os_SPEC, crate::common::RW>::from_ptr(
98 self._svd2pac_as_ptr().add(6usize),
99 )
100 }
101 }
102
103 #[doc = "Operational Amplifier 0 Minus Input Select Register"]
104 #[inline(always)]
105 pub const fn amp0ms(
106 &self,
107 ) -> &'static crate::common::Reg<self::Amp0Ms_SPEC, crate::common::RW> {
108 unsafe {
109 crate::common::Reg::<self::Amp0Ms_SPEC, crate::common::RW>::from_ptr(
110 self._svd2pac_as_ptr().add(7usize),
111 )
112 }
113 }
114
115 #[doc = "Operational Amplifier 0 Plus Input Select Register"]
116 #[inline(always)]
117 pub const fn amp0ps(
118 &self,
119 ) -> &'static crate::common::Reg<self::Amp0Ps_SPEC, crate::common::RW> {
120 unsafe {
121 crate::common::Reg::<self::Amp0Ps_SPEC, crate::common::RW>::from_ptr(
122 self._svd2pac_as_ptr().add(8usize),
123 )
124 }
125 }
126
127 #[doc = "Operational Amplifier 1 Minus Input Select Register"]
128 #[inline(always)]
129 pub const fn amp1ms(
130 &self,
131 ) -> &'static crate::common::Reg<self::Amp1Ms_SPEC, crate::common::RW> {
132 unsafe {
133 crate::common::Reg::<self::Amp1Ms_SPEC, crate::common::RW>::from_ptr(
134 self._svd2pac_as_ptr().add(10usize),
135 )
136 }
137 }
138
139 #[doc = "Operational Amplifier 1 Plus Input Select Register"]
140 #[inline(always)]
141 pub const fn amp1ps(
142 &self,
143 ) -> &'static crate::common::Reg<self::Amp1Ps_SPEC, crate::common::RW> {
144 unsafe {
145 crate::common::Reg::<self::Amp1Ps_SPEC, crate::common::RW>::from_ptr(
146 self._svd2pac_as_ptr().add(11usize),
147 )
148 }
149 }
150
151 #[doc = "Operational Amplifier 2 Minus Input Select Register"]
152 #[inline(always)]
153 pub const fn amp2ms(
154 &self,
155 ) -> &'static crate::common::Reg<self::Amp2Ms_SPEC, crate::common::RW> {
156 unsafe {
157 crate::common::Reg::<self::Amp2Ms_SPEC, crate::common::RW>::from_ptr(
158 self._svd2pac_as_ptr().add(13usize),
159 )
160 }
161 }
162
163 #[doc = "Operational Amplifier 2 Plus Input Select Register"]
164 #[inline(always)]
165 pub const fn amp2ps(
166 &self,
167 ) -> &'static crate::common::Reg<self::Amp2Ps_SPEC, crate::common::RW> {
168 unsafe {
169 crate::common::Reg::<self::Amp2Ps_SPEC, crate::common::RW>::from_ptr(
170 self._svd2pac_as_ptr().add(14usize),
171 )
172 }
173 }
174
175 #[doc = "Operational Amplifier Switch Charge Pump Control Register"]
176 #[inline(always)]
177 pub const fn ampcpc(
178 &self,
179 ) -> &'static crate::common::Reg<self::Ampcpc_SPEC, crate::common::RW> {
180 unsafe {
181 crate::common::Reg::<self::Ampcpc_SPEC, crate::common::RW>::from_ptr(
182 self._svd2pac_as_ptr().add(18usize),
183 )
184 }
185 }
186
187 #[doc = "Operational Amplifier User Offset Trimming Enable Register"]
188 #[inline(always)]
189 pub const fn ampuote(
190 &self,
191 ) -> &'static crate::common::Reg<self::Ampuote_SPEC, crate::common::RW> {
192 unsafe {
193 crate::common::Reg::<self::Ampuote_SPEC, crate::common::RW>::from_ptr(
194 self._svd2pac_as_ptr().add(23usize),
195 )
196 }
197 }
198
199 #[doc = "Operational Amplifier 0 Offset Trimming Pch Register"]
200 #[inline(always)]
201 pub const fn amp0otp(
202 &self,
203 ) -> &'static crate::common::Reg<self::Amp0Otp_SPEC, crate::common::RW> {
204 unsafe {
205 crate::common::Reg::<self::Amp0Otp_SPEC, crate::common::RW>::from_ptr(
206 self._svd2pac_as_ptr().add(24usize),
207 )
208 }
209 }
210
211 #[doc = "Operational Amplifier 0 Offset Trimming Nch Register"]
212 #[inline(always)]
213 pub const fn amp0otn(
214 &self,
215 ) -> &'static crate::common::Reg<self::Amp0Otn_SPEC, crate::common::RW> {
216 unsafe {
217 crate::common::Reg::<self::Amp0Otn_SPEC, crate::common::RW>::from_ptr(
218 self._svd2pac_as_ptr().add(25usize),
219 )
220 }
221 }
222
223 #[doc = "Operational Amplifier 1 Offset Trimming Pch Register"]
224 #[inline(always)]
225 pub const fn amp1otp(
226 &self,
227 ) -> &'static crate::common::Reg<self::Amp1Otp_SPEC, crate::common::RW> {
228 unsafe {
229 crate::common::Reg::<self::Amp1Otp_SPEC, crate::common::RW>::from_ptr(
230 self._svd2pac_as_ptr().add(26usize),
231 )
232 }
233 }
234
235 #[doc = "Operational Amplifier 1 Offset Trimming Nch Register"]
236 #[inline(always)]
237 pub const fn amp1otn(
238 &self,
239 ) -> &'static crate::common::Reg<self::Amp1Otn_SPEC, crate::common::RW> {
240 unsafe {
241 crate::common::Reg::<self::Amp1Otn_SPEC, crate::common::RW>::from_ptr(
242 self._svd2pac_as_ptr().add(27usize),
243 )
244 }
245 }
246
247 #[doc = "Operational Amplifier 2 Offset Trimming Pch Register"]
248 #[inline(always)]
249 pub const fn amp2otp(
250 &self,
251 ) -> &'static crate::common::Reg<self::Amp2Otp_SPEC, crate::common::RW> {
252 unsafe {
253 crate::common::Reg::<self::Amp2Otp_SPEC, crate::common::RW>::from_ptr(
254 self._svd2pac_as_ptr().add(28usize),
255 )
256 }
257 }
258
259 #[doc = "Operational Amplifier 2 Offset Trimming Nch Register"]
260 #[inline(always)]
261 pub const fn amp2otn(
262 &self,
263 ) -> &'static crate::common::Reg<self::Amp2Otn_SPEC, crate::common::RW> {
264 unsafe {
265 crate::common::Reg::<self::Amp2Otn_SPEC, crate::common::RW>::from_ptr(
266 self._svd2pac_as_ptr().add(29usize),
267 )
268 }
269 }
270}
271#[doc(hidden)]
272#[derive(Copy, Clone, Eq, PartialEq)]
273pub struct Ampmc_SPEC;
274impl crate::sealed::RegSpec for Ampmc_SPEC {
275 type DataType = u8;
276}
277
278#[doc = "Operational amplifier mode control register"]
279pub type Ampmc = crate::RegValueT<Ampmc_SPEC>;
280
281impl Ampmc {
282 #[doc = "OPAMP Operation mode selection"]
283 #[inline(always)]
284 pub fn ampsp(
285 self,
286 ) -> crate::common::RegisterField<
287 6,
288 0x3,
289 1,
290 0,
291 ampmc::Ampsp,
292 ampmc::Ampsp,
293 Ampmc_SPEC,
294 crate::common::RW,
295 > {
296 crate::common::RegisterField::<
297 6,
298 0x3,
299 1,
300 0,
301 ampmc::Ampsp,
302 ampmc::Ampsp,
303 Ampmc_SPEC,
304 crate::common::RW,
305 >::from_register(self, 0)
306 }
307
308 #[doc = "These bits are read as 000000. The write value should be 000000."]
309 #[inline(always)]
310 pub fn reserved(
311 self,
312 ) -> crate::common::RegisterField<0, 0x3f, 1, 0, u8, u8, Ampmc_SPEC, crate::common::RW> {
313 crate::common::RegisterField::<0,0x3f,1,0,u8,u8,Ampmc_SPEC,crate::common::RW>::from_register(self,0)
314 }
315}
316impl ::core::default::Default for Ampmc {
317 #[inline(always)]
318 fn default() -> Ampmc {
319 <crate::RegValueT<Ampmc_SPEC> as RegisterValue<_>>::new(0)
320 }
321}
322pub mod ampmc {
323
324 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
325 pub struct Ampsp_SPEC;
326 pub type Ampsp = crate::EnumBitfieldStruct<u8, Ampsp_SPEC>;
327 impl Ampsp {
328 #[doc = "Low-power mode (Low-speed)"]
329 pub const _00: Self = Self::new(0);
330
331 #[doc = "Low-power mode (Low-speed)"]
332 pub const _10: Self = Self::new(2);
333
334 #[doc = "Middle-speed mode"]
335 pub const _01: Self = Self::new(1);
336
337 #[doc = "High-speed mode"]
338 pub const _11: Self = Self::new(3);
339 }
340}
341#[doc(hidden)]
342#[derive(Copy, Clone, Eq, PartialEq)]
343pub struct Amptrm_SPEC;
344impl crate::sealed::RegSpec for Amptrm_SPEC {
345 type DataType = u8;
346}
347
348#[doc = "Operational amplifier trigger mode control register"]
349pub type Amptrm = crate::RegValueT<Amptrm_SPEC>;
350
351impl Amptrm {
352 #[doc = "These bits are read as 00. The write value should be 00."]
353 #[inline(always)]
354 pub fn reserved(
355 self,
356 ) -> crate::common::RegisterField<6, 0x3, 1, 0, u8, u8, Amptrm_SPEC, crate::common::RW> {
357 crate::common::RegisterField::<6,0x3,1,0,u8,u8,Amptrm_SPEC,crate::common::RW>::from_register(self,0)
358 }
359
360 #[doc = "OPAMP function activation/stop trigger control"]
361 #[inline(always)]
362 pub fn amptrm21(
363 self,
364 ) -> crate::common::RegisterField<
365 5,
366 0x1,
367 1,
368 0,
369 amptrm::Amptrm21,
370 amptrm::Amptrm21,
371 Amptrm_SPEC,
372 crate::common::RW,
373 > {
374 crate::common::RegisterField::<
375 5,
376 0x1,
377 1,
378 0,
379 amptrm::Amptrm21,
380 amptrm::Amptrm21,
381 Amptrm_SPEC,
382 crate::common::RW,
383 >::from_register(self, 0)
384 }
385
386 #[doc = "OPAMP function activation/stop trigger control"]
387 #[inline(always)]
388 pub fn amptrm20(
389 self,
390 ) -> crate::common::RegisterField<
391 4,
392 0x1,
393 1,
394 0,
395 amptrm::Amptrm20,
396 amptrm::Amptrm20,
397 Amptrm_SPEC,
398 crate::common::RW,
399 > {
400 crate::common::RegisterField::<
401 4,
402 0x1,
403 1,
404 0,
405 amptrm::Amptrm20,
406 amptrm::Amptrm20,
407 Amptrm_SPEC,
408 crate::common::RW,
409 >::from_register(self, 0)
410 }
411
412 #[doc = "OPAMP function activation/stop trigger control"]
413 #[inline(always)]
414 pub fn amptrm11(
415 self,
416 ) -> crate::common::RegisterField<
417 3,
418 0x1,
419 1,
420 0,
421 amptrm::Amptrm11,
422 amptrm::Amptrm11,
423 Amptrm_SPEC,
424 crate::common::RW,
425 > {
426 crate::common::RegisterField::<
427 3,
428 0x1,
429 1,
430 0,
431 amptrm::Amptrm11,
432 amptrm::Amptrm11,
433 Amptrm_SPEC,
434 crate::common::RW,
435 >::from_register(self, 0)
436 }
437
438 #[doc = "OPAMP function activation/stop trigger control"]
439 #[inline(always)]
440 pub fn amptrm10(
441 self,
442 ) -> crate::common::RegisterField<
443 2,
444 0x1,
445 1,
446 0,
447 amptrm::Amptrm10,
448 amptrm::Amptrm10,
449 Amptrm_SPEC,
450 crate::common::RW,
451 > {
452 crate::common::RegisterField::<
453 2,
454 0x1,
455 1,
456 0,
457 amptrm::Amptrm10,
458 amptrm::Amptrm10,
459 Amptrm_SPEC,
460 crate::common::RW,
461 >::from_register(self, 0)
462 }
463
464 #[doc = "OPAMP function activation/stop trigger control"]
465 #[inline(always)]
466 pub fn amptrm01(
467 self,
468 ) -> crate::common::RegisterField<
469 1,
470 0x1,
471 1,
472 0,
473 amptrm::Amptrm01,
474 amptrm::Amptrm01,
475 Amptrm_SPEC,
476 crate::common::RW,
477 > {
478 crate::common::RegisterField::<
479 1,
480 0x1,
481 1,
482 0,
483 amptrm::Amptrm01,
484 amptrm::Amptrm01,
485 Amptrm_SPEC,
486 crate::common::RW,
487 >::from_register(self, 0)
488 }
489
490 #[doc = "OPAMP function activation/stop trigger control"]
491 #[inline(always)]
492 pub fn amptrm00(
493 self,
494 ) -> crate::common::RegisterField<
495 0,
496 0x1,
497 1,
498 0,
499 amptrm::Amptrm00,
500 amptrm::Amptrm00,
501 Amptrm_SPEC,
502 crate::common::RW,
503 > {
504 crate::common::RegisterField::<
505 0,
506 0x1,
507 1,
508 0,
509 amptrm::Amptrm00,
510 amptrm::Amptrm00,
511 Amptrm_SPEC,
512 crate::common::RW,
513 >::from_register(self, 0)
514 }
515}
516impl ::core::default::Default for Amptrm {
517 #[inline(always)]
518 fn default() -> Amptrm {
519 <crate::RegValueT<Amptrm_SPEC> as RegisterValue<_>>::new(0)
520 }
521}
522pub mod amptrm {
523
524 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
525 pub struct Amptrm21_SPEC;
526 pub type Amptrm21 = crate::EnumBitfieldStruct<u8, Amptrm21_SPEC>;
527 impl Amptrm21 {
528 #[doc = "Software trigger mode(AMPTRM20=0)/An activation trigger mode(AMPTRM20=1)."]
529 pub const _0: Self = Self::new(0);
530
531 #[doc = "Setting prohibited(AMPTRM20=0)/An activation and A/D trigger mode(AMPTRM20=1)."]
532 pub const _1: Self = Self::new(1);
533 }
534 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
535 pub struct Amptrm20_SPEC;
536 pub type Amptrm20 = crate::EnumBitfieldStruct<u8, Amptrm20_SPEC>;
537 impl Amptrm20 {
538 #[doc = "Software trigger mode(AMPTRM21=0)/Setting prohibited(AMPTRM21=1)."]
539 pub const _0: Self = Self::new(0);
540
541 #[doc = "An activation trigger mode(AMPTRM21=0)/An activation and A/D trigger mode(AMPTRM21=1)."]
542 pub const _1: Self = Self::new(1);
543 }
544 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
545 pub struct Amptrm11_SPEC;
546 pub type Amptrm11 = crate::EnumBitfieldStruct<u8, Amptrm11_SPEC>;
547 impl Amptrm11 {
548 #[doc = "Software trigger mode(AMPTRM10=0)/An activation trigger mode(AMPTRM10=1)."]
549 pub const _0: Self = Self::new(0);
550
551 #[doc = "Setting prohibited(AMPTRM10=0)/An activation and A/D trigger mode(AMPTRM10=1)."]
552 pub const _1: Self = Self::new(1);
553 }
554 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
555 pub struct Amptrm10_SPEC;
556 pub type Amptrm10 = crate::EnumBitfieldStruct<u8, Amptrm10_SPEC>;
557 impl Amptrm10 {
558 #[doc = "Software trigger mode(AMPTRM11=0)/Setting prohibited(AMPTRM11=1)."]
559 pub const _0: Self = Self::new(0);
560
561 #[doc = "An activation trigger mode(AMPTRM11=0)/An activation and A/D trigger mode(AMPTRM11=1)."]
562 pub const _1: Self = Self::new(1);
563 }
564 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
565 pub struct Amptrm01_SPEC;
566 pub type Amptrm01 = crate::EnumBitfieldStruct<u8, Amptrm01_SPEC>;
567 impl Amptrm01 {
568 #[doc = "Software trigger mode(AMPTRM00=0)/An activation trigger mode(AMPTRM00=1)."]
569 pub const _0: Self = Self::new(0);
570
571 #[doc = "Setting prohibited(AMPTRM00=0)/An activation and A/D trigger mode(AMPTRM00=1)."]
572 pub const _1: Self = Self::new(1);
573 }
574 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
575 pub struct Amptrm00_SPEC;
576 pub type Amptrm00 = crate::EnumBitfieldStruct<u8, Amptrm00_SPEC>;
577 impl Amptrm00 {
578 #[doc = "Software trigger mode(AMPTRM01=0)/Setting prohibited(AMPTRM01=1)."]
579 pub const _0: Self = Self::new(0);
580
581 #[doc = "An activation trigger mode(AMPTRM01=0)/An activation and A/D trigger mode(AMPTRM01=1)."]
582 pub const _1: Self = Self::new(1);
583 }
584}
585#[doc(hidden)]
586#[derive(Copy, Clone, Eq, PartialEq)]
587pub struct Amptrs_SPEC;
588impl crate::sealed::RegSpec for Amptrs_SPEC {
589 type DataType = u8;
590}
591
592#[doc = "Operational Amplifier Activation Trigger Select Register"]
593pub type Amptrs = crate::RegValueT<Amptrs_SPEC>;
594
595impl Amptrs {
596 #[doc = "Activation Trigger SelectionNote: Do not change the value of the AMPTRS register after setting the AMPTRM register."]
597 #[inline(always)]
598 pub fn amptrs(
599 self,
600 ) -> crate::common::RegisterField<
601 0,
602 0x3,
603 1,
604 0,
605 amptrs::Amptrs,
606 amptrs::Amptrs,
607 Amptrs_SPEC,
608 crate::common::RW,
609 > {
610 crate::common::RegisterField::<
611 0,
612 0x3,
613 1,
614 0,
615 amptrs::Amptrs,
616 amptrs::Amptrs,
617 Amptrs_SPEC,
618 crate::common::RW,
619 >::from_register(self, 0)
620 }
621}
622impl ::core::default::Default for Amptrs {
623 #[inline(always)]
624 fn default() -> Amptrs {
625 <crate::RegValueT<Amptrs_SPEC> as RegisterValue<_>>::new(0)
626 }
627}
628pub mod amptrs {
629
630 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
631 pub struct Amptrs_SPEC;
632 pub type Amptrs = crate::EnumBitfieldStruct<u8, Amptrs_SPEC>;
633 impl Amptrs {
634 #[doc = "OPAMPn: OPAMP activation trigger n (n = 0 to 2)"]
635 pub const _00: Self = Self::new(0);
636
637 #[doc = "OPAMPn: OPAMP activation trigger 0 (n = 0, 1), OPAMP2: OPAMP activation trigger 1"]
638 pub const _01: Self = Self::new(1);
639
640 #[doc = "Setting prohibited"]
641 pub const _10: Self = Self::new(2);
642
643 #[doc = "OPAMPn: OPAMP activation trigger 0 (n = 0 to 2)."]
644 pub const _11: Self = Self::new(3);
645 }
646}
647#[doc(hidden)]
648#[derive(Copy, Clone, Eq, PartialEq)]
649pub struct Ampc_SPEC;
650impl crate::sealed::RegSpec for Ampc_SPEC {
651 type DataType = u8;
652}
653
654#[doc = "Operational amplifier control register"]
655pub type Ampc = crate::RegValueT<Ampc_SPEC>;
656
657impl Ampc {
658 #[doc = "Reference Current Circuit Operation Control"]
659 #[inline(always)]
660 pub fn irefe(
661 self,
662 ) -> crate::common::RegisterField<
663 7,
664 0x1,
665 1,
666 0,
667 ampc::Irefe,
668 ampc::Irefe,
669 Ampc_SPEC,
670 crate::common::RW,
671 > {
672 crate::common::RegisterField::<
673 7,
674 0x1,
675 1,
676 0,
677 ampc::Irefe,
678 ampc::Irefe,
679 Ampc_SPEC,
680 crate::common::RW,
681 >::from_register(self, 0)
682 }
683
684 #[doc = "These bits are read as 0000. The write value should be 0000."]
685 #[inline(always)]
686 pub fn reserved(
687 self,
688 ) -> crate::common::RegisterField<3, 0xf, 1, 0, u8, u8, Ampc_SPEC, crate::common::RW> {
689 crate::common::RegisterField::<3,0xf,1,0,u8,u8,Ampc_SPEC,crate::common::RW>::from_register(self,0)
690 }
691
692 #[doc = "Operation control of operational amplifier 2"]
693 #[inline(always)]
694 pub fn ampe2(
695 self,
696 ) -> crate::common::RegisterField<
697 2,
698 0x1,
699 1,
700 0,
701 ampc::Ampe2,
702 ampc::Ampe2,
703 Ampc_SPEC,
704 crate::common::RW,
705 > {
706 crate::common::RegisterField::<
707 2,
708 0x1,
709 1,
710 0,
711 ampc::Ampe2,
712 ampc::Ampe2,
713 Ampc_SPEC,
714 crate::common::RW,
715 >::from_register(self, 0)
716 }
717
718 #[doc = "Operation control of operational amplifier 1"]
719 #[inline(always)]
720 pub fn ampe1(
721 self,
722 ) -> crate::common::RegisterField<
723 1,
724 0x1,
725 1,
726 0,
727 ampc::Ampe1,
728 ampc::Ampe1,
729 Ampc_SPEC,
730 crate::common::RW,
731 > {
732 crate::common::RegisterField::<
733 1,
734 0x1,
735 1,
736 0,
737 ampc::Ampe1,
738 ampc::Ampe1,
739 Ampc_SPEC,
740 crate::common::RW,
741 >::from_register(self, 0)
742 }
743
744 #[doc = "Operation control of operational amplifier 0"]
745 #[inline(always)]
746 pub fn ampe0(
747 self,
748 ) -> crate::common::RegisterField<
749 0,
750 0x1,
751 1,
752 0,
753 ampc::Ampe0,
754 ampc::Ampe0,
755 Ampc_SPEC,
756 crate::common::RW,
757 > {
758 crate::common::RegisterField::<
759 0,
760 0x1,
761 1,
762 0,
763 ampc::Ampe0,
764 ampc::Ampe0,
765 Ampc_SPEC,
766 crate::common::RW,
767 >::from_register(self, 0)
768 }
769}
770impl ::core::default::Default for Ampc {
771 #[inline(always)]
772 fn default() -> Ampc {
773 <crate::RegValueT<Ampc_SPEC> as RegisterValue<_>>::new(0)
774 }
775}
776pub mod ampc {
777
778 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
779 pub struct Irefe_SPEC;
780 pub type Irefe = crate::EnumBitfieldStruct<u8, Irefe_SPEC>;
781 impl Irefe {
782 #[doc = "Reference current circuit is stopped"]
783 pub const _0: Self = Self::new(0);
784
785 #[doc = "Operation of reference current circuit is enabled"]
786 pub const _1: Self = Self::new(1);
787 }
788 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
789 pub struct Ampe2_SPEC;
790 pub type Ampe2 = crate::EnumBitfieldStruct<u8, Ampe2_SPEC>;
791 impl Ampe2 {
792 #[doc = "OPAMP is stopped"]
793 pub const _0: Self = Self::new(0);
794
795 #[doc = "OPAMP is enabled."]
796 pub const _1: Self = Self::new(1);
797 }
798 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
799 pub struct Ampe1_SPEC;
800 pub type Ampe1 = crate::EnumBitfieldStruct<u8, Ampe1_SPEC>;
801 impl Ampe1 {
802 #[doc = "OPAMP is stopped"]
803 pub const _0: Self = Self::new(0);
804
805 #[doc = "OPAMP is enabled."]
806 pub const _1: Self = Self::new(1);
807 }
808 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
809 pub struct Ampe0_SPEC;
810 pub type Ampe0 = crate::EnumBitfieldStruct<u8, Ampe0_SPEC>;
811 impl Ampe0 {
812 #[doc = "OPAMP is stopped"]
813 pub const _0: Self = Self::new(0);
814
815 #[doc = "OPAMP is enabled."]
816 pub const _1: Self = Self::new(1);
817 }
818}
819#[doc(hidden)]
820#[derive(Copy, Clone, Eq, PartialEq)]
821pub struct Ampmon_SPEC;
822impl crate::sealed::RegSpec for Ampmon_SPEC {
823 type DataType = u8;
824}
825
826#[doc = "Operational amplifier monitor register"]
827pub type Ampmon = crate::RegValueT<Ampmon_SPEC>;
828
829impl Ampmon {
830 #[doc = "These bits are read as 00000."]
831 #[inline(always)]
832 pub fn reserved(
833 self,
834 ) -> crate::common::RegisterField<3, 0x1f, 1, 0, u8, u8, Ampmon_SPEC, crate::common::R> {
835 crate::common::RegisterField::<3,0x1f,1,0,u8,u8,Ampmon_SPEC,crate::common::R>::from_register(self,0)
836 }
837
838 #[doc = "OPAMP2 Status"]
839 #[inline(always)]
840 pub fn ampmon2(
841 self,
842 ) -> crate::common::RegisterField<
843 2,
844 0x1,
845 1,
846 0,
847 ampmon::Ampmon2,
848 ampmon::Ampmon2,
849 Ampmon_SPEC,
850 crate::common::R,
851 > {
852 crate::common::RegisterField::<
853 2,
854 0x1,
855 1,
856 0,
857 ampmon::Ampmon2,
858 ampmon::Ampmon2,
859 Ampmon_SPEC,
860 crate::common::R,
861 >::from_register(self, 0)
862 }
863
864 #[doc = "OPAMP1 Status"]
865 #[inline(always)]
866 pub fn ampmon1(
867 self,
868 ) -> crate::common::RegisterField<
869 1,
870 0x1,
871 1,
872 0,
873 ampmon::Ampmon1,
874 ampmon::Ampmon1,
875 Ampmon_SPEC,
876 crate::common::R,
877 > {
878 crate::common::RegisterField::<
879 1,
880 0x1,
881 1,
882 0,
883 ampmon::Ampmon1,
884 ampmon::Ampmon1,
885 Ampmon_SPEC,
886 crate::common::R,
887 >::from_register(self, 0)
888 }
889
890 #[doc = "OPAMP0 Status"]
891 #[inline(always)]
892 pub fn ampmon0(
893 self,
894 ) -> crate::common::RegisterField<
895 0,
896 0x1,
897 1,
898 0,
899 ampmon::Ampmon0,
900 ampmon::Ampmon0,
901 Ampmon_SPEC,
902 crate::common::R,
903 > {
904 crate::common::RegisterField::<
905 0,
906 0x1,
907 1,
908 0,
909 ampmon::Ampmon0,
910 ampmon::Ampmon0,
911 Ampmon_SPEC,
912 crate::common::R,
913 >::from_register(self, 0)
914 }
915}
916impl ::core::default::Default for Ampmon {
917 #[inline(always)]
918 fn default() -> Ampmon {
919 <crate::RegValueT<Ampmon_SPEC> as RegisterValue<_>>::new(0)
920 }
921}
922pub mod ampmon {
923
924 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
925 pub struct Ampmon2_SPEC;
926 pub type Ampmon2 = crate::EnumBitfieldStruct<u8, Ampmon2_SPEC>;
927 impl Ampmon2 {
928 #[doc = "OPAMP is stopped"]
929 pub const _0: Self = Self::new(0);
930
931 #[doc = "OPAMP is operating"]
932 pub const _1: Self = Self::new(1);
933 }
934 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
935 pub struct Ampmon1_SPEC;
936 pub type Ampmon1 = crate::EnumBitfieldStruct<u8, Ampmon1_SPEC>;
937 impl Ampmon1 {
938 #[doc = "OPAMP is stopped"]
939 pub const _0: Self = Self::new(0);
940
941 #[doc = "OPAMP is operating"]
942 pub const _1: Self = Self::new(1);
943 }
944 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
945 pub struct Ampmon0_SPEC;
946 pub type Ampmon0 = crate::EnumBitfieldStruct<u8, Ampmon0_SPEC>;
947 impl Ampmon0 {
948 #[doc = "OPAMP is stopped"]
949 pub const _0: Self = Self::new(0);
950
951 #[doc = "OPAMP is operating"]
952 pub const _1: Self = Self::new(1);
953 }
954}
955#[doc(hidden)]
956#[derive(Copy, Clone, Eq, PartialEq)]
957pub struct Amp0Os_SPEC;
958impl crate::sealed::RegSpec for Amp0Os_SPEC {
959 type DataType = u8;
960}
961
962#[doc = "Operational Amplifier 0 Output Select Register"]
963pub type Amp0Os = crate::RegValueT<Amp0Os_SPEC>;
964
965impl Amp0Os {
966 #[doc = "These bits are read as 0000. The write value should be 0000."]
967 #[inline(always)]
968 pub fn reserved(
969 self,
970 ) -> crate::common::RegisterField<4, 0xf, 1, 0, u8, u8, Amp0Os_SPEC, crate::common::RW> {
971 crate::common::RegisterField::<4,0xf,1,0,u8,u8,Amp0Os_SPEC,crate::common::RW>::from_register(self,0)
972 }
973
974 #[doc = "AMP2+ pin select"]
975 #[inline(always)]
976 pub fn ampos3(
977 self,
978 ) -> crate::common::RegisterField<
979 3,
980 0x1,
981 1,
982 0,
983 amp0os::Ampos3,
984 amp0os::Ampos3,
985 Amp0Os_SPEC,
986 crate::common::RW,
987 > {
988 crate::common::RegisterField::<
989 3,
990 0x1,
991 1,
992 0,
993 amp0os::Ampos3,
994 amp0os::Ampos3,
995 Amp0Os_SPEC,
996 crate::common::RW,
997 >::from_register(self, 0)
998 }
999
1000 #[doc = "AMP2- pin select"]
1001 #[inline(always)]
1002 pub fn ampos2(
1003 self,
1004 ) -> crate::common::RegisterField<
1005 2,
1006 0x1,
1007 1,
1008 0,
1009 amp0os::Ampos2,
1010 amp0os::Ampos2,
1011 Amp0Os_SPEC,
1012 crate::common::RW,
1013 > {
1014 crate::common::RegisterField::<
1015 2,
1016 0x1,
1017 1,
1018 0,
1019 amp0os::Ampos2,
1020 amp0os::Ampos2,
1021 Amp0Os_SPEC,
1022 crate::common::RW,
1023 >::from_register(self, 0)
1024 }
1025
1026 #[doc = "AMP1+ pin select"]
1027 #[inline(always)]
1028 pub fn ampos1(
1029 self,
1030 ) -> crate::common::RegisterField<
1031 1,
1032 0x1,
1033 1,
1034 0,
1035 amp0os::Ampos1,
1036 amp0os::Ampos1,
1037 Amp0Os_SPEC,
1038 crate::common::RW,
1039 > {
1040 crate::common::RegisterField::<
1041 1,
1042 0x1,
1043 1,
1044 0,
1045 amp0os::Ampos1,
1046 amp0os::Ampos1,
1047 Amp0Os_SPEC,
1048 crate::common::RW,
1049 >::from_register(self, 0)
1050 }
1051
1052 #[doc = "AMP1- pin select"]
1053 #[inline(always)]
1054 pub fn ampos0(
1055 self,
1056 ) -> crate::common::RegisterField<
1057 0,
1058 0x1,
1059 1,
1060 0,
1061 amp0os::Ampos0,
1062 amp0os::Ampos0,
1063 Amp0Os_SPEC,
1064 crate::common::RW,
1065 > {
1066 crate::common::RegisterField::<
1067 0,
1068 0x1,
1069 1,
1070 0,
1071 amp0os::Ampos0,
1072 amp0os::Ampos0,
1073 Amp0Os_SPEC,
1074 crate::common::RW,
1075 >::from_register(self, 0)
1076 }
1077}
1078impl ::core::default::Default for Amp0Os {
1079 #[inline(always)]
1080 fn default() -> Amp0Os {
1081 <crate::RegValueT<Amp0Os_SPEC> as RegisterValue<_>>::new(0)
1082 }
1083}
1084pub mod amp0os {
1085
1086 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1087 pub struct Ampos3_SPEC;
1088 pub type Ampos3 = crate::EnumBitfieldStruct<u8, Ampos3_SPEC>;
1089 impl Ampos3 {
1090 #[doc = "AMP2+ pin is not connected to the OPAMP0 output"]
1091 pub const _0: Self = Self::new(0);
1092
1093 #[doc = "AMP2+ pin is connected to the OPAMP0 output"]
1094 pub const _1: Self = Self::new(1);
1095 }
1096 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1097 pub struct Ampos2_SPEC;
1098 pub type Ampos2 = crate::EnumBitfieldStruct<u8, Ampos2_SPEC>;
1099 impl Ampos2 {
1100 #[doc = "AMP2- pin is not connected to the OPAMP0 output"]
1101 pub const _0: Self = Self::new(0);
1102
1103 #[doc = "AMP2- pin is connected to the OPAMP0 output"]
1104 pub const _1: Self = Self::new(1);
1105 }
1106 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1107 pub struct Ampos1_SPEC;
1108 pub type Ampos1 = crate::EnumBitfieldStruct<u8, Ampos1_SPEC>;
1109 impl Ampos1 {
1110 #[doc = "AMP1+ pin is not connected to the OPAMP0 output"]
1111 pub const _0: Self = Self::new(0);
1112
1113 #[doc = "AMP1+ pin is connected to the OPAMP0 output"]
1114 pub const _1: Self = Self::new(1);
1115 }
1116 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1117 pub struct Ampos0_SPEC;
1118 pub type Ampos0 = crate::EnumBitfieldStruct<u8, Ampos0_SPEC>;
1119 impl Ampos0 {
1120 #[doc = "AMP1- pin is not connected to the OPAMP0 output"]
1121 pub const _0: Self = Self::new(0);
1122
1123 #[doc = "AMP1- pin is connected to the OPAMP0 output"]
1124 pub const _1: Self = Self::new(1);
1125 }
1126}
1127#[doc(hidden)]
1128#[derive(Copy, Clone, Eq, PartialEq)]
1129pub struct Amp0Ms_SPEC;
1130impl crate::sealed::RegSpec for Amp0Ms_SPEC {
1131 type DataType = u8;
1132}
1133
1134#[doc = "Operational Amplifier 0 Minus Input Select Register"]
1135pub type Amp0Ms = crate::RegValueT<Amp0Ms_SPEC>;
1136
1137impl Amp0Ms {
1138 #[doc = "OPAMP0 output select"]
1139 #[inline(always)]
1140 pub fn ampms7(
1141 self,
1142 ) -> crate::common::RegisterField<
1143 7,
1144 0x1,
1145 1,
1146 0,
1147 amp0ms::Ampms7,
1148 amp0ms::Ampms7,
1149 Amp0Ms_SPEC,
1150 crate::common::RW,
1151 > {
1152 crate::common::RegisterField::<
1153 7,
1154 0x1,
1155 1,
1156 0,
1157 amp0ms::Ampms7,
1158 amp0ms::Ampms7,
1159 Amp0Ms_SPEC,
1160 crate::common::RW,
1161 >::from_register(self, 0)
1162 }
1163
1164 #[doc = "These bits are read as 00. The write value should be 00."]
1165 #[inline(always)]
1166 pub fn reserved(
1167 self,
1168 ) -> crate::common::RegisterField<5, 0x3, 1, 0, u8, u8, Amp0Ms_SPEC, crate::common::RW> {
1169 crate::common::RegisterField::<5,0x3,1,0,u8,u8,Amp0Ms_SPEC,crate::common::RW>::from_register(self,0)
1170 }
1171
1172 #[doc = "AMP2- pin select"]
1173 #[inline(always)]
1174 pub fn ampms4(
1175 self,
1176 ) -> crate::common::RegisterField<
1177 4,
1178 0x1,
1179 1,
1180 0,
1181 amp0ms::Ampms4,
1182 amp0ms::Ampms4,
1183 Amp0Ms_SPEC,
1184 crate::common::RW,
1185 > {
1186 crate::common::RegisterField::<
1187 4,
1188 0x1,
1189 1,
1190 0,
1191 amp0ms::Ampms4,
1192 amp0ms::Ampms4,
1193 Amp0Ms_SPEC,
1194 crate::common::RW,
1195 >::from_register(self, 0)
1196 }
1197
1198 #[doc = "AMP1+ pin select"]
1199 #[inline(always)]
1200 pub fn ampms3(
1201 self,
1202 ) -> crate::common::RegisterField<
1203 3,
1204 0x1,
1205 1,
1206 0,
1207 amp0ms::Ampms3,
1208 amp0ms::Ampms3,
1209 Amp0Ms_SPEC,
1210 crate::common::RW,
1211 > {
1212 crate::common::RegisterField::<
1213 3,
1214 0x1,
1215 1,
1216 0,
1217 amp0ms::Ampms3,
1218 amp0ms::Ampms3,
1219 Amp0Ms_SPEC,
1220 crate::common::RW,
1221 >::from_register(self, 0)
1222 }
1223
1224 #[doc = "AMP1- pin select"]
1225 #[inline(always)]
1226 pub fn ampms2(
1227 self,
1228 ) -> crate::common::RegisterField<
1229 2,
1230 0x1,
1231 1,
1232 0,
1233 amp0ms::Ampms2,
1234 amp0ms::Ampms2,
1235 Amp0Ms_SPEC,
1236 crate::common::RW,
1237 > {
1238 crate::common::RegisterField::<
1239 2,
1240 0x1,
1241 1,
1242 0,
1243 amp0ms::Ampms2,
1244 amp0ms::Ampms2,
1245 Amp0Ms_SPEC,
1246 crate::common::RW,
1247 >::from_register(self, 0)
1248 }
1249
1250 #[doc = "AMP0+ pin select"]
1251 #[inline(always)]
1252 pub fn ampms1(
1253 self,
1254 ) -> crate::common::RegisterField<
1255 1,
1256 0x1,
1257 1,
1258 0,
1259 amp0ms::Ampms1,
1260 amp0ms::Ampms1,
1261 Amp0Ms_SPEC,
1262 crate::common::RW,
1263 > {
1264 crate::common::RegisterField::<
1265 1,
1266 0x1,
1267 1,
1268 0,
1269 amp0ms::Ampms1,
1270 amp0ms::Ampms1,
1271 Amp0Ms_SPEC,
1272 crate::common::RW,
1273 >::from_register(self, 0)
1274 }
1275
1276 #[doc = "AMP0- pin select"]
1277 #[inline(always)]
1278 pub fn ampms0(
1279 self,
1280 ) -> crate::common::RegisterField<
1281 0,
1282 0x1,
1283 1,
1284 0,
1285 amp0ms::Ampms0,
1286 amp0ms::Ampms0,
1287 Amp0Ms_SPEC,
1288 crate::common::RW,
1289 > {
1290 crate::common::RegisterField::<
1291 0,
1292 0x1,
1293 1,
1294 0,
1295 amp0ms::Ampms0,
1296 amp0ms::Ampms0,
1297 Amp0Ms_SPEC,
1298 crate::common::RW,
1299 >::from_register(self, 0)
1300 }
1301}
1302impl ::core::default::Default for Amp0Ms {
1303 #[inline(always)]
1304 fn default() -> Amp0Ms {
1305 <crate::RegValueT<Amp0Ms_SPEC> as RegisterValue<_>>::new(0)
1306 }
1307}
1308pub mod amp0ms {
1309
1310 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1311 pub struct Ampms7_SPEC;
1312 pub type Ampms7 = crate::EnumBitfieldStruct<u8, Ampms7_SPEC>;
1313 impl Ampms7 {
1314 #[doc = "OPAMP0 output is not connected to the AMP0 minus input"]
1315 pub const _0: Self = Self::new(0);
1316
1317 #[doc = "OPAMP0 output is connected to the AMP0 minus input"]
1318 pub const _1: Self = Self::new(1);
1319 }
1320 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1321 pub struct Ampms4_SPEC;
1322 pub type Ampms4 = crate::EnumBitfieldStruct<u8, Ampms4_SPEC>;
1323 impl Ampms4 {
1324 #[doc = "AMP2- pin is not connected to the AMP0 minus input"]
1325 pub const _0: Self = Self::new(0);
1326
1327 #[doc = "AMP2- pin is connected to the AMP0 minus input"]
1328 pub const _1: Self = Self::new(1);
1329 }
1330 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1331 pub struct Ampms3_SPEC;
1332 pub type Ampms3 = crate::EnumBitfieldStruct<u8, Ampms3_SPEC>;
1333 impl Ampms3 {
1334 #[doc = "AMP1+ pin is not connected to the AMP0 minus input"]
1335 pub const _0: Self = Self::new(0);
1336
1337 #[doc = "AMP1+ pin is connected to the AMP0 minus input"]
1338 pub const _1: Self = Self::new(1);
1339 }
1340 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1341 pub struct Ampms2_SPEC;
1342 pub type Ampms2 = crate::EnumBitfieldStruct<u8, Ampms2_SPEC>;
1343 impl Ampms2 {
1344 #[doc = "AMP1- pin is not connected to the AMP0 minus input"]
1345 pub const _0: Self = Self::new(0);
1346
1347 #[doc = "AMP1- pin is connected to the AMP0 minus input"]
1348 pub const _1: Self = Self::new(1);
1349 }
1350 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1351 pub struct Ampms1_SPEC;
1352 pub type Ampms1 = crate::EnumBitfieldStruct<u8, Ampms1_SPEC>;
1353 impl Ampms1 {
1354 #[doc = "AMP0+ pin is not connected to the AMP0 minus input"]
1355 pub const _0: Self = Self::new(0);
1356
1357 #[doc = "AMP0+ pin is connected to the AMP0 minus input"]
1358 pub const _1: Self = Self::new(1);
1359 }
1360 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1361 pub struct Ampms0_SPEC;
1362 pub type Ampms0 = crate::EnumBitfieldStruct<u8, Ampms0_SPEC>;
1363 impl Ampms0 {
1364 #[doc = "AMP0- pin is not connected to the AMP0 minus input"]
1365 pub const _0: Self = Self::new(0);
1366
1367 #[doc = "AMP0- pin is connected to the AMP0 minus input"]
1368 pub const _1: Self = Self::new(1);
1369 }
1370}
1371#[doc(hidden)]
1372#[derive(Copy, Clone, Eq, PartialEq)]
1373pub struct Amp0Ps_SPEC;
1374impl crate::sealed::RegSpec for Amp0Ps_SPEC {
1375 type DataType = u8;
1376}
1377
1378#[doc = "Operational Amplifier 0 Plus Input Select Register"]
1379pub type Amp0Ps = crate::RegValueT<Amp0Ps_SPEC>;
1380
1381impl Amp0Ps {
1382 #[doc = "DAC12 output select"]
1383 #[inline(always)]
1384 pub fn ampms7(
1385 self,
1386 ) -> crate::common::RegisterField<
1387 7,
1388 0x1,
1389 1,
1390 0,
1391 amp0ps::Ampms7,
1392 amp0ps::Ampms7,
1393 Amp0Ps_SPEC,
1394 crate::common::RW,
1395 > {
1396 crate::common::RegisterField::<
1397 7,
1398 0x1,
1399 1,
1400 0,
1401 amp0ps::Ampms7,
1402 amp0ps::Ampms7,
1403 Amp0Ps_SPEC,
1404 crate::common::RW,
1405 >::from_register(self, 0)
1406 }
1407
1408 #[doc = "These bits are read as 000. The write value should be 000."]
1409 #[inline(always)]
1410 pub fn reserved(
1411 self,
1412 ) -> crate::common::RegisterField<4, 0x7, 1, 0, u8, u8, Amp0Ps_SPEC, crate::common::RW> {
1413 crate::common::RegisterField::<4,0x7,1,0,u8,u8,Amp0Ps_SPEC,crate::common::RW>::from_register(self,0)
1414 }
1415
1416 #[doc = "AMP2+ pin select"]
1417 #[inline(always)]
1418 pub fn ampps3(
1419 self,
1420 ) -> crate::common::RegisterField<
1421 3,
1422 0x1,
1423 1,
1424 0,
1425 amp0ps::Ampps3,
1426 amp0ps::Ampps3,
1427 Amp0Ps_SPEC,
1428 crate::common::RW,
1429 > {
1430 crate::common::RegisterField::<
1431 3,
1432 0x1,
1433 1,
1434 0,
1435 amp0ps::Ampps3,
1436 amp0ps::Ampps3,
1437 Amp0Ps_SPEC,
1438 crate::common::RW,
1439 >::from_register(self, 0)
1440 }
1441
1442 #[doc = "AMP1+pin select"]
1443 #[inline(always)]
1444 pub fn ampps2(
1445 self,
1446 ) -> crate::common::RegisterField<
1447 2,
1448 0x1,
1449 1,
1450 0,
1451 amp0ps::Ampps2,
1452 amp0ps::Ampps2,
1453 Amp0Ps_SPEC,
1454 crate::common::RW,
1455 > {
1456 crate::common::RegisterField::<
1457 2,
1458 0x1,
1459 1,
1460 0,
1461 amp0ps::Ampps2,
1462 amp0ps::Ampps2,
1463 Amp0Ps_SPEC,
1464 crate::common::RW,
1465 >::from_register(self, 0)
1466 }
1467
1468 #[doc = "AMP1- pin select"]
1469 #[inline(always)]
1470 pub fn ampps1(
1471 self,
1472 ) -> crate::common::RegisterField<
1473 1,
1474 0x1,
1475 1,
1476 0,
1477 amp0ps::Ampps1,
1478 amp0ps::Ampps1,
1479 Amp0Ps_SPEC,
1480 crate::common::RW,
1481 > {
1482 crate::common::RegisterField::<
1483 1,
1484 0x1,
1485 1,
1486 0,
1487 amp0ps::Ampps1,
1488 amp0ps::Ampps1,
1489 Amp0Ps_SPEC,
1490 crate::common::RW,
1491 >::from_register(self, 0)
1492 }
1493
1494 #[doc = "AMP0+ pin select"]
1495 #[inline(always)]
1496 pub fn ampps0(
1497 self,
1498 ) -> crate::common::RegisterField<
1499 0,
1500 0x1,
1501 1,
1502 0,
1503 amp0ps::Ampps0,
1504 amp0ps::Ampps0,
1505 Amp0Ps_SPEC,
1506 crate::common::RW,
1507 > {
1508 crate::common::RegisterField::<
1509 0,
1510 0x1,
1511 1,
1512 0,
1513 amp0ps::Ampps0,
1514 amp0ps::Ampps0,
1515 Amp0Ps_SPEC,
1516 crate::common::RW,
1517 >::from_register(self, 0)
1518 }
1519}
1520impl ::core::default::Default for Amp0Ps {
1521 #[inline(always)]
1522 fn default() -> Amp0Ps {
1523 <crate::RegValueT<Amp0Ps_SPEC> as RegisterValue<_>>::new(0)
1524 }
1525}
1526pub mod amp0ps {
1527
1528 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1529 pub struct Ampms7_SPEC;
1530 pub type Ampms7 = crate::EnumBitfieldStruct<u8, Ampms7_SPEC>;
1531 impl Ampms7 {
1532 #[doc = "DAC12 output is not connected to the AMP0 plus input"]
1533 pub const _0: Self = Self::new(0);
1534
1535 #[doc = "DAC12 output is connected to the AMP0 plus input"]
1536 pub const _1: Self = Self::new(1);
1537 }
1538 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1539 pub struct Ampps3_SPEC;
1540 pub type Ampps3 = crate::EnumBitfieldStruct<u8, Ampps3_SPEC>;
1541 impl Ampps3 {
1542 #[doc = "AMP2+ pin is not connected to the AMP0 plus input"]
1543 pub const _0: Self = Self::new(0);
1544
1545 #[doc = "AMP2+ pin is connected to the AMP0 plus input"]
1546 pub const _1: Self = Self::new(1);
1547 }
1548 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1549 pub struct Ampps2_SPEC;
1550 pub type Ampps2 = crate::EnumBitfieldStruct<u8, Ampps2_SPEC>;
1551 impl Ampps2 {
1552 #[doc = "AMP1+ pin is not connected to the AMP0 plus input"]
1553 pub const _0: Self = Self::new(0);
1554
1555 #[doc = "AMP1+ pin is connected to the AMP0 plus input"]
1556 pub const _1: Self = Self::new(1);
1557 }
1558 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1559 pub struct Ampps1_SPEC;
1560 pub type Ampps1 = crate::EnumBitfieldStruct<u8, Ampps1_SPEC>;
1561 impl Ampps1 {
1562 #[doc = "AMP1- pin is not connected to the AMP0 plus input"]
1563 pub const _0: Self = Self::new(0);
1564
1565 #[doc = "AMP1- pin is connected to the AMP0 plus input"]
1566 pub const _1: Self = Self::new(1);
1567 }
1568 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1569 pub struct Ampps0_SPEC;
1570 pub type Ampps0 = crate::EnumBitfieldStruct<u8, Ampps0_SPEC>;
1571 impl Ampps0 {
1572 #[doc = "AMP0+ pin is not connected to the AMP0 plus input"]
1573 pub const _0: Self = Self::new(0);
1574
1575 #[doc = "AMP0+ pin is connected to the AMP0 plus input"]
1576 pub const _1: Self = Self::new(1);
1577 }
1578}
1579#[doc(hidden)]
1580#[derive(Copy, Clone, Eq, PartialEq)]
1581pub struct Amp1Ms_SPEC;
1582impl crate::sealed::RegSpec for Amp1Ms_SPEC {
1583 type DataType = u8;
1584}
1585
1586#[doc = "Operational Amplifier 1 Minus Input Select Register"]
1587pub type Amp1Ms = crate::RegValueT<Amp1Ms_SPEC>;
1588
1589impl Amp1Ms {
1590 #[doc = "OPAMP1 output select"]
1591 #[inline(always)]
1592 pub fn ampms7(
1593 self,
1594 ) -> crate::common::RegisterField<
1595 7,
1596 0x1,
1597 1,
1598 0,
1599 amp1ms::Ampms7,
1600 amp1ms::Ampms7,
1601 Amp1Ms_SPEC,
1602 crate::common::RW,
1603 > {
1604 crate::common::RegisterField::<
1605 7,
1606 0x1,
1607 1,
1608 0,
1609 amp1ms::Ampms7,
1610 amp1ms::Ampms7,
1611 Amp1Ms_SPEC,
1612 crate::common::RW,
1613 >::from_register(self, 0)
1614 }
1615
1616 #[doc = "These bits are read as 000000. The write value should be 000000."]
1617 #[inline(always)]
1618 pub fn reserved(
1619 self,
1620 ) -> crate::common::RegisterField<1, 0x3f, 1, 0, u8, u8, Amp1Ms_SPEC, crate::common::RW> {
1621 crate::common::RegisterField::<1,0x3f,1,0,u8,u8,Amp1Ms_SPEC,crate::common::RW>::from_register(self,0)
1622 }
1623
1624 #[doc = "AMP1- pin select"]
1625 #[inline(always)]
1626 pub fn ampms0(
1627 self,
1628 ) -> crate::common::RegisterField<
1629 0,
1630 0x1,
1631 1,
1632 0,
1633 amp1ms::Ampms0,
1634 amp1ms::Ampms0,
1635 Amp1Ms_SPEC,
1636 crate::common::RW,
1637 > {
1638 crate::common::RegisterField::<
1639 0,
1640 0x1,
1641 1,
1642 0,
1643 amp1ms::Ampms0,
1644 amp1ms::Ampms0,
1645 Amp1Ms_SPEC,
1646 crate::common::RW,
1647 >::from_register(self, 0)
1648 }
1649}
1650impl ::core::default::Default for Amp1Ms {
1651 #[inline(always)]
1652 fn default() -> Amp1Ms {
1653 <crate::RegValueT<Amp1Ms_SPEC> as RegisterValue<_>>::new(0)
1654 }
1655}
1656pub mod amp1ms {
1657
1658 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1659 pub struct Ampms7_SPEC;
1660 pub type Ampms7 = crate::EnumBitfieldStruct<u8, Ampms7_SPEC>;
1661 impl Ampms7 {
1662 #[doc = "OPAMP1 output is not connected to the AMP1 minus input"]
1663 pub const _0: Self = Self::new(0);
1664
1665 #[doc = "OPAMP1 output is connected to the AMP1 minus input"]
1666 pub const _1: Self = Self::new(1);
1667 }
1668 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1669 pub struct Ampms0_SPEC;
1670 pub type Ampms0 = crate::EnumBitfieldStruct<u8, Ampms0_SPEC>;
1671 impl Ampms0 {
1672 #[doc = "AMP1- pin is not connected to the AMP1 minus input"]
1673 pub const _0: Self = Self::new(0);
1674
1675 #[doc = "AMP1- pin is connected to the AMP1 minus input"]
1676 pub const _1: Self = Self::new(1);
1677 }
1678}
1679#[doc(hidden)]
1680#[derive(Copy, Clone, Eq, PartialEq)]
1681pub struct Amp1Ps_SPEC;
1682impl crate::sealed::RegSpec for Amp1Ps_SPEC {
1683 type DataType = u8;
1684}
1685
1686#[doc = "Operational Amplifier 1 Plus Input Select Register"]
1687pub type Amp1Ps = crate::RegValueT<Amp1Ps_SPEC>;
1688
1689impl Amp1Ps {
1690 #[doc = "OPAMP2 output select"]
1691 #[inline(always)]
1692 pub fn ampms7(
1693 self,
1694 ) -> crate::common::RegisterField<
1695 7,
1696 0x1,
1697 1,
1698 0,
1699 amp1ps::Ampms7,
1700 amp1ps::Ampms7,
1701 Amp1Ps_SPEC,
1702 crate::common::RW,
1703 > {
1704 crate::common::RegisterField::<
1705 7,
1706 0x1,
1707 1,
1708 0,
1709 amp1ps::Ampms7,
1710 amp1ps::Ampms7,
1711 Amp1Ps_SPEC,
1712 crate::common::RW,
1713 >::from_register(self, 0)
1714 }
1715
1716 #[doc = "These bits are read as 000. The write value should be 000."]
1717 #[inline(always)]
1718 pub fn reserved(
1719 self,
1720 ) -> crate::common::RegisterField<4, 0x7, 1, 0, u8, u8, Amp1Ps_SPEC, crate::common::RW> {
1721 crate::common::RegisterField::<4,0x7,1,0,u8,u8,Amp1Ps_SPEC,crate::common::RW>::from_register(self,0)
1722 }
1723
1724 #[doc = "AMP2+ pin select"]
1725 #[inline(always)]
1726 pub fn ampps3(
1727 self,
1728 ) -> crate::common::RegisterField<
1729 3,
1730 0x1,
1731 1,
1732 0,
1733 amp1ps::Ampps3,
1734 amp1ps::Ampps3,
1735 Amp1Ps_SPEC,
1736 crate::common::RW,
1737 > {
1738 crate::common::RegisterField::<
1739 3,
1740 0x1,
1741 1,
1742 0,
1743 amp1ps::Ampps3,
1744 amp1ps::Ampps3,
1745 Amp1Ps_SPEC,
1746 crate::common::RW,
1747 >::from_register(self, 0)
1748 }
1749
1750 #[doc = "AMP2- pin select"]
1751 #[inline(always)]
1752 pub fn ampps2(
1753 self,
1754 ) -> crate::common::RegisterField<
1755 2,
1756 0x1,
1757 1,
1758 0,
1759 amp1ps::Ampps2,
1760 amp1ps::Ampps2,
1761 Amp1Ps_SPEC,
1762 crate::common::RW,
1763 > {
1764 crate::common::RegisterField::<
1765 2,
1766 0x1,
1767 1,
1768 0,
1769 amp1ps::Ampps2,
1770 amp1ps::Ampps2,
1771 Amp1Ps_SPEC,
1772 crate::common::RW,
1773 >::from_register(self, 0)
1774 }
1775
1776 #[doc = "AMP1+ pin select"]
1777 #[inline(always)]
1778 pub fn ampps1(
1779 self,
1780 ) -> crate::common::RegisterField<
1781 1,
1782 0x1,
1783 1,
1784 0,
1785 amp1ps::Ampps1,
1786 amp1ps::Ampps1,
1787 Amp1Ps_SPEC,
1788 crate::common::RW,
1789 > {
1790 crate::common::RegisterField::<
1791 1,
1792 0x1,
1793 1,
1794 0,
1795 amp1ps::Ampps1,
1796 amp1ps::Ampps1,
1797 Amp1Ps_SPEC,
1798 crate::common::RW,
1799 >::from_register(self, 0)
1800 }
1801
1802 #[doc = "AMP1- pin select"]
1803 #[inline(always)]
1804 pub fn ampps0(
1805 self,
1806 ) -> crate::common::RegisterField<
1807 0,
1808 0x1,
1809 1,
1810 0,
1811 amp1ps::Ampps0,
1812 amp1ps::Ampps0,
1813 Amp1Ps_SPEC,
1814 crate::common::RW,
1815 > {
1816 crate::common::RegisterField::<
1817 0,
1818 0x1,
1819 1,
1820 0,
1821 amp1ps::Ampps0,
1822 amp1ps::Ampps0,
1823 Amp1Ps_SPEC,
1824 crate::common::RW,
1825 >::from_register(self, 0)
1826 }
1827}
1828impl ::core::default::Default for Amp1Ps {
1829 #[inline(always)]
1830 fn default() -> Amp1Ps {
1831 <crate::RegValueT<Amp1Ps_SPEC> as RegisterValue<_>>::new(0)
1832 }
1833}
1834pub mod amp1ps {
1835
1836 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1837 pub struct Ampms7_SPEC;
1838 pub type Ampms7 = crate::EnumBitfieldStruct<u8, Ampms7_SPEC>;
1839 impl Ampms7 {
1840 #[doc = "OPAMP2 output is not connected to the AMP2 minus input"]
1841 pub const _0: Self = Self::new(0);
1842
1843 #[doc = "OPAMP2 output is connected to the AMP2 minus input"]
1844 pub const _1: Self = Self::new(1);
1845 }
1846 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1847 pub struct Ampps3_SPEC;
1848 pub type Ampps3 = crate::EnumBitfieldStruct<u8, Ampps3_SPEC>;
1849 impl Ampps3 {
1850 #[doc = "AMP2+ pin is not connected to the AMP1 plus input"]
1851 pub const _0: Self = Self::new(0);
1852
1853 #[doc = "AMP2+ pin is connected to the AMP1"]
1854 pub const _1: Self = Self::new(1);
1855 }
1856 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1857 pub struct Ampps2_SPEC;
1858 pub type Ampps2 = crate::EnumBitfieldStruct<u8, Ampps2_SPEC>;
1859 impl Ampps2 {
1860 #[doc = "AMP2- pin is not connected to the AMP1 plus input"]
1861 pub const _0: Self = Self::new(0);
1862
1863 #[doc = "AMP2- pin is connected to the AMP1 plus input"]
1864 pub const _1: Self = Self::new(1);
1865 }
1866 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1867 pub struct Ampps1_SPEC;
1868 pub type Ampps1 = crate::EnumBitfieldStruct<u8, Ampps1_SPEC>;
1869 impl Ampps1 {
1870 #[doc = "AMP1+ pin is not connected to the AMP1 plus input"]
1871 pub const _0: Self = Self::new(0);
1872
1873 #[doc = "AMP1+ pin is connected to the AMP1 plus input"]
1874 pub const _1: Self = Self::new(1);
1875 }
1876 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1877 pub struct Ampps0_SPEC;
1878 pub type Ampps0 = crate::EnumBitfieldStruct<u8, Ampps0_SPEC>;
1879 impl Ampps0 {
1880 #[doc = "AMP1- pin is not connected to the AMP1 plus input"]
1881 pub const _0: Self = Self::new(0);
1882
1883 #[doc = "AMP1- pin is connected to the AMP1 plus input"]
1884 pub const _1: Self = Self::new(1);
1885 }
1886}
1887#[doc(hidden)]
1888#[derive(Copy, Clone, Eq, PartialEq)]
1889pub struct Amp2Ms_SPEC;
1890impl crate::sealed::RegSpec for Amp2Ms_SPEC {
1891 type DataType = u8;
1892}
1893
1894#[doc = "Operational Amplifier 2 Minus Input Select Register"]
1895pub type Amp2Ms = crate::RegValueT<Amp2Ms_SPEC>;
1896
1897impl Amp2Ms {
1898 #[doc = "OPAMP2 output select"]
1899 #[inline(always)]
1900 pub fn ampms7(
1901 self,
1902 ) -> crate::common::RegisterField<
1903 7,
1904 0x1,
1905 1,
1906 0,
1907 amp2ms::Ampms7,
1908 amp2ms::Ampms7,
1909 Amp2Ms_SPEC,
1910 crate::common::RW,
1911 > {
1912 crate::common::RegisterField::<
1913 7,
1914 0x1,
1915 1,
1916 0,
1917 amp2ms::Ampms7,
1918 amp2ms::Ampms7,
1919 Amp2Ms_SPEC,
1920 crate::common::RW,
1921 >::from_register(self, 0)
1922 }
1923
1924 #[doc = "These bits are read as 000000. The write value should be 000000."]
1925 #[inline(always)]
1926 pub fn reserved(
1927 self,
1928 ) -> crate::common::RegisterField<1, 0x3f, 1, 0, u8, u8, Amp2Ms_SPEC, crate::common::RW> {
1929 crate::common::RegisterField::<1,0x3f,1,0,u8,u8,Amp2Ms_SPEC,crate::common::RW>::from_register(self,0)
1930 }
1931
1932 #[doc = "AMP2- pin select"]
1933 #[inline(always)]
1934 pub fn ampms0(
1935 self,
1936 ) -> crate::common::RegisterField<
1937 0,
1938 0x1,
1939 1,
1940 0,
1941 amp2ms::Ampms0,
1942 amp2ms::Ampms0,
1943 Amp2Ms_SPEC,
1944 crate::common::RW,
1945 > {
1946 crate::common::RegisterField::<
1947 0,
1948 0x1,
1949 1,
1950 0,
1951 amp2ms::Ampms0,
1952 amp2ms::Ampms0,
1953 Amp2Ms_SPEC,
1954 crate::common::RW,
1955 >::from_register(self, 0)
1956 }
1957}
1958impl ::core::default::Default for Amp2Ms {
1959 #[inline(always)]
1960 fn default() -> Amp2Ms {
1961 <crate::RegValueT<Amp2Ms_SPEC> as RegisterValue<_>>::new(0)
1962 }
1963}
1964pub mod amp2ms {
1965
1966 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1967 pub struct Ampms7_SPEC;
1968 pub type Ampms7 = crate::EnumBitfieldStruct<u8, Ampms7_SPEC>;
1969 impl Ampms7 {
1970 #[doc = "OPAMP2 output is not connected to the AMP2 minus input"]
1971 pub const _0: Self = Self::new(0);
1972
1973 #[doc = "OPAMP2 output is connected to the AMP2 minus input"]
1974 pub const _1: Self = Self::new(1);
1975 }
1976 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
1977 pub struct Ampms0_SPEC;
1978 pub type Ampms0 = crate::EnumBitfieldStruct<u8, Ampms0_SPEC>;
1979 impl Ampms0 {
1980 #[doc = "AMP2- pin is not connected to the AMP2 minus input"]
1981 pub const _0: Self = Self::new(0);
1982
1983 #[doc = "AMP2- pin is connected to the AMP2 minus input"]
1984 pub const _1: Self = Self::new(1);
1985 }
1986}
1987#[doc(hidden)]
1988#[derive(Copy, Clone, Eq, PartialEq)]
1989pub struct Amp2Ps_SPEC;
1990impl crate::sealed::RegSpec for Amp2Ps_SPEC {
1991 type DataType = u8;
1992}
1993
1994#[doc = "Operational Amplifier 2 Plus Input Select Register"]
1995pub type Amp2Ps = crate::RegValueT<Amp2Ps_SPEC>;
1996
1997impl Amp2Ps {
1998 #[doc = "DAC8 channel 1output select"]
1999 #[inline(always)]
2000 pub fn ampps7(
2001 self,
2002 ) -> crate::common::RegisterField<
2003 7,
2004 0x1,
2005 1,
2006 0,
2007 amp2ps::Ampps7,
2008 amp2ps::Ampps7,
2009 Amp2Ps_SPEC,
2010 crate::common::RW,
2011 > {
2012 crate::common::RegisterField::<
2013 7,
2014 0x1,
2015 1,
2016 0,
2017 amp2ps::Ampps7,
2018 amp2ps::Ampps7,
2019 Amp2Ps_SPEC,
2020 crate::common::RW,
2021 >::from_register(self, 0)
2022 }
2023
2024 #[doc = "These bits are read as 00000. The write value should be 00000."]
2025 #[inline(always)]
2026 pub fn reserved(
2027 self,
2028 ) -> crate::common::RegisterField<2, 0x1f, 1, 0, u8, u8, Amp2Ps_SPEC, crate::common::RW> {
2029 crate::common::RegisterField::<2,0x1f,1,0,u8,u8,Amp2Ps_SPEC,crate::common::RW>::from_register(self,0)
2030 }
2031
2032 #[doc = "AMP2+ pin select"]
2033 #[inline(always)]
2034 pub fn ampps1(
2035 self,
2036 ) -> crate::common::RegisterField<
2037 1,
2038 0x1,
2039 1,
2040 0,
2041 amp2ps::Ampps1,
2042 amp2ps::Ampps1,
2043 Amp2Ps_SPEC,
2044 crate::common::RW,
2045 > {
2046 crate::common::RegisterField::<
2047 1,
2048 0x1,
2049 1,
2050 0,
2051 amp2ps::Ampps1,
2052 amp2ps::Ampps1,
2053 Amp2Ps_SPEC,
2054 crate::common::RW,
2055 >::from_register(self, 0)
2056 }
2057
2058 #[doc = "AMP2- pin select"]
2059 #[inline(always)]
2060 pub fn ampps0(
2061 self,
2062 ) -> crate::common::RegisterField<
2063 0,
2064 0x1,
2065 1,
2066 0,
2067 amp2ps::Ampps0,
2068 amp2ps::Ampps0,
2069 Amp2Ps_SPEC,
2070 crate::common::RW,
2071 > {
2072 crate::common::RegisterField::<
2073 0,
2074 0x1,
2075 1,
2076 0,
2077 amp2ps::Ampps0,
2078 amp2ps::Ampps0,
2079 Amp2Ps_SPEC,
2080 crate::common::RW,
2081 >::from_register(self, 0)
2082 }
2083}
2084impl ::core::default::Default for Amp2Ps {
2085 #[inline(always)]
2086 fn default() -> Amp2Ps {
2087 <crate::RegValueT<Amp2Ps_SPEC> as RegisterValue<_>>::new(0)
2088 }
2089}
2090pub mod amp2ps {
2091
2092 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2093 pub struct Ampps7_SPEC;
2094 pub type Ampps7 = crate::EnumBitfieldStruct<u8, Ampps7_SPEC>;
2095 impl Ampps7 {
2096 #[doc = "DAC8 channel 1 output is not connected to the AMP2 plus input"]
2097 pub const _0: Self = Self::new(0);
2098
2099 #[doc = "DAC8 channel 1 output is connected to the AMP2 plus input"]
2100 pub const _1: Self = Self::new(1);
2101 }
2102 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2103 pub struct Ampps1_SPEC;
2104 pub type Ampps1 = crate::EnumBitfieldStruct<u8, Ampps1_SPEC>;
2105 impl Ampps1 {
2106 #[doc = "AMP2+ pin is not connected to the AMP2 plus input"]
2107 pub const _0: Self = Self::new(0);
2108
2109 #[doc = "AMP2+ pin is connected to the AMP2 plus input"]
2110 pub const _1: Self = Self::new(1);
2111 }
2112 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2113 pub struct Ampps0_SPEC;
2114 pub type Ampps0 = crate::EnumBitfieldStruct<u8, Ampps0_SPEC>;
2115 impl Ampps0 {
2116 #[doc = "AMP2- pin is not connected to the AMP2 plus input"]
2117 pub const _0: Self = Self::new(0);
2118
2119 #[doc = "AMP2- pin is connected to the AMP2 plus input"]
2120 pub const _1: Self = Self::new(1);
2121 }
2122}
2123#[doc(hidden)]
2124#[derive(Copy, Clone, Eq, PartialEq)]
2125pub struct Ampcpc_SPEC;
2126impl crate::sealed::RegSpec for Ampcpc_SPEC {
2127 type DataType = u8;
2128}
2129
2130#[doc = "Operational Amplifier Switch Charge Pump Control Register"]
2131pub type Ampcpc = crate::RegValueT<Ampcpc_SPEC>;
2132
2133impl Ampcpc {
2134 #[doc = "These bits are read as 00000. The write value should be 00000."]
2135 #[inline(always)]
2136 pub fn reserved(
2137 self,
2138 ) -> crate::common::RegisterField<3, 0x1f, 1, 0, u8, u8, Ampcpc_SPEC, crate::common::RW> {
2139 crate::common::RegisterField::<3,0x1f,1,0,u8,u8,Ampcpc_SPEC,crate::common::RW>::from_register(self,0)
2140 }
2141
2142 #[doc = "Charge Pump for AMP2 Enable"]
2143 #[inline(always)]
2144 pub fn pump2en(
2145 self,
2146 ) -> crate::common::RegisterField<
2147 2,
2148 0x1,
2149 1,
2150 0,
2151 ampcpc::Pump2En,
2152 ampcpc::Pump2En,
2153 Ampcpc_SPEC,
2154 crate::common::RW,
2155 > {
2156 crate::common::RegisterField::<
2157 2,
2158 0x1,
2159 1,
2160 0,
2161 ampcpc::Pump2En,
2162 ampcpc::Pump2En,
2163 Ampcpc_SPEC,
2164 crate::common::RW,
2165 >::from_register(self, 0)
2166 }
2167
2168 #[doc = "Charge Pump for AMP1 Enable"]
2169 #[inline(always)]
2170 pub fn pump1en(
2171 self,
2172 ) -> crate::common::RegisterField<
2173 1,
2174 0x1,
2175 1,
2176 0,
2177 ampcpc::Pump1En,
2178 ampcpc::Pump1En,
2179 Ampcpc_SPEC,
2180 crate::common::RW,
2181 > {
2182 crate::common::RegisterField::<
2183 1,
2184 0x1,
2185 1,
2186 0,
2187 ampcpc::Pump1En,
2188 ampcpc::Pump1En,
2189 Ampcpc_SPEC,
2190 crate::common::RW,
2191 >::from_register(self, 0)
2192 }
2193
2194 #[doc = "Charge Pump for AMP0 Enable"]
2195 #[inline(always)]
2196 pub fn pump0en(
2197 self,
2198 ) -> crate::common::RegisterField<
2199 0,
2200 0x1,
2201 1,
2202 0,
2203 ampcpc::Pump0En,
2204 ampcpc::Pump0En,
2205 Ampcpc_SPEC,
2206 crate::common::RW,
2207 > {
2208 crate::common::RegisterField::<
2209 0,
2210 0x1,
2211 1,
2212 0,
2213 ampcpc::Pump0En,
2214 ampcpc::Pump0En,
2215 Ampcpc_SPEC,
2216 crate::common::RW,
2217 >::from_register(self, 0)
2218 }
2219}
2220impl ::core::default::Default for Ampcpc {
2221 #[inline(always)]
2222 fn default() -> Ampcpc {
2223 <crate::RegValueT<Ampcpc_SPEC> as RegisterValue<_>>::new(0)
2224 }
2225}
2226pub mod ampcpc {
2227
2228 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2229 pub struct Pump2En_SPEC;
2230 pub type Pump2En = crate::EnumBitfieldStruct<u8, Pump2En_SPEC>;
2231 impl Pump2En {
2232 #[doc = "Charge Pump for the AMP2 disabled"]
2233 pub const _0: Self = Self::new(0);
2234
2235 #[doc = "Charge Pump for the AMP2 enable"]
2236 pub const _1: Self = Self::new(1);
2237 }
2238 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2239 pub struct Pump1En_SPEC;
2240 pub type Pump1En = crate::EnumBitfieldStruct<u8, Pump1En_SPEC>;
2241 impl Pump1En {
2242 #[doc = "Charge Pump for the AMP1 disabled"]
2243 pub const _0: Self = Self::new(0);
2244
2245 #[doc = "Charge Pump for the AMP1 enable"]
2246 pub const _1: Self = Self::new(1);
2247 }
2248 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2249 pub struct Pump0En_SPEC;
2250 pub type Pump0En = crate::EnumBitfieldStruct<u8, Pump0En_SPEC>;
2251 impl Pump0En {
2252 #[doc = "Charge Pump for the AMP0 disabled"]
2253 pub const _0: Self = Self::new(0);
2254
2255 #[doc = "Charge Pump for the AMP0 enable"]
2256 pub const _1: Self = Self::new(1);
2257 }
2258}
2259#[doc(hidden)]
2260#[derive(Copy, Clone, Eq, PartialEq)]
2261pub struct Ampuote_SPEC;
2262impl crate::sealed::RegSpec for Ampuote_SPEC {
2263 type DataType = u8;
2264}
2265
2266#[doc = "Operational Amplifier User Offset Trimming Enable Register"]
2267pub type Ampuote = crate::RegValueT<Ampuote_SPEC>;
2268
2269impl Ampuote {
2270 #[doc = "These bits are read as 00000. The write value should be 00000."]
2271 #[inline(always)]
2272 pub fn reserved(
2273 self,
2274 ) -> crate::common::RegisterField<3, 0x1f, 1, 0, u8, u8, Ampuote_SPEC, crate::common::RW> {
2275 crate::common::RegisterField::<3,0x1f,1,0,u8,u8,Ampuote_SPEC,crate::common::RW>::from_register(self,0)
2276 }
2277
2278 #[doc = "AMP2OT write enable"]
2279 #[inline(always)]
2280 pub fn amp2te(
2281 self,
2282 ) -> crate::common::RegisterField<
2283 2,
2284 0x1,
2285 1,
2286 0,
2287 ampuote::Amp2Te,
2288 ampuote::Amp2Te,
2289 Ampuote_SPEC,
2290 crate::common::RW,
2291 > {
2292 crate::common::RegisterField::<
2293 2,
2294 0x1,
2295 1,
2296 0,
2297 ampuote::Amp2Te,
2298 ampuote::Amp2Te,
2299 Ampuote_SPEC,
2300 crate::common::RW,
2301 >::from_register(self, 0)
2302 }
2303
2304 #[doc = "AMP1OT write enable"]
2305 #[inline(always)]
2306 pub fn amp1te(
2307 self,
2308 ) -> crate::common::RegisterField<
2309 1,
2310 0x1,
2311 1,
2312 0,
2313 ampuote::Amp1Te,
2314 ampuote::Amp1Te,
2315 Ampuote_SPEC,
2316 crate::common::RW,
2317 > {
2318 crate::common::RegisterField::<
2319 1,
2320 0x1,
2321 1,
2322 0,
2323 ampuote::Amp1Te,
2324 ampuote::Amp1Te,
2325 Ampuote_SPEC,
2326 crate::common::RW,
2327 >::from_register(self, 0)
2328 }
2329
2330 #[doc = "AMP0OT write enable"]
2331 #[inline(always)]
2332 pub fn amp0te(
2333 self,
2334 ) -> crate::common::RegisterField<
2335 0,
2336 0x1,
2337 1,
2338 0,
2339 ampuote::Amp0Te,
2340 ampuote::Amp0Te,
2341 Ampuote_SPEC,
2342 crate::common::RW,
2343 > {
2344 crate::common::RegisterField::<
2345 0,
2346 0x1,
2347 1,
2348 0,
2349 ampuote::Amp0Te,
2350 ampuote::Amp0Te,
2351 Ampuote_SPEC,
2352 crate::common::RW,
2353 >::from_register(self, 0)
2354 }
2355}
2356impl ::core::default::Default for Ampuote {
2357 #[inline(always)]
2358 fn default() -> Ampuote {
2359 <crate::RegValueT<Ampuote_SPEC> as RegisterValue<_>>::new(0)
2360 }
2361}
2362pub mod ampuote {
2363
2364 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2365 pub struct Amp2Te_SPEC;
2366 pub type Amp2Te = crate::EnumBitfieldStruct<u8, Amp2Te_SPEC>;
2367 impl Amp2Te {
2368 #[doc = "Not possible to write to the AMP2OTP and AMP2OTN registers"]
2369 pub const _0: Self = Self::new(0);
2370
2371 #[doc = "Possible to write to the AMP2OTP and AMP2OTN registers"]
2372 pub const _1: Self = Self::new(1);
2373 }
2374 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2375 pub struct Amp1Te_SPEC;
2376 pub type Amp1Te = crate::EnumBitfieldStruct<u8, Amp1Te_SPEC>;
2377 impl Amp1Te {
2378 #[doc = "Not possible to write to the AMP1OTP and AMP1OTN registers"]
2379 pub const _0: Self = Self::new(0);
2380
2381 #[doc = "Possible to write to the AMP1OTP and AMP1OTN registers"]
2382 pub const _1: Self = Self::new(1);
2383 }
2384 #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
2385 pub struct Amp0Te_SPEC;
2386 pub type Amp0Te = crate::EnumBitfieldStruct<u8, Amp0Te_SPEC>;
2387 impl Amp0Te {
2388 #[doc = "Not possible to write to the AMP0OTP and AMP0OTN registers"]
2389 pub const _0: Self = Self::new(0);
2390
2391 #[doc = "Possible to write to the AMP0OTP and AMP0OTN registers"]
2392 pub const _1: Self = Self::new(1);
2393 }
2394}
2395#[doc(hidden)]
2396#[derive(Copy, Clone, Eq, PartialEq)]
2397pub struct Amp0Otp_SPEC;
2398impl crate::sealed::RegSpec for Amp0Otp_SPEC {
2399 type DataType = u8;
2400}
2401
2402#[doc = "Operational Amplifier 0 Offset Trimming Pch Register"]
2403pub type Amp0Otp = crate::RegValueT<Amp0Otp_SPEC>;
2404
2405impl Amp0Otp {
2406 #[doc = "These bits are read as 000. The write value should be 000."]
2407 #[inline(always)]
2408 pub fn reserved(
2409 self,
2410 ) -> crate::common::RegisterField<5, 0x7, 1, 0, u8, u8, Amp0Otp_SPEC, crate::common::RW> {
2411 crate::common::RegisterField::<5,0x7,1,0,u8,u8,Amp0Otp_SPEC,crate::common::RW>::from_register(self,0)
2412 }
2413
2414 #[doc = "AMP0 input offset trimming Pch side"]
2415 #[inline(always)]
2416 pub fn trmp(
2417 self,
2418 ) -> crate::common::RegisterField<0, 0x1f, 1, 0, u8, u8, Amp0Otp_SPEC, crate::common::RW> {
2419 crate::common::RegisterField::<0,0x1f,1,0,u8,u8,Amp0Otp_SPEC,crate::common::RW>::from_register(self,0)
2420 }
2421}
2422impl ::core::default::Default for Amp0Otp {
2423 #[inline(always)]
2424 fn default() -> Amp0Otp {
2425 <crate::RegValueT<Amp0Otp_SPEC> as RegisterValue<_>>::new(0)
2426 }
2427}
2428
2429#[doc(hidden)]
2430#[derive(Copy, Clone, Eq, PartialEq)]
2431pub struct Amp0Otn_SPEC;
2432impl crate::sealed::RegSpec for Amp0Otn_SPEC {
2433 type DataType = u8;
2434}
2435
2436#[doc = "Operational Amplifier 0 Offset Trimming Nch Register"]
2437pub type Amp0Otn = crate::RegValueT<Amp0Otn_SPEC>;
2438
2439impl Amp0Otn {
2440 #[doc = "These bits are read as 000. The write value should be 000."]
2441 #[inline(always)]
2442 pub fn reserved(
2443 self,
2444 ) -> crate::common::RegisterField<5, 0x7, 1, 0, u8, u8, Amp0Otn_SPEC, crate::common::RW> {
2445 crate::common::RegisterField::<5,0x7,1,0,u8,u8,Amp0Otn_SPEC,crate::common::RW>::from_register(self,0)
2446 }
2447
2448 #[doc = "AMP0 input offset trimming Nch side"]
2449 #[inline(always)]
2450 pub fn trmn(
2451 self,
2452 ) -> crate::common::RegisterField<0, 0x1f, 1, 0, u8, u8, Amp0Otn_SPEC, crate::common::RW> {
2453 crate::common::RegisterField::<0,0x1f,1,0,u8,u8,Amp0Otn_SPEC,crate::common::RW>::from_register(self,0)
2454 }
2455}
2456impl ::core::default::Default for Amp0Otn {
2457 #[inline(always)]
2458 fn default() -> Amp0Otn {
2459 <crate::RegValueT<Amp0Otn_SPEC> as RegisterValue<_>>::new(0)
2460 }
2461}
2462
2463#[doc(hidden)]
2464#[derive(Copy, Clone, Eq, PartialEq)]
2465pub struct Amp1Otp_SPEC;
2466impl crate::sealed::RegSpec for Amp1Otp_SPEC {
2467 type DataType = u8;
2468}
2469
2470#[doc = "Operational Amplifier 1 Offset Trimming Pch Register"]
2471pub type Amp1Otp = crate::RegValueT<Amp1Otp_SPEC>;
2472
2473impl Amp1Otp {
2474 #[doc = "These bits are read as 000. The write value should be 000."]
2475 #[inline(always)]
2476 pub fn reserved(
2477 self,
2478 ) -> crate::common::RegisterField<5, 0x7, 1, 0, u8, u8, Amp1Otp_SPEC, crate::common::RW> {
2479 crate::common::RegisterField::<5,0x7,1,0,u8,u8,Amp1Otp_SPEC,crate::common::RW>::from_register(self,0)
2480 }
2481
2482 #[doc = "AMP1 input offset trimming Pch side"]
2483 #[inline(always)]
2484 pub fn trmp(
2485 self,
2486 ) -> crate::common::RegisterField<0, 0x1f, 1, 0, u8, u8, Amp1Otp_SPEC, crate::common::RW> {
2487 crate::common::RegisterField::<0,0x1f,1,0,u8,u8,Amp1Otp_SPEC,crate::common::RW>::from_register(self,0)
2488 }
2489}
2490impl ::core::default::Default for Amp1Otp {
2491 #[inline(always)]
2492 fn default() -> Amp1Otp {
2493 <crate::RegValueT<Amp1Otp_SPEC> as RegisterValue<_>>::new(0)
2494 }
2495}
2496
2497#[doc(hidden)]
2498#[derive(Copy, Clone, Eq, PartialEq)]
2499pub struct Amp1Otn_SPEC;
2500impl crate::sealed::RegSpec for Amp1Otn_SPEC {
2501 type DataType = u8;
2502}
2503
2504#[doc = "Operational Amplifier 1 Offset Trimming Nch Register"]
2505pub type Amp1Otn = crate::RegValueT<Amp1Otn_SPEC>;
2506
2507impl Amp1Otn {
2508 #[doc = "These bits are read as 000. The write value should be 000."]
2509 #[inline(always)]
2510 pub fn reserved(
2511 self,
2512 ) -> crate::common::RegisterField<5, 0x7, 1, 0, u8, u8, Amp1Otn_SPEC, crate::common::RW> {
2513 crate::common::RegisterField::<5,0x7,1,0,u8,u8,Amp1Otn_SPEC,crate::common::RW>::from_register(self,0)
2514 }
2515
2516 #[doc = "AMP1 input offset trimming Nch side"]
2517 #[inline(always)]
2518 pub fn trmn(
2519 self,
2520 ) -> crate::common::RegisterField<0, 0x1f, 1, 0, u8, u8, Amp1Otn_SPEC, crate::common::RW> {
2521 crate::common::RegisterField::<0,0x1f,1,0,u8,u8,Amp1Otn_SPEC,crate::common::RW>::from_register(self,0)
2522 }
2523}
2524impl ::core::default::Default for Amp1Otn {
2525 #[inline(always)]
2526 fn default() -> Amp1Otn {
2527 <crate::RegValueT<Amp1Otn_SPEC> as RegisterValue<_>>::new(0)
2528 }
2529}
2530
2531#[doc(hidden)]
2532#[derive(Copy, Clone, Eq, PartialEq)]
2533pub struct Amp2Otp_SPEC;
2534impl crate::sealed::RegSpec for Amp2Otp_SPEC {
2535 type DataType = u8;
2536}
2537
2538#[doc = "Operational Amplifier 2 Offset Trimming Pch Register"]
2539pub type Amp2Otp = crate::RegValueT<Amp2Otp_SPEC>;
2540
2541impl Amp2Otp {
2542 #[doc = "These bits are read as 000. The write value should be 000."]
2543 #[inline(always)]
2544 pub fn reserved(
2545 self,
2546 ) -> crate::common::RegisterField<5, 0x7, 1, 0, u8, u8, Amp2Otp_SPEC, crate::common::RW> {
2547 crate::common::RegisterField::<5,0x7,1,0,u8,u8,Amp2Otp_SPEC,crate::common::RW>::from_register(self,0)
2548 }
2549
2550 #[doc = "AMP2 input offset trimming Pch side"]
2551 #[inline(always)]
2552 pub fn trmp(
2553 self,
2554 ) -> crate::common::RegisterField<0, 0x1f, 1, 0, u8, u8, Amp2Otp_SPEC, crate::common::RW> {
2555 crate::common::RegisterField::<0,0x1f,1,0,u8,u8,Amp2Otp_SPEC,crate::common::RW>::from_register(self,0)
2556 }
2557}
2558impl ::core::default::Default for Amp2Otp {
2559 #[inline(always)]
2560 fn default() -> Amp2Otp {
2561 <crate::RegValueT<Amp2Otp_SPEC> as RegisterValue<_>>::new(0)
2562 }
2563}
2564
2565#[doc(hidden)]
2566#[derive(Copy, Clone, Eq, PartialEq)]
2567pub struct Amp2Otn_SPEC;
2568impl crate::sealed::RegSpec for Amp2Otn_SPEC {
2569 type DataType = u8;
2570}
2571
2572#[doc = "Operational Amplifier 2 Offset Trimming Nch Register"]
2573pub type Amp2Otn = crate::RegValueT<Amp2Otn_SPEC>;
2574
2575impl Amp2Otn {
2576 #[doc = "These bits are read as 000. The write value should be 000."]
2577 #[inline(always)]
2578 pub fn reserved(
2579 self,
2580 ) -> crate::common::RegisterField<5, 0x7, 1, 0, u8, u8, Amp2Otn_SPEC, crate::common::RW> {
2581 crate::common::RegisterField::<5,0x7,1,0,u8,u8,Amp2Otn_SPEC,crate::common::RW>::from_register(self,0)
2582 }
2583
2584 #[doc = "AMP2 input offset trimming Nch side"]
2585 #[inline(always)]
2586 pub fn trmn(
2587 self,
2588 ) -> crate::common::RegisterField<0, 0x1f, 1, 0, u8, u8, Amp2Otn_SPEC, crate::common::RW> {
2589 crate::common::RegisterField::<0,0x1f,1,0,u8,u8,Amp2Otn_SPEC,crate::common::RW>::from_register(self,0)
2590 }
2591}
2592impl ::core::default::Default for Amp2Otn {
2593 #[inline(always)]
2594 fn default() -> Amp2Otn {
2595 <crate::RegValueT<Amp2Otn_SPEC> as RegisterValue<_>>::new(0)
2596 }
2597}