Struct gd32vf103_pac::usbfs_device::RegisterBlock
source · #[repr(C)]pub struct RegisterBlock {Show 38 fields
pub dcfg: DCFG,
pub dctl: DCTL,
pub dstat: DSTAT,
pub diepinten: DIEPINTEN,
pub doepinten: DOEPINTEN,
pub daepint: DAEPINT,
pub daepinten: DAEPINTEN,
pub dvbusdt: DVBUSDT,
pub dvbuspt: DVBUSPT,
pub diepfeinten: DIEPFEINTEN,
pub diep0ctl: DIEP0CTL,
pub diep0intf: DIEP0INTF,
pub diep0len: DIEP0LEN,
pub diep0tfstat: DIEP0TFSTAT,
pub diep1ctl: DIEP1CTL,
pub diep1intf: DIEP1INTF,
pub diep1len: DIEP1LEN,
pub diep1tfstat: DIEP1TFSTAT,
pub diep2ctl: DIEP2CTL,
pub diep2intf: DIEP2INTF,
pub diep2len: DIEP2LEN,
pub diep2tfstat: DIEP2TFSTAT,
pub diep3ctl: DIEP3CTL,
pub diep3intf: DIEP3INTF,
pub diep3len: DIEP3LEN,
pub diep3tfstat: DIEP3TFSTAT,
pub doep0ctl: DOEP0CTL,
pub doep0intf: DOEP0INTF,
pub doep0len: DOEP0LEN,
pub doep1ctl: DOEP1CTL,
pub doep1intf: DOEP1INTF,
pub doep1len: DOEP1LEN,
pub doep2ctl: DOEP2CTL,
pub doep2intf: DOEP2INTF,
pub doep2len: DOEP2LEN,
pub doep3ctl: DOEP3CTL,
pub doep3intf: DOEP3INTF,
pub doep3len: DOEP3LEN,
/* private fields */
}
Expand description
Register block
Fields§
§dcfg: DCFG
0x00 - device configuration register (DCFG)
dctl: DCTL
0x04 - device control register (DCTL)
dstat: DSTAT
0x08 - device status register (DSTAT)
diepinten: DIEPINTEN
0x10 - device IN endpoint common interrupt mask register (DIEPINTEN)
doepinten: DOEPINTEN
0x14 - device OUT endpoint common interrupt enable register (DOEPINTEN)
daepint: DAEPINT
0x18 - device all endpoints interrupt register (DAEPINT)
daepinten: DAEPINTEN
0x1c - Device all endpoints interrupt enable register (DAEPINTEN)
dvbusdt: DVBUSDT
0x28 - device VBUS discharge time register
dvbuspt: DVBUSPT
0x2c - device VBUS pulsing time register
diepfeinten: DIEPFEINTEN
0x34 - device IN endpoint FIFO empty interrupt enable register
diep0ctl: DIEP0CTL
0x100 - device IN endpoint 0 control register (DIEP0CTL)
diep0intf: DIEP0INTF
0x108 - device endpoint-0 interrupt register
diep0len: DIEP0LEN
0x110 - device IN endpoint-0 transfer length register
diep0tfstat: DIEP0TFSTAT
0x118 - device IN endpoint 0 transmit FIFO status register
diep1ctl: DIEP1CTL
0x120 - device in endpoint-1 control register
diep1intf: DIEP1INTF
0x128 - device endpoint-1 interrupt register
diep1len: DIEP1LEN
0x130 - device IN endpoint-1 transfer length register
diep1tfstat: DIEP1TFSTAT
0x138 - device IN endpoint 1 transmit FIFO status register
diep2ctl: DIEP2CTL
0x140 - device endpoint-2 control register
diep2intf: DIEP2INTF
0x148 - device endpoint-2 interrupt register
diep2len: DIEP2LEN
0x150 - device IN endpoint-2 transfer length register
diep2tfstat: DIEP2TFSTAT
0x158 - device IN endpoint 2 transmit FIFO status register
diep3ctl: DIEP3CTL
0x160 - device endpoint-3 control register
diep3intf: DIEP3INTF
0x168 - device endpoint-3 interrupt register
diep3len: DIEP3LEN
0x170 - device IN endpoint-3 transfer length register
diep3tfstat: DIEP3TFSTAT
0x178 - device IN endpoint 3 transmit FIFO status register
doep0ctl: DOEP0CTL
0x300 - device endpoint-0 control register
doep0intf: DOEP0INTF
0x308 - device out endpoint-0 interrupt flag register
doep0len: DOEP0LEN
0x310 - device OUT endpoint-0 transfer length register
doep1ctl: DOEP1CTL
0x320 - device endpoint-1 control register
doep1intf: DOEP1INTF
0x328 - device out endpoint-1 interrupt flag register
doep1len: DOEP1LEN
0x330 - device OUT endpoint-1 transfer length register
doep2ctl: DOEP2CTL
0x340 - device endpoint-2 control register
doep2intf: DOEP2INTF
0x348 - device out endpoint-2 interrupt flag register
doep2len: DOEP2LEN
0x350 - device OUT endpoint-2 transfer length register
doep3ctl: DOEP3CTL
0x360 - device endpoint-3 control register
doep3intf: DOEP3INTF
0x368 - device out endpoint-3 interrupt flag register
doep3len: DOEP3LEN
0x370 - device OUT endpoint-3 transfer length register