/cvi/instr/WUSBVME_DLL/Manual_VM-USB_A00.pdf |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: instr/WUSBVME_DLL/usb.h |
=================================================================== |
--- instr/WUSBVME_DLL/usb.h (revision 61) |
+++ instr/WUSBVME_DLL/usb.h (nonexistent) |
@@ -1,394 +0,0 @@ |
-#ifndef __USB_H__ |
-#define __USB_H__ |
- |
-#include <stdlib.h> |
-#include <windows.h> |
- |
-/* |
- * 'interface' is defined somewhere in the Windows header files. This macro |
- * is deleted here to avoid conflicts and compile errors. |
- */ |
- |
-#ifdef interface |
-#undef interface |
-#endif |
- |
-/* |
- * PATH_MAX from limits.h can't be used on Windows if the dll and |
- * import libraries are build/used by different compilers |
- */ |
- |
-#define LIBUSB_PATH_MAX 512 |
- |
- |
-/* |
- * USB spec information |
- * |
- * This is all stuff grabbed from various USB specs and is pretty much |
- * not subject to change |
- */ |
- |
-/* |
- * Device and/or Interface Class codes |
- */ |
-#define USB_CLASS_PER_INTERFACE 0 /* for DeviceClass */ |
-#define USB_CLASS_AUDIO 1 |
-#define USB_CLASS_COMM 2 |
-#define USB_CLASS_HID 3 |
-#define USB_CLASS_PRINTER 7 |
-#define USB_CLASS_MASS_STORAGE 8 |
-#define USB_CLASS_HUB 9 |
-#define USB_CLASS_DATA 10 |
-#define USB_CLASS_VENDOR_SPEC 0xff |
- |
-/* |
- * Descriptor types |
- */ |
-#define USB_DT_DEVICE 0x01 |
-#define USB_DT_CONFIG 0x02 |
-#define USB_DT_STRING 0x03 |
-#define USB_DT_INTERFACE 0x04 |
-#define USB_DT_ENDPOINT 0x05 |
- |
-#define USB_DT_HID 0x21 |
-#define USB_DT_REPORT 0x22 |
-#define USB_DT_PHYSICAL 0x23 |
-#define USB_DT_HUB 0x29 |
- |
-/* |
- * Descriptor sizes per descriptor type |
- */ |
-#define USB_DT_DEVICE_SIZE 18 |
-#define USB_DT_CONFIG_SIZE 9 |
-#define USB_DT_INTERFACE_SIZE 9 |
-#define USB_DT_ENDPOINT_SIZE 7 |
-#define USB_DT_ENDPOINT_AUDIO_SIZE 9 /* Audio extension */ |
-#define USB_DT_HUB_NONVAR_SIZE 7 |
- |
- |
-/* ensure byte-packed structures */ |
-#include <pshpack1.h> |
- |
- |
-/* All standard descriptors have these 2 fields in common */ |
-struct usb_descriptor_header { |
- unsigned char bLength; |
- unsigned char bDescriptorType; |
-}; |
- |
-/* String descriptor */ |
-struct usb_string_descriptor { |
- unsigned char bLength; |
- unsigned char bDescriptorType; |
- unsigned short wData[1]; |
-}; |
- |
-/* HID descriptor */ |
-struct usb_hid_descriptor { |
- unsigned char bLength; |
- unsigned char bDescriptorType; |
- unsigned short bcdHID; |
- unsigned char bCountryCode; |
- unsigned char bNumDescriptors; |
-}; |
- |
-/* Endpoint descriptor */ |
-#define USB_MAXENDPOINTS 32 |
-struct usb_endpoint_descriptor { |
- unsigned char bLength; |
- unsigned char bDescriptorType; |
- unsigned char bEndpointAddress; |
- unsigned char bmAttributes; |
- unsigned short wMaxPacketSize; |
- unsigned char bInterval; |
- unsigned char bRefresh; |
- unsigned char bSynchAddress; |
- |
- unsigned char *extra; /* Extra descriptors */ |
- int extralen; |
-}; |
- |
-#define USB_ENDPOINT_ADDRESS_MASK 0x0f /* in bEndpointAddress */ |
-#define USB_ENDPOINT_DIR_MASK 0x80 |
- |
-#define USB_ENDPOINT_TYPE_MASK 0x03 /* in bmAttributes */ |
-#define USB_ENDPOINT_TYPE_CONTROL 0 |
-#define USB_ENDPOINT_TYPE_ISOCHRONOUS 1 |
-#define USB_ENDPOINT_TYPE_BULK 2 |
-#define USB_ENDPOINT_TYPE_INTERRUPT 3 |
- |
-/* Interface descriptor */ |
-#define USB_MAXINTERFACES 32 |
-struct usb_interface_descriptor { |
- unsigned char bLength; |
- unsigned char bDescriptorType; |
- unsigned char bInterfaceNumber; |
- unsigned char bAlternateSetting; |
- unsigned char bNumEndpoints; |
- unsigned char bInterfaceClass; |
- unsigned char bInterfaceSubClass; |
- unsigned char bInterfaceProtocol; |
- unsigned char iInterface; |
- |
- struct usb_endpoint_descriptor *endpoint; |
- |
- unsigned char *extra; /* Extra descriptors */ |
- int extralen; |
-}; |
- |
-#define USB_MAXALTSETTING 128 /* Hard limit */ |
- |
-struct usb_interface { |
- struct usb_interface_descriptor *altsetting; |
- |
- int num_altsetting; |
-}; |
- |
-/* Configuration descriptor information.. */ |
-#define USB_MAXCONFIG 8 |
-struct usb_config_descriptor { |
- unsigned char bLength; |
- unsigned char bDescriptorType; |
- unsigned short wTotalLength; |
- unsigned char bNumInterfaces; |
- unsigned char bConfigurationValue; |
- unsigned char iConfiguration; |
- unsigned char bmAttributes; |
- unsigned char MaxPower; |
- |
- struct usb_interface *interface; |
- |
- unsigned char *extra; /* Extra descriptors */ |
- int extralen; |
-}; |
- |
-/* Device descriptor */ |
-struct usb_device_descriptor { |
- unsigned char bLength; |
- unsigned char bDescriptorType; |
- unsigned short bcdUSB; |
- unsigned char bDeviceClass; |
- unsigned char bDeviceSubClass; |
- unsigned char bDeviceProtocol; |
- unsigned char bMaxPacketSize0; |
- unsigned short idVendor; |
- unsigned short idProduct; |
- unsigned short bcdDevice; |
- unsigned char iManufacturer; |
- unsigned char iProduct; |
- unsigned char iSerialNumber; |
- unsigned char bNumConfigurations; |
-}; |
- |
-struct usb_ctrl_setup { |
- unsigned char bRequestType; |
- unsigned char bRequest; |
- unsigned short wValue; |
- unsigned short wIndex; |
- unsigned short wLength; |
-}; |
- |
-/* |
- * Standard requests |
- */ |
-#define USB_REQ_GET_STATUS 0x00 |
-#define USB_REQ_CLEAR_FEATURE 0x01 |
-/* 0x02 is reserved */ |
-#define USB_REQ_SET_FEATURE 0x03 |
-/* 0x04 is reserved */ |
-#define USB_REQ_SET_ADDRESS 0x05 |
-#define USB_REQ_GET_DESCRIPTOR 0x06 |
-#define USB_REQ_SET_DESCRIPTOR 0x07 |
-#define USB_REQ_GET_CONFIGURATION 0x08 |
-#define USB_REQ_SET_CONFIGURATION 0x09 |
-#define USB_REQ_GET_INTERFACE 0x0A |
-#define USB_REQ_SET_INTERFACE 0x0B |
-#define USB_REQ_SYNCH_FRAME 0x0C |
- |
-#define USB_TYPE_STANDARD (0x00 << 5) |
-#define USB_TYPE_CLASS (0x01 << 5) |
-#define USB_TYPE_VENDOR (0x02 << 5) |
-#define USB_TYPE_RESERVED (0x03 << 5) |
- |
-#define USB_RECIP_DEVICE 0x00 |
-#define USB_RECIP_INTERFACE 0x01 |
-#define USB_RECIP_ENDPOINT 0x02 |
-#define USB_RECIP_OTHER 0x03 |
- |
-/* |
- * Various libusb API related stuff |
- */ |
- |
-#define USB_ENDPOINT_IN 0x80 |
-#define USB_ENDPOINT_OUT 0x00 |
- |
-/* Error codes */ |
-#define USB_ERROR_BEGIN 500000 |
- |
-/* |
- * This is supposed to look weird. This file is generated from autoconf |
- * and I didn't want to make this too complicated. |
- */ |
-#define USB_LE16_TO_CPU(x) |
- |
-/* Data types */ |
-/* struct usb_device; */ |
-/* struct usb_bus; */ |
- |
-struct usb_device { |
- struct usb_device *next, *prev; |
- |
- char filename[LIBUSB_PATH_MAX]; |
- |
- struct usb_bus *bus; |
- |
- struct usb_device_descriptor descriptor; |
- struct usb_config_descriptor *config; |
- |
- void *dev; /* Darwin support */ |
- |
- unsigned char devnum; |
- |
- unsigned char num_children; |
- struct usb_device **children; |
-}; |
- |
-struct usb_bus { |
- struct usb_bus *next, *prev; |
- |
- char dirname[LIBUSB_PATH_MAX]; |
- |
- struct usb_device *devices; |
- unsigned long location; |
- |
- struct usb_device *root_dev; |
-}; |
- |
-/* Version information, Windows specific */ |
-struct usb_version { |
- struct { |
- int major; |
- int minor; |
- int micro; |
- int nano; |
- } dll; |
- struct { |
- int major; |
- int minor; |
- int micro; |
- int nano; |
- } driver; |
-}; |
- |
- |
-struct usb_dev_handle; |
-typedef struct usb_dev_handle usb_dev_handle; |
- |
-/* Variables */ |
-//#ifndef __USB_C__ |
-//#define usb_busses usb_get_busses() |
-//#endif |
- |
- |
- |
-#include <poppack.h> |
- |
- |
-#ifdef __cplusplus |
-extern "C" { |
-#endif |
- |
- /* Function prototypes */ |
- |
- /* usb.c */ |
- usb_dev_handle *usb_open(struct usb_device *dev); |
- int usb_close(usb_dev_handle *dev); |
- int usb_get_string(usb_dev_handle *dev, int index, int langid, char *buf, |
- size_t buflen); |
- int usb_get_string_simple(usb_dev_handle *dev, int index, char *buf, |
- size_t buflen); |
- |
- /* descriptors.c */ |
- int usb_get_descriptor_by_endpoint(usb_dev_handle *udev, int ep, |
- unsigned char type, unsigned char index, |
- void *buf, int size); |
- int usb_get_descriptor(usb_dev_handle *udev, unsigned char type, |
- unsigned char index, void *buf, int size); |
- |
- /* <arch>.c */ |
- int usb_bulk_write(usb_dev_handle *dev, int ep, char *bytes, int size, |
- int timeout); |
- int usb_bulk_read(usb_dev_handle *dev, int ep, char *bytes, int size, |
- int timeout); |
- int usb_interrupt_write(usb_dev_handle *dev, int ep, char *bytes, int size, |
- int timeout); |
- int usb_interrupt_read(usb_dev_handle *dev, int ep, char *bytes, int size, |
- int timeout); |
- int usb_control_msg(usb_dev_handle *dev, int requesttype, int request, |
- int value, int index, char *bytes, int size, |
- int timeout); |
- int usb_set_configuration(usb_dev_handle *dev, int configuration); |
- int usb_claim_interface(usb_dev_handle *dev, int interface); |
- int usb_release_interface(usb_dev_handle *dev, int interface); |
- int usb_set_altinterface(usb_dev_handle *dev, int alternate); |
- int usb_resetep(usb_dev_handle *dev, unsigned int ep); |
- int usb_clear_halt(usb_dev_handle *dev, unsigned int ep); |
- int usb_reset(usb_dev_handle *dev); |
- |
- char *usb_strerror(void); |
- |
- void usb_init(void); |
- void usb_set_debug(int level); |
- int usb_find_busses(void); |
- int usb_find_devices(void); |
- struct usb_device *usb_device(usb_dev_handle *dev); |
- struct usb_bus *usb_get_busses(void); |
- |
- |
- /* Windows specific functions */ |
- |
- #define LIBUSB_HAS_INSTALL_SERVICE_NP 1 |
- int usb_install_service_np(void); |
- void CALLBACK usb_install_service_np_rundll(HWND wnd, HINSTANCE instance, |
- LPSTR cmd_line, int cmd_show); |
- |
- #define LIBUSB_HAS_UNINSTALL_SERVICE_NP 1 |
- int usb_uninstall_service_np(void); |
- void CALLBACK usb_uninstall_service_np_rundll(HWND wnd, HINSTANCE instance, |
- LPSTR cmd_line, int cmd_show); |
- |
- #define LIBUSB_HAS_INSTALL_DRIVER_NP 1 |
- int usb_install_driver_np(const char *inf_file); |
- void CALLBACK usb_install_driver_np_rundll(HWND wnd, HINSTANCE instance, |
- LPSTR cmd_line, int cmd_show); |
- |
- #define LIBUSB_HAS_TOUCH_INF_FILE_NP 1 |
- int usb_touch_inf_file_np(const char *inf_file); |
- void CALLBACK usb_touch_inf_file_np_rundll(HWND wnd, HINSTANCE instance, |
- LPSTR cmd_line, int cmd_show); |
- |
- #define LIBUSB_HAS_INSTALL_NEEDS_RESTART_NP 1 |
- int usb_install_needs_restart_np(void); |
- |
- const struct usb_version *usb_get_version(void); |
- |
- int usb_isochronous_setup_async(usb_dev_handle *dev, void **context, |
- unsigned char ep, int pktsize); |
- int usb_bulk_setup_async(usb_dev_handle *dev, void **context, |
- unsigned char ep); |
- int usb_interrupt_setup_async(usb_dev_handle *dev, void **context, |
- unsigned char ep); |
- |
- int usb_submit_async(void *context, char *bytes, int size); |
- int usb_reap_async(void *context, int timeout); |
- int usb_reap_async_nocancel(void *context, int timeout); |
- int usb_cancel_async(void *context); |
- int usb_free_async(void **context); |
- |
- |
-#ifdef __cplusplus |
-} |
-#endif |
- |
-#endif /* __USB_H__ */ |
- |
Index: instr/WUSBVME_DLL/wusbvme_dll.c |
=================================================================== |
--- instr/WUSBVME_DLL/wusbvme_dll.c (revision 61) |
+++ instr/WUSBVME_DLL/wusbvme_dll.c (nonexistent) |
@@ -1,50 +0,0 @@ |
-#include "wusbvme_dll.h" |
- |
-usb_dev_handle *udev; |
-static HINSTANCE DLLHandle; |
- |
-void _VI_FUNC WUSBVME_load (char* module_path) |
-{ |
- if (module_path == NULL) |
- DLLHandle = LoadLibrary("libxxusb.dll"); |
- else |
- DLLHandle = LoadLibrary(module_path); |
- |
- if (!(xxusb_register_read_Ptr = (void*) GetProcAddress(DLLHandle,"xxusb_register_read"))) exit(1); |
- if (!(xxusb_stack_read_Ptr = (void*) GetProcAddress(DLLHandle,"xxusb_stack_read"))) exit(1); |
- if (!(xxusb_stack_write_Ptr = (void*) GetProcAddress(DLLHandle,"xxusb_stack_write"))) exit(1); |
- if (!(xxusb_stack_execute_Ptr = (void*) GetProcAddress(DLLHandle,"xxusb_stack_execute"))) exit(1); |
- if (!(xxusb_register_write_Ptr = (void*) GetProcAddress(DLLHandle,"xxusb_register_write"))) exit(1); |
- if (!(xxusb_usbfifo_read_Ptr = (void*) GetProcAddress(DLLHandle,"xxusb_usbfifo_read"))) exit(1); |
- if (!(xxusb_bulk_read_Ptr = (void*) GetProcAddress(DLLHandle,"xxusb_bulk_read"))) exit(1); |
- if (!(xxusb_bulk_write_Ptr = (void*) GetProcAddress(DLLHandle,"xxusb_bulk_write"))) exit(1); |
- if (!(xxusb_reset_toggle_Ptr = (void*) GetProcAddress(DLLHandle,"xxusb_reset_toggle"))) exit(1); |
- |
- if (!(xxusb_devices_find_Ptr = (void*) GetProcAddress(DLLHandle,"xxusb_devices_find"))) exit(1); |
- if (!(xxusb_device_close_Ptr = (void*) GetProcAddress(DLLHandle,"xxusb_device_close"))) exit(1); |
- if (!(xxusb_device_open_Ptr = (void*) GetProcAddress(DLLHandle,"xxusb_device_open"))) exit(1); |
- if (!(xxusb_flash_program_Ptr = (void*) GetProcAddress(DLLHandle,"xxusb_flash_program"))) exit(1); |
- if (!(xxusb_flashblock_program_Ptr = (void*) GetProcAddress(DLLHandle,"xxusb_flashblock_program"))) exit(1); |
- if (!(xxusb_serial_open_Ptr = (void*) GetProcAddress(DLLHandle,"xxusb_serial_open"))) exit(1); |
- if (!(VME_register_write_Ptr = (void*) GetProcAddress(DLLHandle,"VME_register_write"))) exit(1); |
- if (!(VME_register_read_Ptr = (void*) GetProcAddress(DLLHandle,"VME_register_read"))) exit(1); |
- if (!(VME_LED_settings_Ptr = (void*) GetProcAddress(DLLHandle,"VME_LED_settings"))) exit(1); |
- if (!(VME_DGG_Ptr = (void*) GetProcAddress(DLLHandle,"VME_DGG"))) exit(1); |
- if (!(VME_Output_settings_Ptr = (void*) GetProcAddress(DLLHandle,"VME_Output_settings"))) exit(1); |
- if (!(VME_read_16_Ptr = (void*) GetProcAddress(DLLHandle,"VME_read_16"))) exit(1); |
- if (!(VME_read_32_Ptr = (void*) GetProcAddress(DLLHandle,"VME_read_32"))) exit(1); |
- if (!(VME_BLT_read_32_Ptr = (void*) GetProcAddress(DLLHandle,"VME_BLT_read_32"))) exit(1); |
- if (!(VME_write_16_Ptr = (void*) GetProcAddress(DLLHandle,"VME_write_16"))) exit(1); |
- if (!(VME_write_32_Ptr = (void*) GetProcAddress(DLLHandle,"VME_write_32"))) exit(1); |
-} |
- |
-void _VI_FUNC WUSBVME_open (char *serial) |
-{ |
- if (serial != NULL) |
- udev = xxusb_serial_open(serial); |
-} |
- |
-void _VI_FUNC WUSBVME_close (void) |
-{ |
- if (udev) xxusb_device_close(udev); |
-} |
Index: instr/WUSBVME_DLL/wusbvme_dll.fp |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/instr/WUSBVME_DLL/wusbvme_dll.fp |
---|
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-application/octet-stream |
\ No newline at end of property |
Index: instr/WUSBVME_DLL/wusbvme_dll.h |
=================================================================== |
--- instr/WUSBVME_DLL/wusbvme_dll.h (revision 61) |
+++ instr/WUSBVME_DLL/wusbvme_dll.h (nonexistent) |
@@ -1,35 +0,0 @@ |
-#ifndef _WUSBVME_DLL_H |
-#define _WUSBVME_DLL_H |
- |
-#include <ansi_c.h> |
-#include <windows.h> |
-#include <cvidef.h> |
-#include <ivi.h> |
- |
-#include "usb.h" |
-#include "xxusb_dll.h" |
- |
-extern usb_dev_handle *udev; |
- |
-void _VI_FUNC WUSBVME_load (char *module_path); |
-void _VI_FUNC WUSBVME_open (char *serial); |
-void _VI_FUNC WUSBVME_close (void); |
- |
-#define VME_START(NODE) WUSBVME_load(NULL);WUSBVME_open((NODE)); |
-#define VME_STOP() WUSBVME_close() |
-//#define VME_RESET() WIENVME_reset() |
-//#define VME_A24D8_R(VME,DATA) WIENVME_read8(hHandle24, 1, (VME), (DATA)) |
-#define VME_A24D16_R(VME,DATA) VME_read_16(udev, Std_NoPriv_Data, (VME), (DATA)) |
-#define VME_A24D32_R(VME,DATA) VME_read_32(udev, Std_NoPriv_Data, (VME), (DATA)) |
-//#define VME_A24D8_W(VME,DATA) WIENVME_write8(hHandle24, 1, (VME), (DATA)) |
-#define VME_A24D16_W(VME,DATA) VME_write_16(udev, Std_NoPriv_Data, (VME), (DATA)) |
-#define VME_A24D32_W(VME,DATA) VME_write_32(udev, Std_NoPriv_Data, (VME), (DATA)) |
-//#define VME_A32D8_R(VME,DATA) WIENVME_read8(hHandle32, 1, (VME), (DATA)) |
-#define VME_A32D16_R(VME,DATA) VME_read_16(udev, Ext_NoPriv_Data, (VME), (DATA)) |
-#define VME_A32D32_R(VME,DATA) VME_read_32(udev, Ext_NoPriv_Data, (VME), (DATA)) |
-//#define VME_A32D8_W(VME,DATA) WIENVME_write8(hHandle32, 1, (VME), (DATA)) |
-#define VME_A32D16_W(VME,DATA) VME_write_16(udev, Ext_NoPriv_Data, (VME), (DATA)) |
-#define VME_A32D32_W(VME,DATA) VME_write_32(udev, Ext_NoPriv_Data, (VME), (DATA)) |
- |
-#endif |
- |
Index: instr/WUSBVME_DLL/xxusb_dll.h |
=================================================================== |
--- instr/WUSBVME_DLL/xxusb_dll.h (revision 61) |
+++ instr/WUSBVME_DLL/xxusb_dll.h (nonexistent) |
@@ -1,87 +0,0 @@ |
-#ifndef _WIVUSB_DLL_H |
-#define _WIVUSB_DLL_H |
- |
-typedef unsigned short ADDRESS_MODIFIER; |
- |
-#define Std_Sup_Data (ADDRESS_MODIFIER)0x3d |
-#define Std_Sup_Prog (ADDRESS_MODIFIER)0x3e |
-#define Std_NoPriv_Data (ADDRESS_MODIFIER)0x39 |
-#define Std_NoPriv_Prog (ADDRESS_MODIFIER)0x3a |
- |
-#define Short_Sup (ADDRESS_MODIFIER)0x2d |
-#define Short_NoPriv (ADDRESS_MODIFIER)0x29 |
- |
-#define Ext_Sup_Data (ADDRESS_MODIFIER)0x0d |
-#define Ext_Sup_Prog (ADDRESS_MODIFIER)0x0e |
-#define Ext_NoPriv_Data (ADDRESS_MODIFIER)0x09 |
-#define Ext_NoPriv_Prog (ADDRESS_MODIFIER)0x0a |
- |
-struct xxusb_device_typ |
-{ |
- struct usb_device *usbdev; |
- char SerialString[7]; |
-}; |
- |
- |
-typedef struct xxusb_device_typ xxusb_device_type; |
- |
-#define xxusb_register_read (*xxusb_register_read_Ptr) |
-#define xxusb_stack_read (*xxusb_stack_read_Ptr) |
-#define xxusb_stack_write (*xxusb_stack_write_Ptr) |
-#define xxusb_stack_execute (*xxusb_stack_execute_Ptr) |
-#define xxusb_register_write (*xxusb_register_write_Ptr) |
-#define xxusb_usbfifo_read (*xxusb_usbfifo_read_Ptr) |
-#define xxusb_bulk_read (*xxusb_bulk_read_Ptr) |
-#define xxusb_bulk_write (*xxusb_bulk_write_Ptr) |
-#define xxusb_reset_toggle (*xxusb_reset_toggle_Ptr) |
- |
-#define xxusb_devices_find (*xxusb_devices_find_Ptr) |
-#define xxusb_device_close (*xxusb_device_close_Ptr) |
-#define xxusb_device_open (*xxusb_device_open_Ptr) |
-#define xxusb_flash_program (*xxusb_flash_program_Ptr) |
-#define xxusb_flashblock_program (*xxusb_flashblock_program_Ptr) |
-#define xxusb_serial_open (*xxusb_serial_open_Ptr) |
- |
-#define VME_register_write (*VME_register_write_Ptr) |
-#define VME_register_read (*VME_register_read_Ptr) |
-#define VME_LED_settings (*VME_LED_settings_Ptr) |
-#define VME_DGG (*VME_DGG_Ptr) |
-#define VME_Output_settings (*VME_Output_settings_Ptr) |
-#define VME_read_16 (*VME_read_16_Ptr) |
-#define VME_read_32 (*VME_read_32_Ptr) |
-#define VME_BLT_read_32 (*VME_BLT_read_32_Ptr) |
-#define VME_write_16 (*VME_write_16_Ptr) |
-#define VME_write_32 (*VME_write_32_Ptr) |
- |
-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); |
-short __stdcall xxusb_stack_execute(usb_dev_handle *hDev, long *StackData); |
-short __stdcall xxusb_register_write(usb_dev_handle *hDev, short RegAddr, long RegData); |
-short __stdcall xxusb_usbfifo_read(usb_dev_handle *hDev, long *DataBuffer, short lDataLen, int timeout); |
-short __stdcall xxusb_bulk_read(usb_dev_handle *hDev, char *DataBuffer, short lDataLen, int timeout); |
-short __stdcall xxusb_bulk_write(usb_dev_handle *hDev, char *DataBuffer, short lDataLen, int timeout); |
-short __stdcall xxusb_reset_toggle(usb_dev_handle *hDev); |
- |
-short __stdcall xxusb_devices_find(xxusb_device_type *xxusbDev); |
-short __stdcall xxusb_device_close(usb_dev_handle *hDev); |
-usb_dev_handle* __stdcall xxusb_device_open(struct usb_device *dev); |
-short __stdcall xxusb_flash_program(usb_dev_handle *hDev, char *config, short nsect); |
-short __stdcall xxusb_flashblock_program(usb_dev_handle *hDev, UCHAR *config); |
-usb_dev_handle* __stdcall xxusb_serial_open(char *SerialString); |
- |
-short __stdcall VME_register_write(usb_dev_handle *hdev, long VME_Address, long Data); |
-short __stdcall VME_register_read(usb_dev_handle *hdev, long VME_Address, long *Data); |
-short __stdcall VME_LED_settings(usb_dev_handle *hdev, int LED, int code, int invert, int latch); |
- |
-short __stdcall VME_DGG(usb_dev_handle *hdev, unsigned short channel, unsigned short trigger,unsigned short output, long delay, unsigned short gate, unsigned short invert, unsigned short latch); |
- |
-short __stdcall VME_Output_settings(usb_dev_handle *hdev, int Channel, int code, int invert, int latch); |
- |
-short __stdcall VME_read_16(usb_dev_handle *hdev,short Address_Modifier, long VME_Address, long *Data); |
-short __stdcall VME_read_32(usb_dev_handle *hdev, short Address_Modifier, long VME_Address, long *Data); |
-short __stdcall VME_BLT_read_32(usb_dev_handle *hdev, short Address_Modifier, int count, long VME_Address, long Data[]); |
-short __stdcall VME_write_16(usb_dev_handle *hdev, short Address_Modifier, long VME_Address, long Data); |
-short __stdcall VME_write_32(usb_dev_handle *hdev, short Address_Modifier, long VME_Address, long Data); |
- |
-#endif |
Index: instr/WUSBVME_DLL/xxusbdll.h |
=================================================================== |
--- instr/WUSBVME_DLL/xxusbdll.h (revision 61) |
+++ instr/WUSBVME_DLL/xxusbdll.h (nonexistent) |
@@ -1,119 +0,0 @@ |
-#define EXPORT extern "C" _declspec(dllexport) |
- |
-#define XXUSB_WIENER_VENDOR_ID 0x16DC /* Wiener, Plein & Baus */ |
-#define XXUSB_VMUSB_PRODUCT_ID 0x000B /* VM-USB */ |
-#define XXUSB_CCUSB_PRODUCT_ID 0x0001 /* CC-USB */ |
-#define XXUSB_ENDPOINT_OUT 2 /* Endpoint 2 Out*/ |
-#define XXUSB_ENDPOINT_IN 0x86 /* Endpoint 6 In */ |
-#define XXUSB_FIRMWARE_REGISTER 0 |
-#define XXUSB_GLOBAL_REGISTER 1 |
-#define XXUSB_ACTION_REGISTER 10 |
-#define XXUSB_DELAYS_REGISTER 2 |
-#define XXUSB_WATCHDOG_REGISTER 3 |
-#define XXUSB_SELLEDA_REGISTER 6 |
-#define XXUSB_SELNIM_REGISTER 7 |
-#define XXUSB_SELLEDB_REGISTER 4 |
-#define XXUSB_SERIAL_REGISTER 15 |
-#define XXUSB_LAMMASK_REGISTER 8 |
-#define XXUSB_LAM_REGISTER 12 |
-#define XXUSB_READOUT_STACK 2 |
-#define XXUSB_SCALER_STACK 3 |
-#define XXUSB_NAF_DIRECT 12 |
-#define LIBUSB_PATH_MAX 512 |
-#define XXUSB_CC_NUMSEC 512 |
-#define XXUSB_VM_NUMSEC 830 |
- |
-struct usb_dev_handle; |
-typedef struct usb_dev_handle usb_dev_handle; |
- |
-struct usb_device_descriptor { |
- unsigned char bLength; |
- unsigned char bDescriptorType; |
- unsigned short bcdUSB; |
- unsigned char bDeviceClass; |
- unsigned char bDeviceSubClass; |
- unsigned char bDeviceProtocol; |
- unsigned char bMaxPacketSize0; |
- unsigned short idVendor; |
- unsigned short idProduct; |
- unsigned short bcdDevice; |
- unsigned char iManufacturer; |
- unsigned char iProduct; |
- unsigned char iSerialNumber; |
- unsigned char bNumConfigurations; |
-}; |
- |
-struct usb_device { |
- struct usb_device *next, *prev; |
- |
- char filename[LIBUSB_PATH_MAX]; |
- |
- struct usb_bus *bus; |
- |
- struct usb_device_descriptor descriptor; |
- struct usb_config_descriptor *config; |
- |
- void *dev; /* Darwin support */ |
- |
- unsigned char devnum; |
- |
- unsigned char num_children; |
- struct usb_device **children; |
-}; |
- |
-struct xxusb_device_typ |
-{ |
- struct usb_device *usbdev; |
- char SerialString[7]; |
-}; |
- |
- |
-typedef struct xxusb_device_typ xxusb_device_type; |
- |
-typedef struct usb_bus usb_busx; |
-typedef unsigned char UCHAR; |
- |
-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); |
-short __stdcall xxusb_stack_execute(usb_dev_handle *hDev, long *StackData); |
-short __stdcall xxusb_register_write(usb_dev_handle *hDev, short RegAddr, long RegData); |
-short __stdcall xxusb_usbfifo_read(usb_dev_handle *hDev, long *DataBuffer, short lDataLen, int timeout); |
-short __stdcall xxusb_bulk_read(usb_dev_handle *hDev, char *DataBuffer, short lDataLen, int timeout); |
-short __stdcall xxusb_bulk_write(usb_dev_handle *hDev, char *DataBuffer, short lDataLen, int timeout); |
-short __stdcall xxusb_reset_toggle(usb_dev_handle *hDev); |
- |
-short __stdcall xxusb_devices_find(xxusb_device_type *xxusbDev); |
-short __stdcall xxusb_device_close(usb_dev_handle *hDev); |
-usb_dev_handle* __stdcall xxusb_device_open(struct usb_device *dev); |
-short __stdcall xxusb_flash_program(usb_dev_handle *hDev, char *config, short nsect); |
-short __stdcall xxusb_flashblock_program(usb_dev_handle *hDev, UCHAR *config); |
-usb_dev_handle* __stdcall xxusb_serial_open(char *SerialString); |
- |
-short __stdcall VME_register_write(usb_dev_handle *hdev, long VME_Address, long Data); |
-short __stdcall VME_register_read(usb_dev_handle *hdev, long VME_Address, long *Data); |
-short __stdcall VME_LED_settings(usb_dev_handle *hdev, int LED, int code, int invert, int latch); |
- |
-short __stdcall VME_DGG(usb_dev_handle *hdev, unsigned short channel, unsigned short trigger,unsigned short output, long delay, unsigned short gate, unsigned short invert, unsigned short latch); |
- |
-short __stdcall VME_Output_settings(usb_dev_handle *hdev, int Channel, int code, int invert, int latch); |
- |
-short __stdcall VME_read_16(usb_dev_handle *hdev,short Address_Modifier, long VME_Address, long *Data); |
-short __stdcall VME_read_32(usb_dev_handle *hdev, short Address_Modifier, long VME_Address, long *Data); |
-short __stdcall VME_BLT_read_32(usb_dev_handle *hdev, short Address_Modifier, int count, long VME_Address, long Data[]); |
-short __stdcall VME_write_16(usb_dev_handle *hdev, short Address_Modifier, long VME_Address, long Data); |
-short __stdcall VME_write_32(usb_dev_handle *hdev, short Address_Modifier, long VME_Address, long Data); |
- |
-short __stdcall CAMAC_DGG(usb_dev_handle *hdev, short channel, short trigger, short output, int delay, int gate, short invert, short latch); |
-short __stdcall CAMAC_register_read(usb_dev_handle *hdev, int A, long *Data); |
-short __stdcall CAMAC_register_write(usb_dev_handle *hdev, int A, long Data); |
-short __stdcall CAMAC_LED_settings(usb_dev_handle *hdev, int LED, int code, int invert, int latch); |
-short __stdcall CAMAC_Output_settings(usb_dev_handle *hdev, int Channel, int code, int invert, int latch); |
-short __stdcall CAMAC_read_LAM_mask(usb_dev_handle *hdev, long *Data); |
-short __stdcall CAMAC_write_LAM_mask(usb_dev_handle *hdev, long Data); |
- |
-short __stdcall CAMAC_write(usb_dev_handle *hdev, int N, int A, int F, long Data, int *Q, int *X); |
-short __stdcall CAMAC_read(usb_dev_handle *hdev, int N, int A, int F, long *Data, int *Q, int *X); |
-short __stdcall CAMAC_Z(usb_dev_handle *hdev); |
-short __stdcall CAMAC_C(usb_dev_handle *hdev); |
-short __stdcall CAMAC_I(usb_dev_handle *hdev, int inhibit); |