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

linSetInterframeSpace

Valid for: CANoe DE

Function Syntax

dword linSetInterframeSpace(dword bitTimes);

Description

This function sets the minimum inter-frame space. With this function it is possible to change the inter-frame space for all frames. The inter-frame space is the time from the end of the frame until start of the next frame. By default the minimum inter-frame space is 0. Note: If the LIN hardware is not in Master mode calling this function will have no effect. If large inter-frame space is set, the schedule slots time may be affected.

Parameters

  • bitTimes: Length of the inter-frame space to set [in bit times].
    Value range: 0..255

Return Values

On success, a value unequal to zero, otherwise zero.

Example

on key 's'
{
    if (linSetInterframeSpace (200) != 0)
    {
        // from now on inter-frame space is minimum 200 bit times
        ...
    }
}
linSetGlobalInterByteSpacelinSetInterByteSpacelinSetInterByteSpaces