Skip to main content

SomeIpAddEvent

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Description

This function adds an Event to a Provided Service Instance that was created by SomeIpCreateProvidedServiceInstance. SomeIpTriggerEvent is used to trigger sending of the Event. Then, the CAPL Callback function <OnSomeIpPrepareEvent> 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 SomeIpRemoveEvent function.

Parameters

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

Return Values

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

Example

See Also: SomeIpAddEvent, SomeIpAddEventToEventgroup, SomeIpAddField, SomeIpAddFieldToEventgroup, SomeIpAddMethod, SomeIpAddProvidedEventGroup, SomeIpCommitField, SomeIpCreateProvidedServiceInstance, SomeIpReleaseProvidedServiceInstance, SomeIpRemoveEvent, SomeIpRemoveEventFromEventgroup, SomeIpRemoveField, SomeIpRemoveFieldFromEventgroup, SomeIpRemoveMethod, SomeIpRemoveProvidedEventGroup, SomeIpTriggerEvent