在使用BUS HOUND调试USB驱动时,在Capture页面会遇到抓取的错误信息,错误代码会在data字段显示,根据不同的显示,含义如下:
顺便记录用于以后代码分析。
Value | Code | Meaning |
---|---|---|
USBD_STATUS_CRC |
0xC0000001 | CRC error (defined for backward compatibility with the USB 1.0). |
USBD_STATUS_BTSTUFF |
0xC0000002 | BTS error (defined for backward compatibility with the USB 1.0). |
USBD_STATUS_DATA_TOGGLE_MISMATCH |
0xC0000003 | Data toggle mismatch. |
USBD_STATUS_STALL_PID |
0xC0000004 | The device returned a stall packet identifier (defined for backward compatibility with the USB 1.0) |
USBD_STATUS_DEV_NOT_RESPONDING |
0xC0000005 | The device is not responding (defined for backward compatibility with the USB 1.0). |
USBD_STATUS_PID_CHECK_FAILURE |
0xC0000006 | The device returned a packet identifier check failure (defined for backward compatibility with the USB 1.0). |
USBD_STATUS_UNEXPECTED_PID |
0xC0000007 | The device returned an unexpected packet identifier error (defined for backward compatibility with the USB 1.0). |
USBD_STATUS_DATA_OVERRUN |
0xC0000008 | The device returned a data overrun error (defined for backward compatibility with the USB 1.0). |
USBD_STATUS_DATA_UNDERRUN |
0xC0000009 | The device returned a data underrun error (defined for backward compatibility with the USB 1.0). |
USBD_STATUS_RESERVED1 |
0xC000000A | Reserved. |
USBD_STATUS_RESERVED2 |
0xC000000B | Reserved. |
USBD_STATUS_BUFFER_OVERRUN |
0x |