Skip to main content
Open topic with navigation CAPL Functions » J1939 » J1939 NL » J1939AppRxIndication

J1939AppRxIndication (Callback)

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

dword J1939AppRxIndication( long ecuHandle, long srcAddr, long dstAddr, long length, long pgnum );

Description

The callback function indicates to the user that a parameter group has been received. It is not possible in CAPL to receive PG data through a callback function. For this reason, the data must be explicitly requested within the callback function with J1939GetRxData(). It should be noted that this function is only called once for each logical ECU within a node when global PGs are received.

Parameters

  • ecuHandle: ECU handle
  • srcAddr: source address
  • dstAddr: destination address
  • length: number of received data
  • pgnum: PGN of the received parameter group

Return Values

Example

dword J1939AppRxIndication( LONG ecuHdl, LONG srcAddr, LONG dstAddr, LONG len, LONG pgNumber)
{
  char data[50];
  J1939GetRxData( elCount(data), data );
  /* user code */
  return 0;
}