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

📄 net_err.h

📁 ucos的tcpip协议占
💻 H
📖 第 1 页 / 共 4 页
字号:
/*
*********************************************************************************************************
*                                              uC/TCP-IP
*                                      The Embedded TCP/IP Suite
*
*                          (c) Copyright 2003-2006; Micrium, Inc.; Weston, FL
*
*               All rights reserved.  Protected by international copyright laws.
*
*               uC/TCP-IP is provided in source form for FREE evaluation, for educational
*               use or peaceful research.  If you plan on using uC/TCP-IP in a commercial
*               product you need to contact Micrium to properly license its use in your
*               product.  We provide ALL the source code for your convenience and to help
*               you experience uC/TCP-IP.  The fact that the source code is provided does
*               NOT mean that you can use it without paying a licensing fee.
*
*               Knowledge of the source code may NOT be used to develop a similar product.
*
*               Please help us continue to provide the Embedded community with the finest
*               software available.  Your honesty is greatly appreciated.
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*
*                                    NETWORK ERROR CODE MANAGEMENT
*
* Filename      : net_err.h
* Version       : V1.87
* Programmer(s) : ITJ
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                               EXTERNS
*********************************************************************************************************
*/


#ifdef   NET_ERR_MODULE
#define  NET_ERR_EXT
#else
#define  NET_ERR_EXT  extern
#endif


/*$PAGE*/
/*
*********************************************************************************************************
*                                               DEFINES
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                         NETWORK ERROR CODES
*
* Note(s) : (1) All generic network error codes are #define'd in 'net_err.h';
*               Any port-specific   error codes are #define'd in port-specific header files.
*
*           (2) Network error codes are grouped in series of 1000 per module/layer.
*********************************************************************************************************
*/

#define  NET_ERR_NONE                                      0

#define  NET_ERR_INIT_INCOMPLETE                          10    /* Net init NOT completed.                              */
#define  NET_ERR_INVALID_PROTOCOL                         20    /* Invalid/unknown/unsupported net protocol.            */


#define  NET_ERR_RX                                      400    /* Rx err.                                              */
#define  NET_ERR_RX_DEST                                 450    /* Invalid rx dest.                                     */

#define  NET_ERR_TX                                      500    /* Tx err.                                              */


/*
*********************************************************************************************************
*                                    NETWORK-OS LAYER ERROR CODES
*********************************************************************************************************
*/

#define  NET_OS_ERR_NONE                                1000

#define  NET_OS_ERR_LOCK                                1010
#define  NET_OS_ERR_TASK                                1020

#define  NET_OS_ERR_INVALID_TIME                        1050    /* Invalid time/tick val.                               */


#define  NET_OS_ERR_INIT                                1100    /* Net  init   signal          NOT rx'd by net task(s). */

#define  NET_OS_ERR_INIT_SIGNAL                         1110    /* Net  init   signal          NOT successfully init'd. */
#define  NET_OS_ERR_INIT_SIGNAL_NAME                    1111    /* Net  init   signal  name    NOT successfully cfg'd.  */
#define  NET_OS_ERR_INIT_SIGNALD                        1112    /* Net  init                   NOT successfully signl'd.*/
#define  NET_OS_ERR_INIT_LOCK                           1120    /* Net  lock   signal          NOT successfully init'd. */
#define  NET_OS_ERR_INIT_LOCK_NAME                      1121    /* Net  lock   signal  name    NOT successfully cfg'd.  */
#define  NET_OS_ERR_INIT_TX_SUSPEND                     1130    /* Net  tx     suspend         NOT successfully init'd. */
#define  NET_OS_ERR_INIT_TX_SUSPEND_NAME                1131    /* Net  tx     suspend name    NOT successfully cfg'd.  */
#define  NET_OS_ERR_INIT_TX_SUSPEND_TIMEOUT             1132    /* Net  tx     suspend timeout NOT successfully cfg'd.  */

#define  NET_OS_ERR_INIT_TMR_TASK                       1200    /* Net  tmr    task            NOT successfully init'd. */
#define  NET_OS_ERR_INIT_TMR_TASK_NAME                  1201    /* Net  tmr    task    name    NOT successfully cfg'd.  */

#define  NET_OS_ERR_INIT_NIC_TX_RDY                     1300    /* NIC  tx rdy signal          NOT successfully init'd. */
#define  NET_OS_ERR_INIT_NIC_TX_RDY_NAME                1301    /* NIC  tx rdy signal  name    NOT successfully cfg'd.  */

#define  NET_OS_ERR_INIT_IF_RX_Q                        1400    /* IF   rx Q   signal          NOT successfully init'd. */
#define  NET_OS_ERR_INIT_IF_RX_Q_NAME                   1401    /* IF   rx Q   signal  name    NOT successfully cfg'd.  */
#define  NET_OS_ERR_INIT_IF_RX_TASK                     1402    /* IF   rx     task            NOT successfully init'd. */
#define  NET_OS_ERR_INIT_IF_RX_TASK_NAME                1403    /* IF   rx     task    name    NOT successfully cfg'd.  */

#define  NET_OS_ERR_INIT_TCP_RX_Q                       1800    /* TCP  rx Q's                 NOT successfully init'd. */
#define  NET_OS_ERR_INIT_TCP_RX_Q_TIMEOUT               1801    /* TCP  rx Q's         timeout NOT successfully init'd. */
#define  NET_OS_ERR_INIT_TCP_TX_Q                       1802    /* TCP  tx Q's                 NOT successfully init'd. */
#define  NET_OS_ERR_INIT_TCP_TX_Q_TIMEOUT               1803    /* TCP  tx Q's         timeout NOT successfully init'd. */

#define  NET_OS_ERR_INIT_SOCK_RX_Q                      1900    /* Sock rx Q's                 NOT successfully init'd. */
#define  NET_OS_ERR_INIT_SOCK_RX_Q_TIMEOUT              1901    /* Sock rx Q's         timeout NOT successfully init'd. */
#define  NET_OS_ERR_INIT_SOCK_CONN                      1902    /* Sock req    signal          NOT successfully init'd. */
#define  NET_OS_ERR_INIT_SOCK_CONN_TIMEOUT              1903    /* Sock req    signal  timeout NOT successfully init'd. */
#define  NET_OS_ERR_INIT_SOCK_ACCEPT                    1904    /* Sock accept signal          NOT successfully init'd. */
#define  NET_OS_ERR_INIT_SOCK_ACCEPT_TIMEOUT            1905    /* Sock accept signal  timeout NOT successfully init'd. */
#define  NET_OS_ERR_INIT_SOCK_CLOSE                     1906    /* Sock close  signal          NOT successfully init'd. */
#define  NET_OS_ERR_INIT_SOCK_CLOSE_TIMEOUT             1907    /* Sock close  signal  timeout NOT successfully init'd. */


/*$PAGE*/
/*
*********************************************************************************************************
*                                 NETWORK UTILITY LIBRARY ERROR CODES
*********************************************************************************************************
*/

#define  NET_UTIL_ERR_NONE                              2000
#define  NET_UTIL_ERR_NULL_PTR                          2020    /* Ptr arg(s) passed NULL ptr(s).                       */
#define  NET_UTIL_ERR_NULL_SIZE                         2021
#define  NET_UTIL_ERR_INVALID_PROTOCOL                  2030    /* Invalid/unknown/unsupported net protocol.            */


/*
*********************************************************************************************************
*                                      ASCII LIBRARY ERROR CODES
*********************************************************************************************************
*/

#define  NET_ASCII_ERR_NONE                             3000
#define  NET_ASCII_ERR_NULL_PTR                         3020    /* Ptr arg(s) passed NULL ptr(s).                       */

#define  NET_ASCII_ERR_INVALID_LEN                      3030    /* Invalid ASCII str  len.                              */
#define  NET_ASCII_ERR_INVALID_CHAR                     3031    /* Invalid ASCII char.                                  */
#define  NET_ASCII_ERR_INVALID_CHAR_LEN                 3032    /* Invalid ASCII char len.                              */
#define  NET_ASCII_ERR_INVALID_CHAR_VAL                 3033    /* Invalid ASCII char val.                              */
#define  NET_ASCII_ERR_INVALID_CHAR_SEQ                 3034    /* Invalid ASCII char seq.                              */


/*
*********************************************************************************************************
*                               NETWORK STATISTIC MANAGEMENT ERROR CODES
*********************************************************************************************************
*/

#define  NET_STAT_ERR_NONE                              4000
#define  NET_STAT_ERR_NULL_PTR                          4020    /* Ptr arg(s) passed NULL ptr(s).                       */

#define  NET_STAT_ERR_POOL_INVALID_TYPE                 4030    /* Type specified invalid or unknown.                   */
#define  NET_STAT_ERR_POOL_NONE_AVAIL                   4031    /* NO stat pool entries avail.                          */
#define  NET_STAT_ERR_POOL_NONE_USED                    4032    /* NO stat pool entries used.                           */
#define  NET_STAT_ERR_POOL_NONE_REM                     4033    /* NO stat pool entries remain.                         */


/*
*********************************************************************************************************
*                                NETWORK TIMER MANAGEMENT ERROR CODES
*********************************************************************************************************
*/

#define  NET_TMR_ERR_NONE                               5000
#define  NET_TMR_ERR_NONE_AVAIL                         5010    /* NO net tmrs avail.                                   */
#define  NET_TMR_ERR_NULL_PTR                           5020    /* Ptr arg(s) passed NULL ptr(s).                       */
#define  NET_TMR_ERR_NULL_OBJ                           5021    /* Arg 'obj'  is a NULL ptr.                            */

⌨️ 快捷键说明

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