Skip to main content

AREthAddEvent

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Description

This function adds an Event to a Provided Service Instance that was created by AREthCreateProvidedServiceInstance. AREthTriggerEvent is used to trigger sending of the Event. Then, the CAPL Callback function <OnAREthPrepareEvent> is called, and the application has the opportunity to change or update the values of the SOME/IP Event. An Event can be removed again using the AREthRemoveEvent function.

Parameters

  • psiHandle: Handle of the Provided-Service Instance
  • eventId: Identifier of the Event
  • onPrepareEventCallback: Name of the CAPL function, see CAPL callback <OnAREthPrepareEvent>

Return Values

  • 0: An error occurred. The error can be evaluated using the AREthGetLastError function.
  • >0: Handle of the created Event

Example

See Also