Skip to main content
Open topic with navigation CAPL Functions » Ethernet » Function Overview » output (Ethernet)

output (Ethernet)

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • void output(ethernetPacket packet); // form 1
  • void output(ethernetPacket packet, dword fcs); // form 2
  • void output(ethernetErrorPacket packet); // form 3

Description

Outputs an Ethernet packet (form 1) from the program block.
Form 2 can be used to output Ethernet packets with an invalid frame checksum.

Parameters

Return Values

Example

ethernetPacket txPacket;

txPacket.msgChannel = 1;
txPacket.source      = EthGetMacAddressAsNumber("20:00:00:00:00:01");
txPacket.destination = EthGetMacAddressAsNumber("FF:FF:FF:FF:FF:FF");
txPacket.Length = 100;
txPacket.type = 0xF123;

output(txPacket, 0x1234);