TestFRILCalculateChecksum
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
Calculates the corresponding CRC checksum based on the payload. The correct offset is calculated from the database using the PDU name. NoteConsider to set always the appropriate bus context in a multibus environment before the function is called. Further information on site MultiBus Environment.
Parameters
- pduName: Name of the PDU.
- type:
- type = 0 : CRC
- type = 1 : CHK
- payload: Payload for which the checksum is to be calculated.
- payloadLength: Number of data bytes in payload.
- crc: The calculated checksum.
Return Values
- 0: No error.
- -1: General error.