A664SetChecksum
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
This function calculates and sets the checksum in the specifiedaFrame according to the defined checksum rule.
Parameters
- aFrame: The a664Frame object where the checksum is calculated and stored.
- Rule: Defines the checksum rule based on the protocol type.
- 1 – IP checksum
- 2 – ICMP checksum
- 3 – UDP checksum
Return Values
<success>: Calculated checksum value –› all values including 0.<error> -1: InvalidRule.<error> -2: Packet protocol type inconsistent with rule type.