GD32W51x User Manual
881
1:0
MPL[1:0]
Maximum packet length
This field defines the maximum packet length for a control data packet. As described
in USB 2.0 protocol, there are 4 kinds of length for control transfers:
00: 64 bytes
01: 32 bytes
10: 16 bytes
11: 8 bytes
Device IN endpoint-x control register (USBFS_DIEPxCTL) (x = 1..3, where x =
endpoint_number)
Address offset: (endpoint_number × 0x20)
Reset value: 0x0000 0000
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
EPEN
EPD
S
O
D
D
F
R
M
/S
D
1
P
ID
S
D
0
P
ID
/S
E
V
N
F
RM
S
N
A
K
C
N
A
K
T
X
F
N
U
M
[3
:0
]
S
T
A
L
L
R
e
se
rve
d
E
P
T
Y
P
E
[1
:0
]
N
A
K
S
E
O
F
R
M
/D
P
ID
rs
rs
w
w
w
w
rw
rw/rs
rw
r
r
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
E
P
A
C
T
R
e
se
rve
d
M
P
L
[1
0
:0
]
rw
rw
Bits
Fields
Descriptions
31
EPEN
Endpoint enable
Set by the application and cleared by USBFS.
0: Endpoint disabled
1: Endpoint enabled
Softw are should follow the operation guide to disable or enable an endpoint.
30
EPD
Endpoint disable
Softw are can set this bit to disable the endpoint. Softw are should follow ing the
operation guide to disable or enable an endpoint.
29
SODDFRM
SD1PID
Set odd frame (For isochronous IN endpoints)
This bit has effect only if this is an isochronous IN endpoint.
Softw are sets this bit to set EOFRM bit in this register.
Set DATA1 PID (For interrupt/bulk IN endpoints)
Softw are sets this bit to set DPID bit in this register.