Skip to main content

applILTxPending

Valid for: CANoe DE • CANoe4SW DE Note
The CAPL program may define these optional functions (all marked with the prefix applIL) to receive indications about events from the IL.
Caution: Within this callback the setSignal functionality must not be used, since it might trigger further unwanted transmissions.

Function Syntax

Description

This callback is optionally being called before the IL sends a message to the bus. In this callback it is possible to prevent the sending of the message or to change the data of the message.

Parameters

  • aId: With the ID you can identify the message.
  • aDLC: The DLC of the message to be sent and the length of the data bytes array.
  • data: Data bytes array with the bytes to be sent. The bytes can optionally be changed.

Return Values

  • 0: Sending of the message with the supplied aId is prevented.
  • 1: Sending of the message with the supplied aId is done.

Example

Calculation of a checksum and a message counter: