1#[doc = "Register `INTEN` reader"]
2pub struct R(crate::R<INTEN_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<INTEN_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<INTEN_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<INTEN_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `INTEN` writer"]
17pub struct W(crate::W<INTEN_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<INTEN_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<INTEN_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<INTEN_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `pt0` reader - Pulse Train 0 Stopped Interrupt Enable/Disable"]
38pub type PT0_R = crate::BitReader<bool>;
39#[doc = "Field `pt0` writer - Pulse Train 0 Stopped Interrupt Enable/Disable"]
40pub type PT0_W<'a> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, 0>;
41#[doc = "Field `pt1` reader - Pulse Train 1 Stopped Interrupt Enable/Disable"]
42pub type PT1_R = crate::BitReader<bool>;
43#[doc = "Field `pt1` writer - Pulse Train 1 Stopped Interrupt Enable/Disable"]
44pub type PT1_W<'a> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, 1>;
45#[doc = "Field `pt2` reader - Pulse Train 2 Stopped Interrupt Enable/Disable"]
46pub type PT2_R = crate::BitReader<bool>;
47#[doc = "Field `pt2` writer - Pulse Train 2 Stopped Interrupt Enable/Disable"]
48pub type PT2_W<'a> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, 2>;
49#[doc = "Field `pt3` reader - Pulse Train 3 Stopped Interrupt Enable/Disable"]
50pub type PT3_R = crate::BitReader<bool>;
51#[doc = "Field `pt3` writer - Pulse Train 3 Stopped Interrupt Enable/Disable"]
52pub type PT3_W<'a> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, 3>;
53#[doc = "Field `pt4` reader - Pulse Train 4 Stopped Interrupt Enable/Disable"]
54pub type PT4_R = crate::BitReader<bool>;
55#[doc = "Field `pt4` writer - Pulse Train 4 Stopped Interrupt Enable/Disable"]
56pub type PT4_W<'a> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, 4>;
57#[doc = "Field `pt5` reader - Pulse Train 5 Stopped Interrupt Enable/Disable"]
58pub type PT5_R = crate::BitReader<bool>;
59#[doc = "Field `pt5` writer - Pulse Train 5 Stopped Interrupt Enable/Disable"]
60pub type PT5_W<'a> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, 5>;
61#[doc = "Field `pt6` reader - Pulse Train 6 Stopped Interrupt Enable/Disable"]
62pub type PT6_R = crate::BitReader<bool>;
63#[doc = "Field `pt6` writer - Pulse Train 6 Stopped Interrupt Enable/Disable"]
64pub type PT6_W<'a> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, 6>;
65#[doc = "Field `pt7` reader - Pulse Train 7 Stopped Interrupt Enable/Disable"]
66pub type PT7_R = crate::BitReader<bool>;
67#[doc = "Field `pt7` writer - Pulse Train 7 Stopped Interrupt Enable/Disable"]
68pub type PT7_W<'a> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, 7>;
69#[doc = "Field `pt8` reader - Pulse Train 8 Stopped Interrupt Enable/Disable"]
70pub type PT8_R = crate::BitReader<bool>;
71#[doc = "Field `pt8` writer - Pulse Train 8 Stopped Interrupt Enable/Disable"]
72pub type PT8_W<'a> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, 8>;
73#[doc = "Field `pt9` reader - Pulse Train 9 Stopped Interrupt Enable/Disable"]
74pub type PT9_R = crate::BitReader<bool>;
75#[doc = "Field `pt9` writer - Pulse Train 9 Stopped Interrupt Enable/Disable"]
76pub type PT9_W<'a> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, 9>;
77#[doc = "Field `pt10` reader - Pulse Train 10 Stopped Interrupt Enable/Disable"]
78pub type PT10_R = crate::BitReader<bool>;
79#[doc = "Field `pt10` writer - Pulse Train 10 Stopped Interrupt Enable/Disable"]
80pub type PT10_W<'a> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, 10>;
81#[doc = "Field `pt11` reader - Pulse Train 11 Stopped Interrupt Enable/Disable"]
82pub type PT11_R = crate::BitReader<bool>;
83#[doc = "Field `pt11` writer - Pulse Train 11 Stopped Interrupt Enable/Disable"]
84pub type PT11_W<'a> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, 11>;
85#[doc = "Field `pt12` reader - Pulse Train 12 Stopped Interrupt Enable/Disable"]
86pub type PT12_R = crate::BitReader<bool>;
87#[doc = "Field `pt12` writer - Pulse Train 12 Stopped Interrupt Enable/Disable"]
88pub type PT12_W<'a> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, 12>;
89#[doc = "Field `pt13` reader - Pulse Train 13 Stopped Interrupt Enable/Disable"]
90pub type PT13_R = crate::BitReader<bool>;
91#[doc = "Field `pt13` writer - Pulse Train 13 Stopped Interrupt Enable/Disable"]
92pub type PT13_W<'a> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, 13>;
93#[doc = "Field `pt14` reader - Pulse Train 14 Stopped Interrupt Enable/Disable"]
94pub type PT14_R = crate::BitReader<bool>;
95#[doc = "Field `pt14` writer - Pulse Train 14 Stopped Interrupt Enable/Disable"]
96pub type PT14_W<'a> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, 14>;
97#[doc = "Field `pt15` reader - Pulse Train 15 Stopped Interrupt Enable/Disable"]
98pub type PT15_R = crate::BitReader<bool>;
99#[doc = "Field `pt15` writer - Pulse Train 15 Stopped Interrupt Enable/Disable"]
100pub type PT15_W<'a> = crate::BitWriter<'a, u32, INTEN_SPEC, bool, 15>;
101impl R {
102 #[doc = "Bit 0 - Pulse Train 0 Stopped Interrupt Enable/Disable"]
103 #[inline(always)]
104 pub fn pt0(&self) -> PT0_R {
105 PT0_R::new((self.bits & 1) != 0)
106 }
107 #[doc = "Bit 1 - Pulse Train 1 Stopped Interrupt Enable/Disable"]
108 #[inline(always)]
109 pub fn pt1(&self) -> PT1_R {
110 PT1_R::new(((self.bits >> 1) & 1) != 0)
111 }
112 #[doc = "Bit 2 - Pulse Train 2 Stopped Interrupt Enable/Disable"]
113 #[inline(always)]
114 pub fn pt2(&self) -> PT2_R {
115 PT2_R::new(((self.bits >> 2) & 1) != 0)
116 }
117 #[doc = "Bit 3 - Pulse Train 3 Stopped Interrupt Enable/Disable"]
118 #[inline(always)]
119 pub fn pt3(&self) -> PT3_R {
120 PT3_R::new(((self.bits >> 3) & 1) != 0)
121 }
122 #[doc = "Bit 4 - Pulse Train 4 Stopped Interrupt Enable/Disable"]
123 #[inline(always)]
124 pub fn pt4(&self) -> PT4_R {
125 PT4_R::new(((self.bits >> 4) & 1) != 0)
126 }
127 #[doc = "Bit 5 - Pulse Train 5 Stopped Interrupt Enable/Disable"]
128 #[inline(always)]
129 pub fn pt5(&self) -> PT5_R {
130 PT5_R::new(((self.bits >> 5) & 1) != 0)
131 }
132 #[doc = "Bit 6 - Pulse Train 6 Stopped Interrupt Enable/Disable"]
133 #[inline(always)]
134 pub fn pt6(&self) -> PT6_R {
135 PT6_R::new(((self.bits >> 6) & 1) != 0)
136 }
137 #[doc = "Bit 7 - Pulse Train 7 Stopped Interrupt Enable/Disable"]
138 #[inline(always)]
139 pub fn pt7(&self) -> PT7_R {
140 PT7_R::new(((self.bits >> 7) & 1) != 0)
141 }
142 #[doc = "Bit 8 - Pulse Train 8 Stopped Interrupt Enable/Disable"]
143 #[inline(always)]
144 pub fn pt8(&self) -> PT8_R {
145 PT8_R::new(((self.bits >> 8) & 1) != 0)
146 }
147 #[doc = "Bit 9 - Pulse Train 9 Stopped Interrupt Enable/Disable"]
148 #[inline(always)]
149 pub fn pt9(&self) -> PT9_R {
150 PT9_R::new(((self.bits >> 9) & 1) != 0)
151 }
152 #[doc = "Bit 10 - Pulse Train 10 Stopped Interrupt Enable/Disable"]
153 #[inline(always)]
154 pub fn pt10(&self) -> PT10_R {
155 PT10_R::new(((self.bits >> 10) & 1) != 0)
156 }
157 #[doc = "Bit 11 - Pulse Train 11 Stopped Interrupt Enable/Disable"]
158 #[inline(always)]
159 pub fn pt11(&self) -> PT11_R {
160 PT11_R::new(((self.bits >> 11) & 1) != 0)
161 }
162 #[doc = "Bit 12 - Pulse Train 12 Stopped Interrupt Enable/Disable"]
163 #[inline(always)]
164 pub fn pt12(&self) -> PT12_R {
165 PT12_R::new(((self.bits >> 12) & 1) != 0)
166 }
167 #[doc = "Bit 13 - Pulse Train 13 Stopped Interrupt Enable/Disable"]
168 #[inline(always)]
169 pub fn pt13(&self) -> PT13_R {
170 PT13_R::new(((self.bits >> 13) & 1) != 0)
171 }
172 #[doc = "Bit 14 - Pulse Train 14 Stopped Interrupt Enable/Disable"]
173 #[inline(always)]
174 pub fn pt14(&self) -> PT14_R {
175 PT14_R::new(((self.bits >> 14) & 1) != 0)
176 }
177 #[doc = "Bit 15 - Pulse Train 15 Stopped Interrupt Enable/Disable"]
178 #[inline(always)]
179 pub fn pt15(&self) -> PT15_R {
180 PT15_R::new(((self.bits >> 15) & 1) != 0)
181 }
182}
183impl W {
184 #[doc = "Bit 0 - Pulse Train 0 Stopped Interrupt Enable/Disable"]
185 #[inline(always)]
186 pub fn pt0(&mut self) -> PT0_W {
187 PT0_W::new(self)
188 }
189 #[doc = "Bit 1 - Pulse Train 1 Stopped Interrupt Enable/Disable"]
190 #[inline(always)]
191 pub fn pt1(&mut self) -> PT1_W {
192 PT1_W::new(self)
193 }
194 #[doc = "Bit 2 - Pulse Train 2 Stopped Interrupt Enable/Disable"]
195 #[inline(always)]
196 pub fn pt2(&mut self) -> PT2_W {
197 PT2_W::new(self)
198 }
199 #[doc = "Bit 3 - Pulse Train 3 Stopped Interrupt Enable/Disable"]
200 #[inline(always)]
201 pub fn pt3(&mut self) -> PT3_W {
202 PT3_W::new(self)
203 }
204 #[doc = "Bit 4 - Pulse Train 4 Stopped Interrupt Enable/Disable"]
205 #[inline(always)]
206 pub fn pt4(&mut self) -> PT4_W {
207 PT4_W::new(self)
208 }
209 #[doc = "Bit 5 - Pulse Train 5 Stopped Interrupt Enable/Disable"]
210 #[inline(always)]
211 pub fn pt5(&mut self) -> PT5_W {
212 PT5_W::new(self)
213 }
214 #[doc = "Bit 6 - Pulse Train 6 Stopped Interrupt Enable/Disable"]
215 #[inline(always)]
216 pub fn pt6(&mut self) -> PT6_W {
217 PT6_W::new(self)
218 }
219 #[doc = "Bit 7 - Pulse Train 7 Stopped Interrupt Enable/Disable"]
220 #[inline(always)]
221 pub fn pt7(&mut self) -> PT7_W {
222 PT7_W::new(self)
223 }
224 #[doc = "Bit 8 - Pulse Train 8 Stopped Interrupt Enable/Disable"]
225 #[inline(always)]
226 pub fn pt8(&mut self) -> PT8_W {
227 PT8_W::new(self)
228 }
229 #[doc = "Bit 9 - Pulse Train 9 Stopped Interrupt Enable/Disable"]
230 #[inline(always)]
231 pub fn pt9(&mut self) -> PT9_W {
232 PT9_W::new(self)
233 }
234 #[doc = "Bit 10 - Pulse Train 10 Stopped Interrupt Enable/Disable"]
235 #[inline(always)]
236 pub fn pt10(&mut self) -> PT10_W {
237 PT10_W::new(self)
238 }
239 #[doc = "Bit 11 - Pulse Train 11 Stopped Interrupt Enable/Disable"]
240 #[inline(always)]
241 pub fn pt11(&mut self) -> PT11_W {
242 PT11_W::new(self)
243 }
244 #[doc = "Bit 12 - Pulse Train 12 Stopped Interrupt Enable/Disable"]
245 #[inline(always)]
246 pub fn pt12(&mut self) -> PT12_W {
247 PT12_W::new(self)
248 }
249 #[doc = "Bit 13 - Pulse Train 13 Stopped Interrupt Enable/Disable"]
250 #[inline(always)]
251 pub fn pt13(&mut self) -> PT13_W {
252 PT13_W::new(self)
253 }
254 #[doc = "Bit 14 - Pulse Train 14 Stopped Interrupt Enable/Disable"]
255 #[inline(always)]
256 pub fn pt14(&mut self) -> PT14_W {
257 PT14_W::new(self)
258 }
259 #[doc = "Bit 15 - Pulse Train 15 Stopped Interrupt Enable/Disable"]
260 #[inline(always)]
261 pub fn pt15(&mut self) -> PT15_W {
262 PT15_W::new(self)
263 }
264 #[doc = "Writes raw bits to the register."]
265 #[inline(always)]
266 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
267 self.0.bits(bits);
268 self
269 }
270}
271#[doc = "Pulse Train Interrupt Enable/Disable\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [inten](index.html) module"]
272pub struct INTEN_SPEC;
273impl crate::RegisterSpec for INTEN_SPEC {
274 type Ux = u32;
275}
276#[doc = "`read()` method returns [inten::R](R) reader structure"]
277impl crate::Readable for INTEN_SPEC {
278 type Reader = R;
279}
280#[doc = "`write(|w| ..)` method takes [inten::W](W) writer structure"]
281impl crate::Writable for INTEN_SPEC {
282 type Writer = W;
283}
284#[doc = "`reset()` method sets INTEN to value 0"]
285impl crate::Resettable for INTEN_SPEC {
286 #[inline(always)]
287 fn reset_value() -> Self::Ux {
288 0
289 }
290}