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, |
65 | int VMEopen(const char *cszDeviceName, unsigned char ubAddressModifier, ptrdiff_t *pnHandle); |
66 | int VMEinit(const char *cszDeviceName, unsigned short nVMEMM, unsigned char ubAddressModifier, |
66 | int VMEinit(const char *cszDeviceName, unsigned short nVMEMM, unsigned char ubAddressModifier, ptrdiff_t *pnHandle); |
67 | int setAccessProperties( |
67 | int setAccessProperties(ptrdiff_t nHandle, unsigned char bModifier, unsigned char bAccessType); |
68 | int VMEread( |
68 | int VMEread(ptrdiff_t nHandle, unsigned long ulAddress, unsigned char ubAccessWidth, unsigned long ulElementCount, void *pvBuffer); |
69 | int VMEwrite( |
69 | int VMEwrite(ptrdiff_t nHandle, unsigned long ulAddress, unsigned char ubAccessWidth, unsigned long ulElementCount, void *pvBuffer); |
70 | int VMEaccessVIC( |
70 | int VMEaccessVIC(ptrdiff_t nHandle, unsigned char ubAccessMode, unsigned short uwAddress, unsigned char *ubContent); |
71 | int VMEreset( |
71 | int VMEreset(ptrdiff_t nHandle); |
72 | int VMETAS( |
72 | int VMETAS(ptrdiff_t nHandle, unsigned long ulAddress, unsigned char *ubResult); |
73 | int VMEcontrolInterrupt( |
73 | int VMEcontrolInterrupt(ptrdiff_t nHandle, BOOLEAN *bEnable); |
74 | int VMEinterrupt( |
74 | int VMEinterrupt(ptrdiff_t nHandle, unsigned char *ubVector); |
75 | int VMEsysfailGet( |
75 | int VMEsysfailGet(ptrdiff_t nHandle, BOOLEAN *bResult); |
76 | int VMEsysfailSet( |
76 | int VMEsysfailSet(ptrdiff_t nHandle, BOOLEAN bForce); |
77 | int VMEerror( |
77 | int VMEerror(ptrdiff_t nHandle); |
78 | int VMEclose( |
78 | int VMEclose(ptrdiff_t nHandle); |
79 | int GetLastError( |
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__ */ |