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

TCIL_OnChangedState (Callback)

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

void TCIL_OnChangedState( long state );

Description

This callback function is called from the TC IL if it has changed its state.

Parameters

  • state
    • 0: Initialized
    • 1: Claiming
    • 2: Active
    • 3: Stopped
    • 4: Suspended

Return Values

Example

void TCIL_OnChangedState( long state )
{
  switch(state) {
    case 1: // Claiming
      break;
    case 2: // Active
      break;
    case 3: // Stopped
      break;
    case 4: // Suspended
      break;
  }
}