32,6 → 32,8 |
short __stdcall WIENER_VMUSB_VME_MREXEC( uint32_t *Data ); |
|
|
#ifdef XXDLL |
|
short __stdcall xxusb_register_read(usb_dev_handle *hDev, short RegAddr, long *RegData); |
short __stdcall xxusb_stack_read(usb_dev_handle *hDev, short StackAddr, long *StackData); |
short __stdcall xxusb_stack_write(usb_dev_handle *hDev, short StackAddr, long *StackData); |
67,12 → 69,13 |
|
void _VI_FUNC WIENER_VMUSB_load (const char* module_path) { |
if (module_path == NULL) { |
DLLHandle = LoadLibrary("libxxusb.dll"); |
DLLHandle = LoadLibrary("c:\\Windows\\system32\\libxxusb.dll"); |
} else { |
DLLHandle = LoadLibrary(module_path); |
} |
if (!DLLHandle) { |
printf ("\n\nFailed to Open libxxusb.dll \n"); |
printf("LastError 0x%x\n",GetLastError() ); |
return; |
} |
if (!(xxusb_register_read_Ptr = (void *) GetProcAddress(DLLHandle,"xxusb_register_read"))) exit(1); |
104,6 → 107,13 |
if (!(VME_write_32_Ptr = (void*) GetProcAddress(DLLHandle,"VME_write_32"))) exit(1); |
} |
|
#else |
|
void _VI_FUNC WIENER_VMUSB_load (const char* module_path) { |
|
} |
#endif |
|
void _VI_FUNC WIENER_VMUSB_open (const char *serial) { |
|
xxusb_device_type devices[100]; |