Struct gd32vf103_pac::usbfs_global::RegisterBlock
source · #[repr(C)]pub struct RegisterBlock {Show 15 fields
pub gotgcs: GOTGCS,
pub gotgintf: GOTGINTF,
pub gahbcs: GAHBCS,
pub gusbcs: GUSBCS,
pub grstctl: GRSTCTL,
pub gintf: GINTF,
pub ginten: GINTEN,
pub grflen: GRFLEN,
pub hnptfqstat: HNPTFQSTAT,
pub gccfg: GCCFG,
pub cid: CID,
pub hptflen: HPTFLEN,
pub diep1tflen: DIEP1TFLEN,
pub diep2tflen: DIEP2TFLEN,
pub diep3tflen: DIEP3TFLEN,
/* private fields */
}
Expand description
Register block
Fields§
§gotgcs: GOTGCS
0x00 - Global OTG control and status register (USBFS_GOTGCS)
gotgintf: GOTGINTF
0x04 - Global OTG interrupt flag register (USBFS_GOTGINTF)
gahbcs: GAHBCS
0x08 - Global AHB control and status register (USBFS_GAHBCS)
gusbcs: GUSBCS
0x0c - Global USB control and status register (USBFS_GUSBCSR)
grstctl: GRSTCTL
0x10 - Global reset control register (USBFS_GRSTCTL)
gintf: GINTF
0x14 - Global interrupt flag register (USBFS_GINTF)
ginten: GINTEN
0x18 - Global interrupt enable register (USBFS_GINTEN)
grflen: GRFLEN
0x24 - Global Receive FIFO size register (USBFS_GRFLEN)
hnptfqstat: HNPTFQSTAT
0x2c - Host non-periodic transmit FIFO/queue status register (HNPTFQSTAT)
gccfg: GCCFG
0x38 - Global core configuration register (USBFS_GCCFG)
cid: CID
0x3c - core ID register
hptflen: HPTFLEN
0x100 - Host periodic transmit FIFO length register (HPTFLEN)
diep1tflen: DIEP1TFLEN
0x104 - device IN endpoint transmit FIFO size register (DIEP1TFLEN)
diep2tflen: DIEP2TFLEN
0x108 - device IN endpoint transmit FIFO size register (DIEP2TFLEN)
diep3tflen: DIEP3TFLEN
0x10c - device IN endpoint transmit FIFO size register (FS_DIEP3TXFLEN)
Implementations§
source§impl RegisterBlock
impl RegisterBlock
sourcepub const fn grstatr_host(&self) -> &GRSTATR_HOST
pub const fn grstatr_host(&self) -> &GRSTATR_HOST
0x1c - Global Receive status read(Host mode)
sourcepub const fn grstatr_device(&self) -> &GRSTATR_DEVICE
pub const fn grstatr_device(&self) -> &GRSTATR_DEVICE
0x1c - Global Receive status read(Device mode)
sourcepub const fn grstatp_host(&self) -> &GRSTATP_HOST
pub const fn grstatp_host(&self) -> &GRSTATP_HOST
0x20 - Global Receive status pop(Host mode)
sourcepub const fn grstatp_device(&self) -> &GRSTATP_DEVICE
pub const fn grstatp_device(&self) -> &GRSTATP_DEVICE
0x20 - Global Receive status pop(Device mode)
sourcepub const fn diep0tflen(&self) -> &DIEP0TFLEN
pub const fn diep0tflen(&self) -> &DIEP0TFLEN
0x28 - Device IN endpoint 0 transmit FIFO length (Device mode)