Rev 82 | Rev 138 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 82 | Rev 100 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | #define _WUSBVME_DLL_H |
2 | #define _WUSBVME_DLL_H |
3 | 3 | ||
- | 4 | #ifdef _CVI_ |
|
4 | #include <ansi_c.h> |
5 | #include <ansi_c.h> |
5 | #include <windows.h> |
6 | #include <windows.h> |
6 | #include <cvidef.h> |
7 | #include <cvidef.h> |
7 | #include <ivi.h> |
8 | #include <ivi.h> |
8 | - | ||
9 | #include "usb.h" |
9 | #include "usb.h" |
- | 10 | #else |
|
- | 11 | #include "/usr/include/usb.h" |
|
- | 12 | #endif |
|
- | 13 | ||
10 | #include "xxusb_dll.h" |
14 | #include "xxusb_dll.h" |
11 | 15 | ||
12 | 16 | ||
13 | #define CMD_WRITE 0x000 |
17 | #define CMD_WRITE 0x000 |
14 | #define CMD_READ 0x100 |
18 | #define CMD_READ 0x100 |
Line 52... | Line 56... | ||
52 | int WIENER_VMUSB_StackGetUint32(int maxn, uint32_t *stack); |
56 | int WIENER_VMUSB_StackGetUint32(int maxn, uint32_t *stack); |
53 | int WIENER_VMUSB_StackGetUint16(int maxn, uint16_t *stack); |
57 | int WIENER_VMUSB_StackGetUint16(int maxn, uint16_t *stack); |
54 | void WIENER_VMUSB_StackPrint(); |
58 | void WIENER_VMUSB_StackPrint(); |
55 | 59 | ||
56 | 60 | ||
57 | void _VI_FUNC WIENER_VMUSB_load (char *module_path); |
61 | void _VI_FUNC WIENER_VMUSB_load (const char *module_path); |
58 | void _VI_FUNC WIENER_VMUSB_open (char *serial); |
62 | void _VI_FUNC WIENER_VMUSB_open (const char *serial); |
59 | void _VI_FUNC WIENER_VMUSB_close (void); |
63 | void _VI_FUNC WIENER_VMUSB_close (void); |
60 | 64 | ||
61 | #define WIENER_VMUSB_VME_START(NODE) WIENER_VMUSB_load(NULL);WIENER_VMUSB_open((NODE)); |
65 | #define WIENER_VMUSB_VME_START(NODE) WIENER_VMUSB_load(NULL);WIENER_VMUSB_open((NODE)); |
62 | #define WIENER_VMUSB_VME_STOP() WIENER_VMUSB_close() |
66 | #define WIENER_VMUSB_VME_STOP() WIENER_VMUSB_close() |
63 | //#define VME_RESET() WIENVME_reset() |
67 | //#define VME_RESET() WIENVME_reset() |
Line 73... | Line 77... | ||
73 | //#define VME_A32D8_W(VME,DATA) WIENVME_write8(hHandle32, 1, (VME), (DATA)) |
77 | //#define VME_A32D8_W(VME,DATA) WIENVME_write8(hHandle32, 1, (VME), (DATA)) |
74 | #define WIENER_VMUSB_VME_A32D16_W(VME,DATA) VME_write_16(WUSB_udev, Ext_NoPriv_Data, (VME), (DATA)) |
78 | #define WIENER_VMUSB_VME_A32D16_W(VME,DATA) VME_write_16(WUSB_udev, Ext_NoPriv_Data, (VME), (DATA)) |
75 | #define WIENER_VMUSB_VME_A32D32_W(VME,DATA) VME_write_32(WUSB_udev, Ext_NoPriv_Data, (VME), (DATA)) |
79 | #define WIENER_VMUSB_VME_A32D32_W(VME,DATA) VME_write_32(WUSB_udev, Ext_NoPriv_Data, (VME), (DATA)) |
76 | 80 | ||
77 | 81 | ||
78 | short __stdcall WIENER_VMUSB_VME_R( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t *Data); |
82 | extern short __stdcall WIENER_VMUSB_VME_R( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t *Data); |
79 | 83 | ||
80 | short __stdcall WIENER_VMUSB_VME_W( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t Data); |
84 | extern short __stdcall WIENER_VMUSB_VME_W( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t Data); |
81 | 85 | ||
82 | short __stdcall WIENER_VMUSB_VME_MW( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t Data); |
86 | extern short __stdcall WIENER_VMUSB_VME_MW( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t Data); |
83 | short __stdcall WIENER_VMUSB_VME_MWRST( void ); |
87 | extern short __stdcall WIENER_VMUSB_VME_MWRST( void ); |
84 | short __stdcall WIENER_VMUSB_VME_MWEXEC( void ); |
88 | extern short __stdcall WIENER_VMUSB_VME_MWEXEC( void ); |
85 | 89 | ||
86 | short __stdcall WIENER_VMUSB_VME_MR( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t *Data); |
90 | extern short __stdcall WIENER_VMUSB_VME_MR( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t *Data); |
87 | short __stdcall WIENER_VMUSB_VME_MRRST( void ); |
91 | extern short __stdcall WIENER_VMUSB_VME_MRRST( void ); |
88 | short __stdcall WIENER_VMUSB_VME_MREXEC( uint32_t *Data ); |
92 | extern short __stdcall WIENER_VMUSB_VME_MREXEC( uint32_t *Data ); |
89 | 93 | ||
90 | #endif |
94 | #endif |
91 | 95 |