TCIL_SetResponseContent
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long TCIL_SetResponseContent(dbNode client, dword command, dword subcommand, pg pgPD); // form 1long TCIL_SetResponseContent(dword addressClient, dword command, dword subcommand, pg pgPD); // form 2long TCIL_SetResponseContent(dbNode tc, dbNode client, dword command, dword subcommand, pg pgPD); // form 3long TCIL_SetResponseContent(dbNode tc, dword addressClient, dword command, dword subcommand, pg pgPD); // form 4
Description
The function changes the content of the next TC response TC12 sent by the TC IL to allow fault injection.Parameters
- tc: TC simulation node to apply the function.
- client: Task Controller client which is the originator of the command and receiver of the response message.
- addressClient: Address of the Task Controller client which is the originator of the command and receiver of the response message.
- command: Refers to the response with this command value, 0..15.
- subcommand: Refers to the response with this subcommand value (is only used if command is 0 or 1), 0..15.
- pgPD: This message replaces the Process Data response of the Task Controller IL.
Return Values
- 0: Property has been set successfully
- < 0: An error has occurred: IL Error Code