Appendix A
Gang Writer Dynamic Link Library
S5U1C17001Y23 Multi-Programmer
Seiko Epson Corporation
35
System Manual (Rev. 1.1)
A.2.9 LoadIcdFlsProgram
•
Function
Loads FLS to the ICDmini with the specified serial number programmed.
Control is returned immediately after this function is called.
The progress status is monitored with the GetIcdStatus function.
•
Format
long LoadIcdFlsProgram ( short* IcdSerialNumber, short* FileName, long EraseAddress, long WriteAddress,
long IcdDeviceNumber, long TimeOut, char* Comment );
•
Arguments
short* IcdSerialNumber: Serial number (Unicode)
It should be within 20 characters and terminated with NULL.
short* FileName:
FLS file name in a full-path (Unicode)
It should be terminated with NULL.
long EraseAddress:
Erase routine address
long WriteAddress:
Write routine address
long IcdDeviceNumber: ID number (0 to 999)
long TimeOut:
Time-out value [seconds]
char* Comment:
Comments
It should be terminated with NULL.
The comment length including ID number and time-out value must be within 127
bytes excluding NULL.
•
Return values
OK
ERROR_EXECUTING
ERROR_PARAMETER
ERROR_ICD_OPEN_CONNECTION
•
Explanation
This function executes the following processes internally.
- Opens the USB port.
- Searches ICDmini with the specified serial number programmed.
- Erases the flash memory.
- Sets entry information.
The ID number, time-out value, and any comments in the format “ID number _ -T Time out value _ any
comments” can be set to the comment field of the packet.
- Programs the flash memory.
- Verifies data programmed in the flash memory.
- Closes the USB port.
Summary of Contents for S5U1C17000Y23
Page 4: ......