linSetWakeupBehavior
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
linSetWakeupBehavior(dword restartScheduler, dword wakeupIdentifier); // form 1linSetWakeupBehavior(dword restartScheduler, dword wakeupIdentifier, dword sendShortHeader); // form 2linSetWakeupBehavior(dword restartScheduler, dword wakeupIdentifier, dword sendShortHeader, dword wakeupDelimiterLength); // form 3
Description
Defines the behavior after wake-up signal or an internal wake-up. Note: When LIN hardware is not in sleep mode calling this function will have no effect.Parameters
- restartScheduler: Determines if index of the slot to be started with after wakeup has to be reset, i.e. it becomes 0. If it’s not reset the next slot before entering sleep mode is used. In the case no schedule tables are defined this parameter is ignored. Value range: 0..1
-
wakeupIdentifier: LIN frame identifier to be sent additionally directly after sending a wakeup signal. If an invalid identifier is specified i.e. not in the range 0..63:
- When schedule tables are defined no special wakeup identifier is sent.
- When no schedule tables are defined a SynchBreak/SynchField pair without an identifier is sent. Value range: 0..0xFF
-
sendShortHeader: Determines whether a SynchBreak/SynchField pair without an identifier should be sent or not, when the conditions described above hold true. That is, when
- No valid wakeupIdentifier is specified
- No schedule tables are defined
- sendShortHeader is true then a SynchBreak/SynchField will be sent. No such “short header” will be sent otherwise. Value range: 0..1
- wakeupDelimiter: This parameter specifies the wakeup delimiter length, i.e. the time between the end of wakeup frame and the first header sent to detect a wakeup reason. Units of this parameter as well as default value depend on the hardware settings. Value range: 3..255 (ms or bit times)