Manual USB-IDIO-16
11
Chapter 5: Programming
The driver software provided with the board uses a 32-bit .dll front end compatible with any Windows program-
ming language. Samples provided in Borland C++Builder, Borland Delphi, Microsoft Visual Basic, and Microsoft
Visual C++ demonstrate the use of the driver.
The following functions are provided by the driver in Windows.
These functions will allow you to read or write individual bits, bytes, or the entire board worth of data. In
addition, counter-timer functionality and board-level functions complete the driver package.
For detailed information on each function refer to the .html Driver Manual located in the Win32 directory for this
board.
unsigned long GetDevices(void )
unsigned long QueryDeviceInfo(DeviceIndex, pPID, pName, pDIOBytes, pCounters)
unsigned long DIO_Configure(DeviceIndex, bTristate, pOutMask, pData)
unsigned long DIO_Write1(DeviceIndex, BitIndex, bData)
unsigned long DIO_Write8(DeviceIndex, ByteIndex, Data)
unsigned long DIO_WriteAll(DeviceIndex,pData)
unsigned long DIO_Read8(DeviceIndex, ByteIndex,pBuffer)
unsigned long DIO_ReadAll(DeviceIndex,Buffer)