FDXSetProtocolVersion
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.
Syntax
long FDXSetProtocolVersion(long fdxClientHandle, byte majorVersion, byte minorVersion);
Function
This function configures the version of the FDX protocol that should be used for the communication with the specified client.
Parameters
fdxClientHandle FDX client for which the protocol version should be set.
majorVersion
Major version of the FDX protocol
minorVersion
Minor version of the FDX protocol
Return Values
0: Successful function call
-1: The parameterfdxClientHandleis invalid.
-2: The given main version (majorVersionparameter) is not supported byCANoe.
Reference example from the CANoe 12 help. Check the required configuration, database objects and API availability in your installed version; this is not a recorded compiler or runtime test.
// Configure FDX protocol version 1.2 for the given client
FDXSetProtocolVersion(fdxClientHandle, 1, 2);
// Configure FDX protocol version 2.0 for the given client
FDXSetProtocolVersion(fdxClientHandle, 2, 0);