Struct gd32vf103_pac::USBFS_GLOBAL
source · pub struct USBFS_GLOBAL { /* private fields */ }
Expand description
USB full speed global registers
Implementations§
source§impl USBFS_GLOBAL
impl USBFS_GLOBAL
sourcepub const PTR: *const RegisterBlock = {0x50000000 as *const usbfs_global::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x50000000 as *const usbfs_global::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
Methods from Deref<Target = RegisterBlock>§
sourcepub fn grstatr_host(&self) -> &GRSTATR_HOST
pub fn grstatr_host(&self) -> &GRSTATR_HOST
0x1c - Global Receive status read(Host mode)
sourcepub fn grstatr_device(&self) -> &GRSTATR_DEVICE
pub fn grstatr_device(&self) -> &GRSTATR_DEVICE
0x1c - Global Receive status read(Device mode)
sourcepub fn grstatp_host(&self) -> &GRSTATP_HOST
pub fn grstatp_host(&self) -> &GRSTATP_HOST
0x20 - Global Receive status pop(Host mode)
sourcepub fn grstatp_device(&self) -> &GRSTATP_DEVICE
pub fn grstatp_device(&self) -> &GRSTATP_DEVICE
0x20 - Global Receive status pop(Device mode)
sourcepub fn diep0tflen(&self) -> &DIEP0TFLEN
pub fn diep0tflen(&self) -> &DIEP0TFLEN
0x28 - Device IN endpoint 0 transmit FIFO length (Device mode)
Trait Implementations§
source§impl Debug for USBFS_GLOBAL
impl Debug for USBFS_GLOBAL
source§impl Deref for USBFS_GLOBAL
impl Deref for USBFS_GLOBAL
impl Send for USBFS_GLOBAL
Auto Trait Implementations§
impl RefUnwindSafe for USBFS_GLOBAL
impl !Sync for USBFS_GLOBAL
impl Unpin for USBFS_GLOBAL
impl UnwindSafe for USBFS_GLOBAL
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more