
SDK Programming Guide Version 1.511
ABLELink
R
Ethernet-Serial Server MAXI Series
WriteEEPROM()
Description:
Write one word into EEPROM.
Include:
DAPAPI.H
Usage:
void WriteEEPROM ( ushort
id,
ushort
data
)
id
word identifier, address range ( 0 ~ 23, 24 words )
Input Parameters:
data
value being written into serial EEPROM
Return Value:
None
Example:
Write the 24th word data with 0x1234 into the serial EEPROM.
WriteEEPROM( 23, 0x1234 );
Remarks:
This function is used to write one word
data
into the serial EEPROM.
ReadMacEEPROM()
Description:
read the IP address, Router address and netmask.
Include:
DAPAPI.H
Usage:
ushort ReadMacEEPROM(
ushort
id
);
Input Parameters:
id; // 10H,11H: Read IP address
// 12H,13H: Read router address
// 14H,15H: Read netmask address
Return Value:
The low/high word of the IP address, Router address and netmask
depending on the parameter: id.
Example:
Get IP address.
ReadMacEEPROM(0x10);
ReadMacEEPROM(0x11);
Remarks:
Read low/high word of the IP address, Router address and netmask
depending on the parameter: id.
WriteMacEEPROM()
Description:
setup the IP address, Router address and netmask.
Include:
DAPAPI.H
Usage: void
WriteMacEEPROM(
ushort
id
,ushort
mac_addr
) ;
Input Parameters:
id:
// 10H,11H: Setup IP address
// 12H,13H: Setup router address
// 14H,15H: Setup netmask address
Copyright © 2004 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.