Status Codes

Return codes from the CANlib functions. More...

Files

file  canstat.h
 Definitions for the CANLIB API.
 

Detailed Description

Return codes from the CANlib functions.

Generally, a return code greater than or equal to zero means success.
A value less than zero means failure.

You should avoid testing for a specific error code unless it is explicitly
stated in the documentation for the API in question that this specific error
code is returned. Instead, check if the error code is less than zero.
Use canGetErrorText() to obtain an error message suitable for a message to the
user, or for a line in an error log file.