GD32F20x User Manual
935
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
ODDF
RM
/S
D1
P
ID
S
D0P
ID/S
E
V
NF
RM
S
NA
K
CN
A
K
T
X
F
NU
M
[3
:0
]
S
T
A
L
L
Rese
rve
d
E
P
T
Y
P
E
[1
:0
]
NA
K
S
E
OF
RM
/DP
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
CT
Rese
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
Software should follow the operation guide to disable or enable an endpoint.
30
EPD
Endpoint disable
Software can set this bit to disable the endpoint. Software should follow 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.
Software sets this bit to set EOFRM bit in this register.
Set DATA1 PID (For interrupt/bulk IN endpoints)
Software sets this bit to set DPID bit in this register.
28
SEVENFRM
SD0PID
Set even frame (For isochronous IN endpoints)
Software sets this bit to clear EOFRM bit in this register.
Set DATA0 PID (For interrupt/bulk IN endpoints)
Software sets this bit to clear DPID bit in this register.
27
SNAK
Set NAK
Software sets this bit to set NAKS bit in this register.
26
CNAK
Clear NAK
Summary of Contents for GD32F20 Series
Page 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Page 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Page 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Page 385: ...GD32F20x User Manual 385 ...
Page 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...