1#[doc = "Register `TER` reader"]
2pub type R = crate::R<TerSpec>;
3#[doc = "Register `TER` writer"]
4pub type W = crate::W<TerSpec>;
5#[doc = "Tamper Input Enable\n\nValue on reset: 0"]
6#[cfg_attr(feature = "defmt", derive(defmt::Format))]
7#[derive(Clone, Copy, Debug, PartialEq, Eq)]
8pub enum Tie0 {
9 #[doc = "0: Disables"]
10 Disable = 0,
11 #[doc = "1: Enables"]
12 Enable = 1,
13}
14impl From<Tie0> for bool {
15 #[inline(always)]
16 fn from(variant: Tie0) -> Self {
17 variant as u8 != 0
18 }
19}
20#[doc = "Field `TIE0` reader - Tamper Input Enable"]
21pub type Tie0R = crate::BitReader<Tie0>;
22impl Tie0R {
23 #[doc = "Get enumerated values variant"]
24 #[inline(always)]
25 pub const fn variant(&self) -> Tie0 {
26 match self.bits {
27 false => Tie0::Disable,
28 true => Tie0::Enable,
29 }
30 }
31 #[doc = "Disables"]
32 #[inline(always)]
33 pub fn is_disable(&self) -> bool {
34 *self == Tie0::Disable
35 }
36 #[doc = "Enables"]
37 #[inline(always)]
38 pub fn is_enable(&self) -> bool {
39 *self == Tie0::Enable
40 }
41}
42#[doc = "Field `TIE0` writer - Tamper Input Enable"]
43pub type Tie0W<'a, REG> = crate::BitWriter<'a, REG, Tie0>;
44impl<'a, REG> Tie0W<'a, REG>
45where
46 REG: crate::Writable + crate::RegisterSpec,
47{
48 #[doc = "Disables"]
49 #[inline(always)]
50 pub fn disable(self) -> &'a mut crate::W<REG> {
51 self.variant(Tie0::Disable)
52 }
53 #[doc = "Enables"]
54 #[inline(always)]
55 pub fn enable(self) -> &'a mut crate::W<REG> {
56 self.variant(Tie0::Enable)
57 }
58}
59#[doc = "Tamper Input Enable\n\nValue on reset: 0"]
60#[cfg_attr(feature = "defmt", derive(defmt::Format))]
61#[derive(Clone, Copy, Debug, PartialEq, Eq)]
62pub enum Tie1 {
63 #[doc = "0: Disables"]
64 Disable = 0,
65 #[doc = "1: Enables"]
66 Enable = 1,
67}
68impl From<Tie1> for bool {
69 #[inline(always)]
70 fn from(variant: Tie1) -> Self {
71 variant as u8 != 0
72 }
73}
74#[doc = "Field `TIE1` reader - Tamper Input Enable"]
75pub type Tie1R = crate::BitReader<Tie1>;
76impl Tie1R {
77 #[doc = "Get enumerated values variant"]
78 #[inline(always)]
79 pub const fn variant(&self) -> Tie1 {
80 match self.bits {
81 false => Tie1::Disable,
82 true => Tie1::Enable,
83 }
84 }
85 #[doc = "Disables"]
86 #[inline(always)]
87 pub fn is_disable(&self) -> bool {
88 *self == Tie1::Disable
89 }
90 #[doc = "Enables"]
91 #[inline(always)]
92 pub fn is_enable(&self) -> bool {
93 *self == Tie1::Enable
94 }
95}
96#[doc = "Field `TIE1` writer - Tamper Input Enable"]
97pub type Tie1W<'a, REG> = crate::BitWriter<'a, REG, Tie1>;
98impl<'a, REG> Tie1W<'a, REG>
99where
100 REG: crate::Writable + crate::RegisterSpec,
101{
102 #[doc = "Disables"]
103 #[inline(always)]
104 pub fn disable(self) -> &'a mut crate::W<REG> {
105 self.variant(Tie1::Disable)
106 }
107 #[doc = "Enables"]
108 #[inline(always)]
109 pub fn enable(self) -> &'a mut crate::W<REG> {
110 self.variant(Tie1::Enable)
111 }
112}
113#[doc = "Tamper Input Enable\n\nValue on reset: 0"]
114#[cfg_attr(feature = "defmt", derive(defmt::Format))]
115#[derive(Clone, Copy, Debug, PartialEq, Eq)]
116pub enum Tie2 {
117 #[doc = "0: Disables"]
118 Disable = 0,
119 #[doc = "1: Enables"]
120 Enable = 1,
121}
122impl From<Tie2> for bool {
123 #[inline(always)]
124 fn from(variant: Tie2) -> Self {
125 variant as u8 != 0
126 }
127}
128#[doc = "Field `TIE2` reader - Tamper Input Enable"]
129pub type Tie2R = crate::BitReader<Tie2>;
130impl Tie2R {
131 #[doc = "Get enumerated values variant"]
132 #[inline(always)]
133 pub const fn variant(&self) -> Tie2 {
134 match self.bits {
135 false => Tie2::Disable,
136 true => Tie2::Enable,
137 }
138 }
139 #[doc = "Disables"]
140 #[inline(always)]
141 pub fn is_disable(&self) -> bool {
142 *self == Tie2::Disable
143 }
144 #[doc = "Enables"]
145 #[inline(always)]
146 pub fn is_enable(&self) -> bool {
147 *self == Tie2::Enable
148 }
149}
150#[doc = "Field `TIE2` writer - Tamper Input Enable"]
151pub type Tie2W<'a, REG> = crate::BitWriter<'a, REG, Tie2>;
152impl<'a, REG> Tie2W<'a, REG>
153where
154 REG: crate::Writable + crate::RegisterSpec,
155{
156 #[doc = "Disables"]
157 #[inline(always)]
158 pub fn disable(self) -> &'a mut crate::W<REG> {
159 self.variant(Tie2::Disable)
160 }
161 #[doc = "Enables"]
162 #[inline(always)]
163 pub fn enable(self) -> &'a mut crate::W<REG> {
164 self.variant(Tie2::Enable)
165 }
166}
167#[doc = "Tamper Input Enable\n\nValue on reset: 0"]
168#[cfg_attr(feature = "defmt", derive(defmt::Format))]
169#[derive(Clone, Copy, Debug, PartialEq, Eq)]
170pub enum Tie3 {
171 #[doc = "0: Disables"]
172 Disable = 0,
173 #[doc = "1: Enables"]
174 Enable = 1,
175}
176impl From<Tie3> for bool {
177 #[inline(always)]
178 fn from(variant: Tie3) -> Self {
179 variant as u8 != 0
180 }
181}
182#[doc = "Field `TIE3` reader - Tamper Input Enable"]
183pub type Tie3R = crate::BitReader<Tie3>;
184impl Tie3R {
185 #[doc = "Get enumerated values variant"]
186 #[inline(always)]
187 pub const fn variant(&self) -> Tie3 {
188 match self.bits {
189 false => Tie3::Disable,
190 true => Tie3::Enable,
191 }
192 }
193 #[doc = "Disables"]
194 #[inline(always)]
195 pub fn is_disable(&self) -> bool {
196 *self == Tie3::Disable
197 }
198 #[doc = "Enables"]
199 #[inline(always)]
200 pub fn is_enable(&self) -> bool {
201 *self == Tie3::Enable
202 }
203}
204#[doc = "Field `TIE3` writer - Tamper Input Enable"]
205pub type Tie3W<'a, REG> = crate::BitWriter<'a, REG, Tie3>;
206impl<'a, REG> Tie3W<'a, REG>
207where
208 REG: crate::Writable + crate::RegisterSpec,
209{
210 #[doc = "Disables"]
211 #[inline(always)]
212 pub fn disable(self) -> &'a mut crate::W<REG> {
213 self.variant(Tie3::Disable)
214 }
215 #[doc = "Enables"]
216 #[inline(always)]
217 pub fn enable(self) -> &'a mut crate::W<REG> {
218 self.variant(Tie3::Enable)
219 }
220}
221#[doc = "Tamper Input Enable\n\nValue on reset: 0"]
222#[cfg_attr(feature = "defmt", derive(defmt::Format))]
223#[derive(Clone, Copy, Debug, PartialEq, Eq)]
224pub enum Tie4 {
225 #[doc = "0: Disables"]
226 Disable = 0,
227 #[doc = "1: Enables"]
228 Enable = 1,
229}
230impl From<Tie4> for bool {
231 #[inline(always)]
232 fn from(variant: Tie4) -> Self {
233 variant as u8 != 0
234 }
235}
236#[doc = "Field `TIE4` reader - Tamper Input Enable"]
237pub type Tie4R = crate::BitReader<Tie4>;
238impl Tie4R {
239 #[doc = "Get enumerated values variant"]
240 #[inline(always)]
241 pub const fn variant(&self) -> Tie4 {
242 match self.bits {
243 false => Tie4::Disable,
244 true => Tie4::Enable,
245 }
246 }
247 #[doc = "Disables"]
248 #[inline(always)]
249 pub fn is_disable(&self) -> bool {
250 *self == Tie4::Disable
251 }
252 #[doc = "Enables"]
253 #[inline(always)]
254 pub fn is_enable(&self) -> bool {
255 *self == Tie4::Enable
256 }
257}
258#[doc = "Field `TIE4` writer - Tamper Input Enable"]
259pub type Tie4W<'a, REG> = crate::BitWriter<'a, REG, Tie4>;
260impl<'a, REG> Tie4W<'a, REG>
261where
262 REG: crate::Writable + crate::RegisterSpec,
263{
264 #[doc = "Disables"]
265 #[inline(always)]
266 pub fn disable(self) -> &'a mut crate::W<REG> {
267 self.variant(Tie4::Disable)
268 }
269 #[doc = "Enables"]
270 #[inline(always)]
271 pub fn enable(self) -> &'a mut crate::W<REG> {
272 self.variant(Tie4::Enable)
273 }
274}
275#[doc = "Tamper Input Enable\n\nValue on reset: 0"]
276#[cfg_attr(feature = "defmt", derive(defmt::Format))]
277#[derive(Clone, Copy, Debug, PartialEq, Eq)]
278pub enum Tie5 {
279 #[doc = "0: Disables"]
280 Disable = 0,
281 #[doc = "1: Enables"]
282 Enable = 1,
283}
284impl From<Tie5> for bool {
285 #[inline(always)]
286 fn from(variant: Tie5) -> Self {
287 variant as u8 != 0
288 }
289}
290#[doc = "Field `TIE5` reader - Tamper Input Enable"]
291pub type Tie5R = crate::BitReader<Tie5>;
292impl Tie5R {
293 #[doc = "Get enumerated values variant"]
294 #[inline(always)]
295 pub const fn variant(&self) -> Tie5 {
296 match self.bits {
297 false => Tie5::Disable,
298 true => Tie5::Enable,
299 }
300 }
301 #[doc = "Disables"]
302 #[inline(always)]
303 pub fn is_disable(&self) -> bool {
304 *self == Tie5::Disable
305 }
306 #[doc = "Enables"]
307 #[inline(always)]
308 pub fn is_enable(&self) -> bool {
309 *self == Tie5::Enable
310 }
311}
312#[doc = "Field `TIE5` writer - Tamper Input Enable"]
313pub type Tie5W<'a, REG> = crate::BitWriter<'a, REG, Tie5>;
314impl<'a, REG> Tie5W<'a, REG>
315where
316 REG: crate::Writable + crate::RegisterSpec,
317{
318 #[doc = "Disables"]
319 #[inline(always)]
320 pub fn disable(self) -> &'a mut crate::W<REG> {
321 self.variant(Tie5::Disable)
322 }
323 #[doc = "Enables"]
324 #[inline(always)]
325 pub fn enable(self) -> &'a mut crate::W<REG> {
326 self.variant(Tie5::Enable)
327 }
328}
329#[doc = "Tamper Input Enable\n\nValue on reset: 0"]
330#[cfg_attr(feature = "defmt", derive(defmt::Format))]
331#[derive(Clone, Copy, Debug, PartialEq, Eq)]
332pub enum Tie6 {
333 #[doc = "0: Disables"]
334 Disable = 0,
335 #[doc = "1: Enables"]
336 Enable = 1,
337}
338impl From<Tie6> for bool {
339 #[inline(always)]
340 fn from(variant: Tie6) -> Self {
341 variant as u8 != 0
342 }
343}
344#[doc = "Field `TIE6` reader - Tamper Input Enable"]
345pub type Tie6R = crate::BitReader<Tie6>;
346impl Tie6R {
347 #[doc = "Get enumerated values variant"]
348 #[inline(always)]
349 pub const fn variant(&self) -> Tie6 {
350 match self.bits {
351 false => Tie6::Disable,
352 true => Tie6::Enable,
353 }
354 }
355 #[doc = "Disables"]
356 #[inline(always)]
357 pub fn is_disable(&self) -> bool {
358 *self == Tie6::Disable
359 }
360 #[doc = "Enables"]
361 #[inline(always)]
362 pub fn is_enable(&self) -> bool {
363 *self == Tie6::Enable
364 }
365}
366#[doc = "Field `TIE6` writer - Tamper Input Enable"]
367pub type Tie6W<'a, REG> = crate::BitWriter<'a, REG, Tie6>;
368impl<'a, REG> Tie6W<'a, REG>
369where
370 REG: crate::Writable + crate::RegisterSpec,
371{
372 #[doc = "Disables"]
373 #[inline(always)]
374 pub fn disable(self) -> &'a mut crate::W<REG> {
375 self.variant(Tie6::Disable)
376 }
377 #[doc = "Enables"]
378 #[inline(always)]
379 pub fn enable(self) -> &'a mut crate::W<REG> {
380 self.variant(Tie6::Enable)
381 }
382}
383#[doc = "Tamper Input Enable\n\nValue on reset: 0"]
384#[cfg_attr(feature = "defmt", derive(defmt::Format))]
385#[derive(Clone, Copy, Debug, PartialEq, Eq)]
386pub enum Tie7 {
387 #[doc = "0: Disables"]
388 Disable = 0,
389 #[doc = "1: Enables"]
390 Enable = 1,
391}
392impl From<Tie7> for bool {
393 #[inline(always)]
394 fn from(variant: Tie7) -> Self {
395 variant as u8 != 0
396 }
397}
398#[doc = "Field `TIE7` reader - Tamper Input Enable"]
399pub type Tie7R = crate::BitReader<Tie7>;
400impl Tie7R {
401 #[doc = "Get enumerated values variant"]
402 #[inline(always)]
403 pub const fn variant(&self) -> Tie7 {
404 match self.bits {
405 false => Tie7::Disable,
406 true => Tie7::Enable,
407 }
408 }
409 #[doc = "Disables"]
410 #[inline(always)]
411 pub fn is_disable(&self) -> bool {
412 *self == Tie7::Disable
413 }
414 #[doc = "Enables"]
415 #[inline(always)]
416 pub fn is_enable(&self) -> bool {
417 *self == Tie7::Enable
418 }
419}
420#[doc = "Field `TIE7` writer - Tamper Input Enable"]
421pub type Tie7W<'a, REG> = crate::BitWriter<'a, REG, Tie7>;
422impl<'a, REG> Tie7W<'a, REG>
423where
424 REG: crate::Writable + crate::RegisterSpec,
425{
426 #[doc = "Disables"]
427 #[inline(always)]
428 pub fn disable(self) -> &'a mut crate::W<REG> {
429 self.variant(Tie7::Disable)
430 }
431 #[doc = "Enables"]
432 #[inline(always)]
433 pub fn enable(self) -> &'a mut crate::W<REG> {
434 self.variant(Tie7::Enable)
435 }
436}
437#[doc = "Tamper Input Enable\n\nValue on reset: 0"]
438#[cfg_attr(feature = "defmt", derive(defmt::Format))]
439#[derive(Clone, Copy, Debug, PartialEq, Eq)]
440pub enum Tie8 {
441 #[doc = "0: Disables"]
442 Disable = 0,
443 #[doc = "1: Enables"]
444 Enable = 1,
445}
446impl From<Tie8> for bool {
447 #[inline(always)]
448 fn from(variant: Tie8) -> Self {
449 variant as u8 != 0
450 }
451}
452#[doc = "Field `TIE8` reader - Tamper Input Enable"]
453pub type Tie8R = crate::BitReader<Tie8>;
454impl Tie8R {
455 #[doc = "Get enumerated values variant"]
456 #[inline(always)]
457 pub const fn variant(&self) -> Tie8 {
458 match self.bits {
459 false => Tie8::Disable,
460 true => Tie8::Enable,
461 }
462 }
463 #[doc = "Disables"]
464 #[inline(always)]
465 pub fn is_disable(&self) -> bool {
466 *self == Tie8::Disable
467 }
468 #[doc = "Enables"]
469 #[inline(always)]
470 pub fn is_enable(&self) -> bool {
471 *self == Tie8::Enable
472 }
473}
474#[doc = "Field `TIE8` writer - Tamper Input Enable"]
475pub type Tie8W<'a, REG> = crate::BitWriter<'a, REG, Tie8>;
476impl<'a, REG> Tie8W<'a, REG>
477where
478 REG: crate::Writable + crate::RegisterSpec,
479{
480 #[doc = "Disables"]
481 #[inline(always)]
482 pub fn disable(self) -> &'a mut crate::W<REG> {
483 self.variant(Tie8::Disable)
484 }
485 #[doc = "Enables"]
486 #[inline(always)]
487 pub fn enable(self) -> &'a mut crate::W<REG> {
488 self.variant(Tie8::Enable)
489 }
490}
491#[doc = "Tamper Input Enable\n\nValue on reset: 0"]
492#[cfg_attr(feature = "defmt", derive(defmt::Format))]
493#[derive(Clone, Copy, Debug, PartialEq, Eq)]
494pub enum Tie9 {
495 #[doc = "0: Disables"]
496 Disable = 0,
497 #[doc = "1: Enables"]
498 Enable = 1,
499}
500impl From<Tie9> for bool {
501 #[inline(always)]
502 fn from(variant: Tie9) -> Self {
503 variant as u8 != 0
504 }
505}
506#[doc = "Field `TIE9` reader - Tamper Input Enable"]
507pub type Tie9R = crate::BitReader<Tie9>;
508impl Tie9R {
509 #[doc = "Get enumerated values variant"]
510 #[inline(always)]
511 pub const fn variant(&self) -> Tie9 {
512 match self.bits {
513 false => Tie9::Disable,
514 true => Tie9::Enable,
515 }
516 }
517 #[doc = "Disables"]
518 #[inline(always)]
519 pub fn is_disable(&self) -> bool {
520 *self == Tie9::Disable
521 }
522 #[doc = "Enables"]
523 #[inline(always)]
524 pub fn is_enable(&self) -> bool {
525 *self == Tie9::Enable
526 }
527}
528#[doc = "Field `TIE9` writer - Tamper Input Enable"]
529pub type Tie9W<'a, REG> = crate::BitWriter<'a, REG, Tie9>;
530impl<'a, REG> Tie9W<'a, REG>
531where
532 REG: crate::Writable + crate::RegisterSpec,
533{
534 #[doc = "Disables"]
535 #[inline(always)]
536 pub fn disable(self) -> &'a mut crate::W<REG> {
537 self.variant(Tie9::Disable)
538 }
539 #[doc = "Enables"]
540 #[inline(always)]
541 pub fn enable(self) -> &'a mut crate::W<REG> {
542 self.variant(Tie9::Enable)
543 }
544}
545#[doc = "Tamper Input Enable\n\nValue on reset: 0"]
546#[cfg_attr(feature = "defmt", derive(defmt::Format))]
547#[derive(Clone, Copy, Debug, PartialEq, Eq)]
548pub enum Tie10 {
549 #[doc = "0: Disables"]
550 Disable = 0,
551 #[doc = "1: Enables"]
552 Enable = 1,
553}
554impl From<Tie10> for bool {
555 #[inline(always)]
556 fn from(variant: Tie10) -> Self {
557 variant as u8 != 0
558 }
559}
560#[doc = "Field `TIE10` reader - Tamper Input Enable"]
561pub type Tie10R = crate::BitReader<Tie10>;
562impl Tie10R {
563 #[doc = "Get enumerated values variant"]
564 #[inline(always)]
565 pub const fn variant(&self) -> Tie10 {
566 match self.bits {
567 false => Tie10::Disable,
568 true => Tie10::Enable,
569 }
570 }
571 #[doc = "Disables"]
572 #[inline(always)]
573 pub fn is_disable(&self) -> bool {
574 *self == Tie10::Disable
575 }
576 #[doc = "Enables"]
577 #[inline(always)]
578 pub fn is_enable(&self) -> bool {
579 *self == Tie10::Enable
580 }
581}
582#[doc = "Field `TIE10` writer - Tamper Input Enable"]
583pub type Tie10W<'a, REG> = crate::BitWriter<'a, REG, Tie10>;
584impl<'a, REG> Tie10W<'a, REG>
585where
586 REG: crate::Writable + crate::RegisterSpec,
587{
588 #[doc = "Disables"]
589 #[inline(always)]
590 pub fn disable(self) -> &'a mut crate::W<REG> {
591 self.variant(Tie10::Disable)
592 }
593 #[doc = "Enables"]
594 #[inline(always)]
595 pub fn enable(self) -> &'a mut crate::W<REG> {
596 self.variant(Tie10::Enable)
597 }
598}
599#[doc = "Tamper Pin Enable\n\nValue on reset: 0"]
600#[cfg_attr(feature = "defmt", derive(defmt::Format))]
601#[derive(Clone, Copy, Debug, PartialEq, Eq)]
602pub enum Tpe0 {
603 #[doc = "0: Disables"]
604 Disable = 0,
605 #[doc = "1: Enables"]
606 Enable = 1,
607}
608impl From<Tpe0> for bool {
609 #[inline(always)]
610 fn from(variant: Tpe0) -> Self {
611 variant as u8 != 0
612 }
613}
614#[doc = "Field `TPE0` reader - Tamper Pin Enable"]
615pub type Tpe0R = crate::BitReader<Tpe0>;
616impl Tpe0R {
617 #[doc = "Get enumerated values variant"]
618 #[inline(always)]
619 pub const fn variant(&self) -> Tpe0 {
620 match self.bits {
621 false => Tpe0::Disable,
622 true => Tpe0::Enable,
623 }
624 }
625 #[doc = "Disables"]
626 #[inline(always)]
627 pub fn is_disable(&self) -> bool {
628 *self == Tpe0::Disable
629 }
630 #[doc = "Enables"]
631 #[inline(always)]
632 pub fn is_enable(&self) -> bool {
633 *self == Tpe0::Enable
634 }
635}
636#[doc = "Field `TPE0` writer - Tamper Pin Enable"]
637pub type Tpe0W<'a, REG> = crate::BitWriter<'a, REG, Tpe0>;
638impl<'a, REG> Tpe0W<'a, REG>
639where
640 REG: crate::Writable + crate::RegisterSpec,
641{
642 #[doc = "Disables"]
643 #[inline(always)]
644 pub fn disable(self) -> &'a mut crate::W<REG> {
645 self.variant(Tpe0::Disable)
646 }
647 #[doc = "Enables"]
648 #[inline(always)]
649 pub fn enable(self) -> &'a mut crate::W<REG> {
650 self.variant(Tpe0::Enable)
651 }
652}
653#[doc = "Tamper Pin Enable\n\nValue on reset: 0"]
654#[cfg_attr(feature = "defmt", derive(defmt::Format))]
655#[derive(Clone, Copy, Debug, PartialEq, Eq)]
656pub enum Tpe1 {
657 #[doc = "0: Disables"]
658 Disable = 0,
659 #[doc = "1: Enables"]
660 Enable = 1,
661}
662impl From<Tpe1> for bool {
663 #[inline(always)]
664 fn from(variant: Tpe1) -> Self {
665 variant as u8 != 0
666 }
667}
668#[doc = "Field `TPE1` reader - Tamper Pin Enable"]
669pub type Tpe1R = crate::BitReader<Tpe1>;
670impl Tpe1R {
671 #[doc = "Get enumerated values variant"]
672 #[inline(always)]
673 pub const fn variant(&self) -> Tpe1 {
674 match self.bits {
675 false => Tpe1::Disable,
676 true => Tpe1::Enable,
677 }
678 }
679 #[doc = "Disables"]
680 #[inline(always)]
681 pub fn is_disable(&self) -> bool {
682 *self == Tpe1::Disable
683 }
684 #[doc = "Enables"]
685 #[inline(always)]
686 pub fn is_enable(&self) -> bool {
687 *self == Tpe1::Enable
688 }
689}
690#[doc = "Field `TPE1` writer - Tamper Pin Enable"]
691pub type Tpe1W<'a, REG> = crate::BitWriter<'a, REG, Tpe1>;
692impl<'a, REG> Tpe1W<'a, REG>
693where
694 REG: crate::Writable + crate::RegisterSpec,
695{
696 #[doc = "Disables"]
697 #[inline(always)]
698 pub fn disable(self) -> &'a mut crate::W<REG> {
699 self.variant(Tpe1::Disable)
700 }
701 #[doc = "Enables"]
702 #[inline(always)]
703 pub fn enable(self) -> &'a mut crate::W<REG> {
704 self.variant(Tpe1::Enable)
705 }
706}
707#[doc = "Tamper Pin Enable\n\nValue on reset: 0"]
708#[cfg_attr(feature = "defmt", derive(defmt::Format))]
709#[derive(Clone, Copy, Debug, PartialEq, Eq)]
710pub enum Tpe2 {
711 #[doc = "0: Disables"]
712 Disable = 0,
713 #[doc = "1: Enables"]
714 Enable = 1,
715}
716impl From<Tpe2> for bool {
717 #[inline(always)]
718 fn from(variant: Tpe2) -> Self {
719 variant as u8 != 0
720 }
721}
722#[doc = "Field `TPE2` reader - Tamper Pin Enable"]
723pub type Tpe2R = crate::BitReader<Tpe2>;
724impl Tpe2R {
725 #[doc = "Get enumerated values variant"]
726 #[inline(always)]
727 pub const fn variant(&self) -> Tpe2 {
728 match self.bits {
729 false => Tpe2::Disable,
730 true => Tpe2::Enable,
731 }
732 }
733 #[doc = "Disables"]
734 #[inline(always)]
735 pub fn is_disable(&self) -> bool {
736 *self == Tpe2::Disable
737 }
738 #[doc = "Enables"]
739 #[inline(always)]
740 pub fn is_enable(&self) -> bool {
741 *self == Tpe2::Enable
742 }
743}
744#[doc = "Field `TPE2` writer - Tamper Pin Enable"]
745pub type Tpe2W<'a, REG> = crate::BitWriter<'a, REG, Tpe2>;
746impl<'a, REG> Tpe2W<'a, REG>
747where
748 REG: crate::Writable + crate::RegisterSpec,
749{
750 #[doc = "Disables"]
751 #[inline(always)]
752 pub fn disable(self) -> &'a mut crate::W<REG> {
753 self.variant(Tpe2::Disable)
754 }
755 #[doc = "Enables"]
756 #[inline(always)]
757 pub fn enable(self) -> &'a mut crate::W<REG> {
758 self.variant(Tpe2::Enable)
759 }
760}
761#[doc = "Tamper Pin Enable\n\nValue on reset: 0"]
762#[cfg_attr(feature = "defmt", derive(defmt::Format))]
763#[derive(Clone, Copy, Debug, PartialEq, Eq)]
764pub enum Tpe3 {
765 #[doc = "0: Disables"]
766 Disable = 0,
767 #[doc = "1: Enables"]
768 Enable = 1,
769}
770impl From<Tpe3> for bool {
771 #[inline(always)]
772 fn from(variant: Tpe3) -> Self {
773 variant as u8 != 0
774 }
775}
776#[doc = "Field `TPE3` reader - Tamper Pin Enable"]
777pub type Tpe3R = crate::BitReader<Tpe3>;
778impl Tpe3R {
779 #[doc = "Get enumerated values variant"]
780 #[inline(always)]
781 pub const fn variant(&self) -> Tpe3 {
782 match self.bits {
783 false => Tpe3::Disable,
784 true => Tpe3::Enable,
785 }
786 }
787 #[doc = "Disables"]
788 #[inline(always)]
789 pub fn is_disable(&self) -> bool {
790 *self == Tpe3::Disable
791 }
792 #[doc = "Enables"]
793 #[inline(always)]
794 pub fn is_enable(&self) -> bool {
795 *self == Tpe3::Enable
796 }
797}
798#[doc = "Field `TPE3` writer - Tamper Pin Enable"]
799pub type Tpe3W<'a, REG> = crate::BitWriter<'a, REG, Tpe3>;
800impl<'a, REG> Tpe3W<'a, REG>
801where
802 REG: crate::Writable + crate::RegisterSpec,
803{
804 #[doc = "Disables"]
805 #[inline(always)]
806 pub fn disable(self) -> &'a mut crate::W<REG> {
807 self.variant(Tpe3::Disable)
808 }
809 #[doc = "Enables"]
810 #[inline(always)]
811 pub fn enable(self) -> &'a mut crate::W<REG> {
812 self.variant(Tpe3::Enable)
813 }
814}
815#[doc = "Tamper Pin Enable\n\nValue on reset: 0"]
816#[cfg_attr(feature = "defmt", derive(defmt::Format))]
817#[derive(Clone, Copy, Debug, PartialEq, Eq)]
818pub enum Tpe4 {
819 #[doc = "0: Disables"]
820 Disable = 0,
821 #[doc = "1: Enables"]
822 Enable = 1,
823}
824impl From<Tpe4> for bool {
825 #[inline(always)]
826 fn from(variant: Tpe4) -> Self {
827 variant as u8 != 0
828 }
829}
830#[doc = "Field `TPE4` reader - Tamper Pin Enable"]
831pub type Tpe4R = crate::BitReader<Tpe4>;
832impl Tpe4R {
833 #[doc = "Get enumerated values variant"]
834 #[inline(always)]
835 pub const fn variant(&self) -> Tpe4 {
836 match self.bits {
837 false => Tpe4::Disable,
838 true => Tpe4::Enable,
839 }
840 }
841 #[doc = "Disables"]
842 #[inline(always)]
843 pub fn is_disable(&self) -> bool {
844 *self == Tpe4::Disable
845 }
846 #[doc = "Enables"]
847 #[inline(always)]
848 pub fn is_enable(&self) -> bool {
849 *self == Tpe4::Enable
850 }
851}
852#[doc = "Field `TPE4` writer - Tamper Pin Enable"]
853pub type Tpe4W<'a, REG> = crate::BitWriter<'a, REG, Tpe4>;
854impl<'a, REG> Tpe4W<'a, REG>
855where
856 REG: crate::Writable + crate::RegisterSpec,
857{
858 #[doc = "Disables"]
859 #[inline(always)]
860 pub fn disable(self) -> &'a mut crate::W<REG> {
861 self.variant(Tpe4::Disable)
862 }
863 #[doc = "Enables"]
864 #[inline(always)]
865 pub fn enable(self) -> &'a mut crate::W<REG> {
866 self.variant(Tpe4::Enable)
867 }
868}
869#[doc = "Tamper Pin Enable\n\nValue on reset: 0"]
870#[cfg_attr(feature = "defmt", derive(defmt::Format))]
871#[derive(Clone, Copy, Debug, PartialEq, Eq)]
872pub enum Tpe5 {
873 #[doc = "0: Disables"]
874 Disable = 0,
875 #[doc = "1: Enables"]
876 Enable = 1,
877}
878impl From<Tpe5> for bool {
879 #[inline(always)]
880 fn from(variant: Tpe5) -> Self {
881 variant as u8 != 0
882 }
883}
884#[doc = "Field `TPE5` reader - Tamper Pin Enable"]
885pub type Tpe5R = crate::BitReader<Tpe5>;
886impl Tpe5R {
887 #[doc = "Get enumerated values variant"]
888 #[inline(always)]
889 pub const fn variant(&self) -> Tpe5 {
890 match self.bits {
891 false => Tpe5::Disable,
892 true => Tpe5::Enable,
893 }
894 }
895 #[doc = "Disables"]
896 #[inline(always)]
897 pub fn is_disable(&self) -> bool {
898 *self == Tpe5::Disable
899 }
900 #[doc = "Enables"]
901 #[inline(always)]
902 pub fn is_enable(&self) -> bool {
903 *self == Tpe5::Enable
904 }
905}
906#[doc = "Field `TPE5` writer - Tamper Pin Enable"]
907pub type Tpe5W<'a, REG> = crate::BitWriter<'a, REG, Tpe5>;
908impl<'a, REG> Tpe5W<'a, REG>
909where
910 REG: crate::Writable + crate::RegisterSpec,
911{
912 #[doc = "Disables"]
913 #[inline(always)]
914 pub fn disable(self) -> &'a mut crate::W<REG> {
915 self.variant(Tpe5::Disable)
916 }
917 #[doc = "Enables"]
918 #[inline(always)]
919 pub fn enable(self) -> &'a mut crate::W<REG> {
920 self.variant(Tpe5::Enable)
921 }
922}
923impl R {
924 #[doc = "Bit 2 - Tamper Input Enable"]
925 #[inline(always)]
926 pub fn tie0(&self) -> Tie0R {
927 Tie0R::new(((self.bits >> 2) & 1) != 0)
928 }
929 #[doc = "Bit 3 - Tamper Input Enable"]
930 #[inline(always)]
931 pub fn tie1(&self) -> Tie1R {
932 Tie1R::new(((self.bits >> 3) & 1) != 0)
933 }
934 #[doc = "Bit 4 - Tamper Input Enable"]
935 #[inline(always)]
936 pub fn tie2(&self) -> Tie2R {
937 Tie2R::new(((self.bits >> 4) & 1) != 0)
938 }
939 #[doc = "Bit 5 - Tamper Input Enable"]
940 #[inline(always)]
941 pub fn tie3(&self) -> Tie3R {
942 Tie3R::new(((self.bits >> 5) & 1) != 0)
943 }
944 #[doc = "Bit 6 - Tamper Input Enable"]
945 #[inline(always)]
946 pub fn tie4(&self) -> Tie4R {
947 Tie4R::new(((self.bits >> 6) & 1) != 0)
948 }
949 #[doc = "Bit 7 - Tamper Input Enable"]
950 #[inline(always)]
951 pub fn tie5(&self) -> Tie5R {
952 Tie5R::new(((self.bits >> 7) & 1) != 0)
953 }
954 #[doc = "Bit 8 - Tamper Input Enable"]
955 #[inline(always)]
956 pub fn tie6(&self) -> Tie6R {
957 Tie6R::new(((self.bits >> 8) & 1) != 0)
958 }
959 #[doc = "Bit 9 - Tamper Input Enable"]
960 #[inline(always)]
961 pub fn tie7(&self) -> Tie7R {
962 Tie7R::new(((self.bits >> 9) & 1) != 0)
963 }
964 #[doc = "Bit 10 - Tamper Input Enable"]
965 #[inline(always)]
966 pub fn tie8(&self) -> Tie8R {
967 Tie8R::new(((self.bits >> 10) & 1) != 0)
968 }
969 #[doc = "Bit 11 - Tamper Input Enable"]
970 #[inline(always)]
971 pub fn tie9(&self) -> Tie9R {
972 Tie9R::new(((self.bits >> 11) & 1) != 0)
973 }
974 #[doc = "Bit 12 - Tamper Input Enable"]
975 #[inline(always)]
976 pub fn tie10(&self) -> Tie10R {
977 Tie10R::new(((self.bits >> 12) & 1) != 0)
978 }
979 #[doc = "Bit 16 - Tamper Pin Enable"]
980 #[inline(always)]
981 pub fn tpe0(&self) -> Tpe0R {
982 Tpe0R::new(((self.bits >> 16) & 1) != 0)
983 }
984 #[doc = "Bit 17 - Tamper Pin Enable"]
985 #[inline(always)]
986 pub fn tpe1(&self) -> Tpe1R {
987 Tpe1R::new(((self.bits >> 17) & 1) != 0)
988 }
989 #[doc = "Bit 18 - Tamper Pin Enable"]
990 #[inline(always)]
991 pub fn tpe2(&self) -> Tpe2R {
992 Tpe2R::new(((self.bits >> 18) & 1) != 0)
993 }
994 #[doc = "Bit 19 - Tamper Pin Enable"]
995 #[inline(always)]
996 pub fn tpe3(&self) -> Tpe3R {
997 Tpe3R::new(((self.bits >> 19) & 1) != 0)
998 }
999 #[doc = "Bit 20 - Tamper Pin Enable"]
1000 #[inline(always)]
1001 pub fn tpe4(&self) -> Tpe4R {
1002 Tpe4R::new(((self.bits >> 20) & 1) != 0)
1003 }
1004 #[doc = "Bit 21 - Tamper Pin Enable"]
1005 #[inline(always)]
1006 pub fn tpe5(&self) -> Tpe5R {
1007 Tpe5R::new(((self.bits >> 21) & 1) != 0)
1008 }
1009}
1010#[cfg(feature = "debug")]
1011impl core::fmt::Debug for R {
1012 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
1013 f.debug_struct("TER")
1014 .field("tie0", &self.tie0())
1015 .field("tie1", &self.tie1())
1016 .field("tie2", &self.tie2())
1017 .field("tie3", &self.tie3())
1018 .field("tie4", &self.tie4())
1019 .field("tie5", &self.tie5())
1020 .field("tie6", &self.tie6())
1021 .field("tie7", &self.tie7())
1022 .field("tie8", &self.tie8())
1023 .field("tie9", &self.tie9())
1024 .field("tie10", &self.tie10())
1025 .field("tpe0", &self.tpe0())
1026 .field("tpe1", &self.tpe1())
1027 .field("tpe2", &self.tpe2())
1028 .field("tpe3", &self.tpe3())
1029 .field("tpe4", &self.tpe4())
1030 .field("tpe5", &self.tpe5())
1031 .finish()
1032 }
1033}
1034impl W {
1035 #[doc = "Bit 2 - Tamper Input Enable"]
1036 #[inline(always)]
1037 pub fn tie0(&mut self) -> Tie0W<'_, TerSpec> {
1038 Tie0W::new(self, 2)
1039 }
1040 #[doc = "Bit 3 - Tamper Input Enable"]
1041 #[inline(always)]
1042 pub fn tie1(&mut self) -> Tie1W<'_, TerSpec> {
1043 Tie1W::new(self, 3)
1044 }
1045 #[doc = "Bit 4 - Tamper Input Enable"]
1046 #[inline(always)]
1047 pub fn tie2(&mut self) -> Tie2W<'_, TerSpec> {
1048 Tie2W::new(self, 4)
1049 }
1050 #[doc = "Bit 5 - Tamper Input Enable"]
1051 #[inline(always)]
1052 pub fn tie3(&mut self) -> Tie3W<'_, TerSpec> {
1053 Tie3W::new(self, 5)
1054 }
1055 #[doc = "Bit 6 - Tamper Input Enable"]
1056 #[inline(always)]
1057 pub fn tie4(&mut self) -> Tie4W<'_, TerSpec> {
1058 Tie4W::new(self, 6)
1059 }
1060 #[doc = "Bit 7 - Tamper Input Enable"]
1061 #[inline(always)]
1062 pub fn tie5(&mut self) -> Tie5W<'_, TerSpec> {
1063 Tie5W::new(self, 7)
1064 }
1065 #[doc = "Bit 8 - Tamper Input Enable"]
1066 #[inline(always)]
1067 pub fn tie6(&mut self) -> Tie6W<'_, TerSpec> {
1068 Tie6W::new(self, 8)
1069 }
1070 #[doc = "Bit 9 - Tamper Input Enable"]
1071 #[inline(always)]
1072 pub fn tie7(&mut self) -> Tie7W<'_, TerSpec> {
1073 Tie7W::new(self, 9)
1074 }
1075 #[doc = "Bit 10 - Tamper Input Enable"]
1076 #[inline(always)]
1077 pub fn tie8(&mut self) -> Tie8W<'_, TerSpec> {
1078 Tie8W::new(self, 10)
1079 }
1080 #[doc = "Bit 11 - Tamper Input Enable"]
1081 #[inline(always)]
1082 pub fn tie9(&mut self) -> Tie9W<'_, TerSpec> {
1083 Tie9W::new(self, 11)
1084 }
1085 #[doc = "Bit 12 - Tamper Input Enable"]
1086 #[inline(always)]
1087 pub fn tie10(&mut self) -> Tie10W<'_, TerSpec> {
1088 Tie10W::new(self, 12)
1089 }
1090 #[doc = "Bit 16 - Tamper Pin Enable"]
1091 #[inline(always)]
1092 pub fn tpe0(&mut self) -> Tpe0W<'_, TerSpec> {
1093 Tpe0W::new(self, 16)
1094 }
1095 #[doc = "Bit 17 - Tamper Pin Enable"]
1096 #[inline(always)]
1097 pub fn tpe1(&mut self) -> Tpe1W<'_, TerSpec> {
1098 Tpe1W::new(self, 17)
1099 }
1100 #[doc = "Bit 18 - Tamper Pin Enable"]
1101 #[inline(always)]
1102 pub fn tpe2(&mut self) -> Tpe2W<'_, TerSpec> {
1103 Tpe2W::new(self, 18)
1104 }
1105 #[doc = "Bit 19 - Tamper Pin Enable"]
1106 #[inline(always)]
1107 pub fn tpe3(&mut self) -> Tpe3W<'_, TerSpec> {
1108 Tpe3W::new(self, 19)
1109 }
1110 #[doc = "Bit 20 - Tamper Pin Enable"]
1111 #[inline(always)]
1112 pub fn tpe4(&mut self) -> Tpe4W<'_, TerSpec> {
1113 Tpe4W::new(self, 20)
1114 }
1115 #[doc = "Bit 21 - Tamper Pin Enable"]
1116 #[inline(always)]
1117 pub fn tpe5(&mut self) -> Tpe5W<'_, TerSpec> {
1118 Tpe5W::new(self, 21)
1119 }
1120}
1121#[doc = "Tamper Enable\n\nYou can [`read`](crate::Reg::read) this register and get [`ter::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ter::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
1122pub struct TerSpec;
1123impl crate::RegisterSpec for TerSpec {
1124 type Ux = u32;
1125}
1126#[doc = "`read()` method returns [`ter::R`](R) reader structure"]
1127impl crate::Readable for TerSpec {}
1128#[doc = "`write(|w| ..)` method takes [`ter::W`](W) writer structure"]
1129impl crate::Writable for TerSpec {
1130 type Safety = crate::Unsafe;
1131}
1132#[doc = "`reset()` method sets TER to value 0"]
1133impl crate::Resettable for TerSpec {}