A.2 di/o with api/windows, Gpio_init, Gpi_read() – ADLINK MXE-5400 User Manual

Page 62: Di/o with api/windows, Gpio_init gpi_read(), Preliminary

Advertising
background image

PRELIMINARY

50

Watchdog Timer (WDT) & DI/O Function Libraries

FALSE

if watchdog timer fails to stop.

A.2 DI/O with API/Windows

Matrix 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.

To use the DI/O function library for MXE-5400 series, include the
header file matrix_dio.h and linkage library matrix_dio.lib in the
C++ project.

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 MXE-
5400 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

Advertising