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

linGetMasterResistorState

Valid for: CANoe DE

Function Syntax

long linGetMasterResistorState();

Description

Returns the internal master resistor’s current state of the LIN interface hardware. Note: This function only works with LIN core network interfaces.

Parameters

Return Values

  • State of the master resistor
    • 1: Resistor is on
    • 0: Resistor is off

Example

// on pressing key ‘c’ switch on the master resistor
...
on key 'c'
{
  long ret;
  ret = linGetMasterResistorState();
  write("Resistor State: %d", ret);
}