Skip to main content
Open topic with navigation

linIsChannelMasterMode

CAPL Functions » LIN » linIsChannelMasterMode Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long linIsChannelMasterMode();

Description

This function returns 1 if the network channel given by the current bus context is running in master mode, 0 otherwise. See SetBusContext for how to change the current bus context. The channel’s master mode setting can be changed at any time using the function linSetChannelMasterMode. See also Master Mode of the LIN Hardware for details on the LIN channel master mode.

Parameters

Return Values

1 if the current bus context’s LIN channel is in master mode, 0 otherwise

Example

if (!linIsChannelMasterMode())
{
  // manually activate Master mode on LIN hardware
  linSetChannelMasterMode(1);
}