Status Codes
LINlib

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 }

## Detailed Description

Return codes from the LINlib functions.

## Enumeration Type Documentation

## ◆ LinStatus

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. Some functions requires that the handle is on-bus before being called, i.e linRequestMessage(). Call linBusOn() to go on-bus.
linERR_RUNNING | Handle not off-bus. Some functions requires that the handle is off-bus before being called, i.e linSetBitrate(). Call linBusOff() to go off-bus.
linERR_MASTERONLY | Only for a master. A call to a function that only a master can execute, i.e linRequestMessage().
linERR_SLAVEONLY | Only for a slave. A call to a function that only a slave can execute, i.e linUpdateMessage().
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.
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.