aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb-synopsys-otg
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-11-23 00:10:48 +0100
committerDario Nieuwenhuis <[email protected]>2024-11-24 00:32:26 +0100
commit1ca53e286b4e65f8b7ecceaee16bc553011f4b49 (patch)
treea78efc6b2aafa60ad4d722c6c00245f8c340bfac /embassy-usb-synopsys-otg
parentc9abff53d77dfc71deb597ce93f358e25588775a (diff)
otg: fix build with defmt enabled.
Diffstat (limited to 'embassy-usb-synopsys-otg')
-rw-r--r--embassy-usb-synopsys-otg/src/otg_v1.rs108
1 files changed, 54 insertions, 54 deletions
diff --git a/embassy-usb-synopsys-otg/src/otg_v1.rs b/embassy-usb-synopsys-otg/src/otg_v1.rs
index 18e760fd1..9e65f2315 100644
--- a/embassy-usb-synopsys-otg/src/otg_v1.rs
+++ b/embassy-usb-synopsys-otg/src/otg_v1.rs
@@ -108,287 +108,287 @@ impl Otg {
108 } 108 }
109 #[doc = "Control and status register"] 109 #[doc = "Control and status register"]
110 #[inline(always)] 110 #[inline(always)]
111 pub const fn gotgctl(self) -> Reg<regs::Gotgctl, RW> { 111 pub fn gotgctl(self) -> Reg<regs::Gotgctl, RW> {
112 unsafe { Reg::from_ptr(self.ptr.add(0x0usize) as _) } 112 unsafe { Reg::from_ptr(self.ptr.add(0x0usize) as _) }
113 } 113 }
114 #[doc = "Interrupt register"] 114 #[doc = "Interrupt register"]
115 #[inline(always)] 115 #[inline(always)]
116 pub const fn gotgint(self) -> Reg<regs::Gotgint, RW> { 116 pub fn gotgint(self) -> Reg<regs::Gotgint, RW> {
117 unsafe { Reg::from_ptr(self.ptr.add(0x04usize) as _) } 117 unsafe { Reg::from_ptr(self.ptr.add(0x04usize) as _) }
118 } 118 }
119 #[doc = "AHB configuration register"] 119 #[doc = "AHB configuration register"]
120 #[inline(always)] 120 #[inline(always)]
121 pub const fn gahbcfg(self) -> Reg<regs::Gahbcfg, RW> { 121 pub fn gahbcfg(self) -> Reg<regs::Gahbcfg, RW> {
122 unsafe { Reg::from_ptr(self.ptr.add(0x08usize) as _) } 122 unsafe { Reg::from_ptr(self.ptr.add(0x08usize) as _) }
123 } 123 }
124 #[doc = "USB configuration register"] 124 #[doc = "USB configuration register"]
125 #[inline(always)] 125 #[inline(always)]
126 pub const fn gusbcfg(self) -> Reg<regs::Gusbcfg, RW> { 126 pub fn gusbcfg(self) -> Reg<regs::Gusbcfg, RW> {
127 unsafe { Reg::from_ptr(self.ptr.add(0x0cusize) as _) } 127 unsafe { Reg::from_ptr(self.ptr.add(0x0cusize) as _) }
128 } 128 }
129 #[doc = "Reset register"] 129 #[doc = "Reset register"]
130 #[inline(always)] 130 #[inline(always)]
131 pub const fn grstctl(self) -> Reg<regs::Grstctl, RW> { 131 pub fn grstctl(self) -> Reg<regs::Grstctl, RW> {
132 unsafe { Reg::from_ptr(self.ptr.add(0x10usize) as _) } 132 unsafe { Reg::from_ptr(self.ptr.add(0x10usize) as _) }
133 } 133 }
134 #[doc = "Core interrupt register"] 134 #[doc = "Core interrupt register"]
135 #[inline(always)] 135 #[inline(always)]
136 pub const fn gintsts(self) -> Reg<regs::Gintsts, RW> { 136 pub fn gintsts(self) -> Reg<regs::Gintsts, RW> {
137 unsafe { Reg::from_ptr(self.ptr.add(0x14usize) as _) } 137 unsafe { Reg::from_ptr(self.ptr.add(0x14usize) as _) }
138 } 138 }
139 #[doc = "Interrupt mask register"] 139 #[doc = "Interrupt mask register"]
140 #[inline(always)] 140 #[inline(always)]
141 pub const fn gintmsk(self) -> Reg<regs::Gintmsk, RW> { 141 pub fn gintmsk(self) -> Reg<regs::Gintmsk, RW> {
142 unsafe { Reg::from_ptr(self.ptr.add(0x18usize) as _) } 142 unsafe { Reg::from_ptr(self.ptr.add(0x18usize) as _) }
143 } 143 }
144 #[doc = "Receive status debug read register"] 144 #[doc = "Receive status debug read register"]
145 #[inline(always)] 145 #[inline(always)]
146 pub const fn grxstsr(self) -> Reg<regs::Grxsts, R> { 146 pub fn grxstsr(self) -> Reg<regs::Grxsts, R> {
147 unsafe { Reg::from_ptr(self.ptr.add(0x1cusize) as _) } 147 unsafe { Reg::from_ptr(self.ptr.add(0x1cusize) as _) }
148 } 148 }
149 #[doc = "Status read and pop register"] 149 #[doc = "Status read and pop register"]
150 #[inline(always)] 150 #[inline(always)]
151 pub const fn grxstsp(self) -> Reg<regs::Grxsts, R> { 151 pub fn grxstsp(self) -> Reg<regs::Grxsts, R> {
152 unsafe { Reg::from_ptr(self.ptr.add(0x20usize) as _) } 152 unsafe { Reg::from_ptr(self.ptr.add(0x20usize) as _) }
153 } 153 }
154 #[doc = "Receive FIFO size register"] 154 #[doc = "Receive FIFO size register"]
155 #[inline(always)] 155 #[inline(always)]
156 pub const fn grxfsiz(self) -> Reg<regs::Grxfsiz, RW> { 156 pub fn grxfsiz(self) -> Reg<regs::Grxfsiz, RW> {
157 unsafe { Reg::from_ptr(self.ptr.add(0x24usize) as _) } 157 unsafe { Reg::from_ptr(self.ptr.add(0x24usize) as _) }
158 } 158 }
159 #[doc = "Endpoint 0 transmit FIFO size register (device mode)"] 159 #[doc = "Endpoint 0 transmit FIFO size register (device mode)"]
160 #[inline(always)] 160 #[inline(always)]
161 pub const fn dieptxf0(self) -> Reg<regs::Fsiz, RW> { 161 pub fn dieptxf0(self) -> Reg<regs::Fsiz, RW> {
162 unsafe { Reg::from_ptr(self.ptr.add(0x28usize) as _) } 162 unsafe { Reg::from_ptr(self.ptr.add(0x28usize) as _) }
163 } 163 }
164 #[doc = "Non-periodic transmit FIFO size register (host mode)"] 164 #[doc = "Non-periodic transmit FIFO size register (host mode)"]
165 #[inline(always)] 165 #[inline(always)]
166 pub const fn hnptxfsiz(self) -> Reg<regs::Fsiz, RW> { 166 pub fn hnptxfsiz(self) -> Reg<regs::Fsiz, RW> {
167 unsafe { Reg::from_ptr(self.ptr.add(0x28usize) as _) } 167 unsafe { Reg::from_ptr(self.ptr.add(0x28usize) as _) }
168 } 168 }
169 #[doc = "Non-periodic transmit FIFO/queue status register (host mode)"] 169 #[doc = "Non-periodic transmit FIFO/queue status register (host mode)"]
170 #[inline(always)] 170 #[inline(always)]
171 pub const fn hnptxsts(self) -> Reg<regs::Hnptxsts, R> { 171 pub fn hnptxsts(self) -> Reg<regs::Hnptxsts, R> {
172 unsafe { Reg::from_ptr(self.ptr.add(0x2cusize) as _) } 172 unsafe { Reg::from_ptr(self.ptr.add(0x2cusize) as _) }
173 } 173 }
174 #[doc = "OTG I2C access register"] 174 #[doc = "OTG I2C access register"]
175 #[inline(always)] 175 #[inline(always)]
176 pub const fn gi2cctl(self) -> Reg<regs::Gi2cctl, RW> { 176 pub fn gi2cctl(self) -> Reg<regs::Gi2cctl, RW> {
177 unsafe { Reg::from_ptr(self.ptr.add(0x30usize) as _) } 177 unsafe { Reg::from_ptr(self.ptr.add(0x30usize) as _) }
178 } 178 }
179 #[doc = "General core configuration register, for core_id 0x0000_1xxx"] 179 #[doc = "General core configuration register, for core_id 0x0000_1xxx"]
180 #[inline(always)] 180 #[inline(always)]
181 pub const fn gccfg_v1(self) -> Reg<regs::GccfgV1, RW> { 181 pub fn gccfg_v1(self) -> Reg<regs::GccfgV1, RW> {
182 unsafe { Reg::from_ptr(self.ptr.add(0x38usize) as _) } 182 unsafe { Reg::from_ptr(self.ptr.add(0x38usize) as _) }
183 } 183 }
184 #[doc = "General core configuration register, for core_id 0x0000_\\[23\\]xxx"] 184 #[doc = "General core configuration register, for core_id 0x0000_\\[23\\]xxx"]
185 #[inline(always)] 185 #[inline(always)]
186 pub const fn gccfg_v2(self) -> Reg<regs::GccfgV2, RW> { 186 pub fn gccfg_v2(self) -> Reg<regs::GccfgV2, RW> {
187 unsafe { Reg::from_ptr(self.ptr.add(0x38usize) as _) } 187 unsafe { Reg::from_ptr(self.ptr.add(0x38usize) as _) }
188 } 188 }
189 #[doc = "General core configuration register, for core_id 0x0000_5xxx"] 189 #[doc = "General core configuration register, for core_id 0x0000_5xxx"]
190 #[inline(always)] 190 #[inline(always)]
191 pub const fn gccfg_v3(self) -> Reg<regs::GccfgV3, RW> { 191 pub fn gccfg_v3(self) -> Reg<regs::GccfgV3, RW> {
192 unsafe { Reg::from_ptr(self.ptr.add(0x38usize) as _) } 192 unsafe { Reg::from_ptr(self.ptr.add(0x38usize) as _) }
193 } 193 }
194 #[doc = "Core ID register"] 194 #[doc = "Core ID register"]
195 #[inline(always)] 195 #[inline(always)]
196 pub const fn cid(self) -> Reg<regs::Cid, RW> { 196 pub fn cid(self) -> Reg<regs::Cid, RW> {
197 unsafe { Reg::from_ptr(self.ptr.add(0x3cusize) as _) } 197 unsafe { Reg::from_ptr(self.ptr.add(0x3cusize) as _) }
198 } 198 }
199 #[doc = "OTG core LPM configuration register"] 199 #[doc = "OTG core LPM configuration register"]
200 #[inline(always)] 200 #[inline(always)]
201 pub const fn glpmcfg(self) -> Reg<regs::Glpmcfg, RW> { 201 pub fn glpmcfg(self) -> Reg<regs::Glpmcfg, RW> {
202 unsafe { Reg::from_ptr(self.ptr.add(0x54usize) as _) } 202 unsafe { Reg::from_ptr(self.ptr.add(0x54usize) as _) }
203 } 203 }
204 #[doc = "Host periodic transmit FIFO size register"] 204 #[doc = "Host periodic transmit FIFO size register"]
205 #[inline(always)] 205 #[inline(always)]
206 pub const fn hptxfsiz(self) -> Reg<regs::Fsiz, RW> { 206 pub fn hptxfsiz(self) -> Reg<regs::Fsiz, RW> {
207 unsafe { Reg::from_ptr(self.ptr.add(0x0100usize) as _) } 207 unsafe { Reg::from_ptr(self.ptr.add(0x0100usize) as _) }
208 } 208 }
209 #[doc = "Device IN endpoint transmit FIFO size register"] 209 #[doc = "Device IN endpoint transmit FIFO size register"]
210 #[inline(always)] 210 #[inline(always)]
211 pub const fn dieptxf(self, n: usize) -> Reg<regs::Fsiz, RW> { 211 pub fn dieptxf(self, n: usize) -> Reg<regs::Fsiz, RW> {
212 assert!(n < 7usize); 212 assert!(n < 7usize);
213 unsafe { Reg::from_ptr(self.ptr.add(0x0104usize + n * 4usize) as _) } 213 unsafe { Reg::from_ptr(self.ptr.add(0x0104usize + n * 4usize) as _) }
214 } 214 }
215 #[doc = "Host configuration register"] 215 #[doc = "Host configuration register"]
216 #[inline(always)] 216 #[inline(always)]
217 pub const fn hcfg(self) -> Reg<regs::Hcfg, RW> { 217 pub fn hcfg(self) -> Reg<regs::Hcfg, RW> {
218 unsafe { Reg::from_ptr(self.ptr.add(0x0400usize) as _) } 218 unsafe { Reg::from_ptr(self.ptr.add(0x0400usize) as _) }
219 } 219 }
220 #[doc = "Host frame interval register"] 220 #[doc = "Host frame interval register"]
221 #[inline(always)] 221 #[inline(always)]
222 pub const fn hfir(self) -> Reg<regs::Hfir, RW> { 222 pub fn hfir(self) -> Reg<regs::Hfir, RW> {
223 unsafe { Reg::from_ptr(self.ptr.add(0x0404usize) as _) } 223 unsafe { Reg::from_ptr(self.ptr.add(0x0404usize) as _) }
224 } 224 }
225 #[doc = "Host frame number/frame time remaining register"] 225 #[doc = "Host frame number/frame time remaining register"]
226 #[inline(always)] 226 #[inline(always)]
227 pub const fn hfnum(self) -> Reg<regs::Hfnum, R> { 227 pub fn hfnum(self) -> Reg<regs::Hfnum, R> {
228 unsafe { Reg::from_ptr(self.ptr.add(0x0408usize) as _) } 228 unsafe { Reg::from_ptr(self.ptr.add(0x0408usize) as _) }
229 } 229 }
230 #[doc = "Periodic transmit FIFO/queue status register"] 230 #[doc = "Periodic transmit FIFO/queue status register"]
231 #[inline(always)] 231 #[inline(always)]
232 pub const fn hptxsts(self) -> Reg<regs::Hptxsts, RW> { 232 pub fn hptxsts(self) -> Reg<regs::Hptxsts, RW> {
233 unsafe { Reg::from_ptr(self.ptr.add(0x0410usize) as _) } 233 unsafe { Reg::from_ptr(self.ptr.add(0x0410usize) as _) }
234 } 234 }
235 #[doc = "Host all channels interrupt register"] 235 #[doc = "Host all channels interrupt register"]
236 #[inline(always)] 236 #[inline(always)]
237 pub const fn haint(self) -> Reg<regs::Haint, R> { 237 pub fn haint(self) -> Reg<regs::Haint, R> {
238 unsafe { Reg::from_ptr(self.ptr.add(0x0414usize) as _) } 238 unsafe { Reg::from_ptr(self.ptr.add(0x0414usize) as _) }
239 } 239 }
240 #[doc = "Host all channels interrupt mask register"] 240 #[doc = "Host all channels interrupt mask register"]
241 #[inline(always)] 241 #[inline(always)]
242 pub const fn haintmsk(self) -> Reg<regs::Haintmsk, RW> { 242 pub fn haintmsk(self) -> Reg<regs::Haintmsk, RW> {
243 unsafe { Reg::from_ptr(self.ptr.add(0x0418usize) as _) } 243 unsafe { Reg::from_ptr(self.ptr.add(0x0418usize) as _) }
244 } 244 }
245 #[doc = "Host port control and status register"] 245 #[doc = "Host port control and status register"]
246 #[inline(always)] 246 #[inline(always)]
247 pub const fn hprt(self) -> Reg<regs::Hprt, RW> { 247 pub fn hprt(self) -> Reg<regs::Hprt, RW> {
248 unsafe { Reg::from_ptr(self.ptr.add(0x0440usize) as _) } 248 unsafe { Reg::from_ptr(self.ptr.add(0x0440usize) as _) }
249 } 249 }
250 #[doc = "Host channel characteristics register"] 250 #[doc = "Host channel characteristics register"]
251 #[inline(always)] 251 #[inline(always)]
252 pub const fn hcchar(self, n: usize) -> Reg<regs::Hcchar, RW> { 252 pub fn hcchar(self, n: usize) -> Reg<regs::Hcchar, RW> {
253 assert!(n < 12usize); 253 assert!(n < 12usize);
254 unsafe { Reg::from_ptr(self.ptr.add(0x0500usize + n * 32usize) as _) } 254 unsafe { Reg::from_ptr(self.ptr.add(0x0500usize + n * 32usize) as _) }
255 } 255 }
256 #[doc = "Host channel split control register"] 256 #[doc = "Host channel split control register"]
257 #[inline(always)] 257 #[inline(always)]
258 pub const fn hcsplt(self, n: usize) -> Reg<u32, RW> { 258 pub fn hcsplt(self, n: usize) -> Reg<u32, RW> {
259 assert!(n < 12usize); 259 assert!(n < 12usize);
260 unsafe { Reg::from_ptr(self.ptr.add(0x0504usize + n * 32usize) as _) } 260 unsafe { Reg::from_ptr(self.ptr.add(0x0504usize + n * 32usize) as _) }
261 } 261 }
262 #[doc = "Host channel interrupt register"] 262 #[doc = "Host channel interrupt register"]
263 #[inline(always)] 263 #[inline(always)]
264 pub const fn hcint(self, n: usize) -> Reg<regs::Hcint, RW> { 264 pub fn hcint(self, n: usize) -> Reg<regs::Hcint, RW> {
265 assert!(n < 12usize); 265 assert!(n < 12usize);
266 unsafe { Reg::from_ptr(self.ptr.add(0x0508usize + n * 32usize) as _) } 266 unsafe { Reg::from_ptr(self.ptr.add(0x0508usize + n * 32usize) as _) }
267 } 267 }
268 #[doc = "Host channel mask register"] 268 #[doc = "Host channel mask register"]
269 #[inline(always)] 269 #[inline(always)]
270 pub const fn hcintmsk(self, n: usize) -> Reg<regs::Hcintmsk, RW> { 270 pub fn hcintmsk(self, n: usize) -> Reg<regs::Hcintmsk, RW> {
271 assert!(n < 12usize); 271 assert!(n < 12usize);
272 unsafe { Reg::from_ptr(self.ptr.add(0x050cusize + n * 32usize) as _) } 272 unsafe { Reg::from_ptr(self.ptr.add(0x050cusize + n * 32usize) as _) }
273 } 273 }
274 #[doc = "Host channel transfer size register"] 274 #[doc = "Host channel transfer size register"]
275 #[inline(always)] 275 #[inline(always)]
276 pub const fn hctsiz(self, n: usize) -> Reg<regs::Hctsiz, RW> { 276 pub fn hctsiz(self, n: usize) -> Reg<regs::Hctsiz, RW> {
277 assert!(n < 12usize); 277 assert!(n < 12usize);
278 unsafe { Reg::from_ptr(self.ptr.add(0x0510usize + n * 32usize) as _) } 278 unsafe { Reg::from_ptr(self.ptr.add(0x0510usize + n * 32usize) as _) }
279 } 279 }
280 #[doc = "Host channel DMA address register"] 280 #[doc = "Host channel DMA address register"]
281 #[inline(always)] 281 #[inline(always)]
282 pub const fn hcdma(self, n: usize) -> Reg<u32, RW> { 282 pub fn hcdma(self, n: usize) -> Reg<u32, RW> {
283 assert!(n < 12usize); 283 assert!(n < 12usize);
284 unsafe { Reg::from_ptr(self.ptr.add(0x0514usize + n * 32usize) as _) } 284 unsafe { Reg::from_ptr(self.ptr.add(0x0514usize + n * 32usize) as _) }
285 } 285 }
286 #[doc = "Device configuration register"] 286 #[doc = "Device configuration register"]
287 #[inline(always)] 287 #[inline(always)]
288 pub const fn dcfg(self) -> Reg<regs::Dcfg, RW> { 288 pub fn dcfg(self) -> Reg<regs::Dcfg, RW> {
289 unsafe { Reg::from_ptr(self.ptr.add(0x0800usize) as _) } 289 unsafe { Reg::from_ptr(self.ptr.add(0x0800usize) as _) }
290 } 290 }
291 #[doc = "Device control register"] 291 #[doc = "Device control register"]
292 #[inline(always)] 292 #[inline(always)]
293 pub const fn dctl(self) -> Reg<regs::Dctl, RW> { 293 pub fn dctl(self) -> Reg<regs::Dctl, RW> {
294 unsafe { Reg::from_ptr(self.ptr.add(0x0804usize) as _) } 294 unsafe { Reg::from_ptr(self.ptr.add(0x0804usize) as _) }
295 } 295 }
296 #[doc = "Device status register"] 296 #[doc = "Device status register"]
297 #[inline(always)] 297 #[inline(always)]
298 pub const fn dsts(self) -> Reg<regs::Dsts, R> { 298 pub fn dsts(self) -> Reg<regs::Dsts, R> {
299 unsafe { Reg::from_ptr(self.ptr.add(0x0808usize) as _) } 299 unsafe { Reg::from_ptr(self.ptr.add(0x0808usize) as _) }
300 } 300 }
301 #[doc = "Device IN endpoint common interrupt mask register"] 301 #[doc = "Device IN endpoint common interrupt mask register"]
302 #[inline(always)] 302 #[inline(always)]
303 pub const fn diepmsk(self) -> Reg<regs::Diepmsk, RW> { 303 pub fn diepmsk(self) -> Reg<regs::Diepmsk, RW> {
304 unsafe { Reg::from_ptr(self.ptr.add(0x0810usize) as _) } 304 unsafe { Reg::from_ptr(self.ptr.add(0x0810usize) as _) }
305 } 305 }
306 #[doc = "Device OUT endpoint common interrupt mask register"] 306 #[doc = "Device OUT endpoint common interrupt mask register"]
307 #[inline(always)] 307 #[inline(always)]
308 pub const fn doepmsk(self) -> Reg<regs::Doepmsk, RW> { 308 pub fn doepmsk(self) -> Reg<regs::Doepmsk, RW> {
309 unsafe { Reg::from_ptr(self.ptr.add(0x0814usize) as _) } 309 unsafe { Reg::from_ptr(self.ptr.add(0x0814usize) as _) }
310 } 310 }
311 #[doc = "Device all endpoints interrupt register"] 311 #[doc = "Device all endpoints interrupt register"]
312 #[inline(always)] 312 #[inline(always)]
313 pub const fn daint(self) -> Reg<regs::Daint, R> { 313 pub fn daint(self) -> Reg<regs::Daint, R> {
314 unsafe { Reg::from_ptr(self.ptr.add(0x0818usize) as _) } 314 unsafe { Reg::from_ptr(self.ptr.add(0x0818usize) as _) }
315 } 315 }
316 #[doc = "All endpoints interrupt mask register"] 316 #[doc = "All endpoints interrupt mask register"]
317 #[inline(always)] 317 #[inline(always)]
318 pub const fn daintmsk(self) -> Reg<regs::Daintmsk, RW> { 318 pub fn daintmsk(self) -> Reg<regs::Daintmsk, RW> {
319 unsafe { Reg::from_ptr(self.ptr.add(0x081cusize) as _) } 319 unsafe { Reg::from_ptr(self.ptr.add(0x081cusize) as _) }
320 } 320 }
321 #[doc = "Device VBUS discharge time register"] 321 #[doc = "Device VBUS discharge time register"]
322 #[inline(always)] 322 #[inline(always)]
323 pub const fn dvbusdis(self) -> Reg<regs::Dvbusdis, RW> { 323 pub fn dvbusdis(self) -> Reg<regs::Dvbusdis, RW> {
324 unsafe { Reg::from_ptr(self.ptr.add(0x0828usize) as _) } 324 unsafe { Reg::from_ptr(self.ptr.add(0x0828usize) as _) }
325 } 325 }
326 #[doc = "Device VBUS pulsing time register"] 326 #[doc = "Device VBUS pulsing time register"]
327 #[inline(always)] 327 #[inline(always)]
328 pub const fn dvbuspulse(self) -> Reg<regs::Dvbuspulse, RW> { 328 pub fn dvbuspulse(self) -> Reg<regs::Dvbuspulse, RW> {
329 unsafe { Reg::from_ptr(self.ptr.add(0x082cusize) as _) } 329 unsafe { Reg::from_ptr(self.ptr.add(0x082cusize) as _) }
330 } 330 }
331 #[doc = "Device IN endpoint FIFO empty interrupt mask register"] 331 #[doc = "Device IN endpoint FIFO empty interrupt mask register"]
332 #[inline(always)] 332 #[inline(always)]
333 pub const fn diepempmsk(self) -> Reg<regs::Diepempmsk, RW> { 333 pub fn diepempmsk(self) -> Reg<regs::Diepempmsk, RW> {
334 unsafe { Reg::from_ptr(self.ptr.add(0x0834usize) as _) } 334 unsafe { Reg::from_ptr(self.ptr.add(0x0834usize) as _) }
335 } 335 }
336 #[doc = "Device IN endpoint control register"] 336 #[doc = "Device IN endpoint control register"]
337 #[inline(always)] 337 #[inline(always)]
338 pub const fn diepctl(self, n: usize) -> Reg<regs::Diepctl, RW> { 338 pub fn diepctl(self, n: usize) -> Reg<regs::Diepctl, RW> {
339 assert!(n < 16usize); 339 assert!(n < 16usize);
340 unsafe { Reg::from_ptr(self.ptr.add(0x0900usize + n * 32usize) as _) } 340 unsafe { Reg::from_ptr(self.ptr.add(0x0900usize + n * 32usize) as _) }
341 } 341 }
342 #[doc = "Device IN endpoint interrupt register"] 342 #[doc = "Device IN endpoint interrupt register"]
343 #[inline(always)] 343 #[inline(always)]
344 pub const fn diepint(self, n: usize) -> Reg<regs::Diepint, RW> { 344 pub fn diepint(self, n: usize) -> Reg<regs::Diepint, RW> {
345 assert!(n < 16usize); 345 assert!(n < 16usize);
346 unsafe { Reg::from_ptr(self.ptr.add(0x0908usize + n * 32usize) as _) } 346 unsafe { Reg::from_ptr(self.ptr.add(0x0908usize + n * 32usize) as _) }
347 } 347 }
348 #[doc = "Device IN endpoint transfer size register"] 348 #[doc = "Device IN endpoint transfer size register"]
349 #[inline(always)] 349 #[inline(always)]
350 pub const fn dieptsiz(self, n: usize) -> Reg<regs::Dieptsiz, RW> { 350 pub fn dieptsiz(self, n: usize) -> Reg<regs::Dieptsiz, RW> {
351 assert!(n < 16usize); 351 assert!(n < 16usize);
352 unsafe { Reg::from_ptr(self.ptr.add(0x0910usize + n * 32usize) as _) } 352 unsafe { Reg::from_ptr(self.ptr.add(0x0910usize + n * 32usize) as _) }
353 } 353 }
354 #[doc = "Device IN endpoint transmit FIFO status register"] 354 #[doc = "Device IN endpoint transmit FIFO status register"]
355 #[inline(always)] 355 #[inline(always)]
356 pub const fn dtxfsts(self, n: usize) -> Reg<regs::Dtxfsts, R> { 356 pub fn dtxfsts(self, n: usize) -> Reg<regs::Dtxfsts, R> {
357 assert!(n < 16usize); 357 assert!(n < 16usize);
358 unsafe { Reg::from_ptr(self.ptr.add(0x0918usize + n * 32usize) as _) } 358 unsafe { Reg::from_ptr(self.ptr.add(0x0918usize + n * 32usize) as _) }
359 } 359 }
360 #[doc = "Device OUT endpoint control register"] 360 #[doc = "Device OUT endpoint control register"]
361 #[inline(always)] 361 #[inline(always)]
362 pub const fn doepctl(self, n: usize) -> Reg<regs::Doepctl, RW> { 362 pub fn doepctl(self, n: usize) -> Reg<regs::Doepctl, RW> {
363 assert!(n < 16usize); 363 assert!(n < 16usize);
364 unsafe { Reg::from_ptr(self.ptr.add(0x0b00usize + n * 32usize) as _) } 364 unsafe { Reg::from_ptr(self.ptr.add(0x0b00usize + n * 32usize) as _) }
365 } 365 }
366 #[doc = "Device OUT endpoint interrupt register"] 366 #[doc = "Device OUT endpoint interrupt register"]
367 #[inline(always)] 367 #[inline(always)]
368 pub const fn doepint(self, n: usize) -> Reg<regs::Doepint, RW> { 368 pub fn doepint(self, n: usize) -> Reg<regs::Doepint, RW> {
369 assert!(n < 16usize); 369 assert!(n < 16usize);
370 unsafe { Reg::from_ptr(self.ptr.add(0x0b08usize + n * 32usize) as _) } 370 unsafe { Reg::from_ptr(self.ptr.add(0x0b08usize + n * 32usize) as _) }
371 } 371 }
372 #[doc = "Device OUT endpoint transfer size register"] 372 #[doc = "Device OUT endpoint transfer size register"]
373 #[inline(always)] 373 #[inline(always)]
374 pub const fn doeptsiz(self, n: usize) -> Reg<regs::Doeptsiz, RW> { 374 pub fn doeptsiz(self, n: usize) -> Reg<regs::Doeptsiz, RW> {
375 assert!(n < 16usize); 375 assert!(n < 16usize);
376 unsafe { Reg::from_ptr(self.ptr.add(0x0b10usize + n * 32usize) as _) } 376 unsafe { Reg::from_ptr(self.ptr.add(0x0b10usize + n * 32usize) as _) }
377 } 377 }
378 #[doc = "Device OUT/IN endpoint DMA address register"] 378 #[doc = "Device OUT/IN endpoint DMA address register"]
379 #[inline(always)] 379 #[inline(always)]
380 pub const fn doepdma(self, n: usize) -> Reg<u32, RW> { 380 pub fn doepdma(self, n: usize) -> Reg<u32, RW> {
381 assert!(n < 16usize); 381 assert!(n < 16usize);
382 unsafe { Reg::from_ptr(self.ptr.add(0x0b14usize + n * 32usize) as _) } 382 unsafe { Reg::from_ptr(self.ptr.add(0x0b14usize + n * 32usize) as _) }
383 } 383 }
384 #[doc = "Power and clock gating control register"] 384 #[doc = "Power and clock gating control register"]
385 #[inline(always)] 385 #[inline(always)]
386 pub const fn pcgcctl(self) -> Reg<regs::Pcgcctl, RW> { 386 pub fn pcgcctl(self) -> Reg<regs::Pcgcctl, RW> {
387 unsafe { Reg::from_ptr(self.ptr.add(0x0e00usize) as _) } 387 unsafe { Reg::from_ptr(self.ptr.add(0x0e00usize) as _) }
388 } 388 }
389 #[doc = "Device endpoint / host channel FIFO register"] 389 #[doc = "Device endpoint / host channel FIFO register"]
390 #[inline(always)] 390 #[inline(always)]
391 pub const fn fifo(self, n: usize) -> Reg<regs::Fifo, RW> { 391 pub fn fifo(self, n: usize) -> Reg<regs::Fifo, RW> {
392 assert!(n < 16usize); 392 assert!(n < 16usize);
393 unsafe { Reg::from_ptr(self.ptr.add(0x1000usize + n * 4096usize) as _) } 393 unsafe { Reg::from_ptr(self.ptr.add(0x1000usize + n * 4096usize) as _) }
394 } 394 }