19 (22)
13.1.12
simply_get_last_error
Gets the last error code. After reading the error code with
simply_get_last_error
the
error code is set to 0. Each error can only be read once.
int16_t simply_get_last_error(void);
Return Value
Return value
Error
Description
0
SIMPLY_S_NO_ERROR
No error occurred
-1
SIMPLY_E_SERIAL_OPEN
Unable to open the serial port
-2
SIMPLY_E_SERIAL_ACCESS
Access on serial port denied
-3
SIMPLY_E_SERIAL_CLOSED
Serial communication port closed
-4
SIMPLY_E_SERIAL_COMM
Serial communication error
-5
SIMPLY_E_CMND_REQ_UNKNOWN
Command unknown on device
-6
SIMPLY_E_CMND_RESP_TIMEOUT
Command response timeout reached
-7
SIMPLY_E_CMND_RESP_UNEXPECTED
Unexpected command response received
-8
SIMPLY_E_CMND_RESP_ERROR
Command response error
-9
SIMPLY_E_INVALID_PROTOCOL_VERSION
Invalid simplyCAN protocol version
-10
SIMPLY_E_INVALID_FW_VERSION
Invalid device firmware version
-11
SIMPLY_E_INVALID_PRODUCT_STRING
Invalid simplyCAN product string
-12
SIMPLY_E_CAN_INVALID_STATE
Invalid CAN state
-13
SIMPLY_E_CAN_INVALID_BAUDRATE
Invalid CAN baudrate
-14
SIMPLY_E_TX_BUSY
Message not sent, Tx is busy
-15
SIMPLY_E_API_BUSY
API is busy.
simplyCAN User Manual
4.01.0001.22001 1.0 en-US