GD32W51x User Manual
843
R
e
se
rve
d
T
X
F
N
U
M
[4
:0
]
T
X
F
F
R
X
F
F
R
e
se
rve
d
H
F
C
R
S
T
H
C
S
R
S
T
C
S
R
S
T
rw
rs
rs
rs
rs
rs
Bits
Fields
Descriptions
31:11
Reserved
Must be kept at reset value
10:6
TXFNUM[4:0]
Tx FIFO number
Indicates w hich Tx FIFO w ill be flushed w hen TXFF bit in the same register is set.
Host Mode:
00000: Only non-periodic Tx FIFO is flushed
00001: Only periodic Tx FIFO is flushed
1XXXX: Both periodic and non-periodic Tx FIFOs are flushed
Other: Non data FIFO is flushed
Device Mode:
00000: Only Tx FIFO0 is flushed
00001: Only Tx FIFO1 is flushed
…
00011: Only Tx FIFO3 is flushed
1XXXX: All Tx FIFOs are flushed
Other: Non data FIFO is flushed
5
TXFF
Tx FIFO flush
Application set this bit to flush data Tx FIFOs and TXFNUM[4:0] bits decide the
FIFO number to be flushed. Hardw are automatically clears this bit after the flush
process completes. After setting this bit, application should w ait until this bit is
cleared before any other operation on USBFS.
Note: Accessible in both device and host modes.
4
RXFF
Rx FIFO flush
Application set this bit to flush data Rx FIFO. Hardw are automatically clears this bit
after the flush process completes. After setting this bit, application should w ait until
this bit is cleared before any other operation on USBFS.
Note: Accessible in both device and host modes.
3
Reserved
Must be kept at reset value
2
HFCRST
Host frame counter reset
Set by the application to reset the frame number counter in USBFS. After this bit is
set, the frame number of the follow ing SOF returns to 0. Hardw are automatically
clears this bit after the reset process completes. After setting this bit, application
should w ait until this bit is cleared before any other operation on USBFS.
Note: Only accessible in host mode.
1
HCSRST
HCLK soft reset