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