Skip to main contentAvbReceive
Valid for: CANoe DE • CANoe4SW DE
Function Syntax
dword AvbReceive(dword listenerHandle, int buffer[], dword& length, char onReceiveCallback[]); // form 1
dword AvbReceive(dword listenerHandle, long buffer[], dword& length, char onReceiveCallback[]); // form 2
dword AvbReceive(dword listenerHandle, byte buffer[], dword& length, char onReceiveCallback[]); // form 3
Description
The function receives data into the specified buffer.
If the receive operation completes immediately the function returns the number of received elements in the length parameter and the passed CAPL callback OnAvbReceive will not be called.
If the receive operation does not complete immediately the operation is performed asynchronously and the function will return 460609.
In this case the CAPL callback OnAvbReceive will be called on completion (successful or not).
Parameters
- listenerHandle: The Listener handle.
- buffer: The buffer used to store the incoming data.
- length: The length of the data buffer.
- onReceiveCallback: The name of the CAPL callback function (see OnAvbReceive).
Return Values
- 0: The function completed successfully.
- 460609: The operation is pending and will be completed later.
- Any other value: Other Error code
Example
—
See Also