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

📄 error.h

📁 Usb Host/Periphel Control TD1120 codes
💻 H
字号:
/*------------------------------------------------------------------------------
$File: //hodad/usblink/3.4/source/core/error.h $
$DateTime: 2003/05/14 09:49:12 $
$Revision: #9 $
Purpose: This file holds all error values for USBLink.
------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------
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 - 2003 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 _SOFTCONNEX_ERROR_H_
#define _SOFTCONNEX_ERROR_H_


/*------------------------------------------------------------------------------
General Errors: These constants can be used for general succes/error checking.
   (0xX0000000): 0 - Success Value
                 C - Error Value
                 D - Informational Value
------------------------------------------------------------------------------*/
#define SCS_SUCCESS  ((SctStatus) 0x00000000)
#define SCS_ERROR    ((SctStatus) 0xC0000000)
#define SCS_INFO     ((SctStatus) 0xD0000000)


/*------------------------------------------------------------------------------
Host Controler URB Status: These errors are based of the OHCI TD error
   values. These errors are returned via the URB status data member. All host
   controllers must map there transfer error codes to these values.
------------------------------------------------------------------------------*/
#define SCS_ERROR_HC_CRC                 ((SctStatus) 0xC0000001)
#define SCS_ERROR_HC_BITSTUFFING         ((SctStatus) 0xC0000002)
#define SCS_ERROR_HC_TOGGLEMISMATCH      ((SctStatus) 0xC0000003)
#define SCS_ERROR_HC_STALL               ((SctStatus) 0xC0000004)
#define SCS_ERROR_HC_DEVNOANSWER         ((SctStatus) 0xC0000005)
#define SCS_ERROR_HC_PIDFAILURE          ((SctStatus) 0xC0000006)
#define SCS_ERROR_HC_BADPID              ((SctStatus) 0xC0000007)
#define SCS_ERROR_HC_DATAOVERRUN         ((SctStatus) 0xC0000008)
#define SCS_ERROR_HC_DATAUNDERRUN        ((SctStatus) 0xC0000009)
#define SCS_ERROR_HC_BUFFEROVERRUN       ((SctStatus) 0xC000000B)
#define SCS_ERROR_HC_BUFFERUNDERRUN      ((SctStatus) 0xC000000C)
#define SCS_ERROR_HC_NOTACCESSED         ((SctStatus) 0xC000000F)
#define SCS_ERROR_HC_NAK                 ((SctStatus) 0xC0000011)
#define SCS_ERROR_HC_BABBLE              ((SctStatus) 0xC0000012)
#define SCS_ERROR_HC_ISOCH_OUT_OF_SYNCH  ((SctStatus) 0xC0000020)


/*------------------------------------------------------------------------------
Host Controler Interface Status: These errors are returned by the st_BASE_HC
   interface member functions.
------------------------------------------------------------------------------*/
#define SCS_ERROR_HC_ENDPOINT_INVALID   ((SctStatus) 0xCF000001)
#define SCS_ERROR_HC_ENDPOINT_DISABLED  ((SctStatus) 0xCF000002)
#define SCS_ERROR_HC_ENDPOINT_NO_TD     ((SctStatus) 0xCF000003)
#define SCS_ERROR_HC_OUT_OF_BANDWIDTH   ((SctStatus) 0xCF000004)
#define SCS_ERROR_HC_INVALID_FUNCTION   ((SctStatus) 0xCF000003)
#define SCS_ERROR_HC_HW_NOT_FOUND       ((SctStatus) 0xCF000003)


/*------------------------------------------------------------------------------
Power Management Errors: These errors are returned by power management
   functions.                  
------------------------------------------------------------------------------*/
#define SCS_ERROR_UNSUPPORTED_FUNCTION ((SctStatus) 0xC0200001)
#define SCS_INFO_MUST_CALL_END         ((SctStatus) 0xD0200002)


/*------------------------------------------------------------------------------
Application Interface Errors: These errors are returned by the operating system
   independent class module application interface.
------------------------------------------------------------------------------*/
#define SCS_ERROR_DEVICE_NOT_CONNECTED    ((SctStatus) 0xC0400001)
#define SCS_ERROR_FUNCTION_NOT_SUPPORTED  ((SctStatus) 0xC0400002)
#define SCS_ERROR_IOCTL_NOT_SUPPORTED     ((SctStatus) 0xC0400003)
#define SCS_ERROR_TRANSFER_TIMEOUT        ((SctStatus) 0xC0400004)
#define SCS_ERROR_OUT_OF_URBS             ((SctStatus) 0xC0400005)
#define SCS_ERROR_BUFFER_TOO_LARGE        ((SctStatus) 0xC0400006)
#define SCS_ERROR_INVALID_ARGUMENT        ((SctStatus) 0xC0400007)
#define SCS_ERROR_INVALID_HANDLE          ((SctStatus) 0xC0400008)
#define SCS_ERROR_TOO_MANY_LISTENERS      ((SctStatus) 0xC0400009)
#define SCS_ERROR_TOO_MANY_HANDLES        ((SctStatus) 0xC040000A)
#define SCS_ERROR_NO_ENDPOINT             ((SctStatus) 0xC040000B)
#define SCS_ERROR_ENDPOINT_IN_USE         ((SctStatus) 0xC040000C)


/*------------------------------------------------------------------------------
Operating System Abstraction Errors: These errors are returned from the OS
   abstraction layer of the stack.
------------------------------------------------------------------------------*/
#define SCS_ERROR_SEMAPHORE_TIMEOUT    ((SctStatus) 0xC0500004)
#define SCS_ERROR_SEMAPHORE_INVALID    ((SctStatus) 0xC0500005)

#define SCS_ERROR_INVALID_USER_BUFFER  ((SctStatus) 0xC0500006)


/*------------------------------------------------------------------------------
Resoures Allocation Errors: These errors can be returned from any unit when
   allocation of a resource fails.
------------------------------------------------------------------------------*/
#define SCS_ERROR_NO_MEMORY            ((SctStatus) 0xC0009000)
#define SCS_ERROR_RESC_BUFFER_OVERRUN  ((SctStatus) 0xC0009002)


/*------------------------------------------------------------------------------
USB Request Errors: These errors are returned in the status field of an URB.
------------------------------------------------------------------------------*/
#define SCS_ERROR_URB_ABORTED            ((SctStatus) 0xC0100001)
#define SCS_ERROR_BUFFER_SIZE_TOO_BIG    ((SctStatus) 0xC0100002)
#define SCS_ERROR_RESET_BY_HOST          ((SctStatus) 0xC0100003)
#define SCS_ERROR_WRONG_DEVICE_ENDPOINT  ((SctStatus) 0xC0108207)


/*------------------------------------------------------------------------------
                  ERROR ASSOCIATED WITH DEVICE CONFIGURATION
------------------------------------------------------------------------------*/
#define SCS_ERROR_WRONG_DEVICE_INTERFACE   ((SctStatus) 0xC0108206)
#define SCS_ERROR_NO_CLASS_MODULE          ((SctStatus) 0xC0108402)


#endif  /* _SOFTCONNEX_ERROR_H_ */

⌨️ 快捷键说明

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