Skip to main content

J1939GetNumberOfContainedPGs

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Description

Returns the number of C-PGs which are contained in a J1939-22 Multi-PG. A Padding C-PG (TOS = 0) is ignored.

Parameters

  • multiPG: A J1939-22 Multi-PG message

Return Values

  • ≥0: Number of Contained-PGs which are contained in the message
  • -1: Message is no J1939-22 Multi-PG message

Example