...
Code Block | ||
---|---|---|
| ||
void UpdateProgress(BYTE fpa, INT_X &progValue, INT_X &lastOpCode, CString &opCodeUpdate) { if(fpa == 0) { //invalid index return; } progValue = F_GetProgressBar(fpa); lastOpCode = F_GetLastOpCode(fpa); opCodeUpdate = "Unknown"; switch(lastOpCode) { case PROG_OPCODE_VERIFY_ACCESS: opCodeUpdate = "Verify Access To MCU"; break; case PROG_OPCODE_FLASH_ERASE: opCodeUpdate = "Flash Erase"; break; case PROG_OPCODE_FLASH_BLANK_CHECK: opCodeUpdate = "Flash Blank Check"; break; case PROG_OPCODE_FLASH_SELECTED_BLANK_CHECK: opCodeUpdate = "Selected Memory Blank Check"; break; case PROG_OPCODE_FLASH_WRITE: opCodeUpdate = "Flash Write"; break; case PROG_OPCODE_FLASH_VERIFY: opCodeUpdate = "Flash Verify"; break; case PROG_OPCODE_FLASH_READ: opCodeUpdate = "Flash Read"; break; case PROG_OPCODE_LOCK_MCU: opCodeUpdate = "Lock MCU"; break; case PROG_OPCODE_UNLOCK_MCU: opCodeUpdate = "Unlock MCU"; break; case PROG_OPCODE_START_APP: opCodeUpdate = "Start Application"; break; } } |
15. F_Cancel_Action
General Description
Function that will attempt to cancel any running Encapsulated Functions , like the GUI Cancel button. This function is thread-safe. One thread can call F_AutoProgram (for example) and another thread can call F_CancelAction to stop the first. A reinitialization is recommended using F_OpenInstancesAndFPAs after calling this function.
Syntax
Code Block | ||
---|---|---|
| ||
INT_X MSPPRG_API F_CancelAction( BYTE fpa ); |
Input
BYTE fpa : desired FPA index, 1 to 64.
Output
INT_X : success or failed
TRUE (1) - success
FALSE (0) - failed
16. F_Trace_File
General Description
Set custom FileName for trace (used with Trace_ON). Set append flag true to keep previous contents.
Syntax
Code Block | ||
---|---|---|
| ||
INT_X F_Trace_File( char *FileName, bool append = false ); |
Input
char *FileName : path to new trace file.
bool append : append to file if it already exists.
Output
INT_X : success or failed in opening file
TRUE (1) - success
FALSE (0) - failed
17. F_Trace_Comment
General Description
Append a custom comment to current trace file.
Syntax
Code Block | ||
---|---|---|
| ||
void MSPPRG_API F_Trace_Comment(char *comment); |
Input
char *comment : comment to be added to trace file at current location in the trace.
Output
none.
18. F_Trace_ON
General Description
Activate tracing for subsequent calls to the Multi API-DLL. Log is saved in DLLtrace.txt located in the Multi API-DLL directory, or custom file if F_Trace_File function was called. When activated, records all API-DLL function calls from the application software invoked via the Multi API-DLL. The DLLtrace.txt trace file is overwritten for each new session, unless the F_Trace_File append flag is true.
Syntax
Code Block | ||
---|---|---|
| ||
void F_Trace_ON( void ); |
Input
none.
Output
none.
...
19. F_Trace_OFF
General Description
Disable tracing.
Syntax
Code Block | ||
---|---|---|
| ||
void F_Trace_OFF( void ); |
Input
none.
Output
none.