1#[doc = "Register `DOEPMSK` reader"]
2pub type R = crate::R<DOEPMSK_SPEC>;
3#[doc = "Register `DOEPMSK` writer"]
4pub type W = crate::W<DOEPMSK_SPEC>;
5#[doc = "Field `XFERCOMPLMSK` reader - "]
6pub type XFERCOMPLMSK_R = crate::BitReader;
7#[doc = "Field `XFERCOMPLMSK` writer - "]
8pub type XFERCOMPLMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `EPDISBLDMSK` reader - "]
10pub type EPDISBLDMSK_R = crate::BitReader;
11#[doc = "Field `EPDISBLDMSK` writer - "]
12pub type EPDISBLDMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `AHBERMSK` reader - "]
14pub type AHBERMSK_R = crate::BitReader;
15#[doc = "Field `AHBERMSK` writer - "]
16pub type AHBERMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `SETUPMSK` reader - "]
18pub type SETUPMSK_R = crate::BitReader;
19#[doc = "Field `SETUPMSK` writer - "]
20pub type SETUPMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `OUTTKNEPDISMSK` reader - "]
22pub type OUTTKNEPDISMSK_R = crate::BitReader;
23#[doc = "Field `OUTTKNEPDISMSK` writer - "]
24pub type OUTTKNEPDISMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `STSPHSERCVDMSK` reader - "]
26pub type STSPHSERCVDMSK_R = crate::BitReader;
27#[doc = "Field `STSPHSERCVDMSK` writer - "]
28pub type STSPHSERCVDMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `BACK2BACKSETUP` reader - "]
30pub type BACK2BACKSETUP_R = crate::BitReader;
31#[doc = "Field `BACK2BACKSETUP` writer - "]
32pub type BACK2BACKSETUP_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `OUTPKTERRMSK` reader - "]
34pub type OUTPKTERRMSK_R = crate::BitReader;
35#[doc = "Field `OUTPKTERRMSK` writer - "]
36pub type OUTPKTERRMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `BNAOUTINTRMSK` reader - "]
38pub type BNAOUTINTRMSK_R = crate::BitReader;
39#[doc = "Field `BNAOUTINTRMSK` writer - "]
40pub type BNAOUTINTRMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `BBLEERRMSK` reader - "]
42pub type BBLEERRMSK_R = crate::BitReader;
43#[doc = "Field `BBLEERRMSK` writer - "]
44pub type BBLEERRMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `NAKMSK` reader - "]
46pub type NAKMSK_R = crate::BitReader;
47#[doc = "Field `NAKMSK` writer - "]
48pub type NAKMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `NYETMSK` reader - "]
50pub type NYETMSK_R = crate::BitReader;
51#[doc = "Field `NYETMSK` writer - "]
52pub type NYETMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
53impl R {
54 #[doc = "Bit 0"]
55 #[inline(always)]
56 pub fn xfercomplmsk(&self) -> XFERCOMPLMSK_R {
57 XFERCOMPLMSK_R::new((self.bits & 1) != 0)
58 }
59 #[doc = "Bit 1"]
60 #[inline(always)]
61 pub fn epdisbldmsk(&self) -> EPDISBLDMSK_R {
62 EPDISBLDMSK_R::new(((self.bits >> 1) & 1) != 0)
63 }
64 #[doc = "Bit 2"]
65 #[inline(always)]
66 pub fn ahbermsk(&self) -> AHBERMSK_R {
67 AHBERMSK_R::new(((self.bits >> 2) & 1) != 0)
68 }
69 #[doc = "Bit 3"]
70 #[inline(always)]
71 pub fn setupmsk(&self) -> SETUPMSK_R {
72 SETUPMSK_R::new(((self.bits >> 3) & 1) != 0)
73 }
74 #[doc = "Bit 4"]
75 #[inline(always)]
76 pub fn outtknepdismsk(&self) -> OUTTKNEPDISMSK_R {
77 OUTTKNEPDISMSK_R::new(((self.bits >> 4) & 1) != 0)
78 }
79 #[doc = "Bit 5"]
80 #[inline(always)]
81 pub fn stsphsercvdmsk(&self) -> STSPHSERCVDMSK_R {
82 STSPHSERCVDMSK_R::new(((self.bits >> 5) & 1) != 0)
83 }
84 #[doc = "Bit 6"]
85 #[inline(always)]
86 pub fn back2backsetup(&self) -> BACK2BACKSETUP_R {
87 BACK2BACKSETUP_R::new(((self.bits >> 6) & 1) != 0)
88 }
89 #[doc = "Bit 8"]
90 #[inline(always)]
91 pub fn outpkterrmsk(&self) -> OUTPKTERRMSK_R {
92 OUTPKTERRMSK_R::new(((self.bits >> 8) & 1) != 0)
93 }
94 #[doc = "Bit 9"]
95 #[inline(always)]
96 pub fn bnaoutintrmsk(&self) -> BNAOUTINTRMSK_R {
97 BNAOUTINTRMSK_R::new(((self.bits >> 9) & 1) != 0)
98 }
99 #[doc = "Bit 12"]
100 #[inline(always)]
101 pub fn bbleerrmsk(&self) -> BBLEERRMSK_R {
102 BBLEERRMSK_R::new(((self.bits >> 12) & 1) != 0)
103 }
104 #[doc = "Bit 13"]
105 #[inline(always)]
106 pub fn nakmsk(&self) -> NAKMSK_R {
107 NAKMSK_R::new(((self.bits >> 13) & 1) != 0)
108 }
109 #[doc = "Bit 14"]
110 #[inline(always)]
111 pub fn nyetmsk(&self) -> NYETMSK_R {
112 NYETMSK_R::new(((self.bits >> 14) & 1) != 0)
113 }
114}
115#[cfg(feature = "impl-register-debug")]
116impl core::fmt::Debug for R {
117 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
118 f.debug_struct("DOEPMSK")
119 .field("xfercomplmsk", &self.xfercomplmsk())
120 .field("epdisbldmsk", &self.epdisbldmsk())
121 .field("ahbermsk", &self.ahbermsk())
122 .field("setupmsk", &self.setupmsk())
123 .field("outtknepdismsk", &self.outtknepdismsk())
124 .field("stsphsercvdmsk", &self.stsphsercvdmsk())
125 .field("back2backsetup", &self.back2backsetup())
126 .field("outpkterrmsk", &self.outpkterrmsk())
127 .field("bnaoutintrmsk", &self.bnaoutintrmsk())
128 .field("bbleerrmsk", &self.bbleerrmsk())
129 .field("nakmsk", &self.nakmsk())
130 .field("nyetmsk", &self.nyetmsk())
131 .finish()
132 }
133}
134impl W {
135 #[doc = "Bit 0"]
136 #[inline(always)]
137 pub fn xfercomplmsk(&mut self) -> XFERCOMPLMSK_W<DOEPMSK_SPEC> {
138 XFERCOMPLMSK_W::new(self, 0)
139 }
140 #[doc = "Bit 1"]
141 #[inline(always)]
142 pub fn epdisbldmsk(&mut self) -> EPDISBLDMSK_W<DOEPMSK_SPEC> {
143 EPDISBLDMSK_W::new(self, 1)
144 }
145 #[doc = "Bit 2"]
146 #[inline(always)]
147 pub fn ahbermsk(&mut self) -> AHBERMSK_W<DOEPMSK_SPEC> {
148 AHBERMSK_W::new(self, 2)
149 }
150 #[doc = "Bit 3"]
151 #[inline(always)]
152 pub fn setupmsk(&mut self) -> SETUPMSK_W<DOEPMSK_SPEC> {
153 SETUPMSK_W::new(self, 3)
154 }
155 #[doc = "Bit 4"]
156 #[inline(always)]
157 pub fn outtknepdismsk(&mut self) -> OUTTKNEPDISMSK_W<DOEPMSK_SPEC> {
158 OUTTKNEPDISMSK_W::new(self, 4)
159 }
160 #[doc = "Bit 5"]
161 #[inline(always)]
162 pub fn stsphsercvdmsk(&mut self) -> STSPHSERCVDMSK_W<DOEPMSK_SPEC> {
163 STSPHSERCVDMSK_W::new(self, 5)
164 }
165 #[doc = "Bit 6"]
166 #[inline(always)]
167 pub fn back2backsetup(&mut self) -> BACK2BACKSETUP_W<DOEPMSK_SPEC> {
168 BACK2BACKSETUP_W::new(self, 6)
169 }
170 #[doc = "Bit 8"]
171 #[inline(always)]
172 pub fn outpkterrmsk(&mut self) -> OUTPKTERRMSK_W<DOEPMSK_SPEC> {
173 OUTPKTERRMSK_W::new(self, 8)
174 }
175 #[doc = "Bit 9"]
176 #[inline(always)]
177 pub fn bnaoutintrmsk(&mut self) -> BNAOUTINTRMSK_W<DOEPMSK_SPEC> {
178 BNAOUTINTRMSK_W::new(self, 9)
179 }
180 #[doc = "Bit 12"]
181 #[inline(always)]
182 pub fn bbleerrmsk(&mut self) -> BBLEERRMSK_W<DOEPMSK_SPEC> {
183 BBLEERRMSK_W::new(self, 12)
184 }
185 #[doc = "Bit 13"]
186 #[inline(always)]
187 pub fn nakmsk(&mut self) -> NAKMSK_W<DOEPMSK_SPEC> {
188 NAKMSK_W::new(self, 13)
189 }
190 #[doc = "Bit 14"]
191 #[inline(always)]
192 pub fn nyetmsk(&mut self) -> NYETMSK_W<DOEPMSK_SPEC> {
193 NYETMSK_W::new(self, 14)
194 }
195}
196#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`doepmsk::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doepmsk::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
197pub struct DOEPMSK_SPEC;
198impl crate::RegisterSpec for DOEPMSK_SPEC {
199 type Ux = u32;
200}
201#[doc = "`read()` method returns [`doepmsk::R`](R) reader structure"]
202impl crate::Readable for DOEPMSK_SPEC {}
203#[doc = "`write(|w| ..)` method takes [`doepmsk::W`](W) writer structure"]
204impl crate::Writable for DOEPMSK_SPEC {
205 type Safety = crate::Unsafe;
206 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
207 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
208}
209#[doc = "`reset()` method sets DOEPMSK to value 0"]
210impl crate::Resettable for DOEPMSK_SPEC {
211 const RESET_VALUE: u32 = 0;
212}