Skip to main content
Open topic with navigation CAPL Functions » ISO11783 » ISO11783 Node Layer » Iso11783AppRxIndication

Iso11783AppRxIndication (Callback)

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

dword Iso11783AppRxIndication( 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 Iso11783GetRxData(). 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 Iso11783AppRxIndication( LONG ecuHdl, LONG srcAddr, LONG dstAddr, LONG len, LONG pgNumber)
{
  char data[50];
  Iso11783GetRxData( elCount(data), data );
  /* user code */
  return 0;
}