StackTsk.h

Go to the documentation of this file.
00001 
00002 
00029 /*********************************************************************
00030  * Software License Agreement
00031  *
00032  * Copyright (C) 2002-2008 Microchip Technology Inc.  All rights 
00033  * reserved.
00034  *
00035  * Microchip licenses to you the right to use, modify, copy, and 
00036  * distribute: 
00037  * (i)  the Software when embedded on a Microchip microcontroller or 
00038  *      digital signal controller product ("Device") which is 
00039  *      integrated into Licensee's product; or
00040  * (ii) ONLY the Software driver source files ENC28J60.c and 
00041  *      ENC28J60.h ported to a non-Microchip device used in 
00042  *      conjunction with a Microchip ethernet controller for the 
00043  *      sole purpose of interfacing with the ethernet controller. 
00044  *
00045  * You should refer to the license agreement accompanying this 
00046  * Software for additional information regarding your rights and 
00047  * obligations.
00048  *
00049  * THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT 
00050  * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT 
00051  * LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A 
00052  * PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL 
00053  * MICROCHIP BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR 
00054  * CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF 
00055  * PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES, ANY CLAIMS 
00056  * BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE 
00057  * THEREOF), ANY CLAIMS FOR INDEMNITY OR CONTRIBUTION, OR OTHER 
00058  * SIMILAR COSTS, WHETHER ASSERTED ON THE BASIS OF CONTRACT, TORT 
00059  * (INCLUDING NEGLIGENCE), BREACH OF WARRANTY, OR OTHERWISE.
00060  *
00061  *
00062  * Author               Date    Comment
00063  *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00064  * Nilesh Rajbharti     8/10/01 Original        (Rev 1.0)
00065  * Nilesh Rajbharti     2/9/02  Cleanup
00066  * Nilesh Rajbharti     5/22/02 Rev 2.0 (See version.log for detail)
00067  * Nilesh Rajbharti     8/7/03  Rev 2.21 - TFTP Client addition
00068  * Howard Schlunder     9/30/04 Added MCHP_MAC, MAC_POWER_ON_TEST, 
00069                                 EEPROM_BUFFER_SIZE, USE_LCD
00070  * Howard Schlunder     8/09/06 Removed MCHP_MAC, added STACK_USE_NBNS, 
00071  *                              STACK_USE_DNS, and STACK_USE_GENERIC_TCP_EXAMPLE
00072  ********************************************************************/
00073 #ifndef __STACK_TSK_H
00074 #define __STACK_TSK_H
00075 
00076 
00077 // Check for potential configuration errors in "TCPIPConfig.h"
00078 #if (MAX_UDP_SOCKETS <= 0 || MAX_UDP_SOCKETS > 255 )
00079 #error Invalid MAX_UDP_SOCKETS value specified
00080 #endif
00081 
00082 // Check for potential configuration errors in "TCPIPConfig.h"
00083 #if (MAX_HTTP_CONNECTIONS <= 0 || MAX_HTTP_CONNECTIONS > 255 )
00084 #error Invalid MAX_HTTP_CONNECTIONS value specified.
00085 #endif
00086 
00092 typedef struct __attribute__((__packed__)) _MAC_ADDR
00093 {
00094     BYTE v[6];
00095 } MAC_ADDR;
00096 
00097 #define IP_ADDR     DWORD_VAL
00098 
00104 typedef struct __attribute__((__packed__)) _NODE_INFO
00105 {
00106     MAC_ADDR    MACAddr;
00107     IP_ADDR     IPAddr;
00108 } NODE_INFO;
00109 
00110 // MODIFIX: Removed typedef struct and definition of APP_CONFIG as replaced by
00111 // other eWicht structures.
00112 
00113 
00115 
00126 void StackInit(void);
00127 
00128 
00130 
00142 void StackTask(void);
00143 
00144 
00146 
00156 void StackApplications(void);
00157 
00158 #endif

Generated on Sun Nov 27 20:02:39 2011 for eWicht by  doxygen 1.5.5