TI's "MSP430 USB HID Windows API Programmer's Guide" (slaa453) mentions several routines that developers have to call from a host-side program in order to implement a USB interface, among them: HID_Init(), HID_Open(), HID_Close(), etc. Unfortunately, no mention is made of the DLL that incorporates them. Several DLLs come with their software, however, including the following in:
C:\Program Files (x86)\Texas Instruments\MSP430 Windows HID API\
mfc90.dll
mfcu90.dll
mfcm90.dll
mfcm90u.dll
My preferred programming language is Delphi (because I happen to have access to a Delphi compiler) and I have tried to call the HID_Init routine inside one or all of these DLLs from my Delphi code, but without success. The program compiles with no errors, but usually responds with something like:
"The procedure entry point HID_Init could not be located in the dynamic load library."
followed by:
Assertion failure: "(!" SetThreadContext failed ")" in ..\win32src\thread32.cpp
at line 422.
I know USB is not everyone's favourite project on an MCU, but is there anybody out there with some experience in these matters who can help me. Thanks.