GigaDevice Semiconductor GD32VF103 User Manual page 521

Risc-v 32-bit mcu
Hide thumbs Also See for GD32VF103:
Table of Contents

Advertisement

1:0
MPL[1:0]
Device IN endpoint-x control register (USBFS_DIEPxCTL) (x = 1..3, where x =
endpoint_number)
Address offset: 0x0900 + (endpoint_number × 0x20)
Reset value: 0x0000 0000
This register has to be accessed by word (32-bit)
31
30
29
rs
rs
w
15
14
13
rw
Bits
Fields
31
EPEN
30
EPD
29
SODDFRM
SD1PID
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
28
27
26
25
w
w
w
12
11
10
9
Descriptions
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.
Endpoint disable
Software can set this bit to disable the endpoint. Software should following the
operation guide to disable or enable an endpoint.
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.
GD32VF103 User Manual
24
23
22
21
rw
rw/rs
8
7
6
5
rw
20
19
18
17
rw
r
4
3
2
1
16
r
0
521

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the GD32VF103 and is the answer not in the manual?

Table of Contents