|
#define | XSFW_WRAPDECL |
|
#define | EXSID_INTERFACES "libftd2xx, libftdi" |
|
#define | _xSfw_dlopen(filename) dlopen(filename, RTLD_NOW|RTLD_LOCAL) |
|
#define | _xSfw_dlsym(handle, symbol) dlsym(handle, symbol) |
|
#define | _xSfw_dlclose(handle) dlclose(handle) |
|
#define | _xSfw_dlerror() dlerror() |
|
#define | _xSfw_clear_dlerror() dlerror() |
|
#define | _xSfw_free_errstr(str) /* nothing */ |
|
#define | XSFW_DLSYM(a, b) |
|
exSID USB FTDI access wrapper
- Author
- Thibaut VARENE
- Date
- 2016
- Note
- Primary target is libftdi (cleaner API), adaptations are made for others. Sadly, libftdi's implementation of read() is unreliable (it doesn't seem to honour the usb timeout value and doesn't properly block long enough). This is why libftd2xx is prefered (tried first) for now. Unfortunately, using libftd2xx comes with a significant performance penalty since the code is tailored for libftdi.