Can Set Channel Mode
This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.
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
CAN channel
gtx
0 | tx off |
1 | tx on |
gtxreq
0 | gtxreq off |
1 | gtxreq on |
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);}
Related APIs
canSetChannelAcc | canSetChannelOutput
Source detail restored from the authorized CANoe 12 help. Hardware support and API availability must be checked against the installed product version.