Appendix A
Gang Writer Dynamic Link Library
30
Seiko Epson Corporation
S5U1C17001Y23 Multi-Programmer
System Manual (Rev. 1.1)
A.2.5 StartOperation
•
Function
Executes the specified operation (target reset, erasure, programming, or verification).
Confirms connection with the target system within this function.
Control is returned immediately after this function is called.
Monitor the end of the operation with the GetStatus function.
When performing multiple operations, the GetStatus function returns OK when all operations are finished.
•
Format
long StartOperation (long IcdDeviceNumber, long IcdOperation, long TimeOut);
•
Arguments
IcdDeviceNumber: ICDmini ID number (0 to 999)
IcdOperation:
Sets the operation to execute.
bit 0: Target Reset
(1: Executed 0: Not executed)
bit 1: Erasing flash memory
(1: Executed 0: Not executed)
bit 2: Programming flash memory (1: Executed 0: Not executed)
bit 3: Verifying flash memory
(1: Executed 0: Not executed)
TimeOut:
Time-out (1 = 0.1 seconds)
The allowable range is 0 to 72,000 (maximum 120 minutes).
If 0 is specified, there is no time-out.
This setting is used for all flash memory operations (erasing, programming, and
verification).
•
Return values
OK
NG
ERROR_PARAMETER
ERROR_ICD_CONNECTION