GD32F10x User Manual
822
field controls the Data PID of the first transmitted packet. For IN transfers, this field
controls the expected Data PID of the first received packet, and DTERR will be
triggered if the Data PID
doesn’t match. After the transfer starts, USBFS changes
and toggles this field automatically following the USB protocol.
00: DATA0
10: DATA1
11: SETUP (For control transfer only)
01: Reserved
28:19
PCNT[9:0]
Packet count
The number of data packets desired to be transmitted (OUT) or received (IN) in a
transfer.
Software should program this field before the channel is enabled. After the transfer
starts, this field is decreased automatically by USBFS after each successful data
packet transmission.
18:0
TLEN[18:0]
Transfer length
The total data byte number of a transfer.
For OUT transfers, this field is the total data bytes of all the data packets desired to
be transmitted in an OUT transfer. Software should program this field before the
channel is enabled. When software successfully writes a packet into the channel
’s
data TxFIFO, this field is decreased by the byte size of the packet.
For IN transfer each time software reads out a packet from the RxFIFO, this field is
decreased by the byte size of the packet.
24.7.3.
Device control and status registers
Device configuration register (USBFS_DCFG)
Address offset: 0x0800
Reset value: 0x0000 0000
This register configures the core in device mode after power on or after certain control
commands or enumeration. Do not change this register after device initialization.
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
Rese
rve
d
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...