efm32gg_pac/efm32gg230/etm/
etmccer.rs1#[doc = "Register `ETMCCER` reader"]
2pub struct R(crate::R<ETMCCER_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<ETMCCER_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<ETMCCER_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<ETMCCER_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `EXTINPSEL` reader - Extended External Input Selectors"]
17pub type EXTINPSEL_R = crate::FieldReader<u8, u8>;
18#[doc = "Field `EXTINPBUS` reader - Extended External Input Bus"]
19pub type EXTINPBUS_R = crate::FieldReader<u8, u8>;
20#[doc = "Field `READREGS` reader - Readable Registers"]
21pub type READREGS_R = crate::BitReader<bool>;
22#[doc = "Field `DADDRCMP` reader - Data Address comparisons"]
23pub type DADDRCMP_R = crate::BitReader<bool>;
24#[doc = "Field `INSTRES` reader - Instrumentation Resources"]
25pub type INSTRES_R = crate::FieldReader<u8, u8>;
26#[doc = "Field `EICEWPNT` reader - EmbeddedICE watchpoint inputs"]
27pub type EICEWPNT_R = crate::FieldReader<u8, u8>;
28#[doc = "Field `TEICEWPNT` reader - Trace Sart/Stop Block Uses EmbeddedICE watchpoint inputs"]
29pub type TEICEWPNT_R = crate::BitReader<bool>;
30#[doc = "Field `EICEIMP` reader - EmbeddedICE Behavior control Implemented"]
31pub type EICEIMP_R = crate::BitReader<bool>;
32#[doc = "Field `TIMP` reader - Timestamping Implemented"]
33pub type TIMP_R = crate::BitReader<bool>;
34#[doc = "Field `RFCNT` reader - Reduced Function Counter"]
35pub type RFCNT_R = crate::BitReader<bool>;
36#[doc = "Field `TENC` reader - Timestamp Encoding"]
37pub type TENC_R = crate::BitReader<bool>;
38#[doc = "Field `TSIZE` reader - Timestamp Size"]
39pub type TSIZE_R = crate::BitReader<bool>;
40impl R {
41 #[doc = "Bits 0:1 - Extended External Input Selectors"]
42 #[inline(always)]
43 pub fn extinpsel(&self) -> EXTINPSEL_R {
44 EXTINPSEL_R::new((self.bits & 3) as u8)
45 }
46 #[doc = "Bits 3:10 - Extended External Input Bus"]
47 #[inline(always)]
48 pub fn extinpbus(&self) -> EXTINPBUS_R {
49 EXTINPBUS_R::new(((self.bits >> 3) & 0xff) as u8)
50 }
51 #[doc = "Bit 11 - Readable Registers"]
52 #[inline(always)]
53 pub fn readregs(&self) -> READREGS_R {
54 READREGS_R::new(((self.bits >> 11) & 1) != 0)
55 }
56 #[doc = "Bit 12 - Data Address comparisons"]
57 #[inline(always)]
58 pub fn daddrcmp(&self) -> DADDRCMP_R {
59 DADDRCMP_R::new(((self.bits >> 12) & 1) != 0)
60 }
61 #[doc = "Bits 13:15 - Instrumentation Resources"]
62 #[inline(always)]
63 pub fn instres(&self) -> INSTRES_R {
64 INSTRES_R::new(((self.bits >> 13) & 7) as u8)
65 }
66 #[doc = "Bits 16:19 - EmbeddedICE watchpoint inputs"]
67 #[inline(always)]
68 pub fn eicewpnt(&self) -> EICEWPNT_R {
69 EICEWPNT_R::new(((self.bits >> 16) & 0x0f) as u8)
70 }
71 #[doc = "Bit 20 - Trace Sart/Stop Block Uses EmbeddedICE watchpoint inputs"]
72 #[inline(always)]
73 pub fn teicewpnt(&self) -> TEICEWPNT_R {
74 TEICEWPNT_R::new(((self.bits >> 20) & 1) != 0)
75 }
76 #[doc = "Bit 21 - EmbeddedICE Behavior control Implemented"]
77 #[inline(always)]
78 pub fn eiceimp(&self) -> EICEIMP_R {
79 EICEIMP_R::new(((self.bits >> 21) & 1) != 0)
80 }
81 #[doc = "Bit 22 - Timestamping Implemented"]
82 #[inline(always)]
83 pub fn timp(&self) -> TIMP_R {
84 TIMP_R::new(((self.bits >> 22) & 1) != 0)
85 }
86 #[doc = "Bit 27 - Reduced Function Counter"]
87 #[inline(always)]
88 pub fn rfcnt(&self) -> RFCNT_R {
89 RFCNT_R::new(((self.bits >> 27) & 1) != 0)
90 }
91 #[doc = "Bit 28 - Timestamp Encoding"]
92 #[inline(always)]
93 pub fn tenc(&self) -> TENC_R {
94 TENC_R::new(((self.bits >> 28) & 1) != 0)
95 }
96 #[doc = "Bit 29 - Timestamp Size"]
97 #[inline(always)]
98 pub fn tsize(&self) -> TSIZE_R {
99 TSIZE_R::new(((self.bits >> 29) & 1) != 0)
100 }
101}
102#[doc = "Configuration Code Extension Register\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 [etmccer](index.html) module"]
103pub struct ETMCCER_SPEC;
104impl crate::RegisterSpec for ETMCCER_SPEC {
105 type Ux = u32;
106}
107#[doc = "`read()` method returns [etmccer::R](R) reader structure"]
108impl crate::Readable for ETMCCER_SPEC {
109 type Reader = R;
110}
111#[doc = "`reset()` method sets ETMCCER to value 0x1854_1800"]
112impl crate::Resettable for ETMCCER_SPEC {
113 const RESET_VALUE: Self::Ux = 0x1854_1800;
114}