3.2.2 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
To view this graphic, your browser must support the SVG format. Either install a browser with native support, or install an appropriate plugin such as Adobe SVG Viewer.

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.

Non-ConfidentialPDF file icon PDF version101092_0100_03_en
Copyright © 2014–2018 Arm Limited or its affiliates. All rights reserved.