Return codes from the LINlib functions. More...
enum | LinStatus { linOK = 0, linERR_NOMSG = -1, linERR_NOTRUNNING = -3, linERR_RUNNING = -4, linERR_MASTERONLY = -5, linERR_SLAVEONLY = -6, linERR_PARAM = -7, linERR_NOTFOUND = -8, linERR_NOMEM = -9, linERR_NOCHANNELS = -10, linERR_TIMEOUT = -11, linERR_NOTINITIALIZED = -12, linERR_NOHANDLES = -13, linERR_INVHANDLE = -14, linERR_CANERROR = -15, linERR_ERRRESP = -16, linERR_WRONGRESP = -17, linERR_DRIVER = -18, linERR_DRIVERFAILED = -19, linERR_NOCARD = -20, linERR_LICENSE = -21, linERR_INTERNAL = -22, linERR_NO_ACCESS = -23, linERR_VERSION = -24, linERR_NO_REF_POWER = -25, linERR_NOT_IMPLEMENTED = -26 } |
Return codes from the LINlib functions.
enum LinStatus |
Generally, a return code greater than or equal to zero means success. A value less than zero means failure.
Enumerator | |
---|---|
linOK | OK - no error. |
linERR_NOMSG | No messages available. |
linERR_NOTRUNNING | Handle not on-bus. |
linERR_RUNNING | Handle not off-bus. |
linERR_MASTERONLY | Only for a master. |
linERR_SLAVEONLY | Only for a slave. |
linERR_PARAM | Error in parameter. |
linERR_NOTFOUND | Specified hardware not found. This error is reported when the LIN transceiver isn't powered up. |
linERR_NOMEM | Out of memory. |
linERR_NOCHANNELS | No channels avaliable. |
linERR_TIMEOUT | Timeout occurred. |
linERR_NOTINITIALIZED | Library not initialized. |
linERR_NOHANDLES | Can't get handle. |
linERR_INVHANDLE | Handle is invalid. |
linERR_CANERROR | Internal error in the driver. |
linERR_ERRRESP | There was an error response from the LIN interface. |
linERR_WRONGRESP | The LIN interface response wasn't the expected one. |
linERR_DRIVER | CAN driver type not supported. |
linERR_DRIVERFAILED | DeviceIOControl failed; use the Win32 GetLastError API to get the real (WIn32) error code. |
linERR_NOCARD | The card was removed or not inserted. |
linERR_LICENSE | The license is not valid. |
linERR_INTERNAL | Internal error in the driver. |
linERR_NO_ACCESS | Access denied. |
linERR_VERSION | Function not supported in this version. |
linERR_NO_REF_POWER | Function not supported in this version. |
linERR_NOT_IMPLEMENTED | The requested feature or function is not implemented in the device you are trying to use it on. |