GD32F10x User Manual
843
Rese
rve
d
S
T
P
CN
T
[1
:0
]
Rese
rve
d
P
CN
T
Rese
rve
d
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Rese
rve
d
T
L
E
N[6
:0
]
rw
Bits
Fields
Descriptions
31
Reserved
Must be kept at reset value.
30:29
STPCNT[1:0]
SETUP packet count
This field defines the maximum number of back-to-back SETUP packets this
endpoint can accept.
Program this field before setup transfers. Each time a back-to-back setup packet is
received, USBFS decrease this field by one. When this field reaches zero, the
BTBSTP flag in USBFS_DOEP0INTF register will be triggered.
00: 0 packet
01:1 packet
10: 2 packets
11: 3 packets
28:20
Reserved
Must be kept at reset value.
19
PCNT
Packet count
The number of data packets desired to receive in a transfer.
Program this field before the endpoint is enabled. After the transfer starts, this field
is decreased automatically by USBFS after each successful data packet reception
on bus.
18:7
Reserved
Must be kept at reset value.
6:0
TLEN[6:0]
Transfer length
The total data byte number of a transfer.
This field is the total data bytes of all the data packets desired to receive in an OUT
transfer. Program this field before the endpoint is enabled. Each time software reads
out a packet from the Rx FIFO, this field is decreased by the byte size of the packet.
Device IN endpoint-x transfer length register (USBFS_DIEPxLEN) (x = 1..3,
where x = endpoint_number)
Address offset: 0x910 + (endpoint_number × 0x20)
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...