AREthRegisterCallback
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
Enables to register/unregister a CAPL callback function for an object which has been created separately.Parameters
-
objHandle: Handle of an already existing AUTOSAR Eth IL object for which a new CAPL callback function should be registered/unregistered. The following objects and their corresponding callbacks are supported:
- Provided events (
<OnAREthPrepareEvent>) - Provided methods (
<OnAREthMethodRequest>) - Consumed events (
<OnAREthEventReceived>) - Consumed fields (
<OnAREthFieldNotification>) - Consumed methods (
<OnAREthMethodResponse>)
- Provided events (
- callbackName: The name of the new callback function to register. If a callback function was already registered, it is first unregistered and then replaced by the new one.
Return Values
- 0: The function was successfully executed.
- >0: Error code