Rev 87 | Rev 123 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 87 | Rev 100 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #include "vme.h" |
1 | #include "vme.h" |
- | 2 | ||
- | 3 | ||
- | 4 | short __stdcall VME_R( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t *Data); |
|
- | 5 | ||
- | 6 | short __stdcall VME_W( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t Data); |
|
- | 7 | ||
- | 8 | short __stdcall VME_MW( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t Data); |
|
- | 9 | short __stdcall VME_MWRST( void ); |
|
- | 10 | short __stdcall VME_MWEXEC( void ); |
|
- | 11 | ||
- | 12 | short __stdcall VME_MR( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t *Data); |
|
- | 13 | short __stdcall VME_MRRST( void ); |
|
- | 14 | short __stdcall VME_MREXEC( uint32_t *Data ); |
|
2 | 15 | ||
3 | /* |
16 | /* |
4 | #ifdef _CVI_ |
17 | #ifdef _CVI_ |
5 | #include "c:\home\CVI\instr\WIENVME_DLL\wienvme_dll.h" |
18 | #include "c:\home\CVI\instr\WIENVME_DLL\wienvme_dll.h" |
6 | #else |
19 | #else |
Line 17... | Line 30... | ||
17 | int VME_CONNECTED(){ |
30 | int VME_CONNECTED(){ |
18 | 31 | ||
19 | return VME_interface; |
32 | return VME_interface; |
20 | } |
33 | } |
21 | 34 | ||
22 | short VME_START (int interface) |
35 | short __stdcall VME_START (int interface) |
23 | { |
36 | { |
24 | 37 | ||
25 | 38 | ||
26 | VME_interface=interface; |
39 | VME_interface=interface; |
27 | switch (VME_interface){ |
40 | switch (VME_interface){ |
Line 83... | Line 96... | ||
83 | } |
96 | } |
84 | 97 | ||
85 | return 0; |
98 | return 0; |
86 | } |
99 | } |
87 | 100 | ||
88 | short VME_STOP () |
101 | short __stdcall VME_STOP () |
89 | { |
102 | { |
90 | switch (VME_interface){ |
103 | switch (VME_interface){ |
91 | case CAEN_V1718: |
104 | case CAEN_V1718: |
92 | 105 | ||
93 | CAEN_VME_STOP( ); |
106 | CAEN_VME_STOP( ); |