Download NEC uPD720102 USB Controller - User Manual / Programming

Transcript
CHAPTER 4 OHCI HOST CONTROLLER
4.3.5 Packet status word format
Table 4-7. Packet Status Word Format
15
12 11 10
CC
0
00
SIZE
4.3.6 Packet status word field definitions
Table 4-8. Description of Packet Status Word
Name
SIZE
HC Access
R/W
Description
Size of Packet
For IN transfers, this field is written the number of bytes which are received from the endpoint.
For OUT transfer, this field is written to 0.
CC
R/W
Condition Code
This field indicates both completion code and the format of the word. When the Condition Code
indicates NOTACCESSED, the data is in Offset format. Otherwise, the SIZE field contains a value that
is appropriate to the direction of data flow and the completion status.
4.3.7 Completion code definitions
Table 4-9. Description of Completion Code
Code
0000
Meaning
NOERROR
Description
General TD or isochronous data packet processing completed with no detected
errors
0001
CRC
Last data packet from endpoint contained a CRC error
0010
BITSTUFFING
Last data packet from endpoint contained a bit stuffing violation
0011
DATATOGGLEMISMATCH
Last data packet from endpoint had data toggle PID that did not match the expected
value.
0100
STALL
TD was moved to the Done Queue.
0101
DEVICENOTRESPONDING
Device did not respond to token (IN) or did not send any handshake (OUT).
0110
PIDCHECKFAILURE
PID from endpoint is failed.
0111
UNEXPECTEDPID
Received PID is undefined or invalid.
1000
DATAOVERRUN
The amount of data returned by the endpoint exceeded either the size of the
maximum data packet allowed from the endpoint or the remaining buffer size.
1001
DATAUNDERRUN
The endpoint returned less than Maximum Packet Size and the amount was not
sufficient to fill the specified buffer.
1010
Reserved
1011
Reserved
1100
BUFFEROVERRUN
During an IN, HC received data from endpoint faster than it could be written to
system memory.
1101
BUFFERUNDERRUN
During an OUT, HC could not retrieve data from system memory fast enough to keep
up with data USB data rate.
111x
NOTACCESSED
This code is set by software before the TD is placed on a list to be processed by the
HC.
82
User’s Manual S17999EJ4V0UD