Skip to main content

SomeIpSetReturnCode

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Description

This function sets the return code in the SOME/IP message header.

Parameters

  • messageHandle: Handle of the SOME/IP message (e.g. see OnSomeIpMessage)
  • returnCode:
    • 0x00: E_OK
    • 0x01: E_NOT_OK
    • 0x02: E_UNKNOWN_SERVICE
    • 0x03: E_UNKNOWN_METHOD
    • 0x04: E_NOT_READY
    • 0x05: E_NOT_REACHABLE
    • 0x06: E_TIMEOUT
    • 0x07: E_WRONG_PROTOCOL_VERSION
    • 0x08: E_WRONG_INTERFACE_VERSION
    • 0x09: E_MALFORMED_MESSAGE
    • 0x09: 0x1F RESERVED
If message type is REQUEST, REQUEST_NO_RETURN or NOTIFICATION return code is N/A and set to 0x00 (E_OK).

Return Values

  • 0: The function was successfully executed
  • >0: Error code

Example

See Also