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

linConfigureResponse

Valid for: CANoe DE

Function Syntax

  • dword linConfigureResponse(dword frameId, dword dlc, byte[] responseData); // form 1
  • dword linConfigureResponse(linFrame frame); // form 2

Description

Configures a response frame of a LIN node if no database is used. Note: This function may only be called in the event procedure on preStart.

Parameters

  • frameId: ID of the LIN frame which will be configured as response. Value range: 0..63
  • dlc: Number of data bytes contained in the frame (Data Length Code). Value range: 0..8
  • responseData: An array of bytes which contains the response data to be set.
  • frame: The LIN frame which will be configured as response.

Return Values

Returns 1 if the configuration of the response succeeded, otherwise 0.

Example

linConfigureResponseRange