XEEPROM.h

Go to the documentation of this file.
00001 
00002 
00003 
00040 /*********************************************************************
00041  * Software License Agreement
00042  *
00043  * Copyright (C) 2002-2008 Microchip Technology Inc.  All rights 
00044  * reserved.
00045  *
00046  * Microchip licenses to you the right to use, modify, copy, and 
00047  * distribute: 
00048  * (i)  the Software when embedded on a Microchip microcontroller or 
00049  *      digital signal controller product ("Device") which is 
00050  *      integrated into Licensee's product; or
00051  * (ii) ONLY the Software driver source files ENC28J60.c and 
00052  *      ENC28J60.h ported to a non-Microchip device used in 
00053  *      conjunction with a Microchip ethernet controller for the 
00054  *      sole purpose of interfacing with the ethernet controller. 
00055  *
00056  * You should refer to the license agreement accompanying this 
00057  * Software for additional information regarding your rights and 
00058  * obligations.
00059  *
00060  * THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT 
00061  * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT 
00062  * LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A 
00063  * PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL 
00064  * MICROCHIP BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR 
00065  * CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF 
00066  * PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES, ANY CLAIMS 
00067  * BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE 
00068  * THEREOF), ANY CLAIMS FOR INDEMNITY OR CONTRIBUTION, OR OTHER 
00069  * SIMILAR COSTS, WHETHER ASSERTED ON THE BASIS OF CONTRACT, TORT 
00070  * (INCLUDING NEGLIGENCE), BREACH OF WARRANTY, OR OTHERWISE.
00071  *
00072  *
00073  * Author               Date        Comment
00074  *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00075  * Nilesh Rajbharti     5/20/02     Original (Rev. 1.0)
00076 ********************************************************************/
00077 #ifndef __XEEPROM_H
00078 #define __XEEPROM_H
00079 
00080 
00081 // MODIFIX: Introduce this size macro 
00082 #define EEPROM_SIZE             (4096u)
00083 
00084 // MODIFIX: Only define the following macro to emulate an empty EEPROM.
00085 //#define EEPROM_ERASE
00086 
00087 
00088 typedef WORD XEE_ADDR;
00089 typedef BOOL XEE_RESULT;
00090 #define XEE_SUCCESS FALSE
00091 
00092 
00093 // MODIFIX: Deleted the function XEEInit, XEERead, and XEEBeginRead
00094 // MODIFIX: Moved XEEBeginWrite, XEEWrite, XEEIsBusy, XEEEndWrite to
00095 //          SPIEEPROM.c
00096 
00097 
00099 
00113 XEE_RESULT XEEReadArray(XEE_ADDR address, BYTE *buffer, BYTE length);
00114 
00115 
00116 
00118 
00132 void XEEEraseEEPROM(void);
00133 
00134 
00135 // MODIFIX: Added the bFlags parameter to the XEEWriteArray function (see
00136 // below).
00138 
00155 void XEEWriteArray(WORD u16Address, BYTE * pu8Data, BYTE u8Len);
00156 
00157 
00158 #endif

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