aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb-synopsys-otg
diff options
context:
space:
mode:
authorferris <[email protected]>2024-08-13 17:25:00 +0200
committerferris <[email protected]>2024-08-13 17:31:52 +0200
commit0b8779593772f336531c0ebb5a583190b4f31c6b (patch)
tree6604f8beb0f1221929a11d28c82a0ce9a8f29216 /embassy-usb-synopsys-otg
parent65b98f2f07841f1f3316b4d3bfd1a4a68bd6fb59 (diff)
Add OTG core DMA address registers
Diffstat (limited to 'embassy-usb-synopsys-otg')
-rw-r--r--embassy-usb-synopsys-otg/src/otg_v1.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/embassy-usb-synopsys-otg/src/otg_v1.rs b/embassy-usb-synopsys-otg/src/otg_v1.rs
index 111bc4a63..a8530980c 100644
--- a/embassy-usb-synopsys-otg/src/otg_v1.rs
+++ b/embassy-usb-synopsys-otg/src/otg_v1.rs
@@ -272,6 +272,12 @@ impl Otg {
272 assert!(n < 12usize); 272 assert!(n < 12usize);
273 unsafe { Reg::from_ptr(self.ptr.add(0x0510usize + n * 32usize) as _) } 273 unsafe { Reg::from_ptr(self.ptr.add(0x0510usize + n * 32usize) as _) }
274 } 274 }
275 #[doc = "Host channel DMA address register"]
276 #[inline(always)]
277 pub const fn hcdma(self, n: usize) -> Reg<u32, RW> {
278 assert!(n < 12usize);
279 unsafe { Reg::from_ptr(self.ptr.add(0x0514usize + n * 32usize) as _) }
280 }
275 #[doc = "Device configuration register"] 281 #[doc = "Device configuration register"]
276 #[inline(always)] 282 #[inline(always)]
277 pub const fn dcfg(self) -> Reg<regs::Dcfg, RW> { 283 pub const fn dcfg(self) -> Reg<regs::Dcfg, RW> {
@@ -364,6 +370,12 @@ impl Otg {
364 assert!(n < 16usize); 370 assert!(n < 16usize);
365 unsafe { Reg::from_ptr(self.ptr.add(0x0b10usize + n * 32usize) as _) } 371 unsafe { Reg::from_ptr(self.ptr.add(0x0b10usize + n * 32usize) as _) }
366 } 372 }
373 #[doc = "Device OUT/IN endpoint DMA address register"]
374 #[inline(always)]
375 pub const fn doepdma(self, n: usize) -> Reg<u32, RW> {
376 assert!(n < 16usize);
377 unsafe { Reg::from_ptr(self.ptr.add(0x0b14usize + n * 32usize) as _) }
378 }
367 #[doc = "Power and clock gating control register"] 379 #[doc = "Power and clock gating control register"]
368 #[inline(always)] 380 #[inline(always)]
369 pub const fn pcgcctl(self) -> Reg<regs::Pcgcctl, RW> { 381 pub const fn pcgcctl(self) -> Reg<regs::Pcgcctl, RW> {