Manuals
General operations
USB Device operations
Packet function operations
Serial function operations
Stream function operations
ECUSB_GetErrorMessage
The ECUSB_GetErrorMessage function translates an ECUSB_ErrorCode code into an english description of the error.
const char * ECUSB_GetErrorMessage(
ECUSB_ErrorCode err
);
ECUSB_ErrorCode err
);
Parameters
err
The ECUSB_ErrorCode code to translate
Return value
A pointer to a string that contains the error message.
Example Code
if(err != ECUSB_SUCCESS)
{
printf("An error occured: ECUSB_ErrorCode = %d, '%s'\r\n",
err, ECUSB_GetErrorMessage(err));
}