GD32F10x User Manual
795
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Rese
rve
d
T
X
F
NU
M
[4
:0
]
T
X
F
F
RX
F
F
Rese
rve
d
HF
CR
S
T
HC
S
RS
T
CS
RS
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 which Tx FIFO will be flushed when 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. Hardware automatically clears this bit after the flush
process completes. After setting this bit, application should wait 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. Hardware automatically clears this bit
after the flush process completes. After setting this bit, application should wait 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 following SOF returns to 0. Hardware automatically
clears this bit after the reset process completes. After setting this bit, application
should wait until this bit is cleared before any other operation on USBFS.
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...