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

📄 ot_err.h

📁 基于LPC2468处理器的源代码
💻 H
字号:
/*
**************************************************************************************************************
*                                                  uC-USBH
*                                               USB Host Stack
*
*                                (c) Copyright 2008, OnChip  Technologies LLC
*                                             All Rights Reserved
*
*                                               www.onchiptech.com
*
* LICENSING TERMS:
*
*   This software is protected by international copyright laws. Knowledge of the source code may not be used to
*   write a similar product. This file may only be used in accordance with a license and should not be
*   redistributed in any way.  We appreciate your understanding, fairness and honesty.
*
*   This material or any other copies thereof may not be provided or otherwise made available to any other
*   person without written permission by Onchip Technologies. Its receipt and/or possession does
*   not convey any right to alter, reproduce, disclose, transmit, manufacture, use or sell anything it may
*   describe.
*
* File           : ot_err.h
* Programmer(s)  : Ravikanth.P
* Version        : V1.00
*
**************************************************************************************************************
*/

#if      !defined(OT_ERR_H)
#define           OT_ERR_H

/*
**************************************************************************************************************
*                                        USB HOST ERROR CODES
**************************************************************************************************************
*/

#define  OK                                      (0)
                                                      /*---------- Host Controller IO Errors ----------*/
#define  ERR_IO_CRC                              (-1)
#define  ERR_IO_BITSTUFFING                      (-2)
#define  ERR_IO_DATATOGGLEMISMATCH               (-3)
#define  ERR_IO_STALL                            (-4)
#define  ERR_IO_DEVICENOTRESPONDING              (-5)
#define  ERR_IO_PIDCHECKFAILURE                  (-6)
#define  ERR_IO_UNEXPECTEDPID                    (-7)
#define  ERR_IO_DATAOVERRUN                      (-8)
#define  ERR_IO_DATAUNDERRUN                     (-9)
#define  ERR_IO_BUFFEROVERRUN                    (-12)
#define  ERR_IO_BUFFERUNDERRUN                   (-13)
#define  ERR_IO_NOTACCESSED                      (-15) 	
#define  ERR_IO_TIMEOUT                          (-16)
#define  ERR_IO_ABORT                            (-17)
#define  ERR_SETUP_FAIL                          (-20)

#define  FAIL                                    (-100)
#define  ERROR                                   (-100)
#define  ERR_UNKNOWN                             (-100)
                                                          /*----- Host Controller Initialzation Errors -----*/
#define  ERR_INVALID_HW_RESOURCE                 (-101)
#define  ERR_INVALID_BADDR                       (-102)
#define  ERR_INVALID_IRQ                         (-103)
#define  ERR_HCRESET_FAILED                      (-104)

                                                          /*----------- Memory Allocation Errors -----------*/
#define  ERR_OUT_OF_MEMORY                       (-201)
#define  ERR_POOL_FULL                           (-202)
#define  ERR_POOL_CORRUPTED                      (-203)
#define  ERR_INVALID_BLK_SIZE                    (-204)

                                                          /*--------------- USB PIPE Errors ----------------*/
#define  ERR_ENDPOINT_NOT_FOUND                  (-301)
#define  ERR_INVALID_PIPE                        (-302)
#define  ERR_PIPE_INACTIVE                       (-303)
#define  ERR_ENDPOINT_PIPE_NO_MATCH              (-304)
#define  ERR_ENDPOINT_DIRECTION_NO_MATCH         (-305)
#define  ERR_NO_BANDWIDTH                        (-306)


                                                          /*------------ USB Configuration Errors ----------*/
#define  ERR_BAD_CONFIGURATION                   (-401)
#define  ERR_BAD_DESCRIPTOR                      (-402)
#define  ERR_INVALID_USB_ADDR                    (-403)
#define  ERR_DEVICE_CONFIGURATION_NOT_FOUND      (-404)
#define  ERR_LANGID_UNSUPPORTED                  (-405)

                                                          /*------------ USB Class Driver Errors ---------- */
#define  ERR_PROBE_FAIL                          (-501)
#define  ERR_DRIVER_NOT_FOUND                    (-502)
#define  ERR_DUPLICATE_NAME                      (-503)

                                                          /*------------ USB Class Device Errors ---------- */
#define  ERR_DEVICE_NOT_FOUND                    (-601)
#define  ERR_DEVICE_NOT_READY                    (-602)

                                                          /*------------------ Common Errors -------------- */
#define  ERR_INVALID_ARGS                        (-701)
#define  ERR_OS_FAIL                             (-702)
#define  ERR_NOT_FOUND                           (-703)
#define  ERR_QUEUE_FULL                          (-704)
#define  ERR_QUEUE_EMPTY                         (-705)

#define  ERR_INVALID_PORTNUM                     (-801)

                                                          /* ---------- Mass Stroage Class Errors --------- */
#define  MS_CMD_PASSED                           (0x00)

#define  ERR_MS_CMD_FAILED                       (-901)
#define  ERR_MS_CMD_PHASE_ERROR                  (-902)

#define  ERR_MS_IO_ERROR                         (-903)
#define  ERR_MS_RESET_FAIL                       (-904)
#define  ERR_MS_MAXLUN_FAIL                      (-905)



#define  ERR_DEVICE_SUSPENDED                   (-1001)
#define  ERR_DEVICE_REMOVED                     (-1002)

#define  ERR_NOT_SUPPORT                        (-1101)
#define  ERR_NOT_AVIL_PTD                       (-1102)
#define  ERR_ISP1362_UNEXPECTED_STATE           (-1103)
#define  ERR_ISP1362_NOT_IMPMNTED               (-1104)
#define  ERR_SHORT_BUFFER                       (-1105)


#define  ERR_MBOX_NOMSG                         (-1200)

/*
**************************************************************************************************************
*                                        FILE SYSTEM ERROR CODES
**************************************************************************************************************
*/

#define    ERR_WRONG_BOOTSIG           -2001          /* Boot sector signature is not 0xAA55                */
#define    ERR_NO_FREE_LFO             -2002          /* Maximum open file instances limit reached          */
#define    ERR_NO_FREE_DFO             -2003          /* Maximum open files limit reached                   */
#define    ERR_INVALID_PATH            -2004          /* file path given is not absolute file path          */
#define    ERR_NO_SPACE_IN_ROOT_DIR    -2005          /* Not enough free space in the root directory        */
#define    ERR_LONG_PATH               -2006          /* The path given exceeds 260 (max limit)charecters   */
#define    ERR_NAME_ALREADY_EXISTS     -2007          /* File with name specified already exists            */
#define    ERR_DIR_NOT_EMPTY           -2008          /* Directory specified is not an empty directory      */
#define    ERR_FILE_CANT_HAVE_CHILD    -2009          /* A file cannot include files or directories         */
#define    ERR_DIR_EMPTY               -2010          /* The directory specified is empty                   */
#define    ERR_NO_MORE_ENT             -2011          /* Last entry reached. No more entries in the cluster */
#define    ERR_FILE_NOT_FOUND          -2012          /* File with the name specified doesn't exists        */
#define    ERR_DISK_FULL               -2013          /* Not enough free space in the disk                  */
#define    ERR_READ_FAIL               -2014          /* Read operation failed                              */
#define    ERR_WRITE_FAIL              -2015          /* Write operation failed                             */
#define    ERR_RDONLY_MODE             -2016          /* Could not write. File opened in RDONLY mode        */
                                                      
#endif

⌨️ 快捷键说明

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