Crc_CalculateCRC64
CAPL Functions » General » Function Overview » Crc_CalculateCRC64Tool Availability
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
Description
Calculates the corresponding checksum for CRC64 based on the data. The calculation of the CRC value corresponds to AUTOSAR Profile 7.Parameters
- data: Payload data for which the checksum is to be calculated.
- dataSize: Length of data block to be calculated in bytes.
- dataOffset: Start index for the calculation of the CRC in the payload data.
- crcLength: The length of the data for the CRC is calculated.
- crcStartValue: CRC initial value depending on whether it is the first call or a subsequent call. Value is ignored if firstCall is 1.
- firstCall: Flag for first call or a subsequent call. Possible values are 0 (subsequent call) or 1 (first call).
- crcCalculated: Calculated CRC64 value.
Return Values
- 0: Successful
- -1: Not successful: CRC length must not be 0
- -2: Not successful: Offset must not be greater or equal length
- -3: Not successful: Length outside array range
- -4: Not successful: Summary of Length and offset are outside array range