您的位置:首页 > 编程语言

BUS HOUND调试USB驱动遇到的错误代码解析

2014-02-19 13:29 603 查看
在使用BUS HOUND调试USB驱动时,在Capture页面会遇到抓取的错误信息,错误代码会在data字段显示,根据不同的显示,含义如下:

顺便记录用于以后代码分析。

ValueCodeMeaning
USBD_STATUS_CRC

0xC0000001CRC error (defined for backward compatibility with the USB 1.0).

USBD_STATUS_BTSTUFF

0xC0000002BTS error (defined for backward compatibility with the USB 1.0).

USBD_STATUS_DATA_TOGGLE_MISMATCH

0xC0000003Data toggle mismatch.

USBD_STATUS_STALL_PID

0xC0000004The device returned a stall packet identifier (defined for backward compatibility with the USB 1.0)

USBD_STATUS_DEV_NOT_RESPONDING

0xC0000005The device is not responding (defined for backward compatibility with the USB 1.0).

USBD_STATUS_PID_CHECK_FAILURE

0xC0000006The device returned a packet identifier check failure (defined for backward compatibility with the USB 1.0).

USBD_STATUS_UNEXPECTED_PID

0xC0000007The device returned an unexpected packet identifier error (defined for backward compatibility with the USB 1.0).

USBD_STATUS_DATA_OVERRUN

0xC0000008The device returned a data overrun error (defined for backward compatibility with the USB 1.0).

USBD_STATUS_DATA_UNDERRUN

0xC0000009The device returned a data underrun error (defined for backward compatibility with the USB 1.0).

USBD_STATUS_RESERVED1

0xC000000AReserved.

USBD_STATUS_RESERVED2

0xC000000BReserved.

USBD_STATUS_BUFFER_OVERRUN

0xC000000CThe device returned a buffer overrun error (defined for backward compatibility with the USB 1.0).

USBD_STATUS_BUFFER_UNDERRUN

0xC000000DThe device returned a buffer underrun error (defined for backward compatibility with the USB 1.0).

USBD_STATUS_NOT_ACCESSED

0xC000000FThe USB stack could not access the device (defined for backward compatibility with the USB 1.0).

USBD_STATUS_FIFO

0xC0000010The device returned a FIFO error (defined for backward compatibility with the USB 1.0).

USBD_STATUS_XACT_ERROR

0xC0000011The device returned a transaction error (defined for backward compatibility with the USB 1.0).

USBD_STATUS_BABBLE_DETECTED

0xC0000012The device returned a babble detected error (defined for backward compatibility with the USB 1.0).

USBD_STATUS_DATA_BUFFER_ERROR

0xC0000013Hardware status codes that range from 0x00000001 to 0x000000FF (defined for backward compatibility with the USB 1.0 stack).

USBD_STATUS_NO_PING_RESPONSE

0xC0000014No response was received from the device for a ping packet sent by the host.
USBD_STATUS_INVALID_STREAM_TYPE

0xC0000015The stream type is invalid for the endpoint.
USBD_STATUS_INVALID_STREAM_ID

0xC0000016The stream identifier is invalid.
USBD_STATUS_ENDPOINT_HALTED

0xC0000030A transfer was submitted to an endpoint that is stalled.

USBD_STATUS_INVALID_URB_FUNCTION

0x80000200Invalid URB function.

USBD_STATUS_INVALID_PARAMETER

0x80000300Invalid parameter.

USBD_STATUS_ERROR_BUSY

0x80000400The client driver caused an error by attempting to close an endpoint, interface, or configuration handle with outstanding transfers.

USBD_STATUS_REQUEST_FAILED

0x80000500The hub driver cannot complete a URB request.

USBD_STATUS_INVALID_PIPE_HANDLE

0x80000600Invalid pipe handle.

USBD_STATUS_NO_BANDWIDTH

0x80000700There was not enough bandwidth to open a requested endpoint.

USBD_STATUS_INTERNAL_HC_ERROR

0x80000900Unspecified host controller error.

USBD_STATUS_ERROR_SHORT_TRANSFER

0x80000900The transfer ended with a short packet, but the USBD_SHORT_TRANSFER_OK bit is not set for the pipe.

USBD_STATUS_BAD_START_FRAME

0xC0000A00The requested start frame is not within a range of USBD_ISO_START_FRAME_RANGE frames of the current USB frame. Whenever this error occurs, the system sets the stall bit on the pipe.

USBD_STATUS_ISOCH_REQUEST_FAILED

0xC0000B00The host controller returns this error whenever all packets in an isochronous transfer complete with an error.

USBD_STATUS_FRAME_CONTROL_OWNED

0xC0000C00The hub driver returns this error whenever the frame length control for the host controller is being used by a driver other than the host controller driver.

USBD_STATUS_FRAME_CONTROL_NOT_OWNED

0xC0000D00The hub driver returns this error if the caller does not own frame length control and attempts to release or modify the host controller frame length.

USBD_STATUS_NOT_SUPPORTED

0xC0000E00The request was not supported.

USBD_STATUS_INAVLID_CONFIGURATION_DESCRIPTOR

0xC0000F00Invalid configuration descriptor.

USBD_STATUS_INSUFFICIENT_RESOURCES

0xC0001000Insufficient resources.

USBD_STATUS_SET_CONFIG_FAILED

0xC0002000An attempt to change the device configuration failed.

USBD_STATUS_BUFFER_TOO_SMALL

0xC0003000The buffer is too small.

USBD_STATUS_INTERFACE_NOT_FOUND

0xC0004000The interface was not found.

USBD_STATUS_INAVLID_PIPE_FLAGS

0xC0005000Invalid pipe flags.

USBD_STATUS_TIMEOUT

0xC0006000The request timed out.

USBD_STATUS_DEVICE_GONE

0xC0007000The device is no longer present in the system.

USBD_STATUS_STATUS_NOT_MAPPED

0xC0008000The device bus address is not mapped to system memory.

USBD_STATUS_HUB_INTERNAL_ERROR

0xC0009000The hub driver returns this error whenever it intercepted a URB that was targeted at some other device.

USBD_STATUS_CANCELED

0xC0010000The USB stack reports this error whenever it completed a transfer because of an AbortPipe request from the client driver.

USBD_STATUS_ISO_NOT_ACCESSED_BY_HW

0xC0020000The host controller did not access the transfer descriptor (TD) that is associated with this packet. The USB stack reports this error in the packet status field of an isochronous transfer packet.

USBD_STATUS_ISO_TD_ERROR

0xC0030000The host controller reported an error in the transfer descriptor (TD). The USB stack reports this error in the packet status field of an isochronous transfer packet.

USBD_STATUS_ISO_NA_LATE_USBPORT

0xC0040000The client driver submitted the packet on time, but the packet failed to reach the miniport driver on time. The USB stack reports this error in the packet status field of an isochronous transfer packet.

USBD_STATUS_ISO_NOT_ACCESSED_LATE

0xC0050000The client driver did not submit the packet on time. The USB stack reports this error in the packet status field of an isochronous transfer packet.

USBD_STATUS_BAD_DESCRIPTOR

0xC0100000Invalid descriptor.

USBD_STATUS_BAD_DESCRIPTOR_BLEN

0xC0100001Invalid descriptor length.

USBD_STATUS_BAD_DESCRIPTOR_TYPE

0xC0100002Invalid descriptor type.

USBD_STATUS_BAD_INTERFACE_DESCRIPTOR

0xC0100003Invalid interface descriptor.

USBD_STATUS_BAD_ENDPOINT_DESCRIPTOR

0xC0100004Invalid endpoint descriptor.

USBD_STATUS_BAD_INTERFACE_ASSOC_DESCRIPTOR

0xC0100005Invalid interface association descriptor.

USBD_STATUS_BAD_CONFIG_DESC_LENGTH

0xC0100006Invalid configuration descriptor length.

USBD_STATUS_BAD_NUMBER_OF_INTERFACES

0xC0100007Invalid number of interfaces.

USBD_STATUS_BAD_NUMBER_OF_ENDPOINTS

0xC0100008Invalid number of endpoints.

USBD_STATUS_BAD_ENDPOINT_ADDRESS

0xC0100009Invalid endpoint address.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: