
4 Unable to create interface ITNElmoPublic;
5 SimpleIQ Firmware file downloading failed;
6 Unable to start firmware update process;
Use MAC_GetLastError to retrieve the error string.
Sample:
int retVal = DownloadSimpleIQFirmware( hCom, _T(“*”), szPath );
6.21 MAC_GetLastError
This function enables the user to get last error
Syntax:
int MAC_GetLastError( LPTSTR szError, WORD wErrorSize );
Input Parameters:
WORD wErrorSize Size of string for error receiving.
Output Parameter:
LPTSTR szError Last error message.
Return Value:
int - Error value:
>= 0 OK,
< 0 the string for reception of the error is too small, value is the necessary
size of a string (with a minus).
Use MAC_GetLastError to retrieve the error string.
Sample:
int retVal = MAC_GetLastError( szErrorCom, 1024 );
6.22 MAC_InitEvents
This function enables the user to initialize MAS Event mechanism
Syntax:
int MAC_InitEvents();
Return Value:
int - initialization status:
0 OK;
1 The ATL Module initialization failed;
2 Unable to create event listener thread;
Use MAC_GetLastError to retrieve the error string.
Sample:
Maestro Software Manual The Maestro API
MAN-MASSW (Ver. Q)
6-16
Komentarze do niniejszej Instrukcji