GD32VF103 User Manual
470
The size and start offset of these data FIFOs should be configured using USBFS_GRFLEN
and USBFS_DIEPxTFLEN (x=0
…3) registers.
Figure 21-7. Device mode FIFO space in
describes the structure of these FIFOs in SRAM. The values in the figure are in term
of 32-bit words.
Figure 21-7. Device mode FIFO space in SRAM
.
.
.
Rx FIFO
Tx FIFO0
Tx FIFO1
IEPTX0RSAR[15:0]
IEPTX0FD
IEPTX1FD
IEPTX1RSAR[15:0]
RXFD
Start: 0x00
End: 0x13F
Tx FIFO3
IEPTX3FD
IEPTX3RSAR[15:0]
USBFS provides a special register area for the internal data FIFO reading and writing.
21-8. Device mode FIFO access register map
describes the register memory area where
the data FIFO can write. This area can be read by any endpoint FIFO. The addresses in the
figure are addressed in bytes. Each endpoint has its own FIFO access register space. Rx
FIFO is also able to be accessed using USBFS_GRSTATR/USBFS_GRSTATP register.