vtsSerialSetOnErrorHandler
Valid for: CANoe DE • CANoe:lite DEFunction Syntax
Description
Sets the callback that notifies when an error occurred during a send or receive operation. The set callback has to have following signature:void <[OnSerialError](CAPLfunctionVTSOnSerialError.md)>( dword errorFlags)
Parameters
- Target: Name of the system variable/namespace that will be affected by this function call.
- onErrorCallback: CAPL callback function name.
Return Values
- 0: Successful call
- -1: Non-specific error
- -2: The namespace on which the command was called does not exist, is not a valid VT System namespace or does not support this command.
- -3: The passed callback does not have the required signature.