Block: 0 to 7 (a total of 8 blocks).
Addr: 0 to 255 (each block can contain 256 bytes).
no: 1 to 16
Data: The start address of buffer that the data is stored.
Return Value: On success, returns NoError.
On error, returns -1. It is say EEPROM is busy, Block is
invalid or Addr is invalid.
Example: Please refer to “EE_WriteEnable()” for an example.
EE_WriteProtect ()
Function: Sets the EEPROM to write-protect mode
Syntax:
void
EE_WriteProtect
(void);
Header: #include
”7188xb.h”
Description: Sets the EEPROM to write-protect mode. The EEPROM
is in write-protect mode by default. EE_WriteEnable()
must be called before writing data to the EEPROM. After
writing the data, it is recommended that EE_WriteProtect
() be called to return the EEPROM to write-protect mode.
Example: Please refer to “EE_WriteEnable()” for an example.
EE_MultiRead ()
Function: Reads data from the EEPROM
Syntax:
int EE_MultiRead(int StartBlock,unsigned
StartAddr,int no,char *databuf);
Header: #include
”7188xb.h”
Description: Reads multi-byte data from the EEPROM.
StartBlock: 0 to 7 (a total of 8 blocks).
StartAddr: 0 to 255 (each block can contain 256 bytes).
no: 1 to 2048
databuf: The address to store data
Return Value: On success, returns NoError.
On error, returns -1. It is say EEPROM is busy, Block is
invalid or Addr is invalid.
Example: Please refer to “EE_WriteEnable()” for an example.
I-7188XB Series User’s Manual(Ver.1.0, Apr/2007,
7MH-020-10
) ---
110
Summary of Contents for I-7188XB Series
Page 88: ...I 7188XB Series User s Manual Ver 1 0 Apr 2007 7MH 020 10 88...
Page 138: ...I 7188XB Series User s Manual Ver 1 0 Apr 2007 7MH 020 10 138...
Page 144: ...Step 8 Make the project I 7188XB Series User s Manual Ver 1 0 Apr 2007 7MH 020 10 144...
Page 151: ...Step 8 Rebuild the project I 7188XB Series User s Manual Ver 1 0 Apr 2007 7MH 020 10 151...