Skip to main content
Open topic with navigation CAPL Functions » LIN » LINtp_PreSend

LINtp_PreSend

Valid for: CANoe DE • CANoe4SW DE Note
This callback function is called every time a LIN message is scheduled to be sent. The function allows to change the message data.
Caution:
Changing message data before they are sent can violate the TP protocol and lead to errors! Please make sure that the network can handle these situations!

Function Syntax

void LINtp_PreSend(byte data[]);

Description

The callback function is called before a LIN message is sent with the provided data.

Parameters

  • data: Message data

Return Values

Example

LINtp_PreSend(byte data[])
{
  // ...
  // change sequence number of the consecutive frame
  data[1] = data[1] + 1;
  // ...
}