# null

[Open topic with navigation](../../../../../CANoeDEFamily.htm#Topics/CAPLFunctions/SmartCharging/Callbacks/CAPLfunctionSCCStateTransitionInd.md)

**CAPL Functions** » [Smart Charging](../CAPLFunctionsSmartChargingOverview.md) » [SCC Modeling Libraries (Simulation Setup)](../CAPLFunctionsSmartChargingOverview.md#BMNodeayerDLL) » [Shared Callback Functions](../CAPLFunctionsSmartChargingOverview.md#Callback) » SCC\_StateTransitionInd

# SCC\_StateTransitionInd

[Valid for](../../../Shared/FeatureAvailability.md):  CANoe DE  •  CANoe4SW DE

## Function Syntax

```plaintext
void SCC_StateTransitionInd ( byte SessionID[], dword OldState, dword NewState )
```

## Description

The callback is called each time the internal state machine switches its state, i.e. usually when a new message is received. Use [SCC\_GetStateName](../Functions/CAPLfunctionSCCGetStateName.md) for a string representation of the state IDs.

## Parameters

* **SessionID**: 8-byte long SessionID of SCC connection, range: 0 – 0xFF FF FF FF FF FF FF FF.
* **OldState**: Enum value of previous state.
* **NewState**: Enum value of new state.

## Return Values

—

## Example

—
