/cvi/instr/vme/vme.c |
---|
1,5 → 1,18 |
#include "vme.h" |
short __stdcall VME_R( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t *Data); |
short __stdcall VME_W( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t Data); |
short __stdcall VME_MW( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t Data); |
short __stdcall VME_MWRST( void ); |
short __stdcall VME_MWEXEC( void ); |
short __stdcall VME_MR( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t *Data); |
short __stdcall VME_MRRST( void ); |
short __stdcall VME_MREXEC( uint32_t *Data ); |
/* |
#ifdef _CVI_ |
#include "c:\home\CVI\instr\WIENVME_DLL\wienvme_dll.h" |
19,7 → 32,7 |
return VME_interface; |
} |
short VME_START (int interface) |
short __stdcall VME_START (int interface) |
{ |
85,7 → 98,7 |
return 0; |
} |
short VME_STOP () |
short __stdcall VME_STOP () |
{ |
switch (VME_interface){ |
case CAEN_V1718: |
/cvi/instr/vme/vme.h |
---|
3,6 → 3,12 |
#include <stdint.h> |
#ifndef _CVI_ |
#define __stdcall |
#define UCHAR unsigned char |
#define _VI_FUNC |
#endif |
#define CAEN_V1718 0 |
#define WIENER_VMEMM 1 |
#define WIENER_VMUSB 2 |
57,17 → 63,17 |
#define VME_MREXEC (*VME_MREXEC_Ptr) |
short __stdcall VME_R( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t *Data); |
extern short __stdcall VME_R( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t *Data); |
short __stdcall VME_W( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t Data); |
extern short __stdcall VME_W( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t Data); |
short __stdcall VME_MW( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t Data); |
short __stdcall VME_MWRST( void ); |
short __stdcall VME_MWEXEC( void ); |
extern short __stdcall VME_MW( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t Data); |
extern short __stdcall VME_MWRST( void ); |
extern short __stdcall VME_MWEXEC( void ); |
short __stdcall VME_MR( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t *Data); |
short __stdcall VME_MRRST( void ); |
short __stdcall VME_MREXEC( uint32_t *Data ); |
extern short __stdcall VME_MR( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t *Data); |
extern short __stdcall VME_MRRST( void ); |
extern short __stdcall VME_MREXEC( uint32_t *Data ); |
#endif |
/cvi/instr/vme/Makefile |
---|
0,0 → 1,23 |
libvme.a: vme.c ../WUSBVME_DLL/wusbvme_dll.c ../CAENV1718/CAENV1718.c ../WIENVME_DLL |
g++ -c -DLINUX -I../WIENVME_DLL -I../WUSBVME_DLL -I../CAENV1718 -shared vme.c -o vme.o |
g++ -c -DLINUX -I../CAENV1718 ../CAENV1718/CAENV1718.c -o CAENV1718.o |
g++ -c -fpermissive -DLINUX -I../WUSBVME_DLL ../WUSBVME_DLL/wusbvme_dll.c -o wusbvme_dll.o |
g++ -c -fpermissive -DLINUX -I../WIENVME_DLL ../WIENVME_DLL/wienvme_dll.c -o wienvme_dll.o |
ar r libvme.a CAENV1718.o wusbvme_dll.o wienvme_dll.o vme.o |
.cc.o: |
$(CXX) -c $< |
ar r $(LIBFILE) $@ |
.cpp.o: |
$(CXX) -c $< |
ar r $(LIBFILE) $@ |
.c.o: |
$(CXX) -c $< |
ar r $(LIBFILE) $@ |
wusbxx_dll.o:wusbxx_dll.c wusbxx_dll.h |
libxxusb.o: libxxusb.cpp libxxusb.h |