Open topic with navigation CAPL Functions » Ethernet » Function Overview » ethernetPacket::GetDataDocumentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
ethernetPacket::GetData
Valid for: CANoe DE • CANoe4SW DEMethod Syntax
word ethernetPacket.GetData(word offset, char dest[], word length); // form 1word ethernetPacket.GetData(word offset, byte dest[], word length); // form 2word ethernetPacket.GetData(word offset, struct * dest); // form 3word ethernetPacket.GetData(word offset, sysvarStruct dest); // form 4word ethernetPacket.GetData(char protocol[], char field[], byte dest[]); // form 5
Description
Copies the data of an Ethernet packet to a byte array, char array, CAPL struct or system variable struct.Parameters
- offset: Byte offset of the data in the Ethernet packet. Offset 0 is the byte directly after the Ethertype.
- dest: Destination where the data is copied to.
- length: Number of bytes to copy.