📄 pcd_echo.h
字号:
/*------------------------------------------------------------------------------
$File: //tdi_sw/tdi/examples/usb/pcd/echo/pcd_echo.h $
$DateTime: 2004/12/20 19:06:16 $
$Revision: #6 $
Purpose: All contants/defines, data structures and function declarations that
required by this PCD test application
------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------
CONFIDENTIAL AND PROPRIETARY INFORMATION OF SOFTCONNEX TECHNOLOGIES, INC.
THIS NOTICE IS NOT TO BE DELETED, MODIFIED, MOVED OR CHANGED IN ANY WAY.
Copyright (c) 1999 - 2004 by SoftConnex Technologies, Inc.
This software is protected by copyright laws and international copyright
treaties, as well as other intellectual property laws and treaties. This
software is a CONFIDENTIAL, unpublished work of authorship, and with portions
constituting TRADE SECRETS of SoftConnex Technologies, Inc., a Delaware USA
corporation. Any unauthorized use, disclosure, and/or reproduction of this
software, or any part of this software; or distribution of this software in any
form or by any means; or storage of this software in any database or retrieval
system, without the express written consent of, and license from, SoftConnex
Technologies, Inc. is strictly prohibited. This software is protected under the
copyright and/or trade secret laws in other countries in addition to USA. All
Rights Reserved. Failure to abide by the use, disclosure and/or reproduction
restrictions may result in civil and /or criminal penalties, and will be
prosecuted to the maximum extent of the law.
------------------------------------------------------------------------------*/
#ifndef _TDI_PCD_ECHO_H_
#define _TDI_PCD_ECHO_H_
#define PCDAPPXFERLENGTH 1000
#define FS_CTRL_MPS 8
#define HS_CTRL_MPS 64
#define FS_BULKOUT_MPS 64
#define FS_BULKIN_MPS 64
#define HS_BULKOUT_MPS 512
#define HS_BULKIN_MPS 512
#define FS_ISOCH_MPS 256
#define HS_ISOCH_MPS 64
#define FS_INT_MPS 64
#define HS_INT_MPS 64
#define FS_ISO_INTERVAL 0x08
#define HS_ISO_INTERVAL 0x04
#define FS_INT_INTERVAL 0x04
#define HS_INT_INTERVAL 0x04
#define TDI_TRANSFER_STATUS_TEST_DONE 0
#define TDI_CANCEL_TRANSFER_TEST 1
#define TDI_CANCEL_SECOND_TRANSFER_TEST 2
#define TDI_CANCEL_EP_ALL_TRANSFER_TEST 3
#define TDI_START_ECHO_TEST 4
#define TDI_TEST_DEVICE_READY_FOR_OUT 5
#define TDI_TEST_DEVICE_READY_FOR_IN 6
#define TDI_UNSUPPORTED_COMMAND 0xFF
#define APP_STATE_DEVICE_DETACHED 0x00
#define APP_STATE_RESET_STARTED 0x01
#define APP_STATE_ADDRESS_PENDING 0x02
#define APP_STATE_ENUM_DONE 0x03
#define APP_STATE_CONFIG_DONE 0x04
#define APP_STATE_XFER_STAT_CMD_RX 0x05
#define APP_STATE_XFER_CANCEL_CMD_RX 0x06
#define APP_STATE_2ND_XFER_CANCEL_CMD_RX 0x07
#define APP_STATE_CANCEL_ALL_XFERS_CMD_RX 0x08
#define APP_STATE_START_ECHO_TEST_CMD_RX 0x09
#define APP_STATE_RDY_FOR_OUT_CMD_RX 0x0A
#define APP_STATE_RDY_FOR_IN_CMD_RX 0x0B
extern U8 hsDeviceDescriptor[];
extern U8 hsConfigDescriptor[];
extern U8 hsDeviceQualifierDescriptor[];
extern U8 fsDeviceQualifierDescriptor[];
extern U8 hsOtherSpeedConfigDescriptor[];
extern U8 fsOtherSpeedConfigDescriptor[];
extern U8 fsDeviceDescriptor[];
extern U8 fsConfigDescriptor[];
extern U8 StringDescriptor0[];
extern U8 StringDescriptor1[];
extern U8 StringDescriptor2[];
extern U8 StringDescriptor3[];
#endif /* _TDI_PCD_TEST_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -