GD32VF103 User Manual
527
These is a data PID toggle scheme in interrupt or bulk transfer. Software should set
SD0PID to set this bit before a transfer starts and USBFS maintains this bit during
transfers following the data toggle scheme described in USB protocol.
0: Data packet
’s PID is DATA0
1: Data packet
’s PID is DATA1
15
EPACT
Endpoint active
This bit controls whether this endpoint is active. If an endpoint is not active, it ignores
all tokens and doesn
’t make any response.
14:11
Reserved
Must be kept at reset value
10:0
MPL[10:0]
This field defines the maximum packet length in bytes.
Device IN endpoint-x interrupt flag register (USBFS_DIEPxINTF) (x = 0..3, where
x = endpoint_number)
Address offset: (endpoint_number × 0x20)
Reset value: 0x0000 0080
This register contains the status and events of an IN endpoint, when an IN endpoint interrupt
occurs, read this register for the respective endpoint to know the source of the interrupt. The
flag bits in this register are all set by hardware and cleared by writing 1 except the read-only
TXFE bit.
This register has to be accessed by word (32-bit)
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Rese
rve
d
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Rese
rve
d
T
X
F
E
IE
P
NE
Rese
rve
d
E
P
T
X
F
UD
CIT
O
Rese
rve
d
E
P
DIS
TF
r
rc_w1
rc_w1
rc_w1
rc_w1
rc_w1
Bits
Fields
Descriptions
31:8
Reserved
Must be kept at reset value
7
TXFE
Transmit FIFO empty
The Tx FIFO of this IN endpoint has reached the empty threshold value defined by
TXFTH field in USBFS_GAHBCS register.
6
IEPNE
IN endpoint NAK effective