XEEPROM.h File Reference
Detailed Description
External serial data EEPROM Access Defs.
- FileName: XEEPROM.h
- Dependencies: None
- Processor: PIC18, PIC24F, PIC24H, dsPIC30F, dsPIC33F, PIC32
- Compiler: Microchip C32 v1.00 or higher Microchip C30 v3.01 or higher Microchip C18 v3.13 or higher HI-TECH PICC-18 STD 9.50PL3 or higher
- Company: Microchip Technology, Inc.
See the Microchip License Agreement for more details.
- Modifications to the original file
- SPI access is needed only.
- Using the macro XEE_ADDR for maintenance reasons (fast upgrade of EEPROM size).
- Removed the XEEInit prototype. This function is not needed because the SPI bus is shared by LCD and EEPROM. Both devices work in different SPI modes. Therefore the initialization of SPI is done directly before an access to the EEPROM.
- Added doxygen comments to the function prototypes.
- Added the function XEEEraseEEPROM for erasing the complete EEPROM.
- Added the function XEEWriteArray for writing data arrays into EEPROM. eWicht needs it for saving configuration settings.
- Moved the function prototypes of XEEBeginWrite, XEEWrite, XEEEndWrite, XEEIsBusy to SPIEEPROM.c as static (private) functions of the EEPROM module.
- Removed the functions XEEBeginRead, XEERead and XEEEndRead because no longer needed.
Definition in file XEEPROM.h.
Go to the source code of this file.
|
Functions |
| XEE_RESULT | XEEReadArray (XEE_ADDR address, BYTE *buffer, BYTE length) |
| | Reads desired number of bytes in sequential mode.
|
| void | XEEEraseEEPROM (void) |
| | Erases the whole EEPROM.
|
| void | XEEWriteArray (WORD u16Address, BYTE *pu8Data, BYTE u8Len) |
| | Writes an array of bytes to a specified address in the EEPROM.
|