Subversion Repositories f9daq

Rev

Rev 78 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. #ifndef __PCIVME_NI_H__
  2. #define __PCIVME_NI_H__
  3.  
  4. //-------------------------------------------------------------------------------------------
  5. // pcivme_ni.h - header for ni-labview dll for ARW pcivme interface
  6. //
  7. // (c) 1999-2002 ARW Elektronik, Germany
  8. //
  9. // this source code is published under GPL (Open Source). You can use, redistrubute and
  10. // modify it unless this header  is  not modified or deleted. No warranty is given that
  11. // this software will work like expected.
  12. // This product is not authorized for use as critical component in life support systems
  13. // wihout the express written approval of ARW Elektronik Germany.
  14. //
  15. // Please announce changes and hints to ARW Elektronik
  16. //
  17. //
  18. // $Log: pcivme_ni.h,v $
  19. // Revision 1.2  2002/10/27 17:05:33  klaus
  20. // CVS log added, file addressing bug > 2 Gbtye circumvent
  21. //
  22. // what                                                              who    when
  23. // first steps                                                       AR     17.11.1999
  24. // modified for use with C++                                         AR     08.06.2002
  25. //
  26.  
  27. //-------------------------------------------------------------------------------------------
  28. // FUNCTIONS
  29. //
  30. #ifdef __cplusplus
  31. extern "C"
  32. {
  33. #endif
  34.  
  35. int __declspec(dllexport) VMEinit(const char *cszDeviceName, unsigned short nVMEMM, unsigned char ubAddressModifier, int *pnHandle);
  36. int __declspec(dllexport) VMEread(int nHandle, unsigned long ulAddress, unsigned char ubAccessWidth, unsigned long ulElementCount, void *pvBuffer);
  37. int __declspec(dllexport) VMEwrite(int nHandle, unsigned long ulAddress, unsigned char ubAccessWidth, unsigned long ulElementCount, void *pvBuffer);
  38. int __declspec(dllexport) VMEaccessVIC(int nHandle, unsigned char ubAccessMode, unsigned short uwAddress, unsigned char *ubContent);
  39. int __declspec(dllexport) VMEreset(int nHandle);
  40. int __declspec(dllexport) VMETAS(int nHandle, unsigned long ulAddress, unsigned char *ubResult);
  41. int __declspec(dllexport) VMEinterrupt(int nHandle, unsigned char *ubVector);
  42. int __declspec(dllexport) VMEsysfailGet(int nHandle, unsigned char *bResult);
  43. int __declspec(dllexport) VMEsysfailSet(int nHandle, unsigned char bForce);
  44. int __declspec(dllexport) VMEclose(int nHandle);
  45.  
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49.  
  50. #endif /* __PCIVME_NI_H__ */
  51.