Get Error Contents

By using function DioGetErrorString, it is possible to convert error code to a character string for all functions.
The character string used by function DioGetErrorString is 256 bytes at most.

Programming Example in C

long Ret;
long ErrorRet;
short Id;
char ErrorString[256];

Ret = DioInit( "DIO000" , &Id );
ErrorRet = DioGetErrorString( Ret , ErrorString );
printf("DioInit :%s", ErrorString );

Ret = DioExit( Id );
ErrorRet = DioGetErrorString( Ret , ErrorString );
printf("DioExit :%s", ErrorString );