Function call in p16r16.dll, P16r16.h, Unction – ICP DAS USA PCI-P16C16 User Manual

Page 34: All in, P16r16.dll, 2 p16r16.h

Advertising
background image

}

4.1 Function Call in P16R16.DLL

A function in P16R16.DLL(DLL for Windows 95/98/NT) will be exactly the
same prototype as P16R16H.LIB(huge mode library for DOS) and
P16R16L.LIB(large mode library for DOS). It is convenient to develop
applications under different platforms.




4.2 P16R16.H

#define EXPORTS extern "C" __declspec (dllimport)
// return code
#define NoError

0

#define DriverHandleError

1

#define DriverCallError 2
#define NotFoundBoard

3

#define FindBoardError

4

#define ExceedBoardNumber 5

// define Type Name ID
#define TYPE_P16R16 0
#define TYPE_P8R8 1
#define TYPE_TMC12 2
#define TYPE_DA16 3
#define TYPE_DA8 4

EXPORTS float CALLBACK PCI_FloatSub2(float fA, float fB);
EXPORTS short CALLBACK PCI_ShortSub2(short nA, short nB);
EXPORTS WORD CALLBACK PCI_GetDllVersion(void);

EXPORTS WORD CALLBACK PCI_DriverInit(WORD *wTotalBoards);
EXPORTS void CALLBACK PCI_DriverClose(void);
EXPORTS WORD CALLBACK PCI_GetDriverVersion(WORD *wVxdVersion);

PCI-P8R8/P16R16/P16C16/P16POR16 User’s Manual (Ver.2.2, 2005/5/5) …

34

Advertising
This manual is related to the following products: