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

📄 pcd_acm.h

📁 Usb Host/Periphel Control TD1120 codes
💻 H
字号:
/*------------------------------------------------------------------------------
$File: //tdi_sw/tdi/examples/usb/pcd/acm/pcd_acm.h $
$DateTime: 2004/12/20 19:06:16 $
$Revision: #5 $
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_ACM_H_
#define _TDI_PCD_ACM_H_

#define PCDAPPXFERLENGTH                     64
#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 USBDESC_HDR_FUNC_DESCRIPTOR_SIZE              0x05
#define USBDESC_USB_CALL_MGMT_FUNC_DESCRIPTOR_SIZE    0x05
#define USBDESC_ACM_FUNC_DESCRIPTOR_SIZE              0x04
#define USBDESC_UNION_FUNC_DESCRIPTOR_SIZE            0x05

#define CDC_HDR_FUNC_DESCRIPTOR        0x00
#define CDC_CALL_MGMT_FUNC_DESCRIPTOR  0x01
#define CDC_ACM_FUNC_DESCRIPTOR        0x02
#define CDC_UNION_FUNC_DESCRIPTOR      0x06

#define CS_INTERFACE                   0x24
#define CS_ENDPOINT                    0x25

/* ACM requests */
#define ACM_SEND_ENCAPSULATED_CMD   0x00
#define ACM_GET_ENCAPSULATED_RSP    0x01
#define ACM_SET_COMM_FEATURE        0x02
#define ACM_GET_COMM_FEATURE        0x03
#define ACM_CLR_COMM_FEATURE        0x04
#define ACM_SET_LINE_CODING         0x20
#define ACM_GET_LINE_CODING         0x21
#define ACM_SET_CTRL_LINE_STATE     0x22
#define ACM_SEND_BREAK              0x23

#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


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 + -