Skip to main content

A664InitMessage

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Description

The complete Ethernet, IP- and UDP headers for an AFDX message are consistently set based on the given parameters. The payload area is initialized with 0.

Parameters

  • aMessage: The message object to be initialized.
  • srcIP: Source IP address to be used for the Eth and IP headers.
  • dstIP: Destination IP address to be used for the IP headers.
  • srcUDP: Source UDP port for the UDP header.
  • dstUDP: Destination UDP port for the UDP header.
  • VLid: VLId to be used for the destination Eth header (see selector EthVlId).
  • payloadSize: Size of the message payload after UDP header without counting the sequence number.

Return Values

  • 0: Initialization failed.
  • 1: Initialization successful.

Example