User Manual
- 17 -
2.3 Integrate SDK to IDE under Windows platform
Xxx.dll is suitable for use on the Windows operating system platform. Here is an example of eclipse
under Windows. This example is written based on the SDK with API version number 2018.12.08
V1.0.0.
2.3.1 Add xxx.dll dynamic link library and api.h head files to the
project
The xxx.dll dynamic link library file can also be placed under other paths, and the absolute path
can be filled when called;
2.3.2 SDK Use SDK in user’s project
The following example loads the dynamic link library using the LoadLibraryA function interface
under Windows:
1. api.h header file is included in the project, and the api.h header file is included in the project
directory.
#include "api.h"
2、Define the used function pointer
/*Define function pointers to call dynamic link libraries*/
RET_StatusTypeDef(*SetDebugEnable)(bool en) = NULL;
RET_StatusTypeDef(*SetDebugFunc)(
void
*Call_Back) = NULL;
RET_StatusTypeDef(*Connect)(HPS3D_HandleTypeDef *handle) = NULL;










