Skip to main content

frGetFrameCRC

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

dword frGetFrameCRC(this);

Description

This function returns the CRC of a received FlexRay frame. The Header CRC can be determined with a special selector of the event procedure.

Parameters

Return Values

  • Frame CRC (data type WORD)
    The return value is only valid if the frame was received by a Vector FlexRay network interface in asynchronous monitor mode. In any other case 0 will be sent back.

Example

The following example writes the CRC into the Write Window for all received frames.
on frFrame *
{
   dword crc;
   crc = frGetFrameCRC(this);
   Write("Frame %d in Cycle %d has CRC 0x%x", this.FR_SlotID, this.FR_Cycle, crc);
   output(this); // only required in Measurement Setup
}