Skip to main content
Open topic with navigation CAPL Functions » LIN » linSetMasterResistor

linSetMasterResistor

Valid for: CANoe DE

Function Syntax

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

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