Skip to main content

TriggerPDU2

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Description

This function forwards a received PDU to another Network. The destination PDU can be changed. For gateway applications this function can be useful.

Parameters

  • PDUObject: PDU object to be transmitted.
  • DestBusContext: Bus context of the destination network where the PDU is to be sent.
  • DBName: Name of the cluster in the database.
  • TXNode: Name of the transmitter node, can be used with an empty string also.
  • PDUName: Name of the PDU to be transmitted.
  • ShortHeaderID: ID of the PDU to be transmitted. 0 means not configured.
  • LongHeaderID: ID of the PDU to be transmitted. 0 means not configured.
  • Flags: Reserved, 0 means not configured.
  • PayloadLen: Length of Payload in Byte.

Return Values

  • result=-6: Triggering of PDU failed.
  • result=-5: PDU Tx node server not present.
  • result=-4: Measurement not running.
  • result=-3: Channels not different or destination channel invalid.
  • result=-2: PDU object invalid.
  • result=-1: Any name parameter invalid (null).
  • result=0: Success.

Example

triggerPDUGetBusNameContext