efm32pg22_pac/efm32pg22c200/timer4_s/
dtfault.rs1#[doc = "Register `DTFAULT` reader"]
2pub struct R(crate::R<DTFAULT_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<DTFAULT_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<DTFAULT_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<DTFAULT_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `DTPRS0F` reader - DTI PRS 0 Fault"]
17pub type DTPRS0F_R = crate::BitReader<bool>;
18#[doc = "Field `DTPRS1F` reader - DTI PRS 1 Fault"]
19pub type DTPRS1F_R = crate::BitReader<bool>;
20#[doc = "Field `DTDBGF` reader - DTI Debugger Fault"]
21pub type DTDBGF_R = crate::BitReader<bool>;
22#[doc = "Field `DTLOCKUPF` reader - DTI Lockup Fault"]
23pub type DTLOCKUPF_R = crate::BitReader<bool>;
24#[doc = "Field `DTEM23F` reader - DTI EM23 Entry Fault"]
25pub type DTEM23F_R = crate::BitReader<bool>;
26impl R {
27 #[doc = "Bit 0 - DTI PRS 0 Fault"]
28 #[inline(always)]
29 pub fn dtprs0f(&self) -> DTPRS0F_R {
30 DTPRS0F_R::new((self.bits & 1) != 0)
31 }
32 #[doc = "Bit 1 - DTI PRS 1 Fault"]
33 #[inline(always)]
34 pub fn dtprs1f(&self) -> DTPRS1F_R {
35 DTPRS1F_R::new(((self.bits >> 1) & 1) != 0)
36 }
37 #[doc = "Bit 2 - DTI Debugger Fault"]
38 #[inline(always)]
39 pub fn dtdbgf(&self) -> DTDBGF_R {
40 DTDBGF_R::new(((self.bits >> 2) & 1) != 0)
41 }
42 #[doc = "Bit 3 - DTI Lockup Fault"]
43 #[inline(always)]
44 pub fn dtlockupf(&self) -> DTLOCKUPF_R {
45 DTLOCKUPF_R::new(((self.bits >> 3) & 1) != 0)
46 }
47 #[doc = "Bit 4 - DTI EM23 Entry Fault"]
48 #[inline(always)]
49 pub fn dtem23f(&self) -> DTEM23F_R {
50 DTEM23F_R::new(((self.bits >> 4) & 1) != 0)
51 }
52}
53#[doc = "No Description\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [dtfault](index.html) module"]
54pub struct DTFAULT_SPEC;
55impl crate::RegisterSpec for DTFAULT_SPEC {
56 type Ux = u32;
57}
58#[doc = "`read()` method returns [dtfault::R](R) reader structure"]
59impl crate::Readable for DTFAULT_SPEC {
60 type Reader = R;
61}
62#[doc = "`reset()` method sets DTFAULT to value 0"]
63impl crate::Resettable for DTFAULT_SPEC {
64 const RESET_VALUE: Self::Ux = 0;
65}