GD32F403xx User Manual
665
1: Enable mode fault interrupt
Note:
Accessible in both device and host modes.
0
Reserved
Must be kept at reset value.
Global receive status read/receive status read and pop registers
(USBFS_GRSTATR/USBFS_GRSTATP)
Address offset for Read: 0x001C
Address offset for Pop: 0x0020
Reset value: 0x0000 0000
A read to the receive status read register returns the entry of the top of the Rx FIFO. A read
to the Receive status read and pop register additionally pops the top entry out of the Rx FIFO.
The entries in RxFIFO have dif ferent meanings in host and device modes. Software should
only read this register af ter when Receive FIFO non-empty interrupt f lag bit of the global
interrupt f lag register (RXFNEIF bit in USBFS_GINTF) is triggered.
This register has to be accessed by word (32-bit)
Host mode:
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
R
e
se
rve
d
R
P
C
K
S
T
[3
:0
]
D
P
ID
r
r
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
D
P
ID
B
C
O
U
N
T
[1
0
:0
]
C
N
U
M
[3
:0
]
r
r
r
Bits
Fields
Descriptions
31:21
Reserved
Must be kept at reset value.
20:17
RPCKST[3:0]
Received packet status
0010: IN data packet received
0011: IN transfer completed (generates an interrupt if poped)
0101: Data toggle error (generates an interrupt if poped)
0111: Channel halted (generates an interrupt if poped)
Others: Reserved
16:15
DPID[1:0]
Data PID
The Data PID of the received packet
00: DATA0