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

linSetRespCounter

Valid for: CANoe DE

Function Syntax

long linSetRespCounter(long frameID, long count);

Description

With this function, it is possible to limit the number of responses sent for the specified frame identifier.
  • By setting count = 0, it is possible to deactivate the frame response completely.
  • With count = -1, a frame response is always sent when a correct frame header is received. This is the default configuration for newly configured frames.

Parameters

  • frameID: Identifier of the LIN frame to be configured
    Value range: 0…63
  • count: Number of responses to be sent.
    n-times: 0..254
    unlimited: -1

Return Values

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

Example

linActivateRespslinDeactivateResps