Getting and Setting Device Information

Obtaining Special Information

Use canIoCtl() to obtain various pieces of information for a specific handle, or to perform special operations.

Use canGetChannelData() to obtain data for a specific channel, for example, the hardware type of the CAN interface.

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).