ethernetPacket::PDUOffset
Valid for: CANoe DE • CANoe4SW DEMethod Syntax
Description
Returns the byte offset of the start of the PDU with index n in the payload of the packet data.Parameters
- n: Index of the requested PDU. The first PDU has index n = 0, the last PDU has index n = PDUCount() - 1.
Return Values
- >=0: offset of the requested PDU.
- -1: Wrong bus system.
- -2: This frame does not support accessing PDUs.
- -3: The PDU object is invalid.
- -4: PDU is not of RX type.
- -5: Parameter too small (e.g. array has too few bytes).
- -6: Message or PDU is not available (any more).
- -7: PDU index out of bound. Use selector PDUCount() to determine the number of PDUs.