pub struct UsbfsHost { /* private fields */ }
Expand description
USB on the go full speed host
Implementations§
source§impl UsbfsHost
impl UsbfsHost
sourcepub const PTR: *const RegisterBlock = {0x50000400 as *const gd32e103::usbfs_host::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x50000400 as *const gd32e103::usbfs_host::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn hfinfr(&self) -> &Hfinfr
pub fn hfinfr(&self) -> &Hfinfr
0x08 - OTG_FS host frame number/frame time remaining register (HFINFR)
sourcepub fn hptfqstat(&self) -> &Hptfqstat
pub fn hptfqstat(&self) -> &Hptfqstat
0x10 - Host periodic transmit FIFO/queue status register (HPTFQSTAT)
sourcepub fn hch0inten(&self) -> &Hch0inten
pub fn hch0inten(&self) -> &Hch0inten
0x10c - host channel-0 interrupt enable register (HCH0INTEN)
sourcepub fn hch1inten(&self) -> &Hch1inten
pub fn hch1inten(&self) -> &Hch1inten
0x12c - host channel-1 interrupt enable register (HCH1INTEN)
sourcepub fn hch2inten(&self) -> &Hch2inten
pub fn hch2inten(&self) -> &Hch2inten
0x14c - host channel-2 interrupt enable register (HCH2INTEN)
sourcepub fn hch3inten(&self) -> &Hch3inten
pub fn hch3inten(&self) -> &Hch3inten
0x16c - host channel-3 interrupt enable register (HCH3INTEN)
sourcepub fn hch4inten(&self) -> &Hch4inten
pub fn hch4inten(&self) -> &Hch4inten
0x18c - host channel-4 interrupt enable register (HCH4INTEN)
sourcepub fn hch5inten(&self) -> &Hch5inten
pub fn hch5inten(&self) -> &Hch5inten
0x1ac - host channel-5 interrupt enable register (HCH5INTEN)
sourcepub fn hch6inten(&self) -> &Hch6inten
pub fn hch6inten(&self) -> &Hch6inten
0x1cc - host channel-6 interrupt enable register (HCH6INTEN)