Skip to main content

callContext (obsolete)

Valid for: CANoe DE

Function Syntax

  • callContext * <var>; // form 1
  • callContext <Method> <var>; // form 2
  • callContext <Prototype> <var>; // form 3

Method Syntax

Description

Contains data of a function call, in particular the parameter values.

Parameters

  • Method: Method of a service, determining the data type of the call
  • Prototype: Function prototype (signature), determining the data type of the call

Selectors

  • State: State of the call:
    • eCALLSTATE_INITIAL: the call has not yet reached the provider
    • eCALLSTATE_CALLED: the call has reached the provider, but the return has not yet reached the consumer
    • eCALLSTATE_RETURNED: the return has reached the consumer
    • eCALLSTATE_DISCARDED: the call context is invalid
    • Type: enumeration
    • Access Limitation: Read only
  • Side: Shows where the call is currently being handled:
    • eCOSIDE_CONSUMER: consumer side
    • eCOSIDE_PROVIDER: provider side
    • Type: enumeration
    • Access Limitation: Read only
  • Consumer: Name of the consumer which started the call.
    • Type: char[]
    • Access Limitation: Read only
  • Provider: Name of the provider which is called.
    • Type: char[]
    • Access Limitation: Read only
  • CallTime: Point of time (in simulation time, in nanoseconds) when the call was started (on consumer side) or the call reached the provider (on provider side).
    • Type: int64
    • Access Limitation: Read only
  • ReturnTime: Point of time (in simulation time, in nanoseconds) when the call was returned to the consumer (on provider side) or the return reached the consumer (on consumer side).
    • Type: int64
    • Access Limitation: Read only
  • ReqID: A request ID which identifies the call. Can be used to match replies to calls if several calls are waiting for a reply. The request ID is internal and not necessarily transmitted on the network.
    • Type: int64
    • Access Limitation: Read only
  • <Parameter Name>: Value of the named parameter. Note that parameters are not accessible or read-only depending on the side and state of the call, e.g. you cannot access out-parameters in state Initial and cannot change in-parameters in state Returned.
    • Type: <data type of the parameter>
    • Access Limitation: <depends on side and state>
  • Result: Return value of the function (if the function return type is not void).
    • Type: <data type of the return value>
    • Access Limitation: <depends on side and state>

Example

Programming with the Communication Concept (C#, Python and CAPL)