Skip to main content

DoIP_AddCombinedPDU

Valid for: CANoe DE Note
The following DoIP CAPL function is only available with the modeling library DoIP.dll and eventually an appropriate implementation of the CAPL Callback Interface. Information about the DoIP DLL and the CAPL Callback Interface you find here:

Function Syntax

long DoIP_AddCombinedPDU(dword payloadType, byte payload[], dword payloadLen);

Description

Append another well-formed PDU to the PDU combination buffer for later sending with DoIP_SendPDUCombination. The currently configured protocol version byte will be used for the PDU.

Parameters

  • payloadType: [0; 0xFFFF] type to send, i.e. this can be any value.
  • payload: The data following the generic DoIP header.
  • payloadLen: Length of the data following the header.

Return Values

  • -10: Invalid parameter: the payload type or PDU given is too large.
  • -5: Initialization error
  • 0: Success
  • Other: Reserved

Example

See DoIP_SendPDUCombination DoIP_CreatePDUCombinationDoIP_SendPDUCombination