Skip to main content

C2xIsTokenAvailable

Valid for: CANoe DE

Function Syntax

Description

This function checks if the specified token is part of the packet. Note: For ASN.1 based protocols, tokens that are not set are not part of the packet between the functions calls of C2xInitPacket and C2xCompletePacket. For other protocols, the non-optional tokens are always part of the packet.

Parameters

  • packet: Handle of a packet that has been created with C2xInitPacket.
  • protocolDesignator: Name of the protocol.
  • tokenDesignator: Name of the token.

Return Values

  • 1: Token is part of the packet.
  • 0: Token is not part of the packet.

Example