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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#[doc = "Register `DID` reader"]
pub struct R(crate::R<DID_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<DID_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<DID_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<DID_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `DEVSEL` reader - Device Select"]
pub struct DEVSEL_R(crate::FieldReader<u8, u8>);
impl DEVSEL_R {
#[inline(always)]
pub(crate) fn new(bits: u8) -> Self {
DEVSEL_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for DEVSEL_R {
type Target = crate::FieldReader<u8, u8>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `REVISION` reader - Revision"]
pub struct REVISION_R(crate::FieldReader<u8, u8>);
impl REVISION_R {
#[inline(always)]
pub(crate) fn new(bits: u8) -> Self {
REVISION_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for REVISION_R {
type Target = crate::FieldReader<u8, u8>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `DIE` reader - Die Identification"]
pub struct DIE_R(crate::FieldReader<u8, u8>);
impl DIE_R {
#[inline(always)]
pub(crate) fn new(bits: u8) -> Self {
DIE_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for DIE_R {
type Target = crate::FieldReader<u8, u8>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `SERIES` reader - Product Series"]
pub struct SERIES_R(crate::FieldReader<u8, u8>);
impl SERIES_R {
#[inline(always)]
pub(crate) fn new(bits: u8) -> Self {
SERIES_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for SERIES_R {
type Target = crate::FieldReader<u8, u8>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `FAMILY` reader - Product Family"]
pub struct FAMILY_R(crate::FieldReader<u8, u8>);
impl FAMILY_R {
#[inline(always)]
pub(crate) fn new(bits: u8) -> Self {
FAMILY_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for FAMILY_R {
type Target = crate::FieldReader<u8, u8>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `PROCESSOR` reader - Processor"]
pub struct PROCESSOR_R(crate::FieldReader<u8, u8>);
impl PROCESSOR_R {
#[inline(always)]
pub(crate) fn new(bits: u8) -> Self {
PROCESSOR_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for PROCESSOR_R {
type Target = crate::FieldReader<u8, u8>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl R {
#[doc = "Bits 0:7 - Device Select"]
#[inline(always)]
pub fn devsel(&self) -> DEVSEL_R {
DEVSEL_R::new((self.bits & 0xff) as u8)
}
#[doc = "Bits 8:11 - Revision"]
#[inline(always)]
pub fn revision(&self) -> REVISION_R {
REVISION_R::new(((self.bits >> 8) & 0x0f) as u8)
}
#[doc = "Bits 12:15 - Die Identification"]
#[inline(always)]
pub fn die(&self) -> DIE_R {
DIE_R::new(((self.bits >> 12) & 0x0f) as u8)
}
#[doc = "Bits 16:21 - Product Series"]
#[inline(always)]
pub fn series(&self) -> SERIES_R {
SERIES_R::new(((self.bits >> 16) & 0x3f) as u8)
}
#[doc = "Bits 23:27 - Product Family"]
#[inline(always)]
pub fn family(&self) -> FAMILY_R {
FAMILY_R::new(((self.bits >> 23) & 0x1f) as u8)
}
#[doc = "Bits 28:31 - Processor"]
#[inline(always)]
pub fn processor(&self) -> PROCESSOR_R {
PROCESSOR_R::new(((self.bits >> 28) & 0x0f) as u8)
}
}
#[doc = "Device Identification\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 [did](index.html) module"]
pub struct DID_SPEC;
impl crate::RegisterSpec for DID_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [did::R](R) reader structure"]
impl crate::Readable for DID_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets DID to value 0x1001_0300"]
impl crate::Resettable for DID_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0x1001_0300
}
}