Returns the error code for the previous error that occurred in the library.
#include txcpi.h
CPI_ERR_TYPE cpi_get_last_error();
None.
When a CPI library function returns the error indicator CPI_ERROR, use cpi_get_last_error to determine the error code. Then use cpi_get_error_str to convert this errnum into an ASCII string describing the error.