Manual USB-IIRO-16 Family
12
Chapter 5: Programming
The driver software provided with the board uses a 32-bit .dll front end compatible with any Windows
programming 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)
unsigned long CTR_8254Mode(DeviceIndex, BlockIndex, CounterIndex, Mode)
unsigned long CTR_8254ModeLoad(DeviceIndex, BlockIndex, CounterIndex,Mode, LoadValue)
unsigned long CTR_8254ReadModeLoad(DeviceIndex, BlockIndex, CounterIndex, Mode, LoadValue,
pReadValue)
unsigned long CTR_8254Read(DeviceIndex, BlockIndex, CounterIndex, pReadValue)
unsigned long CTR_StartOutputFreq(DeviceIndex, CounterIndex, pHz)