Skip to main content
Open topic with navigation

VTIL_SetResponseContent

CAPL Functions » ISO11783 » Virtual Terminal Interaction Layer (VT IL) » VTIL_SetResponseContent

Tool Availability

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • long VTIL_SetResponseContent(dbNode workingSetMaster, byte vtFunction, pg VT12 pgWithNewContent); // form 1
  • long VTIL_SetResponseContent(dword addressWorkingSetMaster, byte vtFunction, pg VT12 pgWithNewContent); // form 2
  • long VTIL_SetResponseContent(dbNode vt, dbNode workingSetMaster, byte vtFunction, pg VT12 pgWithNewContent); // form 3
  • long VTIL_SetResponseContent(dbNode vt, dword addressWorkingSetMaster, byte vtFunction, pg VT12 pgWithNewContent); // form 4

Description

The function changes the content of the next VT response VT12 sent by the VT IL to allow fault injection.

Parameters

  • vt: VT simulation node to apply the function.
  • workingSetMaster: Receiver of the VT12 response message.
  • addressWorkingSetMaster: Address of the Receiver of the VT12 response message.
  • vtFunction: The function refers to the response with this VT function value.
  • pgWithNewContent: This message replaces the VT12 response of the VT IL.

Return Values

  • 0: Blocking of all messages has been stopped successfully
  • < 0: An error has occurred, see IL Error Code.

Example

Example form 3, 4