GD32F403xx User Manual
697
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 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
Software 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.
29:28
Reserved
Must be kept at reset value.
27
SNAK
Set NAK
Software sets this bit to set NAKS bit in this register.
26
CNAK
Clear NAK
Software sets this bit to clear NAKS bit in this register
25:22
Reserved
Must be kept at reset value.