
SDK Programming Guide Version 1.511
ABLELink
R
Ethernet-Serial Server MAXI Series
Return Value:
0 successful
others error
Example:
Write "1234567890" at address A000:1234.
ushort ret;
uchar *addr;
addr = (uchar *) 0xA0001234 ;
// the segment value of addr must be within 64k boundary,
// it means that the legal segment value is 0x8000
、
0x9000....or 0xd000
ret = ProgString( 10, "1234567890", addr) ;
if ( ret ) {
// fatal error found !!!
:
}
else {
// OK !!!
:
}
Remarks:
This function is used to write a block of data with length
len
, pointed
by
src,
into the flash memory started from
dest
.
ReadEEPROM()
Description:
Read one word from EEPROM.
Include:
DAPAPI.H,
Usage:
ushort ReadEEPROM ( ushort
id
)
Input Parameters:
id
word identifier, address range ( 0 ~ 23, 24 words
Return Value:
one word data stored at the address of
id
on the EEPROM
Example:
Read the 5th word data in the serial EEPROM.
ushort
ee_data;
ee_data = ReadEEPROM ( 4 );
Remarks:
This function is used to read one word data stored in the serial EEPROM.
Copyright © 2004 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.