> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionCANstressOnIdle

# CANstressOnIdle

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

## Function Syntax

```
long CANstressOnIdle( char fnctCallback[] );
```

## Description

Registers a CAPL function as callback that is called if CANstress is switched into the state **Idle**.

## Parameters

* **fnctCallback**: Name of the function that should be used as callback.

  **Note**

  * The callback functions must correspond to the following syntax: `long FunctionName( dword );`
  * Should the CAPL function used as callback not longer be called when CANstress changes into the **Idle** condition, an empty string must be passed as parameter to [CANstressOnPending](CAPLfunctionCANstressOnPending.md).

  ```
  ```

// delete or switch off present callback
CANstressOnIdle( " " );

```

## Return Values

- **0**: On successful call.

## Example

—
```
