hctsiz2

         Host Channel 2 Transfer Size Register
      
Module Instance Base Address Register Address
i_usbotg_0_hostgrp 0xFFB00400 0xFFB00550
i_usbotg_1_hostgrp 0xFFB40400 0xFFB40550

Offset: 0x150

Access: RW

Important: The value of a reserved bit must be maintained in software. When you modify registers containing reserved bit fields, you must use a read-modify-write operation to preserve state and prevent indeterminate system behavior.
Bit Fields
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16

dopng

RW 0x0

pid

RW 0x0

pktcnt

RW 0x0

xfersize

RW 0x0

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

xfersize

RW 0x0

hctsiz2 Fields

Bit Name Description Access Reset
31 dopng
Do Ping (DoPng)
This bit is used only For OUT transfers.
Setting this field to 1 directs the host to do PING protocol.
Note: Do not Set this bit For IN transfers. If this bit is Set For
for IN transfers it disables the channel.
Value Description
0x0 NOPING
0x1 PING
RW 0x0
30:29 pid
PID (Pid)
The application programs this field with the type of PID to use For
the initial transaction. The host maintains this field For the rest of
the transfer.
 2'b00: DATA0
 2'b01: DATA2
 2'b10: DATA1
 2'b11: MDATA (non-control)/SETUP (control)
Value Description
0x0 DATA0
0x1 DATA2
0x2 DATA1
0x3 MDATA
RW 0x0
28:19 pktcnt
Packet Count (PktCnt)
This field is programmed by the application with the expected
number of packets to be transmitted (OUT) or received (IN).
The host decrements this count on every successful
transmission or reception of an OUT/IN packet. Once this count
reaches zero, the application is interrupted to indicate normal
completion.
The width of this counter is specified as Width of Packet
Counters
RW 0x0
18:0 xfersize
Transfer Size (XferSize)
For an OUT, this field is the number of data bytes the host sends
during the transfer.
For an IN, this field is the buffer size that the application has
Reserved For the transfer. The application is expected to
program this field as an integer multiple of the maximum packet
size For IN transactions (periodic and non-periodic).
The width of this counter is specified as Width of Transfer Size
Counters
RW 0x0