
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
”7188xc.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
”7188xc.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-7188XC Series User’s Manual(Ver.1.0, Apr/2007,7MH-21-10) ---
108
Содержание I-7188XC Series
Страница 87: ...I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 87...
Страница 136: ...I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 136...
Страница 142: ...Step 8 Make the project I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 142...
Страница 149: ...Step 8 Rebuild the project I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 149...