2.2.4 ObtainInterface()

This section describes the ObtainInterface() method.

ObtainInterface() must be implemented for all of the CADI classes used in the target connection mechanism. ObtainInterface() identifies the availability of a specific interface and the version of the interface. It performs a compatibility check for the caller:

  • The implementation first compares the interface name and revision number with those forwarded through the method call.

    If no compatible interface is found, the same checks are performed for base classes if they are available.

  • If the checks are successful and the requested interface is available, a CAInterface pointer is returned. The pointer type must be converted to the interface class that was actually requested.
  • If no compatible interface is found, a NULL pointer is returned.
Non-ConfidentialPDF file icon PDF versionARM 100963_0200_00_en
Copyright © 2014–2017 ARM Limited or its affiliates. All rights reserved.