linux

canClose

Syntax


#include <canlib.h>
canStatus canClose(int handle);

Description

Closes the channel associated with the handle. The handle can not be used for further references to the channel.

Input Parameters

handle
An open handle to a CAN circuit.
Output Parameters

None.

Return Value

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

Related Topics

canOpenChannel, canBusOn, canBusOff

An example.