cbit.h

来自「嵌入式操作系统WINCE5.0下的USB驱动程序」· C头文件 代码 · 共 64 行

H
64
字号
//
// 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 + =
减小字号Ctrl + -
显示快捷键?