Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
AREthCreateMethodCall
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
dword AREthCreateMethodCall( dword csiHandle, dword methodId, char OnAREthMethodResponse [] ); // form 1dword AREthCreateMethodCall( dword csiHandle, dword methodId ); // form 2dword AREthCreateMethodCall( dword csiHandle, dword methodId, char OnAREthMethodResponse [], char OnAREthMethodError []); // form 3
Description
This function creates a method call for the consumer. By means of the return value of the function, the method parameters can be set using AREthSetValue…. The method is then called using AREthCallMethod. Note: If the function is called with the syntax specified in form 1, the method call takes place asynchronously. At the same time, the client is not blocked after the method call until the corresponding response. A synchronous method call is not supported by AUTOSAR Eth IL. The syntax specified in form 2 must be used if the fireAndForget parameter was used when the method was created for the provider (see also AREthAddMethod). The method call can be removed again using the AREthRemoveMethodCall function.Parameters
- csiHandle: Handle of the Consumed Service Instance that was created by AREthCreateConsumedServiceInstance.
- methodId: Identifier of the method
- onResponseCallback: This callback function is called when the response is received, see
<OnAREthMethodResponse> - onErrorCallback: This callback function is called when a SomeIp error message is received, see
<OnAREthMethodError>
Return Values
- 0: An error occurred. The error can be evaluated using the AREthGetLastError function.
- >0: Handle to the method call.