Skip to main content
Open topic with navigation CAPL Functions » ISO11783 » Task Controller Interaction Layer (TC IL) » TCIL_ResetTCStatus

TCIL_ResetTCStatus

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • long TCIL_ResetTCStatus(); // form 1
  • long TCIL_ResetTCStatus(dbNode tc); // form 2

Description

This function reverts changes made by TCIL_SetTCStatus and turns back to the default behavior of the Task Controller IL.

Parameters

  • tc: TC simulation node to apply the function

Return Values

Example

Example form 2
pg TC12 tc12;
tc12.TCFunctionTCtoECU = 254;
tc12.SourceAdressOfActiveWSM = 1;
tc12.VisibleDataAlarmMaskID = 1000;
tc12.VisibleSoftKeyMaskID = 2000;
tc12.TCBusyCode1 = 0;
tc12.TCBusyCode2 = 0;
tc12.TCBusyCode3 = 0;
tc12.TCBusyCode4 = 0;
tc12.TCBusyCode8 = 0;
tc12.TCFunctionCode = 0;
if (TCIL_SetTCStatus( TC, 1000, tc12 ) < 0)
{
  TestStepFail("Failed to set TC Status");
}