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.
- The LISA+ object
must implement the necessary callback functions, through the
- 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.