Omega Engineering OME-A826PG User Manual

Page 11

Advertising
background image

OME-A-826PG Software Manual [Win 95/98/NT]


#define NoError

0

#define DriverOpenError

1

#define DriverNoOpen

2

#define GetDriverVersionError

3

#define InstallIrqError

4

#define ClearIntCountError

5

#define GetIntCountError

6

#define AdError1

100

#define AdError2

-200.0

#define InstallBufError

9

#define GetBufferError

10

#define INTStartError

11

#define INTStopError

12

#define InstallDmaIrqError

13

#define RemoveDmaIrqError

14

#define DmaStartError

15

#define DmaStopError

16

#define DmaGetDataError

17

#define TimeoutError

18

#define AllocateMemoryError

19

#define OtherError

20


//********* Test Functios ************
EXPORTS short CALLBACK SHORT_SUB_2(short nA, short nB);
EXPORTS float CALLBACK FLOAT_SUB_2(float fA, float fB);
EXPORTS WORD CALLBACK A826_Get_DLL_Version(void);
EXPORTS WORD CALLBACK A826_GetDriverVersion(WORD *wDriverVersion);

//********* DI/DO Functios ************
EXPORTS WORD CALLBACK A826_DI(WORD wBase);
EXPORTS void CALLBACK A826_DO(WORD wBase, WORD wHexValue);

//********* DA/AD Functios ************
EXPORTS float CALLBACK A826_AD(WORD wBase, WORD wChannel, WORD wConfig);
EXPORTS WORD CALLBACK A826_ADs_Hex(WORD wBase, WORD wChannel, WORD wConfig,

short

wBuf[],

WORD

wCount);

EXPORTS WORD CALLBACK A826_ADs_Float(WORD wBase, WORD wChannel, WORD wConfig,

float fBuf[], WORD wCount);

EXPORTS void CALLBACK A826_DA(WORD wBase, WORD wChannel, WORD wHexValue);
EXPORTS void CALLBACK A826_Uni5_DA(WORD wBase, WORD wChannel, float fValue);
EXPORTS void CALLBACK A826_Uni10_DA(WORD wBase, WORD wChannel, float fValue);

//********* Driver Functios ************
EXPORTS WORD CALLBACK A826_DriverInit(void);
EXPORTS void CALLBACK A826_DriverClose(void);
EXPORTS WORD CALLBACK A826_DELAY(WORD wBase, WORD wDownCount);
EXPORTS WORD CALLBACK A826_Check_Address(WORD wBase);
EXPORTS void CALLBACK A826_OutputByte(WORD wPortAddr, UCHAR bOutputVal);
EXPORTS void CALLBACK A826_OutputWord(WORD wPortAddr, WORD wOutputVal);
EXPORTS WORD CALLBACK A826_InputByte(WORD wPortAddr);
EXPORTS WORD CALLBACK A826_InputWord(WORD wPortAddr);

Date: Aug-15-2000 Ver: 2.2 Page 9

Advertising