Skip to main content

Documentation Index

Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

ethGetEthernetPort

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

ethernetPort ethGetEthernetPort(long Channel);

Description

Gets the Ethernet port for the current simulation node. The channel needs to be specified and can be used for gateway nodes to differentiate between the ports on different networks.

Parameters

  • Channel: Application channel, i.e. Eth 1.

Return Values

Ethernet port

Example

on start
{
  ethernetport ownPort;
  ownPort = ethGetEthernetPort(1);
  // ... do something with ownPort
}
lookupEthernetPort