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

# CAPLfunctionLINSetMasterResistor

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

[CAPL Functions](../../CAPLfunctions.md) » [LIN](../CAPLfunctionsLINOverview.md) » linSetMasterResistor

# linSetMasterResistor

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

## Function Syntax

```plaintext theme={null}
long linSetMasterResistor (long onOff);
```

## Description

Enables or disables the internal master resistor of the LIN network interface.

**Note**: This function only works with LIN core network interfaces.

## Parameters

* **onOff**\
  1: Switch the resistor on\
  0: Switch the resistor off

## Return Values

If successful a value unequal to zero.

## Example

```plaintext theme={null}
// on pressing key ‘c’ switch on the master resisitor
...
on key 'c'
{
  linSetMasterResisitor (1);
  write("Turn Resistor On");
}
```
