SmcWGetErrorString


Function

Converts error code content to character string.

 

Format

Ret = SmcWGetErrorString( ErrorCode, ErrorString )

 

Parameters

ErrorCode [ C, C++: long ] [ Python: ctypes.c_long ]

Specify the error code.

 

ErrorString [ C, C++: char * ] [ Python: ctypes.c_char_p ]

Specify the pointer to the buffer for storing the string.
Make sure that the size of the buffer is greater than 256 bytes.

 

Return Value

Ret [ C, C++: long ] [ Python: ctypes.c_long ]

0

Terminated normally

Non-zero

Terminated abnormally

See also: Error code details

 

Remarks

Make sure that the size of buffer storing the string is greater than 256 bytes.
This function can be executed even if the device is in operation.

 

Example

C, C++

long Ret;

long ErrorCode ;

char ErrorString [256];

Ret = SmcWGetErrorString( ErrorCode , ErrorString );

 

Python

Ret = ctypes.c_long()

ErrorCode = ctypes.c_long()

ErrorString = ctypes.create_string_buffer(256)

Ret.value = csmc.SmcWGetErrorString( ErrorCode , ErrorString )

 

See Also