esp32s3/usb0/
gintmsk.rs

1#[doc = "Register `GINTMSK` reader"]
2pub type R = crate::R<GINTMSK_SPEC>;
3#[doc = "Register `GINTMSK` writer"]
4pub type W = crate::W<GINTMSK_SPEC>;
5#[doc = "Field `MODEMISMSK` reader - "]
6pub type MODEMISMSK_R = crate::BitReader;
7#[doc = "Field `MODEMISMSK` writer - "]
8pub type MODEMISMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `OTGINTMSK` reader - "]
10pub type OTGINTMSK_R = crate::BitReader;
11#[doc = "Field `OTGINTMSK` writer - "]
12pub type OTGINTMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `SOFMSK` reader - "]
14pub type SOFMSK_R = crate::BitReader;
15#[doc = "Field `SOFMSK` writer - "]
16pub type SOFMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `RXFLVIMSK` reader - "]
18pub type RXFLVIMSK_R = crate::BitReader;
19#[doc = "Field `RXFLVIMSK` writer - "]
20pub type RXFLVIMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `NPTXFEMPMSK` reader - "]
22pub type NPTXFEMPMSK_R = crate::BitReader;
23#[doc = "Field `NPTXFEMPMSK` writer - "]
24pub type NPTXFEMPMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `GINNAKEFFMSK` reader - "]
26pub type GINNAKEFFMSK_R = crate::BitReader;
27#[doc = "Field `GINNAKEFFMSK` writer - "]
28pub type GINNAKEFFMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `GOUTNACKEFFMSK` reader - "]
30pub type GOUTNACKEFFMSK_R = crate::BitReader;
31#[doc = "Field `GOUTNACKEFFMSK` writer - "]
32pub type GOUTNACKEFFMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `ERLYSUSPMSK` reader - "]
34pub type ERLYSUSPMSK_R = crate::BitReader;
35#[doc = "Field `ERLYSUSPMSK` writer - "]
36pub type ERLYSUSPMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `USBSUSPMSK` reader - "]
38pub type USBSUSPMSK_R = crate::BitReader;
39#[doc = "Field `USBSUSPMSK` writer - "]
40pub type USBSUSPMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `USBRSTMSK` reader - "]
42pub type USBRSTMSK_R = crate::BitReader;
43#[doc = "Field `USBRSTMSK` writer - "]
44pub type USBRSTMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `ENUMDONEMSK` reader - "]
46pub type ENUMDONEMSK_R = crate::BitReader;
47#[doc = "Field `ENUMDONEMSK` writer - "]
48pub type ENUMDONEMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `ISOOUTDROPMSK` reader - "]
50pub type ISOOUTDROPMSK_R = crate::BitReader;
51#[doc = "Field `ISOOUTDROPMSK` writer - "]
52pub type ISOOUTDROPMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `EOPFMSK` reader - "]
54pub type EOPFMSK_R = crate::BitReader;
55#[doc = "Field `EOPFMSK` writer - "]
56pub type EOPFMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `EPMISMSK` reader - "]
58pub type EPMISMSK_R = crate::BitReader;
59#[doc = "Field `EPMISMSK` writer - "]
60pub type EPMISMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `IEPINTMSK` reader - "]
62pub type IEPINTMSK_R = crate::BitReader;
63#[doc = "Field `IEPINTMSK` writer - "]
64pub type IEPINTMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `OEPINTMSK` reader - "]
66pub type OEPINTMSK_R = crate::BitReader;
67#[doc = "Field `OEPINTMSK` writer - "]
68pub type OEPINTMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
69#[doc = "Field `INCOMPISOINMSK` reader - "]
70pub type INCOMPISOINMSK_R = crate::BitReader;
71#[doc = "Field `INCOMPISOINMSK` writer - "]
72pub type INCOMPISOINMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
73#[doc = "Field `INCOMPIPMSK` reader - "]
74pub type INCOMPIPMSK_R = crate::BitReader;
75#[doc = "Field `INCOMPIPMSK` writer - "]
76pub type INCOMPIPMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
77#[doc = "Field `FETSUSPMSK` reader - "]
78pub type FETSUSPMSK_R = crate::BitReader;
79#[doc = "Field `FETSUSPMSK` writer - "]
80pub type FETSUSPMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
81#[doc = "Field `RESETDETMSK` reader - "]
82pub type RESETDETMSK_R = crate::BitReader;
83#[doc = "Field `RESETDETMSK` writer - "]
84pub type RESETDETMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
85#[doc = "Field `PRTLNTMSK` reader - "]
86pub type PRTLNTMSK_R = crate::BitReader;
87#[doc = "Field `PRTLNTMSK` writer - "]
88pub type PRTLNTMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
89#[doc = "Field `HCHINTMSK` reader - "]
90pub type HCHINTMSK_R = crate::BitReader;
91#[doc = "Field `HCHINTMSK` writer - "]
92pub type HCHINTMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
93#[doc = "Field `PTXFEMPMSK` reader - "]
94pub type PTXFEMPMSK_R = crate::BitReader;
95#[doc = "Field `PTXFEMPMSK` writer - "]
96pub type PTXFEMPMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
97#[doc = "Field `CONIDSTSCHNGMSK` reader - "]
98pub type CONIDSTSCHNGMSK_R = crate::BitReader;
99#[doc = "Field `CONIDSTSCHNGMSK` writer - "]
100pub type CONIDSTSCHNGMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
101#[doc = "Field `DISCONNINTMSK` reader - "]
102pub type DISCONNINTMSK_R = crate::BitReader;
103#[doc = "Field `DISCONNINTMSK` writer - "]
104pub type DISCONNINTMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
105#[doc = "Field `SESSREQINTMSK` reader - "]
106pub type SESSREQINTMSK_R = crate::BitReader;
107#[doc = "Field `SESSREQINTMSK` writer - "]
108pub type SESSREQINTMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
109#[doc = "Field `WKUPINTMSK` reader - "]
110pub type WKUPINTMSK_R = crate::BitReader;
111#[doc = "Field `WKUPINTMSK` writer - "]
112pub type WKUPINTMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
113impl R {
114    #[doc = "Bit 1"]
115    #[inline(always)]
116    pub fn modemismsk(&self) -> MODEMISMSK_R {
117        MODEMISMSK_R::new(((self.bits >> 1) & 1) != 0)
118    }
119    #[doc = "Bit 2"]
120    #[inline(always)]
121    pub fn otgintmsk(&self) -> OTGINTMSK_R {
122        OTGINTMSK_R::new(((self.bits >> 2) & 1) != 0)
123    }
124    #[doc = "Bit 3"]
125    #[inline(always)]
126    pub fn sofmsk(&self) -> SOFMSK_R {
127        SOFMSK_R::new(((self.bits >> 3) & 1) != 0)
128    }
129    #[doc = "Bit 4"]
130    #[inline(always)]
131    pub fn rxflvimsk(&self) -> RXFLVIMSK_R {
132        RXFLVIMSK_R::new(((self.bits >> 4) & 1) != 0)
133    }
134    #[doc = "Bit 5"]
135    #[inline(always)]
136    pub fn nptxfempmsk(&self) -> NPTXFEMPMSK_R {
137        NPTXFEMPMSK_R::new(((self.bits >> 5) & 1) != 0)
138    }
139    #[doc = "Bit 6"]
140    #[inline(always)]
141    pub fn ginnakeffmsk(&self) -> GINNAKEFFMSK_R {
142        GINNAKEFFMSK_R::new(((self.bits >> 6) & 1) != 0)
143    }
144    #[doc = "Bit 7"]
145    #[inline(always)]
146    pub fn goutnackeffmsk(&self) -> GOUTNACKEFFMSK_R {
147        GOUTNACKEFFMSK_R::new(((self.bits >> 7) & 1) != 0)
148    }
149    #[doc = "Bit 10"]
150    #[inline(always)]
151    pub fn erlysuspmsk(&self) -> ERLYSUSPMSK_R {
152        ERLYSUSPMSK_R::new(((self.bits >> 10) & 1) != 0)
153    }
154    #[doc = "Bit 11"]
155    #[inline(always)]
156    pub fn usbsuspmsk(&self) -> USBSUSPMSK_R {
157        USBSUSPMSK_R::new(((self.bits >> 11) & 1) != 0)
158    }
159    #[doc = "Bit 12"]
160    #[inline(always)]
161    pub fn usbrstmsk(&self) -> USBRSTMSK_R {
162        USBRSTMSK_R::new(((self.bits >> 12) & 1) != 0)
163    }
164    #[doc = "Bit 13"]
165    #[inline(always)]
166    pub fn enumdonemsk(&self) -> ENUMDONEMSK_R {
167        ENUMDONEMSK_R::new(((self.bits >> 13) & 1) != 0)
168    }
169    #[doc = "Bit 14"]
170    #[inline(always)]
171    pub fn isooutdropmsk(&self) -> ISOOUTDROPMSK_R {
172        ISOOUTDROPMSK_R::new(((self.bits >> 14) & 1) != 0)
173    }
174    #[doc = "Bit 15"]
175    #[inline(always)]
176    pub fn eopfmsk(&self) -> EOPFMSK_R {
177        EOPFMSK_R::new(((self.bits >> 15) & 1) != 0)
178    }
179    #[doc = "Bit 17"]
180    #[inline(always)]
181    pub fn epmismsk(&self) -> EPMISMSK_R {
182        EPMISMSK_R::new(((self.bits >> 17) & 1) != 0)
183    }
184    #[doc = "Bit 18"]
185    #[inline(always)]
186    pub fn iepintmsk(&self) -> IEPINTMSK_R {
187        IEPINTMSK_R::new(((self.bits >> 18) & 1) != 0)
188    }
189    #[doc = "Bit 19"]
190    #[inline(always)]
191    pub fn oepintmsk(&self) -> OEPINTMSK_R {
192        OEPINTMSK_R::new(((self.bits >> 19) & 1) != 0)
193    }
194    #[doc = "Bit 20"]
195    #[inline(always)]
196    pub fn incompisoinmsk(&self) -> INCOMPISOINMSK_R {
197        INCOMPISOINMSK_R::new(((self.bits >> 20) & 1) != 0)
198    }
199    #[doc = "Bit 21"]
200    #[inline(always)]
201    pub fn incompipmsk(&self) -> INCOMPIPMSK_R {
202        INCOMPIPMSK_R::new(((self.bits >> 21) & 1) != 0)
203    }
204    #[doc = "Bit 22"]
205    #[inline(always)]
206    pub fn fetsuspmsk(&self) -> FETSUSPMSK_R {
207        FETSUSPMSK_R::new(((self.bits >> 22) & 1) != 0)
208    }
209    #[doc = "Bit 23"]
210    #[inline(always)]
211    pub fn resetdetmsk(&self) -> RESETDETMSK_R {
212        RESETDETMSK_R::new(((self.bits >> 23) & 1) != 0)
213    }
214    #[doc = "Bit 24"]
215    #[inline(always)]
216    pub fn prtlntmsk(&self) -> PRTLNTMSK_R {
217        PRTLNTMSK_R::new(((self.bits >> 24) & 1) != 0)
218    }
219    #[doc = "Bit 25"]
220    #[inline(always)]
221    pub fn hchintmsk(&self) -> HCHINTMSK_R {
222        HCHINTMSK_R::new(((self.bits >> 25) & 1) != 0)
223    }
224    #[doc = "Bit 26"]
225    #[inline(always)]
226    pub fn ptxfempmsk(&self) -> PTXFEMPMSK_R {
227        PTXFEMPMSK_R::new(((self.bits >> 26) & 1) != 0)
228    }
229    #[doc = "Bit 28"]
230    #[inline(always)]
231    pub fn conidstschngmsk(&self) -> CONIDSTSCHNGMSK_R {
232        CONIDSTSCHNGMSK_R::new(((self.bits >> 28) & 1) != 0)
233    }
234    #[doc = "Bit 29"]
235    #[inline(always)]
236    pub fn disconnintmsk(&self) -> DISCONNINTMSK_R {
237        DISCONNINTMSK_R::new(((self.bits >> 29) & 1) != 0)
238    }
239    #[doc = "Bit 30"]
240    #[inline(always)]
241    pub fn sessreqintmsk(&self) -> SESSREQINTMSK_R {
242        SESSREQINTMSK_R::new(((self.bits >> 30) & 1) != 0)
243    }
244    #[doc = "Bit 31"]
245    #[inline(always)]
246    pub fn wkupintmsk(&self) -> WKUPINTMSK_R {
247        WKUPINTMSK_R::new(((self.bits >> 31) & 1) != 0)
248    }
249}
250#[cfg(feature = "impl-register-debug")]
251impl core::fmt::Debug for R {
252    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
253        f.debug_struct("GINTMSK")
254            .field("modemismsk", &self.modemismsk())
255            .field("otgintmsk", &self.otgintmsk())
256            .field("sofmsk", &self.sofmsk())
257            .field("rxflvimsk", &self.rxflvimsk())
258            .field("nptxfempmsk", &self.nptxfempmsk())
259            .field("ginnakeffmsk", &self.ginnakeffmsk())
260            .field("goutnackeffmsk", &self.goutnackeffmsk())
261            .field("erlysuspmsk", &self.erlysuspmsk())
262            .field("usbsuspmsk", &self.usbsuspmsk())
263            .field("usbrstmsk", &self.usbrstmsk())
264            .field("enumdonemsk", &self.enumdonemsk())
265            .field("isooutdropmsk", &self.isooutdropmsk())
266            .field("eopfmsk", &self.eopfmsk())
267            .field("epmismsk", &self.epmismsk())
268            .field("iepintmsk", &self.iepintmsk())
269            .field("oepintmsk", &self.oepintmsk())
270            .field("incompisoinmsk", &self.incompisoinmsk())
271            .field("incompipmsk", &self.incompipmsk())
272            .field("fetsuspmsk", &self.fetsuspmsk())
273            .field("resetdetmsk", &self.resetdetmsk())
274            .field("prtlntmsk", &self.prtlntmsk())
275            .field("hchintmsk", &self.hchintmsk())
276            .field("ptxfempmsk", &self.ptxfempmsk())
277            .field("conidstschngmsk", &self.conidstschngmsk())
278            .field("disconnintmsk", &self.disconnintmsk())
279            .field("sessreqintmsk", &self.sessreqintmsk())
280            .field("wkupintmsk", &self.wkupintmsk())
281            .finish()
282    }
283}
284impl W {
285    #[doc = "Bit 1"]
286    #[inline(always)]
287    pub fn modemismsk(&mut self) -> MODEMISMSK_W<GINTMSK_SPEC> {
288        MODEMISMSK_W::new(self, 1)
289    }
290    #[doc = "Bit 2"]
291    #[inline(always)]
292    pub fn otgintmsk(&mut self) -> OTGINTMSK_W<GINTMSK_SPEC> {
293        OTGINTMSK_W::new(self, 2)
294    }
295    #[doc = "Bit 3"]
296    #[inline(always)]
297    pub fn sofmsk(&mut self) -> SOFMSK_W<GINTMSK_SPEC> {
298        SOFMSK_W::new(self, 3)
299    }
300    #[doc = "Bit 4"]
301    #[inline(always)]
302    pub fn rxflvimsk(&mut self) -> RXFLVIMSK_W<GINTMSK_SPEC> {
303        RXFLVIMSK_W::new(self, 4)
304    }
305    #[doc = "Bit 5"]
306    #[inline(always)]
307    pub fn nptxfempmsk(&mut self) -> NPTXFEMPMSK_W<GINTMSK_SPEC> {
308        NPTXFEMPMSK_W::new(self, 5)
309    }
310    #[doc = "Bit 6"]
311    #[inline(always)]
312    pub fn ginnakeffmsk(&mut self) -> GINNAKEFFMSK_W<GINTMSK_SPEC> {
313        GINNAKEFFMSK_W::new(self, 6)
314    }
315    #[doc = "Bit 7"]
316    #[inline(always)]
317    pub fn goutnackeffmsk(&mut self) -> GOUTNACKEFFMSK_W<GINTMSK_SPEC> {
318        GOUTNACKEFFMSK_W::new(self, 7)
319    }
320    #[doc = "Bit 10"]
321    #[inline(always)]
322    pub fn erlysuspmsk(&mut self) -> ERLYSUSPMSK_W<GINTMSK_SPEC> {
323        ERLYSUSPMSK_W::new(self, 10)
324    }
325    #[doc = "Bit 11"]
326    #[inline(always)]
327    pub fn usbsuspmsk(&mut self) -> USBSUSPMSK_W<GINTMSK_SPEC> {
328        USBSUSPMSK_W::new(self, 11)
329    }
330    #[doc = "Bit 12"]
331    #[inline(always)]
332    pub fn usbrstmsk(&mut self) -> USBRSTMSK_W<GINTMSK_SPEC> {
333        USBRSTMSK_W::new(self, 12)
334    }
335    #[doc = "Bit 13"]
336    #[inline(always)]
337    pub fn enumdonemsk(&mut self) -> ENUMDONEMSK_W<GINTMSK_SPEC> {
338        ENUMDONEMSK_W::new(self, 13)
339    }
340    #[doc = "Bit 14"]
341    #[inline(always)]
342    pub fn isooutdropmsk(&mut self) -> ISOOUTDROPMSK_W<GINTMSK_SPEC> {
343        ISOOUTDROPMSK_W::new(self, 14)
344    }
345    #[doc = "Bit 15"]
346    #[inline(always)]
347    pub fn eopfmsk(&mut self) -> EOPFMSK_W<GINTMSK_SPEC> {
348        EOPFMSK_W::new(self, 15)
349    }
350    #[doc = "Bit 17"]
351    #[inline(always)]
352    pub fn epmismsk(&mut self) -> EPMISMSK_W<GINTMSK_SPEC> {
353        EPMISMSK_W::new(self, 17)
354    }
355    #[doc = "Bit 18"]
356    #[inline(always)]
357    pub fn iepintmsk(&mut self) -> IEPINTMSK_W<GINTMSK_SPEC> {
358        IEPINTMSK_W::new(self, 18)
359    }
360    #[doc = "Bit 19"]
361    #[inline(always)]
362    pub fn oepintmsk(&mut self) -> OEPINTMSK_W<GINTMSK_SPEC> {
363        OEPINTMSK_W::new(self, 19)
364    }
365    #[doc = "Bit 20"]
366    #[inline(always)]
367    pub fn incompisoinmsk(&mut self) -> INCOMPISOINMSK_W<GINTMSK_SPEC> {
368        INCOMPISOINMSK_W::new(self, 20)
369    }
370    #[doc = "Bit 21"]
371    #[inline(always)]
372    pub fn incompipmsk(&mut self) -> INCOMPIPMSK_W<GINTMSK_SPEC> {
373        INCOMPIPMSK_W::new(self, 21)
374    }
375    #[doc = "Bit 22"]
376    #[inline(always)]
377    pub fn fetsuspmsk(&mut self) -> FETSUSPMSK_W<GINTMSK_SPEC> {
378        FETSUSPMSK_W::new(self, 22)
379    }
380    #[doc = "Bit 23"]
381    #[inline(always)]
382    pub fn resetdetmsk(&mut self) -> RESETDETMSK_W<GINTMSK_SPEC> {
383        RESETDETMSK_W::new(self, 23)
384    }
385    #[doc = "Bit 24"]
386    #[inline(always)]
387    pub fn prtlntmsk(&mut self) -> PRTLNTMSK_W<GINTMSK_SPEC> {
388        PRTLNTMSK_W::new(self, 24)
389    }
390    #[doc = "Bit 25"]
391    #[inline(always)]
392    pub fn hchintmsk(&mut self) -> HCHINTMSK_W<GINTMSK_SPEC> {
393        HCHINTMSK_W::new(self, 25)
394    }
395    #[doc = "Bit 26"]
396    #[inline(always)]
397    pub fn ptxfempmsk(&mut self) -> PTXFEMPMSK_W<GINTMSK_SPEC> {
398        PTXFEMPMSK_W::new(self, 26)
399    }
400    #[doc = "Bit 28"]
401    #[inline(always)]
402    pub fn conidstschngmsk(&mut self) -> CONIDSTSCHNGMSK_W<GINTMSK_SPEC> {
403        CONIDSTSCHNGMSK_W::new(self, 28)
404    }
405    #[doc = "Bit 29"]
406    #[inline(always)]
407    pub fn disconnintmsk(&mut self) -> DISCONNINTMSK_W<GINTMSK_SPEC> {
408        DISCONNINTMSK_W::new(self, 29)
409    }
410    #[doc = "Bit 30"]
411    #[inline(always)]
412    pub fn sessreqintmsk(&mut self) -> SESSREQINTMSK_W<GINTMSK_SPEC> {
413        SESSREQINTMSK_W::new(self, 30)
414    }
415    #[doc = "Bit 31"]
416    #[inline(always)]
417    pub fn wkupintmsk(&mut self) -> WKUPINTMSK_W<GINTMSK_SPEC> {
418        WKUPINTMSK_W::new(self, 31)
419    }
420}
421#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`gintmsk::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gintmsk::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
422pub struct GINTMSK_SPEC;
423impl crate::RegisterSpec for GINTMSK_SPEC {
424    type Ux = u32;
425}
426#[doc = "`read()` method returns [`gintmsk::R`](R) reader structure"]
427impl crate::Readable for GINTMSK_SPEC {}
428#[doc = "`write(|w| ..)` method takes [`gintmsk::W`](W) writer structure"]
429impl crate::Writable for GINTMSK_SPEC {
430    type Safety = crate::Unsafe;
431    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
432    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
433}
434#[doc = "`reset()` method sets GINTMSK to value 0"]
435impl crate::Resettable for GINTMSK_SPEC {
436    const RESET_VALUE: u32 = 0;
437}