3.2.3 getAbstractInterface()

Use this function to call between C++ and LISA+ components.

LISA+ component ports implement the function, which:

  • Passes the port address of a LISA+ component to the C++ object.
  • Returns a pointer of the type protocol_ProtocolName to the C++ component.

You can use the LISA+ construct portinstance.getAbstractInterface() in component behaviors to get a pointer to the abstract interface class instance for a specific port portinstance. It returns a non-const pointer to a class named protocol_ProtocolName, where ProtocolName is the name of the protocol of the port. The LISA+ code can pass a pointer to this class to the C++ code on component initialization, and the C++ code can call the LISA+ code back through the abstract interface class and the port behaviors.

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