Kvaser Linux CANLIB: Welcome to Kvaser CANLIB!
Obtaining Status Information

Use canReadErrorCounters() to read the error counters of the CAN controller. There are two such counters in a CAN controller (they are required by the protocol definition).

Note
Not all CAN controllers allow access to the error counters, so CANLIB may provide you with an "educated guess" instead.

Use canReadStatus() to obtain the bus status (error active, error passive, bus off; as defined by the CAN standard).