A.2 di/o with api/windows, Gpio_init, Gpi_read() – ADLINK iSeries Monitor 18/21 User Manual
Page 60: Di/o with api/windows, Gpio_init gpi_read()

48
Watchdog Timer (WDT) & DI/O Function Libraries
FALSE
if watchdog timer fails to stop.
A.2 DI/O with API/Windows
Topaz DI/O API library files and a demo program (incl. source
code) are located on the included driver CD or downloaded from
http://www.adlinktech.com.
DI/O functions are as follows.
GPIO_Init
Reserves system resources for digital input/output API ser-
vice.It is necessary to call this function before using other TPZ-
1300 DI/O functions.
@ Syntax
C/C++
I16 GPIO_Init(void)
@ Parameters
None
@ Return code
NoError
ErrorOpenDriverFailed
ErrorDeviceIoctl
GPI_Read()
Reads the digital logic state of the digital input line..
@ Syntax
C/C++
I16 GPI_Read(U16 *pwState)
@ Parameters
pwState
Returns the digital logic state of TPZ-1300 digital input chan-
nels 1~4 (bit 0~3)
@ Return code