CAPL Script

Can Set Channel Mode

Note This function can only be used with Vector drivers. Thevcndrvms.DLLmust be at least Version 4.2.40.

Syntax

long canSetChannelMode(long channel, long gtx, long gtxreq);

Function

Activates/deactivates the TXRQ and Tx of the CAN controller. This function does nothing with the Ack bit.

Parameters

CANchannel

gtx

gtxreq

Return Values

0: ok

!=0: error

on key 't'{long channel =2;char gtx =1;char gtxreq =1;canSetChannelMode(channel,gtx,gtxreq);Write("Mode set to tx=%d, txreq=%d",gtx,gtxreq);}

canSetChannelAcc | canSetChannelOutput