⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 winrtusbstatus.h

📁 蓝牙芯片ZV4301的调试工具源码.做蓝牙产品时很有参考价值内部有串口的编程序源码,对有串口编成需求的同志有参考价值.
💻 H
字号:
////////////////////////////////////////////////////////////
//  WinRTUsbStatus.h - WinRT for USB Status codes
//  Copyright (c) 2000, BSquare Corporation
////////////////////////////////////////////////////////////

#ifndef _WINRTUSB_STATUS_H_
#define _WINRTUSB_STATUS_H_

    // macro to see if a status code is a WinRT for USB status code
#define ISWINRTUSBSTATUS(x) ((x > 0xE0100000) ? TRUE : FALSE)

// MessageId: WINRTUSB_STATUS_CRC
//
// MessageText:
//
//  The last data packet from the endpoint contained a CRC error.
//
#define WINRTUSB_STATUS_CRC                         ((LONG)0xE0100001L)

// MessageId: WINRTUSB_STATUS_BTSTUFF
//
// MessageText:
//
//  The last data packet from the endpoint contained a bit stuffing violation
//
#define WINRTUSB_STATUS_BTSTUFF                     ((LONG)0xE0100002L)

// MessageId: WINRTUSB_STATUS_DATA_TOGGLE_MISMATCH
//
// MessageText:
//
//  The last data packet from the endpoint had a data toggle packet
//  identifier that did not match the expected value.
//
#define WINRTUSB_STATUS_DATA_TOGGLE_MISMATCH        ((LONG)0xE0100003L)

// MessageId: WINRTUSB_STATUS_STALL_PID
//
// MessageText:
//
//  The transaction failed because the endpoint returned a STALL
//  packet identifier
//
#define WINRTUSB_STATUS_STALL_PID                   ((LONG)0xE0100004L)

// MessageId: WINRTUSB_STATUS_DEV_NOT_RESPONDING
//
// MessageText:
//
//  The device id not respond to the token (IN) or did not
//  provide a handshake (OUT).
//
#define WINRTUSB_STATUS_DEV_NOT_RESPONDING          ((LONG)0xE0100005L)

// MessageId: WINRTUSB_STATUS_PID_CHECK_FAILURE
//
// MessageText:
//
//  Check bits on the packet identifier from the endpoint failed.
//
#define WINRTUSB_STATUS_PID_CHECK_FAILURE           ((LONG)0xE0100006L)

// MessageId: WINRTUSB_STATUS_UNEXPECTED_PID
//
// MessageText:
//
//  Received packet identifier was not valid when encountered or
//  is not defined.
//
#define WINRTUSB_STATUS_UNEXPECTED_PID              ((LONG)0xE0100007L)

// MessageId: WINRTUSB_STATUS_DATA_OVERRUN
//
// MessageText:
//
//  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
//
#define WINRTUSB_STATUS_DATA_OVERRUN                ((LONG)0xE0100008L)

// MessageId: WINRTUSB_STATUS_DATA_UNDERRUN
//
// MessageText:
//
//  The endpoint returned less the maximum transfer size, and that size
//  was insufficient to fill the specified buffer
//
#define WINRTUSB_STATUS_DATA_UNDERRUN               ((LONG)0xE0100009L)

// MessageId: WINRTUSB_STATUS_BUFFER_OVERRUN
//
// MessageText:
//
//  During an IN, the specified buffer was too small to contain the data
//  received from the device
//
#define WINRTUSB_STATUS_BUFFER_OVERRUN              ((LONG)0xE010000CL)

// MessageId: WINRTUSB_STATUS_BUFFER_UNDERRUN
//
// MessageText:
//
//  During an OUT, the specified buffer did not contain sufficient data
//  to transmit to the device
//
#define WINRTUSB_STATUS_BUFFER_UNDERRUN             ((LONG)0xE010000DL)

// MessageId: WINRTUSB_STATUS_ENDPOINT_HALTED
//
// MessageText:
//
//  The transfer failed because the endpoint is stalled
//
#define WINRTUSB_STATUS_ENDPOINT_HALTED             ((LONG)0xE0100030L)

// MessageId: WINRTUSB_STATUS_ISOCH_REQUEST_FAILED
//
// MessageText:
//
//  The isochronous transfer failed because all packets in the transfer
//  completed with an error
//
#define WINRTUSB_STATUS_ISOCH_REQUEST_FAILED        ((LONG)0xE0100B00L)

#endif //_WINRTUSB_STATUS_H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -