Skip to main content
Open topic with navigation CAPL Functions » FlexRay » frGetSyntaxErrorCount

frGetSyntaxErrorCount

Valid for: CANoe DE Note
FlexRay bus statistics for CAPL is deactivated by default and must be activated before calling this function. You can do this by calling function frEnableStatistics in an on start handler, see example below.

Function Syntax

long frGetSyntaxErrorCount(long channel, long channelMask);

Description

Gets the total count of syntax errors of a FlexRay channel.

Parameters

  • channel
    FlexRay channel (1…32).
  • channelMask
    Channel mask
    • 1 = subchannel A
    • 2 = subchannel B

Return Values

Total count of syntax errors, if FlexRay statistics is enabled; 0 otherwise.

Example

on start
{
  frEnableStatistics(1, 1); // Enable FlexRay statistics on channel 1
}

void myStatisticFunc()
{
  long value;

  value = frGetSyntaxErrorCount(1, 2); // Channel 1, subchannel B
  // … do something with the value …
}