#include <canlib.h> canStatus canGetBusParams( int handle, long* freq, unsigned int* tseg1, unsigned int* tseg2, unsigned int* sjw, unsigned int* noSamp, unsigned int* syncmode );
This function retrieves the current bus parameters for the specified channel.
canOK (zero) if success canERR_xxx (negative) if failure.
canSetBusParams
The anatomy of a CAN bit is discussed in detail at Kvaser's web site at http://www.kvaser.com.
Here are some examples of bitrate settings.