Subversion Repositories f9daq

Rev

Rev 9 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9 Rev 362
Line 1... Line 1...
1
#ifndef __PCIVME_NI_H__
1
#ifndef __PCIVME_NI_H__
2
#define __PCIVME_NI_H__
2
#define __PCIVME_NI_H__
3
 
-
 
-
 
3
#include <stddef.h>
4
//-------------------------------------------------------------------------------------------
4
//-------------------------------------------------------------------------------------------
5
// pcivme_ni.h - header for ni-labview shared library or dll for ARW pcivme interface
5
// pcivme_ni.h - header for ni-labview shared library or dll for ARW pcivme interface
6
// this library can also be used for other purposes aside from labview
6
// this library can also be used for other purposes aside from labview
7
//
7
//
8
// Copyright (C) 2002-2004 ARW Elektronik Germany
8
// Copyright (C) 2002-2004 ARW Elektronik Germany
Line 60... Line 60...
60
//
60
//
61
#ifdef __cplusplus
61
#ifdef __cplusplus
62
extern "C"
62
extern "C"
63
{
63
{
64
#endif
64
#endif
65
int VMEopen(const char *cszDeviceName, unsigned char ubAddressModifier, int *pnHandle);
65
int VMEopen(const char *cszDeviceName, unsigned char ubAddressModifier, ptrdiff_t *pnHandle);
66
int VMEinit(const char *cszDeviceName, unsigned short nVMEMM, unsigned char ubAddressModifier, int *pnHandle);
66
int VMEinit(const char *cszDeviceName, unsigned short nVMEMM, unsigned char ubAddressModifier, ptrdiff_t *pnHandle);
67
int setAccessProperties(int nHandle, unsigned char bModifier, unsigned char bAccessType);
67
int setAccessProperties(ptrdiff_t nHandle, unsigned char bModifier, unsigned char bAccessType);
68
int VMEread(int nHandle, unsigned long ulAddress, unsigned char ubAccessWidth, unsigned long ulElementCount, void *pvBuffer);
68
int VMEread(ptrdiff_t nHandle, unsigned long ulAddress, unsigned char ubAccessWidth, unsigned long ulElementCount, void *pvBuffer);
69
int VMEwrite(int nHandle, unsigned long ulAddress, unsigned char ubAccessWidth, unsigned long ulElementCount, void *pvBuffer);
69
int VMEwrite(ptrdiff_t nHandle, unsigned long ulAddress, unsigned char ubAccessWidth, unsigned long ulElementCount, void *pvBuffer);
70
int VMEaccessVIC(int nHandle, unsigned char ubAccessMode, unsigned short uwAddress, unsigned char *ubContent);
70
int VMEaccessVIC(ptrdiff_t nHandle, unsigned char ubAccessMode, unsigned short uwAddress, unsigned char *ubContent);
71
int VMEreset(int nHandle);
71
int VMEreset(ptrdiff_t nHandle);
72
int VMETAS(int nHandle, unsigned long ulAddress, unsigned char *ubResult);
72
int VMETAS(ptrdiff_t nHandle, unsigned long ulAddress, unsigned char *ubResult);
73
int VMEcontrolInterrupt(int nHandle, BOOLEAN *bEnable);
73
int VMEcontrolInterrupt(ptrdiff_t nHandle, BOOLEAN *bEnable);
74
int VMEinterrupt(int nHandle, unsigned char *ubVector);
74
int VMEinterrupt(ptrdiff_t nHandle, unsigned char *ubVector);
75
int VMEsysfailGet(int nHandle, BOOLEAN *bResult);
75
int VMEsysfailGet(ptrdiff_t nHandle, BOOLEAN *bResult);
76
int VMEsysfailSet(int nHandle, BOOLEAN bForce);
76
int VMEsysfailSet(ptrdiff_t nHandle, BOOLEAN bForce);
77
int VMEerror(int nHandle);
77
int VMEerror(ptrdiff_t nHandle);
78
int VMEclose(int nHandle);
78
int VMEclose(ptrdiff_t nHandle);
79
int GetLastError(int nHandle);
79
int GetLastError(ptrdiff_t nHandle);
80
#ifdef __cplusplus
80
#ifdef __cplusplus
81
}
81
}
82
#endif
82
#endif
83
 
83
 
84
#endif /* __PCIVME_NI_H__ */
84
#endif /* __PCIVME_NI_H__ */