1#[doc = "Register `CR` reader"]
2pub type R = crate::R<CrSpec>;
3#[doc = "Register `CR` writer"]
4pub type W = crate::W<CrSpec>;
5#[doc = "Field `EXTI0EN` reader - EXTI0EN"]
6pub type Exti0enR = crate::BitReader;
7#[doc = "Field `EXTI0EN` writer - EXTI0EN"]
8pub type Exti0enW<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `EXTI1EN` reader - EXTI1EN"]
10pub type Exti1enR = crate::BitReader;
11#[doc = "Field `EXTI1EN` writer - EXTI1EN"]
12pub type Exti1enW<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `EXTI2EN` reader - EXTI2EN"]
14pub type Exti2enR = crate::BitReader;
15#[doc = "Field `EXTI2EN` writer - EXTI2EN"]
16pub type Exti2enW<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `EXTI3EN` reader - EXTI3EN"]
18pub type Exti3enR = crate::BitReader;
19#[doc = "Field `EXTI3EN` writer - EXTI3EN"]
20pub type Exti3enW<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `EXTI4EN` reader - EXTI4EN"]
22pub type Exti4enR = crate::BitReader;
23#[doc = "Field `EXTI4EN` writer - EXTI4EN"]
24pub type Exti4enW<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `EXTI5EN` reader - EXTI5EN"]
26pub type Exti5enR = crate::BitReader;
27#[doc = "Field `EXTI5EN` writer - EXTI5EN"]
28pub type Exti5enW<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `EXTI6EN` reader - EXTI6EN"]
30pub type Exti6enR = crate::BitReader;
31#[doc = "Field `EXTI6EN` writer - EXTI6EN"]
32pub type Exti6enW<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `EXTI7EN` reader - EXTI7EN"]
34pub type Exti7enR = crate::BitReader;
35#[doc = "Field `EXTI7EN` writer - EXTI7EN"]
36pub type Exti7enW<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `EXTI8EN` reader - EXTI8EN"]
38pub type Exti8enR = crate::BitReader;
39#[doc = "Field `EXTI8EN` writer - EXTI8EN"]
40pub type Exti8enW<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `EXTI9EN` reader - EXTI9EN"]
42pub type Exti9enR = crate::BitReader;
43#[doc = "Field `EXTI9EN` writer - EXTI9EN"]
44pub type Exti9enW<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `EXTI10EN` reader - EXTI10EN"]
46pub type Exti10enR = crate::BitReader;
47#[doc = "Field `EXTI10EN` writer - EXTI10EN"]
48pub type Exti10enW<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `EXTI11EN` reader - EXTI11EN"]
50pub type Exti11enR = crate::BitReader;
51#[doc = "Field `EXTI11EN` writer - EXTI11EN"]
52pub type Exti11enW<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `EXTI12EN` reader - EXTI12EN"]
54pub type Exti12enR = crate::BitReader;
55#[doc = "Field `EXTI12EN` writer - EXTI12EN"]
56pub type Exti12enW<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `EXTI13EN` reader - EXTI13EN"]
58pub type Exti13enR = crate::BitReader;
59#[doc = "Field `EXTI13EN` writer - EXTI13EN"]
60pub type Exti13enW<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `EXTI14EN` reader - EXTI14EN"]
62pub type Exti14enR = crate::BitReader;
63#[doc = "Field `EXTI14EN` writer - EXTI14EN"]
64pub type Exti14enW<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `EXTI15EN` reader - EXTI15EN"]
66pub type Exti15enR = crate::BitReader;
67#[doc = "Field `EXTI15EN` writer - EXTI15EN"]
68pub type Exti15enW<'a, REG> = crate::BitWriter<'a, REG>;
69impl R {
70 #[doc = "Bit 0 - EXTI0EN"]
71 #[inline(always)]
72 pub fn exti0en(&self) -> Exti0enR {
73 Exti0enR::new((self.bits & 1) != 0)
74 }
75 #[doc = "Bit 1 - EXTI1EN"]
76 #[inline(always)]
77 pub fn exti1en(&self) -> Exti1enR {
78 Exti1enR::new(((self.bits >> 1) & 1) != 0)
79 }
80 #[doc = "Bit 2 - EXTI2EN"]
81 #[inline(always)]
82 pub fn exti2en(&self) -> Exti2enR {
83 Exti2enR::new(((self.bits >> 2) & 1) != 0)
84 }
85 #[doc = "Bit 3 - EXTI3EN"]
86 #[inline(always)]
87 pub fn exti3en(&self) -> Exti3enR {
88 Exti3enR::new(((self.bits >> 3) & 1) != 0)
89 }
90 #[doc = "Bit 4 - EXTI4EN"]
91 #[inline(always)]
92 pub fn exti4en(&self) -> Exti4enR {
93 Exti4enR::new(((self.bits >> 4) & 1) != 0)
94 }
95 #[doc = "Bit 5 - EXTI5EN"]
96 #[inline(always)]
97 pub fn exti5en(&self) -> Exti5enR {
98 Exti5enR::new(((self.bits >> 5) & 1) != 0)
99 }
100 #[doc = "Bit 6 - EXTI6EN"]
101 #[inline(always)]
102 pub fn exti6en(&self) -> Exti6enR {
103 Exti6enR::new(((self.bits >> 6) & 1) != 0)
104 }
105 #[doc = "Bit 7 - EXTI7EN"]
106 #[inline(always)]
107 pub fn exti7en(&self) -> Exti7enR {
108 Exti7enR::new(((self.bits >> 7) & 1) != 0)
109 }
110 #[doc = "Bit 8 - EXTI8EN"]
111 #[inline(always)]
112 pub fn exti8en(&self) -> Exti8enR {
113 Exti8enR::new(((self.bits >> 8) & 1) != 0)
114 }
115 #[doc = "Bit 9 - EXTI9EN"]
116 #[inline(always)]
117 pub fn exti9en(&self) -> Exti9enR {
118 Exti9enR::new(((self.bits >> 9) & 1) != 0)
119 }
120 #[doc = "Bit 10 - EXTI10EN"]
121 #[inline(always)]
122 pub fn exti10en(&self) -> Exti10enR {
123 Exti10enR::new(((self.bits >> 10) & 1) != 0)
124 }
125 #[doc = "Bit 11 - EXTI11EN"]
126 #[inline(always)]
127 pub fn exti11en(&self) -> Exti11enR {
128 Exti11enR::new(((self.bits >> 11) & 1) != 0)
129 }
130 #[doc = "Bit 12 - EXTI12EN"]
131 #[inline(always)]
132 pub fn exti12en(&self) -> Exti12enR {
133 Exti12enR::new(((self.bits >> 12) & 1) != 0)
134 }
135 #[doc = "Bit 13 - EXTI13EN"]
136 #[inline(always)]
137 pub fn exti13en(&self) -> Exti13enR {
138 Exti13enR::new(((self.bits >> 13) & 1) != 0)
139 }
140 #[doc = "Bit 14 - EXTI14EN"]
141 #[inline(always)]
142 pub fn exti14en(&self) -> Exti14enR {
143 Exti14enR::new(((self.bits >> 14) & 1) != 0)
144 }
145 #[doc = "Bit 15 - EXTI15EN"]
146 #[inline(always)]
147 pub fn exti15en(&self) -> Exti15enR {
148 Exti15enR::new(((self.bits >> 15) & 1) != 0)
149 }
150}
151impl W {
152 #[doc = "Bit 0 - EXTI0EN"]
153 #[inline(always)]
154 #[must_use]
155 pub fn exti0en(&mut self) -> Exti0enW<CrSpec> {
156 Exti0enW::new(self, 0)
157 }
158 #[doc = "Bit 1 - EXTI1EN"]
159 #[inline(always)]
160 #[must_use]
161 pub fn exti1en(&mut self) -> Exti1enW<CrSpec> {
162 Exti1enW::new(self, 1)
163 }
164 #[doc = "Bit 2 - EXTI2EN"]
165 #[inline(always)]
166 #[must_use]
167 pub fn exti2en(&mut self) -> Exti2enW<CrSpec> {
168 Exti2enW::new(self, 2)
169 }
170 #[doc = "Bit 3 - EXTI3EN"]
171 #[inline(always)]
172 #[must_use]
173 pub fn exti3en(&mut self) -> Exti3enW<CrSpec> {
174 Exti3enW::new(self, 3)
175 }
176 #[doc = "Bit 4 - EXTI4EN"]
177 #[inline(always)]
178 #[must_use]
179 pub fn exti4en(&mut self) -> Exti4enW<CrSpec> {
180 Exti4enW::new(self, 4)
181 }
182 #[doc = "Bit 5 - EXTI5EN"]
183 #[inline(always)]
184 #[must_use]
185 pub fn exti5en(&mut self) -> Exti5enW<CrSpec> {
186 Exti5enW::new(self, 5)
187 }
188 #[doc = "Bit 6 - EXTI6EN"]
189 #[inline(always)]
190 #[must_use]
191 pub fn exti6en(&mut self) -> Exti6enW<CrSpec> {
192 Exti6enW::new(self, 6)
193 }
194 #[doc = "Bit 7 - EXTI7EN"]
195 #[inline(always)]
196 #[must_use]
197 pub fn exti7en(&mut self) -> Exti7enW<CrSpec> {
198 Exti7enW::new(self, 7)
199 }
200 #[doc = "Bit 8 - EXTI8EN"]
201 #[inline(always)]
202 #[must_use]
203 pub fn exti8en(&mut self) -> Exti8enW<CrSpec> {
204 Exti8enW::new(self, 8)
205 }
206 #[doc = "Bit 9 - EXTI9EN"]
207 #[inline(always)]
208 #[must_use]
209 pub fn exti9en(&mut self) -> Exti9enW<CrSpec> {
210 Exti9enW::new(self, 9)
211 }
212 #[doc = "Bit 10 - EXTI10EN"]
213 #[inline(always)]
214 #[must_use]
215 pub fn exti10en(&mut self) -> Exti10enW<CrSpec> {
216 Exti10enW::new(self, 10)
217 }
218 #[doc = "Bit 11 - EXTI11EN"]
219 #[inline(always)]
220 #[must_use]
221 pub fn exti11en(&mut self) -> Exti11enW<CrSpec> {
222 Exti11enW::new(self, 11)
223 }
224 #[doc = "Bit 12 - EXTI12EN"]
225 #[inline(always)]
226 #[must_use]
227 pub fn exti12en(&mut self) -> Exti12enW<CrSpec> {
228 Exti12enW::new(self, 12)
229 }
230 #[doc = "Bit 13 - EXTI13EN"]
231 #[inline(always)]
232 #[must_use]
233 pub fn exti13en(&mut self) -> Exti13enW<CrSpec> {
234 Exti13enW::new(self, 13)
235 }
236 #[doc = "Bit 14 - EXTI14EN"]
237 #[inline(always)]
238 #[must_use]
239 pub fn exti14en(&mut self) -> Exti14enW<CrSpec> {
240 Exti14enW::new(self, 14)
241 }
242 #[doc = "Bit 15 - EXTI15EN"]
243 #[inline(always)]
244 #[must_use]
245 pub fn exti15en(&mut self) -> Exti15enW<CrSpec> {
246 Exti15enW::new(self, 15)
247 }
248}
249#[doc = "CR\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cr::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
250pub struct CrSpec;
251impl crate::RegisterSpec for CrSpec {
252 type Ux = u32;
253}
254#[doc = "`read()` method returns [`cr::R`](R) reader structure"]
255impl crate::Readable for CrSpec {}
256#[doc = "`write(|w| ..)` method takes [`cr::W`](W) writer structure"]
257impl crate::Writable for CrSpec {
258 type Safety = crate::Unsafe;
259 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
260 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
261}
262#[doc = "`reset()` method sets CR to value 0"]
263impl crate::Resettable for CrSpec {
264 const RESET_VALUE: u32 = 0;
265}