GD32W51x User Manual
883
DPID
0: Only sends data in even frames
1: Only sends data in odd frames
Endpoint data PID (For interrupt/bulk IN endpoints)
There is a data PID toggle scheme in interrupt or bulk transfer. Set SD0PID to set
this bit before a transfer starts and USBFS maintains this bit during transfers
according to 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 w hether 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 OUT endpoint 0 control register (USBFS_DOEP0CTL)
Address offset: 0x0B00
Reset value: 0x0000 8000
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
R
e
se
rve
d
.
S
N
A
K
C
N
A
K
R
e
se
rve
d
S
T
A
L
L
S
N
O
O
P
E
P
T
Y
P
E
[1
:0
]
N
A
K
S
R
e
se
rve
d
rs
r
w
w
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
]
r
r
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
This bit is fixed to 0 for OUT endpoint 0.