Skip to main content
Open topic with navigation CAPL Functions » Ethernet » Function Overview » ethernetPacket::SetTxEventGeneration

ethernetPacket::SetTxEventGeneration

Valid for: CANoe DE • CANoe4SW DE

Method Syntax

void ethernetPacket.SetTxEventGeneration( long enabled );

Description

Enables/Disables the send-confirmation event generation for a packet which is send at the designated port. (Event generation is enabled by default). Note
Disabling the send-confirmation will result in not seeing the sender of the packet in the tool at all for the specific packet.

Parameters

  • enabled
    0: if the ACK generation should be disabled.
    1: if it should be enabled.

Return Values

Example

ethernetPacket txPacket;
int i;

txPacket.hwPort = ethernetPort::Ethernet1::ChatClient1;
txPacket.source = EthGetMacAddressAsNumber( "20:00:00:00:00:01" );
txPacket.destination = EthGetMacAddressAsNumber( "FF:FF:FF:FF:FF:FF" );
txPacket.Length = 100;
txPacket.type = 0xF123;
txPacket.SetTxEventGeneration(0); //Deactivate the ACK when sending the packet

for( i = 0; i < txPacket.Length; i++ )
{
  txPacket.Byte(i) = i & 0xFF;
}

output( txPacket );