top01.jpg (17169 bytes)
mleft.jpg (4986 bytes) m01a.jpg (6169 bytes)     m02a.jpg (6905 bytes)     m03a.jpg (7743 bytes)    m04a.jpg (7456 bytes)     m05a.jpg (7878 bytes)     m06a.jpg (6862 bytes)     m07a.jpg (6076 bytes) mright01.jpg (5078 bytes)

ADU  Series - USB Data Acquisition Interface SDK

AudHid.h Header File For C

// Copyright 2002 Ontrak Control Systems Incorporated
// By: John Homppi, Oct 28, 2002

#ifdef __cplusplus
extern "C"
{
#endif

typedef struct _ADU_DEVICE_ID
{
	unsigned short iVendorId;
	unsigned short iProductId;
	char	szSerialNumber[7];
} ADU_DEVICE_ID, *PADU_DEVICE_ID;

// entry points for general use

void __stdcall ShowAduDeviceList(ADU_DEVICE_ID* pAduDeviceId, 
                                 char* psPrompt);


// entry points to support the ADU Device pipe

void * __stdcall OpenAduDevice(unsigned long iTimeout);

void * __stdcall OpenAduDeviceByProductId(int iProductId, 
                                          unsigned long iTimeout);

void * __stdcall OpenAduDeviceBySerialNumber(const char* psSerialNumber,
                                             unsigned long iTimeout);

int __stdcall ReadAduDevice(void * hDevice, 
                   void * lpBuffer, 
                   unsigned long nNumberOfBytesToRead,
                   unsigned long * lpNumberOfBytesRead,
                   unsigned long iTimeout);

int __stdcall WriteAduDevice(void * hDevice, 
                   const void * lpBuffer, 
                   unsigned long nNumberOfBytesToWrite,
                   unsigned long * lpNumberOfBytesWritten,
                   unsigned long iTimeout);

void __stdcall CloseAduDevice(void * hDevice);


// entry points to support the RS232 pipe

void * __stdcall OpenAdu232(unsigned long iTimeout);

void * __stdcall OpenAdu232ByProductId(int iProductId, 
                                          unsigned long iTimeout);

void * __stdcall OpenAdu232BySerialNumber(const char* psSerialNumber,
                                             unsigned long iTimeout);

int __stdcall ReadAdu232(void * hRS232,
                   void * lpBuffer,
                   unsigned long nNumberOfBytesToRead,
                   unsigned long * lpNumberOfBytesRead,
                   unsigned long iTimeout);

int __stdcall WriteAdu232(void * hRS232, 
                   const void * lpBuffer, 
                   unsigned long nNumberOfBytesToWrite,
                   unsigned long * lpNumberOfBytesWritten,
                   unsigned long iTimeout);

void __stdcall CloseAdu232(void * hRS232);


// entry points to support the Streaming pipe

void * __stdcall OpenAduStream(unsigned long iTimeout);

void * __stdcall OpenAduStreamByProductId(int iProductId, 
                                          unsigned long iTimeout);

void * __stdcall OpenAduStreamBySerialNumber(const char* psSerialNumber,
                                             unsigned long iTimeout);

int __stdcall ReadAduStream(void * hStream,
                   void * lpBuffer,
                   unsigned long nNumberOfBytesToRead,
                   unsigned long * lpNumberOfBytesRead,
                   unsigned long iTimeout);

void __stdcall CloseAduStream(void * hStream);

#ifdef __cplusplus
}
#endif




 

NEWS         PRODUCTS         PROGRAMMING          APPLICATIONS          CUSTOM DESIGN          ORDERING          HOME


TestPoint is a trademark of Capital Equipment Corp.   
LabVIEW is a trademark of National Instruments.
Visual BASIC is a trademark of Microsoft Corporation


Copyright © 2002 ONTRAK CONTROL SYSTEMS 764 Notre Dame Ave, Unit #1 , Sudbury, Ontario, CANADA P3A 2T2  
"Quality serial Data Acquisition Interfaces"           PH. (705) 671-2652 FAX (705) 671-6127