📄 cbit.h
字号:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
/*++
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Module Name:
CBIT.H
Abstract:
Control/Bulk/Interrupt Transport
USB Revison 1.0, Dec. 14, 1998
--*/
#ifndef _CBIT_H_
#define _CBIT_H_
#include "usbmscp.h"
//*****************************************************************************
// D E F I N E S
//*****************************************************************************
#define MAX_CBIT_STALL_COUNT 3
#define CBIT_COMMAND_COMPLETION_INTERRUPT 0x00
#define CBIT_STATUS_SUCCESS 0x00
#define CBIT_STATUS_FAIL 0x01
#define CBIT_STATUS_PHASE_ERROR 0x02
#define CBIT_STATUS_PERSISTENT_ERROR 0x03
//*****************************************************************************
//
// F U N C T I O N P R O T O T Y P E S
//
//*****************************************************************************
DWORD
CBIT_DataTransfer(
PUSBMSC_DEVICE pUsbDevice,
PTRANSPORT_COMMAND pCommand,
PTRANSPORT_DATA pData,
BOOL Direction // TRUE = Data-In, else Data-Out
);
#endif // _CBIT_H_
// EOF
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -