linux

canGetNumberOfChannels

Syntax


#include <canlib.h>
canStatus canGetNumberOfChannels(int * channelCount);

Description

This function returns the number of available CAN channels in the computer. The

Input/Output Parameters

channelCount
A pointer to an INT which will receive the current number of channels.
Return Value

canOK (zero) if success
canERR_xxx (negative) if failure.