Omega Engineering OME-A826PG User Manual

Page 26

Advertising
background image

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


//********* Driver Functios ************
Function A826_DriverInit:WORD; StdCall;
Procedure A826_DriverClose; StdCall;
Function A826_DELAY(wBase,wDownCount:WORD):WORD; StdCall;
Function A826_Check_Address(wBase:WORD):WORD; StdCall;
Procedure A826_OutputByte(wPortAddr:WORD; bOutputVal:Byte); StdCall;
Procedure A826_OutputWord(wPortAddr:WORD; wOutputVal:WORD); StdCall;
Function A826_InputByte(wPortAddr:WORD):WORD; StdCall;
Function A826_InputWord(wPortAddr:WORD):WORD; StdCall;

//********* IRQ Functios ************
Function A826_InstallIrq

(wBase,wIrq:WORD; var hEvent:LongInt; dwCount:LongInt):WORD; StdCall;

Function A826_AD_INT_Start(Ch,Gain,c1,c2:WORD):WORD; StdCall;
Function A826_AD_INT_Stop:WORD; StdCall;
Function A826_GetIntCount(var dwVal:LongInt):WORD; StdCall;
Function A826_GetBuffer(dwNum:LongInt; wBuffer:PSmallInt):WORD; StdCall;
Function A826_GetFloatBuffer(dwNum :LongInt;fBuffer:PSingle):Word; StdCall;

//********* DMA Functios ************
Function A826_AD_DMA_InstallIrq(wBase,wIrq,wDmaChan:WORD):WORD; StdCall;
Function A826_AD_DMA_RemoveIrq:WORD; StdCall;
Function A826_AD_DMA_Start(Ch,Gain,c1,c2:WORD; cnt:integer; wPassOut:PInteger):WORD;
StdCall;
Function A826_AD_DMA_Stop:WORD; StdCall;
Function A826_AD_DMA_IsNotFinished:WORD; StdCall;
Function A826_AD_DMA_GetBuffer(wBuf:PSmallInt):WORD; StdCall;
Function A826_AD_DMA_GetFloatBuffer(fBuf:PSingle):Word; StdCall;

implementation

Function SHORT_SUB_2;

external 'A826.DLL' name 'SHORT_SUB_2';

Function FLOAT_SUB_2;

external 'A826.DLL' name 'FLOAT_SUB_2';

Function A826_Get_DLL_Version;

external 'A826.DLL' name 'A826_Get_DLL_Version';

Procedure A826_DA;

external 'A826.DLL' name 'A826_DA';

Procedure A826_Uni5_DA;

external 'A826.DLL' name 'A826_Uni5_DA';

Procedure A826_Uni10_DA;

external 'A826.DLL' name 'A826_Uni10_DA';

Procedure A826_DO;

external 'A826.DLL' name 'A826_DO';

Function A826_DI;

external 'A826.DLL' name 'A826_DI';

Function A826_AD;

external 'A826.DLL' name 'A826_AD';

Function A826_ADs_Hex;

external 'A826.DLL' name 'A826_ADs_Hex';

Function A826_ADs_Float;

external 'A826.DLL' name 'A826_ADs_Float';

Function A826_DELAY;

external 'A826.DLL' name 'A826_DELAY';

Function A826_Check_Address;

external 'A826.DLL' name 'A826_Check_Address';


Function A826_DriverInit;

external 'A826.DLL' name 'A826_DriverInit';

Procedure A826_DriverClose;

external 'A826.DLL' name 'A826_DriverClose';

Procedure A826_OutputByte;

external 'A826.DLL' name 'A826_OutputByte';

Procedure A826_OutputWord;

external 'A826.DLL' name 'A826_OutputWord';

Function A826_InputByte;

external 'A826.DLL' name 'A826_InputByte';

Function A826_InputWord;

external 'A826.DLL' name 'A826_InputWord';

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

Advertising