> ## 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.

# CAPLfunctionFRGwBypassDynamic

[Open topic with navigation](../../../../../CANoeDEFamily.htm#Topics/CAPLFunctions/FlexRay/Functions/CAPLfunctionFRGwBypassDynamic.md)

**CAPL Functions** » [FlexRay](../CAPLfunctionsFlexrayOverview.md) » frGwBypassDynamic

# frGwBypassDynamic

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

## Function Syntax

```
long frGwBypassDynamic(long bypass, long channel);
```

## Description

Activates/deactivates the automatic routing for the dynamic part. The function cannot be used during a measurement.

Settings from the **Network Hardware Configuration** dialog are overwritten with this function.

## Parameters

* **bypass**:
  * 0 = Routing deactivated
  * 1 = Routing activated

* **channel**: Output channel of the gateway.

## Return Values

* **0**: Error
* **1**: OK

## Example

```plaintext theme={null}
...
frGwBypassDynamic(0,1)
// The gateway routing for the dynamic part will be deactivated 
// for the gateway that uses channel 1.
...
```

[FlexRay Gateway Mode](../../../CANoeCANalyzer/FlexRay/FlexRayGatewayMode.md)

***
