DRV_GetErrorMessage

VOID DRV_GetErrorMessage (
   INT32S ErrorCode,
   BYTE * ErrorMsg );

Purpose

Retrieves the corresponding error message by the specified error code.

Parameters

Name Direction Range Description
ErrorCode input default The error code returned by the driver.
ErrorMsg output default The storage address for error message. The user has to allocate a minimum of 80-byte space for the returned error message.

Return

     1. "Fail to Get Error Message" It fails to allocate the buffer.
     2. "Invalid Error Code" The error code is out of range.
     3. Other value Please reference ErrorCodes

Notes

Please refer to the appendix for the ErrorCode and the ErrorMsg: Error Codes.