C Daplug API is a high level library for communication with Daplug dongles. It maps the Daplug dongle specification in an user friendly format.
Daplug API source files are in the "src" directory.
The "main.c" file in the "test" directory contains test functions for understanding how the C Daplug API works.
-
Install openssl for windows "Win32 OpenSSL v1.0.1f" or greater (http://slproweb.com/products/Win32OpenSSL.html)
-
Install libusbx-1.0
-
Linked libraries : libusb-1.0 (libusbx), libeay32 (openssl) and setupapi.
-
When compiling, sets openssl and libusbx search directories (include & dll) : here we use dynamic linking ; so not forget to put dll files in the runtime directory when deploying.
-
If driver problem, install it using zadig (http://zadig.akeo.ie/).
-
Linked libraries (install required files if necessary): libusb-1.0, libcrypto (openssl) and libpthread.
-
Add proper udev rule.
-
Add -fPIC to compiler options. (when creating a lib)
- Linked libraries/frameworks (install required files if necessary): libusb-1.0, libcrypto (openssl), CoreFoundation and IOKit frameworks (required by hidapi).
- Be careful ! Use the right "hidapi" source file according to your OS (rename it to "hidapi.c") !!!