|
Opens a CAN channel (circuit) and returns a handle which is used in subsequent calls to CANLIB.
canWANT_EXCLUSIVE | Don't allow sharing of this circuit between applications. |
canWANT_EXTENDED | This flag causes two things to happen:
|
Returns a handle to the opened circuit, or a negative error code (of type canStatus) if the call failed.
Note that the handle may be zero which is perfectly valid.
Channel numbering is dependent on the installed hardware.
If you have a single LAPcan, the channels are numbered 0 and 1.