Skip to main content
Open topic with navigation

ethernetPacket Selectors: <protocol>.byte/word/dword/qword/char/int/long/int64

CAPL Functions » Ethernet » Function Overview » ethernetPacket » Selector byte/word/dword/qword/char/int/long/int64 Valid for: CANoe DE • CANoe4SW DE

Selectors

  • byte ethernetPacket.<protocol>.Byte(index);
  • word ethernetPacket.<protocol>.Word(index);
  • dword ethernetPacket.<protocol>.DWord(index);
  • qword ethernetPacket.<protocol>.QWord(index);
  • char ethernetPacket.<protocol>.Char(index);
  • int ethernetPacket.<protocol>.Int(index);
  • long ethernetPacket.<protocol>.Long(index);
  • int64 ethernetPacket.<protocol>.Int64(index);

Description

Access to the payload of a protocol. If index is greater than available data or <protocol> is not contained in the packet, the measurement is stopped with a runtime error. ethernetPacket::protocol::IsAvailable and ethernetPacket::protocol::byteLength can be used to find out if the data is available.

Parameters

  • Index: Byte offset. Index 0 is the first byte within the payload of the protocol. If index is greater than ethernetPacket.<protocol>.byteLength a runtime error occurs.

Return Values

Value at specified index.

Example