GD32W51x User Manual
869
1
CHIE
Channel halted interrupt enable
0: Disable channel halted interrupt
1: Enable channel halted interrupt
0
TFIE
Transfer finished interrupt enable
0: Disable transfer finished interrupt
1: Enable transfer finished interrupt
Host channel-x transfer length register (USBFS_HCHxLEN) (x = 0..7, where x =
channel number)
Address offset: (channel_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
R
e
se
rve
d
D
P
ID
[1
:0
]
P
C
N
T
[9
:0
]
T
L
E
N
[1
8
:1
6
]
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
T
L
E
N
[1
5
:0
]
rw
Bits
Fields
Descriptions
31
Reserved
Must be kept at reset value
30:29
DPID[1:0]
Data PID
Softw are should w rite this field before the transfer starts. For OUT transfers, this
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 w ill be
tr
iggered if the Data PID doesn’t match. After the transfer starts, USBFS changes
and toggles this field automatically follow ing 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.