1#[doc = "Register `usb_int_mask` reader"]
2pub struct R(crate::R<USB_INT_MASK_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<USB_INT_MASK_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<USB_INT_MASK_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<USB_INT_MASK_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `usb_int_mask` writer"]
17pub struct W(crate::W<USB_INT_MASK_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<USB_INT_MASK_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<USB_INT_MASK_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<USB_INT_MASK_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `cr_sof_mask` reader - "]
38pub type CR_SOF_MASK_R = crate::BitReader<bool>;
39#[doc = "Field `cr_sof_mask` writer - "]
40pub type CR_SOF_MASK_W<'a, const O: u8> = crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
41#[doc = "Field `cr_usb_reset_mask` reader - "]
42pub type CR_USB_RESET_MASK_R = crate::BitReader<bool>;
43#[doc = "Field `cr_usb_reset_mask` writer - "]
44pub type CR_USB_RESET_MASK_W<'a, const O: u8> =
45 crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
46#[doc = "Field `cr_vbus_tgl_mask` reader - "]
47pub type CR_VBUS_TGL_MASK_R = crate::BitReader<bool>;
48#[doc = "Field `cr_vbus_tgl_mask` writer - "]
49pub type CR_VBUS_TGL_MASK_W<'a, const O: u8> =
50 crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
51#[doc = "Field `cr_get_dct_cmd_mask` reader - "]
52pub type CR_GET_DCT_CMD_MASK_R = crate::BitReader<bool>;
53#[doc = "Field `cr_get_dct_cmd_mask` writer - "]
54pub type CR_GET_DCT_CMD_MASK_W<'a, const O: u8> =
55 crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
56#[doc = "Field `cr_ep0_setup_cmd_mask` reader - "]
57pub type CR_EP0_SETUP_CMD_MASK_R = crate::BitReader<bool>;
58#[doc = "Field `cr_ep0_setup_cmd_mask` writer - "]
59pub type CR_EP0_SETUP_CMD_MASK_W<'a, const O: u8> =
60 crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
61#[doc = "Field `cr_ep0_setup_done_mask` reader - "]
62pub type CR_EP0_SETUP_DONE_MASK_R = crate::BitReader<bool>;
63#[doc = "Field `cr_ep0_setup_done_mask` writer - "]
64pub type CR_EP0_SETUP_DONE_MASK_W<'a, const O: u8> =
65 crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
66#[doc = "Field `cr_ep0_in_cmd_mask` reader - "]
67pub type CR_EP0_IN_CMD_MASK_R = crate::BitReader<bool>;
68#[doc = "Field `cr_ep0_in_cmd_mask` writer - "]
69pub type CR_EP0_IN_CMD_MASK_W<'a, const O: u8> =
70 crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
71#[doc = "Field `cr_ep0_in_done_mask` reader - "]
72pub type CR_EP0_IN_DONE_MASK_R = crate::BitReader<bool>;
73#[doc = "Field `cr_ep0_in_done_mask` writer - "]
74pub type CR_EP0_IN_DONE_MASK_W<'a, const O: u8> =
75 crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
76#[doc = "Field `cr_ep0_out_cmd_mask` reader - "]
77pub type CR_EP0_OUT_CMD_MASK_R = crate::BitReader<bool>;
78#[doc = "Field `cr_ep0_out_cmd_mask` writer - "]
79pub type CR_EP0_OUT_CMD_MASK_W<'a, const O: u8> =
80 crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
81#[doc = "Field `cr_ep0_out_done_mask` reader - "]
82pub type CR_EP0_OUT_DONE_MASK_R = crate::BitReader<bool>;
83#[doc = "Field `cr_ep0_out_done_mask` writer - "]
84pub type CR_EP0_OUT_DONE_MASK_W<'a, const O: u8> =
85 crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
86#[doc = "Field `cr_ep1_cmd_mask` reader - "]
87pub type CR_EP1_CMD_MASK_R = crate::BitReader<bool>;
88#[doc = "Field `cr_ep1_cmd_mask` writer - "]
89pub type CR_EP1_CMD_MASK_W<'a, const O: u8> = crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
90#[doc = "Field `cr_ep1_done_mask` reader - "]
91pub type CR_EP1_DONE_MASK_R = crate::BitReader<bool>;
92#[doc = "Field `cr_ep1_done_mask` writer - "]
93pub type CR_EP1_DONE_MASK_W<'a, const O: u8> =
94 crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
95#[doc = "Field `cr_ep2_cmd_mask` reader - "]
96pub type CR_EP2_CMD_MASK_R = crate::BitReader<bool>;
97#[doc = "Field `cr_ep2_cmd_mask` writer - "]
98pub type CR_EP2_CMD_MASK_W<'a, const O: u8> = crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
99#[doc = "Field `cr_ep2_done_mask` reader - "]
100pub type CR_EP2_DONE_MASK_R = crate::BitReader<bool>;
101#[doc = "Field `cr_ep2_done_mask` writer - "]
102pub type CR_EP2_DONE_MASK_W<'a, const O: u8> =
103 crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
104#[doc = "Field `cr_ep3_cmd_mask` reader - "]
105pub type CR_EP3_CMD_MASK_R = crate::BitReader<bool>;
106#[doc = "Field `cr_ep3_cmd_mask` writer - "]
107pub type CR_EP3_CMD_MASK_W<'a, const O: u8> = crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
108#[doc = "Field `cr_ep3_done_mask` reader - "]
109pub type CR_EP3_DONE_MASK_R = crate::BitReader<bool>;
110#[doc = "Field `cr_ep3_done_mask` writer - "]
111pub type CR_EP3_DONE_MASK_W<'a, const O: u8> =
112 crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
113#[doc = "Field `cr_ep4_cmd_mask` reader - "]
114pub type CR_EP4_CMD_MASK_R = crate::BitReader<bool>;
115#[doc = "Field `cr_ep4_cmd_mask` writer - "]
116pub type CR_EP4_CMD_MASK_W<'a, const O: u8> = crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
117#[doc = "Field `cr_ep4_done_mask` reader - "]
118pub type CR_EP4_DONE_MASK_R = crate::BitReader<bool>;
119#[doc = "Field `cr_ep4_done_mask` writer - "]
120pub type CR_EP4_DONE_MASK_W<'a, const O: u8> =
121 crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
122#[doc = "Field `cr_ep5_cmd_mask` reader - "]
123pub type CR_EP5_CMD_MASK_R = crate::BitReader<bool>;
124#[doc = "Field `cr_ep5_cmd_mask` writer - "]
125pub type CR_EP5_CMD_MASK_W<'a, const O: u8> = crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
126#[doc = "Field `cr_ep5_done_mask` reader - "]
127pub type CR_EP5_DONE_MASK_R = crate::BitReader<bool>;
128#[doc = "Field `cr_ep5_done_mask` writer - "]
129pub type CR_EP5_DONE_MASK_W<'a, const O: u8> =
130 crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
131#[doc = "Field `cr_ep6_cmd_mask` reader - "]
132pub type CR_EP6_CMD_MASK_R = crate::BitReader<bool>;
133#[doc = "Field `cr_ep6_cmd_mask` writer - "]
134pub type CR_EP6_CMD_MASK_W<'a, const O: u8> = crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
135#[doc = "Field `cr_ep6_done_mask` reader - "]
136pub type CR_EP6_DONE_MASK_R = crate::BitReader<bool>;
137#[doc = "Field `cr_ep6_done_mask` writer - "]
138pub type CR_EP6_DONE_MASK_W<'a, const O: u8> =
139 crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
140#[doc = "Field `cr_ep7_cmd_mask` reader - "]
141pub type CR_EP7_CMD_MASK_R = crate::BitReader<bool>;
142#[doc = "Field `cr_ep7_cmd_mask` writer - "]
143pub type CR_EP7_CMD_MASK_W<'a, const O: u8> = crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
144#[doc = "Field `cr_ep7_done_mask` reader - "]
145pub type CR_EP7_DONE_MASK_R = crate::BitReader<bool>;
146#[doc = "Field `cr_ep7_done_mask` writer - "]
147pub type CR_EP7_DONE_MASK_W<'a, const O: u8> =
148 crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
149#[doc = "Field `rsvd_27_24` reader - "]
150pub type RSVD_27_24_R = crate::FieldReader<u8, u8>;
151#[doc = "Field `rsvd_27_24` writer - "]
152pub type RSVD_27_24_W<'a, const O: u8> =
153 crate::FieldWriter<'a, u32, USB_INT_MASK_SPEC, u8, u8, 4, O>;
154#[doc = "Field `cr_lpm_wkup_mask` reader - "]
155pub type CR_LPM_WKUP_MASK_R = crate::BitReader<bool>;
156#[doc = "Field `cr_lpm_wkup_mask` writer - "]
157pub type CR_LPM_WKUP_MASK_W<'a, const O: u8> =
158 crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
159#[doc = "Field `cr_lpm_pkt_mask` reader - "]
160pub type CR_LPM_PKT_MASK_R = crate::BitReader<bool>;
161#[doc = "Field `cr_lpm_pkt_mask` writer - "]
162pub type CR_LPM_PKT_MASK_W<'a, const O: u8> = crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
163#[doc = "Field `cr_sof_3ms_mask` reader - "]
164pub type CR_SOF_3MS_MASK_R = crate::BitReader<bool>;
165#[doc = "Field `cr_sof_3ms_mask` writer - "]
166pub type CR_SOF_3MS_MASK_W<'a, const O: u8> = crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
167#[doc = "Field `cr_usb_err_mask` reader - "]
168pub type CR_USB_ERR_MASK_R = crate::BitReader<bool>;
169#[doc = "Field `cr_usb_err_mask` writer - "]
170pub type CR_USB_ERR_MASK_W<'a, const O: u8> = crate::BitWriter<'a, u32, USB_INT_MASK_SPEC, bool, O>;
171impl R {
172 #[doc = "Bit 0"]
173 #[inline(always)]
174 pub fn cr_sof_mask(&self) -> CR_SOF_MASK_R {
175 CR_SOF_MASK_R::new((self.bits & 1) != 0)
176 }
177 #[doc = "Bit 1"]
178 #[inline(always)]
179 pub fn cr_usb_reset_mask(&self) -> CR_USB_RESET_MASK_R {
180 CR_USB_RESET_MASK_R::new(((self.bits >> 1) & 1) != 0)
181 }
182 #[doc = "Bit 2"]
183 #[inline(always)]
184 pub fn cr_vbus_tgl_mask(&self) -> CR_VBUS_TGL_MASK_R {
185 CR_VBUS_TGL_MASK_R::new(((self.bits >> 2) & 1) != 0)
186 }
187 #[doc = "Bit 3"]
188 #[inline(always)]
189 pub fn cr_get_dct_cmd_mask(&self) -> CR_GET_DCT_CMD_MASK_R {
190 CR_GET_DCT_CMD_MASK_R::new(((self.bits >> 3) & 1) != 0)
191 }
192 #[doc = "Bit 4"]
193 #[inline(always)]
194 pub fn cr_ep0_setup_cmd_mask(&self) -> CR_EP0_SETUP_CMD_MASK_R {
195 CR_EP0_SETUP_CMD_MASK_R::new(((self.bits >> 4) & 1) != 0)
196 }
197 #[doc = "Bit 5"]
198 #[inline(always)]
199 pub fn cr_ep0_setup_done_mask(&self) -> CR_EP0_SETUP_DONE_MASK_R {
200 CR_EP0_SETUP_DONE_MASK_R::new(((self.bits >> 5) & 1) != 0)
201 }
202 #[doc = "Bit 6"]
203 #[inline(always)]
204 pub fn cr_ep0_in_cmd_mask(&self) -> CR_EP0_IN_CMD_MASK_R {
205 CR_EP0_IN_CMD_MASK_R::new(((self.bits >> 6) & 1) != 0)
206 }
207 #[doc = "Bit 7"]
208 #[inline(always)]
209 pub fn cr_ep0_in_done_mask(&self) -> CR_EP0_IN_DONE_MASK_R {
210 CR_EP0_IN_DONE_MASK_R::new(((self.bits >> 7) & 1) != 0)
211 }
212 #[doc = "Bit 8"]
213 #[inline(always)]
214 pub fn cr_ep0_out_cmd_mask(&self) -> CR_EP0_OUT_CMD_MASK_R {
215 CR_EP0_OUT_CMD_MASK_R::new(((self.bits >> 8) & 1) != 0)
216 }
217 #[doc = "Bit 9"]
218 #[inline(always)]
219 pub fn cr_ep0_out_done_mask(&self) -> CR_EP0_OUT_DONE_MASK_R {
220 CR_EP0_OUT_DONE_MASK_R::new(((self.bits >> 9) & 1) != 0)
221 }
222 #[doc = "Bit 10"]
223 #[inline(always)]
224 pub fn cr_ep1_cmd_mask(&self) -> CR_EP1_CMD_MASK_R {
225 CR_EP1_CMD_MASK_R::new(((self.bits >> 10) & 1) != 0)
226 }
227 #[doc = "Bit 11"]
228 #[inline(always)]
229 pub fn cr_ep1_done_mask(&self) -> CR_EP1_DONE_MASK_R {
230 CR_EP1_DONE_MASK_R::new(((self.bits >> 11) & 1) != 0)
231 }
232 #[doc = "Bit 12"]
233 #[inline(always)]
234 pub fn cr_ep2_cmd_mask(&self) -> CR_EP2_CMD_MASK_R {
235 CR_EP2_CMD_MASK_R::new(((self.bits >> 12) & 1) != 0)
236 }
237 #[doc = "Bit 13"]
238 #[inline(always)]
239 pub fn cr_ep2_done_mask(&self) -> CR_EP2_DONE_MASK_R {
240 CR_EP2_DONE_MASK_R::new(((self.bits >> 13) & 1) != 0)
241 }
242 #[doc = "Bit 14"]
243 #[inline(always)]
244 pub fn cr_ep3_cmd_mask(&self) -> CR_EP3_CMD_MASK_R {
245 CR_EP3_CMD_MASK_R::new(((self.bits >> 14) & 1) != 0)
246 }
247 #[doc = "Bit 15"]
248 #[inline(always)]
249 pub fn cr_ep3_done_mask(&self) -> CR_EP3_DONE_MASK_R {
250 CR_EP3_DONE_MASK_R::new(((self.bits >> 15) & 1) != 0)
251 }
252 #[doc = "Bit 16"]
253 #[inline(always)]
254 pub fn cr_ep4_cmd_mask(&self) -> CR_EP4_CMD_MASK_R {
255 CR_EP4_CMD_MASK_R::new(((self.bits >> 16) & 1) != 0)
256 }
257 #[doc = "Bit 17"]
258 #[inline(always)]
259 pub fn cr_ep4_done_mask(&self) -> CR_EP4_DONE_MASK_R {
260 CR_EP4_DONE_MASK_R::new(((self.bits >> 17) & 1) != 0)
261 }
262 #[doc = "Bit 18"]
263 #[inline(always)]
264 pub fn cr_ep5_cmd_mask(&self) -> CR_EP5_CMD_MASK_R {
265 CR_EP5_CMD_MASK_R::new(((self.bits >> 18) & 1) != 0)
266 }
267 #[doc = "Bit 19"]
268 #[inline(always)]
269 pub fn cr_ep5_done_mask(&self) -> CR_EP5_DONE_MASK_R {
270 CR_EP5_DONE_MASK_R::new(((self.bits >> 19) & 1) != 0)
271 }
272 #[doc = "Bit 20"]
273 #[inline(always)]
274 pub fn cr_ep6_cmd_mask(&self) -> CR_EP6_CMD_MASK_R {
275 CR_EP6_CMD_MASK_R::new(((self.bits >> 20) & 1) != 0)
276 }
277 #[doc = "Bit 21"]
278 #[inline(always)]
279 pub fn cr_ep6_done_mask(&self) -> CR_EP6_DONE_MASK_R {
280 CR_EP6_DONE_MASK_R::new(((self.bits >> 21) & 1) != 0)
281 }
282 #[doc = "Bit 22"]
283 #[inline(always)]
284 pub fn cr_ep7_cmd_mask(&self) -> CR_EP7_CMD_MASK_R {
285 CR_EP7_CMD_MASK_R::new(((self.bits >> 22) & 1) != 0)
286 }
287 #[doc = "Bit 23"]
288 #[inline(always)]
289 pub fn cr_ep7_done_mask(&self) -> CR_EP7_DONE_MASK_R {
290 CR_EP7_DONE_MASK_R::new(((self.bits >> 23) & 1) != 0)
291 }
292 #[doc = "Bits 24:27"]
293 #[inline(always)]
294 pub fn rsvd_27_24(&self) -> RSVD_27_24_R {
295 RSVD_27_24_R::new(((self.bits >> 24) & 0x0f) as u8)
296 }
297 #[doc = "Bit 28"]
298 #[inline(always)]
299 pub fn cr_lpm_wkup_mask(&self) -> CR_LPM_WKUP_MASK_R {
300 CR_LPM_WKUP_MASK_R::new(((self.bits >> 28) & 1) != 0)
301 }
302 #[doc = "Bit 29"]
303 #[inline(always)]
304 pub fn cr_lpm_pkt_mask(&self) -> CR_LPM_PKT_MASK_R {
305 CR_LPM_PKT_MASK_R::new(((self.bits >> 29) & 1) != 0)
306 }
307 #[doc = "Bit 30"]
308 #[inline(always)]
309 pub fn cr_sof_3ms_mask(&self) -> CR_SOF_3MS_MASK_R {
310 CR_SOF_3MS_MASK_R::new(((self.bits >> 30) & 1) != 0)
311 }
312 #[doc = "Bit 31"]
313 #[inline(always)]
314 pub fn cr_usb_err_mask(&self) -> CR_USB_ERR_MASK_R {
315 CR_USB_ERR_MASK_R::new(((self.bits >> 31) & 1) != 0)
316 }
317}
318impl W {
319 #[doc = "Bit 0"]
320 #[inline(always)]
321 #[must_use]
322 pub fn cr_sof_mask(&mut self) -> CR_SOF_MASK_W<0> {
323 CR_SOF_MASK_W::new(self)
324 }
325 #[doc = "Bit 1"]
326 #[inline(always)]
327 #[must_use]
328 pub fn cr_usb_reset_mask(&mut self) -> CR_USB_RESET_MASK_W<1> {
329 CR_USB_RESET_MASK_W::new(self)
330 }
331 #[doc = "Bit 2"]
332 #[inline(always)]
333 #[must_use]
334 pub fn cr_vbus_tgl_mask(&mut self) -> CR_VBUS_TGL_MASK_W<2> {
335 CR_VBUS_TGL_MASK_W::new(self)
336 }
337 #[doc = "Bit 3"]
338 #[inline(always)]
339 #[must_use]
340 pub fn cr_get_dct_cmd_mask(&mut self) -> CR_GET_DCT_CMD_MASK_W<3> {
341 CR_GET_DCT_CMD_MASK_W::new(self)
342 }
343 #[doc = "Bit 4"]
344 #[inline(always)]
345 #[must_use]
346 pub fn cr_ep0_setup_cmd_mask(&mut self) -> CR_EP0_SETUP_CMD_MASK_W<4> {
347 CR_EP0_SETUP_CMD_MASK_W::new(self)
348 }
349 #[doc = "Bit 5"]
350 #[inline(always)]
351 #[must_use]
352 pub fn cr_ep0_setup_done_mask(&mut self) -> CR_EP0_SETUP_DONE_MASK_W<5> {
353 CR_EP0_SETUP_DONE_MASK_W::new(self)
354 }
355 #[doc = "Bit 6"]
356 #[inline(always)]
357 #[must_use]
358 pub fn cr_ep0_in_cmd_mask(&mut self) -> CR_EP0_IN_CMD_MASK_W<6> {
359 CR_EP0_IN_CMD_MASK_W::new(self)
360 }
361 #[doc = "Bit 7"]
362 #[inline(always)]
363 #[must_use]
364 pub fn cr_ep0_in_done_mask(&mut self) -> CR_EP0_IN_DONE_MASK_W<7> {
365 CR_EP0_IN_DONE_MASK_W::new(self)
366 }
367 #[doc = "Bit 8"]
368 #[inline(always)]
369 #[must_use]
370 pub fn cr_ep0_out_cmd_mask(&mut self) -> CR_EP0_OUT_CMD_MASK_W<8> {
371 CR_EP0_OUT_CMD_MASK_W::new(self)
372 }
373 #[doc = "Bit 9"]
374 #[inline(always)]
375 #[must_use]
376 pub fn cr_ep0_out_done_mask(&mut self) -> CR_EP0_OUT_DONE_MASK_W<9> {
377 CR_EP0_OUT_DONE_MASK_W::new(self)
378 }
379 #[doc = "Bit 10"]
380 #[inline(always)]
381 #[must_use]
382 pub fn cr_ep1_cmd_mask(&mut self) -> CR_EP1_CMD_MASK_W<10> {
383 CR_EP1_CMD_MASK_W::new(self)
384 }
385 #[doc = "Bit 11"]
386 #[inline(always)]
387 #[must_use]
388 pub fn cr_ep1_done_mask(&mut self) -> CR_EP1_DONE_MASK_W<11> {
389 CR_EP1_DONE_MASK_W::new(self)
390 }
391 #[doc = "Bit 12"]
392 #[inline(always)]
393 #[must_use]
394 pub fn cr_ep2_cmd_mask(&mut self) -> CR_EP2_CMD_MASK_W<12> {
395 CR_EP2_CMD_MASK_W::new(self)
396 }
397 #[doc = "Bit 13"]
398 #[inline(always)]
399 #[must_use]
400 pub fn cr_ep2_done_mask(&mut self) -> CR_EP2_DONE_MASK_W<13> {
401 CR_EP2_DONE_MASK_W::new(self)
402 }
403 #[doc = "Bit 14"]
404 #[inline(always)]
405 #[must_use]
406 pub fn cr_ep3_cmd_mask(&mut self) -> CR_EP3_CMD_MASK_W<14> {
407 CR_EP3_CMD_MASK_W::new(self)
408 }
409 #[doc = "Bit 15"]
410 #[inline(always)]
411 #[must_use]
412 pub fn cr_ep3_done_mask(&mut self) -> CR_EP3_DONE_MASK_W<15> {
413 CR_EP3_DONE_MASK_W::new(self)
414 }
415 #[doc = "Bit 16"]
416 #[inline(always)]
417 #[must_use]
418 pub fn cr_ep4_cmd_mask(&mut self) -> CR_EP4_CMD_MASK_W<16> {
419 CR_EP4_CMD_MASK_W::new(self)
420 }
421 #[doc = "Bit 17"]
422 #[inline(always)]
423 #[must_use]
424 pub fn cr_ep4_done_mask(&mut self) -> CR_EP4_DONE_MASK_W<17> {
425 CR_EP4_DONE_MASK_W::new(self)
426 }
427 #[doc = "Bit 18"]
428 #[inline(always)]
429 #[must_use]
430 pub fn cr_ep5_cmd_mask(&mut self) -> CR_EP5_CMD_MASK_W<18> {
431 CR_EP5_CMD_MASK_W::new(self)
432 }
433 #[doc = "Bit 19"]
434 #[inline(always)]
435 #[must_use]
436 pub fn cr_ep5_done_mask(&mut self) -> CR_EP5_DONE_MASK_W<19> {
437 CR_EP5_DONE_MASK_W::new(self)
438 }
439 #[doc = "Bit 20"]
440 #[inline(always)]
441 #[must_use]
442 pub fn cr_ep6_cmd_mask(&mut self) -> CR_EP6_CMD_MASK_W<20> {
443 CR_EP6_CMD_MASK_W::new(self)
444 }
445 #[doc = "Bit 21"]
446 #[inline(always)]
447 #[must_use]
448 pub fn cr_ep6_done_mask(&mut self) -> CR_EP6_DONE_MASK_W<21> {
449 CR_EP6_DONE_MASK_W::new(self)
450 }
451 #[doc = "Bit 22"]
452 #[inline(always)]
453 #[must_use]
454 pub fn cr_ep7_cmd_mask(&mut self) -> CR_EP7_CMD_MASK_W<22> {
455 CR_EP7_CMD_MASK_W::new(self)
456 }
457 #[doc = "Bit 23"]
458 #[inline(always)]
459 #[must_use]
460 pub fn cr_ep7_done_mask(&mut self) -> CR_EP7_DONE_MASK_W<23> {
461 CR_EP7_DONE_MASK_W::new(self)
462 }
463 #[doc = "Bits 24:27"]
464 #[inline(always)]
465 #[must_use]
466 pub fn rsvd_27_24(&mut self) -> RSVD_27_24_W<24> {
467 RSVD_27_24_W::new(self)
468 }
469 #[doc = "Bit 28"]
470 #[inline(always)]
471 #[must_use]
472 pub fn cr_lpm_wkup_mask(&mut self) -> CR_LPM_WKUP_MASK_W<28> {
473 CR_LPM_WKUP_MASK_W::new(self)
474 }
475 #[doc = "Bit 29"]
476 #[inline(always)]
477 #[must_use]
478 pub fn cr_lpm_pkt_mask(&mut self) -> CR_LPM_PKT_MASK_W<29> {
479 CR_LPM_PKT_MASK_W::new(self)
480 }
481 #[doc = "Bit 30"]
482 #[inline(always)]
483 #[must_use]
484 pub fn cr_sof_3ms_mask(&mut self) -> CR_SOF_3MS_MASK_W<30> {
485 CR_SOF_3MS_MASK_W::new(self)
486 }
487 #[doc = "Bit 31"]
488 #[inline(always)]
489 #[must_use]
490 pub fn cr_usb_err_mask(&mut self) -> CR_USB_ERR_MASK_W<31> {
491 CR_USB_ERR_MASK_W::new(self)
492 }
493 #[doc = "Writes raw bits to the register."]
494 #[inline(always)]
495 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
496 self.0.bits(bits);
497 self
498 }
499}
500#[doc = "USB interrupt mask\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 [usb_int_mask](index.html) module"]
501pub struct USB_INT_MASK_SPEC;
502impl crate::RegisterSpec for USB_INT_MASK_SPEC {
503 type Ux = u32;
504}
505#[doc = "`read()` method returns [usb_int_mask::R](R) reader structure"]
506impl crate::Readable for USB_INT_MASK_SPEC {
507 type Reader = R;
508}
509#[doc = "`write(|w| ..)` method takes [usb_int_mask::W](W) writer structure"]
510impl crate::Writable for USB_INT_MASK_SPEC {
511 type Writer = W;
512 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
513 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
514}
515#[doc = "`reset()` method sets usb_int_mask to value 0"]
516impl crate::Resettable for USB_INT_MASK_SPEC {
517 const RESET_VALUE: Self::Ux = 0;
518}