// VMEInterface.h: interface for the VMEInterface class. // Purpose: interface to create generic VME read and write methods. // ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////// // MS Visual C++ specific stuff: #if !defined(AFX_VMEINTERFACE_H__C6FC4A7B_79E6_11D5_9122_00E029671A14__INCLUDED_) #define AFX_VMEINTERFACE_H__C6FC4A7B_79E6_11D5_9122_00E029671A14__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 //////////////////////////////////////////////////////////////////////////////// // for printf #include // Bit-3 stuff for VME interface #define BT983 #include "c:\program files\bit3\983\v2.4\include\btapi.h" class VMEInterface { public: VMEInterface(); virtual ~VMEInterface(); void setup(unsigned int crate); void write32(unsigned int address,unsigned int value); unsigned int read32(unsigned int address); void blockWrite32(unsigned int address,unsigned int * buffer,unsigned int nwords); private: // Bit-3 specific variable bt_desc_t _unit; // Bit-3 unit handle }; #endif // !defined(AFX_VMEINTERFACE_H__C6FC4A7B_79E6_11D5_9122_00E029671A14__INCLUDED_)