Can Set Channel Output
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 canSetChannelOutput(long channel, long silent);
Function
Defines the response of the CAN controller to the bus traffic and sets the ACK bit.The CAN transmitter of the channel is switched off. SoCANoedoes not generate an Ack bit here, and messages can no longer be sent. It is still possible to receive messages.
Parameters
CAN channel
silent
0 | silent |
1 | normal |
Return Values
0: ok
!=0: error
on key 's'{long channel =2;long silent =0;canSetChannelOutput(channel,silent);Write("silent set to %d",silent);}
Related APIs
canSetChannelAcc | canSetChannelMode
Source detail restored from the authorized CANoe 12 help. Hardware support and API availability must be checked against the installed product version.