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.
SomeIpAddField
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
This function adds a field to a Provided Service Instance that was created by SomeIpCreateProvidedServiceInstance. Field contents can be set using the corresponding access functions (SomeIpSetValue…). These changes are only applied when the SomeIpCommitField is called. A field can be removed again using the SomeIpRemoveField function.Parameters
- psiHandle: Handle of the Provided Service Instance that was created with SomeIpCreateConsumerServiceInstance.
- notificationId: Identifier of the field notification. If the field does not support a notifier, the value -1 must be specified here.
- getterId: Identifier of the Field Getter method. If a consumer calls the getter method, the field content is returned by default. If this default behavior is to be changed, a method with the
getterIdmust be created (see also SomeIpAddMethod and <OnSomeIpMethodRequest>). If the field does not support a getter method, the value -1 must be specified here. - setterId: Identifier of the Field Setter method. If a consumer calls the setter method, the field content is overwritten by default and the new field content is then sent via a response. If this default behavior is to be changed, a method with the
getterIdmust be created (see also SomeIpAddMethod and <OnSomeIpMethodRequest>). If the field does not support a setter method, the value -1 must be specified here.
Return Values
- 0: An error occurred. The error can be evaluated using the SomeIpGetLastError function.
- >0: Handle of the created field