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.
AREthAddMethod
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
This function adds a method to a Provided Service Instance that was created with AREthCreateProvidedServiceInstance. If this method is called by a client through a SOME/IP request, the specified CAPL callback function is called. Only one CAPL callback function can be registered for each method. Note: If the function is added with the syntax specified in form 1, the method call by the client takes place asynchronously. At the same time, the calling client is not blocked after the method call until the corresponding response. A synchronous method call is not supported by AUTOSAR Eth IL. A method can be removed again using the AREthRemoveMethod function.Parameters
- psiHandle: Handle of the Provided Service Instance that was created by AREthCreateProvidedServiceInstance.
- methodId: Identifier of the method
- onMethodRequestCallback: Name of the CAPL callback function, see CAPL callback
<OnAREthMethodRequest> - fireAndForget: Specifies whether the provider is to send a response after the method call:
- 1: A response is not sent
- 0: A response is sent (default behavior)
Return Values
- 0: An error occurred. The error can be evaluated using the AREthGetLastError function.
- >0: Handle of the created method