|Non-Confidential||PDF version||ARM 100963_0200_00_en|
|Home > Using the CADI Interface Methods from a Debugger > Target connection and configuration > Obtaining an interface pointer to the target|
This section describes the steps to obtain the interface pointer.
CAInterfacepointer of the targeted component. This is typically requested from a CADI simulation.
ObtainInterface()method of the target and pass the required interface name and revision to check for compatibility with the required interface.
CAInterfacepointer is returned that points to the requested interface. This might be the same as the previously acquired pointer. A
NULLpointer is returned it there is not a matching interface.
The caller knows that the target provides the required interface and the
CAInterface pointer must be converted to the proper interface class,
in this case
It is necessary to perform a
static_cast at this point because the
boundary of a dynamic library was crossed and this prevents the use of a
dynamic_cast. The impossibility of using a
dynamic_cast across dynamic library boundaries was the primary reason
ObtainInterface() followed by the