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

linGetSleepCommandCount

Valid for: CANoe DE Note
LIN bus statistics is deactivated by default and must be activated before calling this function. You can do this by calling function linEnableStatistics in an on start handler, see example below.

Function Syntax

Description

Gets the total count of go-to-sleep requests of a LIN channel.

Parameters

  • channel: LIN channel (1…64).

Return Values

Total count of go-to-sleep requests, if LIN statistics is enabled; 0 otherwise.

Example