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

linGetChecksum

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • byte linGetChecksum(linFrame linFrame); form 1
  • byte linGetChecksum(linCSError linCsError); // form 2

Description

Returns the checksum of a LIN frame or LIN checksum error. Checksum model (classic/enhanced) is determined automatically.

Parameters

  • linFrame: LIN frame object
  • linCsError: LIN checksum error object

Return Values

Calculated checksum

Example

Get the checksum of a received LIN frame with name myframe
linSetChecksumErrorlinSetManualChecksum