You copied the Doc URL to your clipboard.

LISA+ Language for Fast Models Reference Manual : Requirements for importing models with callbacks

Requirements for importing models with callbacks

Callbacks provide a method that permits a C++ object to call LISA+ behaviors. It must fulfill two conditions for callbacks to work.

  1. The LISA+ object must implement the necessary callback functions, through the getAbstractInterface() function.
  2. You must pass the address of the LISA+ object to the C++ object, using a C++ header file.

Figure 3-3 Relationship between C++ and LISA+ components in callbacks

Use the LISA+ construct mySlave.getAbstractInterface() to get the pointer *protocol_myInterface to the mySlave port.

The C++ component header file is protocol_myInterface.h.

Was this page helpful? Yes No