Skip to main content

C2xInitProtocol

Open topic with navigation CAPL Functions » Car2x » C2xInitProtocol Valid for: CANoe DE

Function Syntax

Description

This function initializes the protocol for a packet. If necessary, further needed lower protocols are initialized, e.g., IPv4. Already initialized higher protocols are deleted. Protocol fields that are marked as InitProtocol in the protocol overview are initialized.

Parameters

  • packet: Handle of a packet that has been created with C2xInitPacket.
  • protocolDesignator: Name of the protocol, taken from the protocol overview.
  • packetTypeDesignator: Type of the packet, taken from the protocol overview.

Return Values

Example