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

linSetWakeupTimings

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

linSetWakeupTimings(long ttobrk, long wakeupSignalcount, dword widthInMicSec); // form 1
linSetWakeupTimings(long ttobrk, long wakeupSignalcount, dword widthInMicSec, char nodeName[]); // form 2

Description

Configures wake-up timings. Wake-up timings can be configured per node for nodes defined in a LIN database.

Parameters

  • ttobrk
    This parameter specifies the time difference between the transmissions of two consecutive Wakeup frames, i.e., the time between the end of one wakeup frame and the start of the next one. Units of this parameter as well as default value depend on the hardware settings (see Hardware Configuration: LIN).
    Value range (for units expected in bit times): 20..50000
    Value range (for units expected in ms): 1..65536
  • wakeupSignalCount
    Sets the number of Wakeup frame retransmissions.
    Value range: 1..255
    Default value depends on the hardware settings (see Hardware Configuration: LIN).
  • widthInMicSec
    This parameter sets the width of the wakeup frame to be sent in microseconds. The resolution is 50 µs. This parameter is only used by LIN2.0 slave nodes.
    Value range: 250..5000 µs
    Default value depends on the hardware settings (see Hardware Configuration: LIN).
  • nodeName
    Name of a LIN node defined in the database.

Return Values

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

Example

// Configures the wake up timings for the database node "LINMaster".
linSetWakeupTimings(150, 3, 250, "LINMaster")

// send a wakeup signal via a keyboard event within the CAPL program of the node
// "LINMaster". The configured timings will be used.
on key 'w'
{
  linWakeup();
}