Rev 82 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
61 | f9daq | 1 | #ifndef _WUSBVME_DLL_H |
2 | #define _WUSBVME_DLL_H |
||
3 | |||
4 | #include <ansi_c.h> |
||
5 | #include <windows.h> |
||
6 | #include <cvidef.h> |
||
7 | #include <ivi.h> |
||
8 | |||
9 | #include "usb.h" |
||
10 | #include "xxusb_dll.h" |
||
11 | |||
12 | extern usb_dev_handle *udev; |
||
13 | |||
14 | void _VI_FUNC WUSBVME_load (char *module_path); |
||
15 | void _VI_FUNC WUSBVME_open (char *serial); |
||
16 | void _VI_FUNC WUSBVME_close (void); |
||
17 | |||
18 | #define VME_START(NODE) WUSBVME_load(NULL);WUSBVME_open((NODE)); |
||
19 | #define VME_STOP() WUSBVME_close() |
||
20 | //#define VME_RESET() WIENVME_reset() |
||
21 | //#define VME_A24D8_R(VME,DATA) WIENVME_read8(hHandle24, 1, (VME), (DATA)) |
||
22 | #define VME_A24D16_R(VME,DATA) VME_read_16(udev, Std_NoPriv_Data, (VME), (DATA)) |
||
23 | #define VME_A24D32_R(VME,DATA) VME_read_32(udev, Std_NoPriv_Data, (VME), (DATA)) |
||
24 | //#define VME_A24D8_W(VME,DATA) WIENVME_write8(hHandle24, 1, (VME), (DATA)) |
||
25 | #define VME_A24D16_W(VME,DATA) VME_write_16(udev, Std_NoPriv_Data, (VME), (DATA)) |
||
26 | #define VME_A24D32_W(VME,DATA) VME_write_32(udev, Std_NoPriv_Data, (VME), (DATA)) |
||
27 | //#define VME_A32D8_R(VME,DATA) WIENVME_read8(hHandle32, 1, (VME), (DATA)) |
||
28 | #define VME_A32D16_R(VME,DATA) VME_read_16(udev, Ext_NoPriv_Data, (VME), (DATA)) |
||
29 | #define VME_A32D32_R(VME,DATA) VME_read_32(udev, Ext_NoPriv_Data, (VME), (DATA)) |
||
30 | //#define VME_A32D8_W(VME,DATA) WIENVME_write8(hHandle32, 1, (VME), (DATA)) |
||
31 | #define VME_A32D16_W(VME,DATA) VME_write_16(udev, Ext_NoPriv_Data, (VME), (DATA)) |
||
32 | #define VME_A32D32_W(VME,DATA) VME_write_32(udev, Ext_NoPriv_Data, (VME), (DATA)) |
||
33 | |||
34 | #endif |
||
35 |