Kvaser Linux CANLIB

Using the LIN Bus

Using the LIN bus requires special hardware and is presently supported on LAPcan, LAPcan II and Kvaser LIN Leaf.

The CAN API calls are not directly suitable for the LIN bus. Instead, a new API is provided that enables you to use the LIN bus as easily as you use the CAN bus. The function calls in the LIN API all have names starting with lin, e.g linReadMessage().

You will need to

    #include linlib.h

in your programs, and link with linlib.so (which, in turn, uses libcanlib.so).