Skip to main content
Open topic with navigation CAPL Functions » MOST » mostSetMacAdr, mostGetMacAdr

mostSetMacAdr, mostGetMacAdr

Valid for: CANoe DE Note
This function is only available with MOST hardware VN2640, OptoLyzer G2 3150o, and OptoLyzer MOCCA compact 150c.

Function Syntax

long mostSetMacAdr(long channel, int64 macAdr);
int64 mostGetMacAdr(long channel);

Description

The functions set and retrieve the 48 bit MAC address of the network interface controller. The MAC address identifies the network node during Ethernet-over-MOST150 communication (see OnMostEthPkt, outputMostEthPkt).

Parameters

  • channel: Channel of the connected interface
  • macAdr: 48 bit MAC address.

Return Values

Example

// Set MAC address on channel MOST 1 to 01:02:03:04:05:06
mostSetMacAdr(1, 0x010203040506LL);
mostGetChannelOnMostMacAdrOnMostEthPktoutputMostEthPktmostSetNodeAdr