Skip to main content
Open topic with navigation CAPL Functions » ISO11783 » Virtual Terminal Interaction Layer (VT IL) » VTIL_OnChangedState

VTIL_OnChangedState (Callback)

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

void VTIL_OnChangedState( long state );

Description

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

Parameters

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

Return Values

Example

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