pub struct Otg { /* private fields */ }Expand description
USB on the go
Implementations§
Source§impl Otg
impl Otg
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn dieptxf0(self) -> Reg<Fsiz, RW>
pub const fn dieptxf0(self) -> Reg<Fsiz, RW>
Endpoint 0 transmit FIFO size register (device mode)
Sourcepub const fn hnptxfsiz(self) -> Reg<Fsiz, RW>
pub const fn hnptxfsiz(self) -> Reg<Fsiz, RW>
Non-periodic transmit FIFO size register (host mode)
Sourcepub const fn hnptxsts(self) -> Reg<Hnptxsts, R>
pub const fn hnptxsts(self) -> Reg<Hnptxsts, R>
Non-periodic transmit FIFO/queue status register (host mode)
Sourcepub const fn gccfg_v1(self) -> Reg<GccfgV1, RW>
pub const fn gccfg_v1(self) -> Reg<GccfgV1, RW>
General core configuration register, for core_id 0x0000_1xxx
Sourcepub const fn gccfg_v2(self) -> Reg<GccfgV2, RW>
pub const fn gccfg_v2(self) -> Reg<GccfgV2, RW>
General core configuration register, for core_id 0x0000_[23]xxx
Sourcepub const fn gccfg_v3(self) -> Reg<GccfgV3, RW>
pub const fn gccfg_v3(self) -> Reg<GccfgV3, RW>
General core configuration register, for core_id 0x0000_5xxx
Sourcepub const fn dieptxf(self, n: usize) -> Reg<Fsiz, RW>
pub const fn dieptxf(self, n: usize) -> Reg<Fsiz, RW>
Device IN endpoint transmit FIFO size register
Sourcepub const fn hcdma(self, n: usize) -> Reg<Hcdma, RW>
pub const fn hcdma(self, n: usize) -> Reg<Hcdma, RW>
Host channel DMA address register (config for scatter/gather, ptr for buffer-dma)
Sourcepub const fn hcdmab(self, n: usize) -> Reg<u32, RW>
pub const fn hcdmab(self, n: usize) -> Reg<u32, RW>
Host channel DMA address register (addr buffer for current transfer; used to debug ddma)
Sourcepub const fn diepmsk(self) -> Reg<Diepmsk, RW>
pub const fn diepmsk(self) -> Reg<Diepmsk, RW>
Device IN endpoint common interrupt mask register
Sourcepub const fn doepmsk(self) -> Reg<Doepmsk, RW>
pub const fn doepmsk(self) -> Reg<Doepmsk, RW>
Device OUT endpoint common interrupt mask register
Sourcepub const fn dvbuspulse(self) -> Reg<Dvbuspulse, RW>
pub const fn dvbuspulse(self) -> Reg<Dvbuspulse, RW>
Device VBUS pulsing time register
Sourcepub const fn diepempmsk(self) -> Reg<Diepempmsk, RW>
pub const fn diepempmsk(self) -> Reg<Diepempmsk, RW>
Device IN endpoint FIFO empty interrupt mask register
Sourcepub const fn dieptsiz(self, n: usize) -> Reg<Dieptsiz, RW>
pub const fn dieptsiz(self, n: usize) -> Reg<Dieptsiz, RW>
Device IN endpoint transfer size register
Sourcepub const fn dtxfsts(self, n: usize) -> Reg<Dtxfsts, R>
pub const fn dtxfsts(self, n: usize) -> Reg<Dtxfsts, R>
Device IN endpoint transmit FIFO status register
Sourcepub const fn doepint(self, n: usize) -> Reg<Doepint, RW>
pub const fn doepint(self, n: usize) -> Reg<Doepint, RW>
Device OUT endpoint interrupt register
Sourcepub const fn doeptsiz(self, n: usize) -> Reg<Doeptsiz, RW>
pub const fn doeptsiz(self, n: usize) -> Reg<Doeptsiz, RW>
Device OUT endpoint transfer size register