GD32W51x User Manual
852
01: DATA2
11: MDATA
14:4
BCOUNT[10:0]
Byte count
The byte count of the received IN data packet.
3:0
CNUM[3:0]
Channel number
The channel number to w hich the current received packet belongs.
Device 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
]
E
P
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
0001: Global OUT NAK (generates an interrupt)
0010: OUT data packet received
0011: OUT transfer completed (generates an interrupt)
0100: SETUP transaction completed (generates an interrupt)
0110: SETUP data packet received
Others: Reserved
16:15
DPID[1:0]
Data PID
The Data PID of the received OUT data packet
00: DATA0
10: DATA1
01: DATA2
11: MDATA
14:4
BCOUNT[10:0]
Byte count
The byte count of the received data packet.
3:0
EPNUM[3:0]
Endpoint number
The endpoint number to w hich the current received packet belongs.