canSetDriverMode

Syntax


#include <canlib.h>
canStatus canSetDriverMode(
   const int hnd,
   int lineMode, 
   int resNet);
);

Description

NOTE: This function is currently not supported.

This function sets the current CAN bus driver mode.

Parameters

hnd
An open handle to a CAN circuit.
lineMode
An unsigned int which defines the line mode.
resNet
An unsigned int which defines the resnet mode.
Return Value

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

Notes

The bus driver mode is typically used to control things like one- or two-wire mode, sleep mode, and so on. It requires special support in the CAN driver circuit.

Related Topics

canSetDriverMode