OnAREthProcessTxARPDU
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long OnAREthProcessTxARPDU(dword sourceAddress, dword sourcePort, dword destinationAddress, dword destinationPort, dword length, char buffer[], dword headerID);// form 1 is deprecated, use form 3long OnAREthProcessTxARPDU(dword sourceAddress, dword sourcePort, dword destinationAddress, dword destinationPort, dword length, byte buffer[], dword headerID);// form 2 is deprecated, use form 4long OnAREthProcessTxARPDU(IP_Endpoint sourceEndpoint, IP_Endpoint destinationEndpoint, dword length, char buffer[], dword header_id);// form 3long OnAREthProcessTxARPDU(IP_Endpoint sourceEndpoint, IP_Endpoint destinationEndpoint, dword length, byte buffer[], dword header_id);// form 4long OnAREthProcessTxARPDU(IP_Endpoint sourceEndpoint, IP_Endpoint destinationEndpoint, dword length, char buffer[]);// form 5long OnAREthProcessTxARPDU(IP_Endpoint sourceEndpoint, IP_Endpoint destinationEndpoint, dword length, byte buffer[]);// form 6
Description
This callback is called before the interaction layer wants to send an AUTOSAR PDU. For PDUs with headers, form 3 or form 4 must be used, for headerless PDUs form 5 or form 6. This makes it possible to suppress the transmission.Parameters
- sourceAddress: IPv4 address of the local application endpoint.
- sourcePort: UDP or TCP port of the local application endpoint.
- sourceEndpoint: Endpoint of the local application endpoint.
- destinationAddress: IPv4 address of the target.
- destinationPort: UDP or TCP port of the target.
- destinationEndpoint: Endpoint of the target.
- length: Length of the data.
- buffer: Data to transmit.
- headerId: ID which is to be written in the header before the AUTOSAR PDU.