Gpo_write(), Gpo_read(), Gpo_write() gpo_read() – ADLINK iSeries Monitor 18/21 User Manual

Page 61

Advertising
background image

Watchdog Timer (WDT) & DI/O Function Libraries

49

TPZ-1300

NoError

ErrorOpenDriverFailed

ErrorDeviceIoctl

GPO_Write()

Sets the digital logic state of the digital output line.

@ Syntax

C/C++

I16 GPO_Write(U16 wState)

@ Parameters

State

Sets the digital logic state of TPZ-1300 digital output channels
1~4 (bit 0~3) to 0 or 1.

@ Return code

NoError

ErrorOpenDriverFailed

ErrorDeviceIoctl

GPO_Read()

Reads the digital logic state of the digital output line.

@ Syntax

C/C++

I16 GPO_Read(U16 *pwState)

@ Parameters

pwState

Returns the digital logic state of TPZ-1300 digital output chan-
nels 1~4 (bit 0~3).

@ Return code

NoError

ErrorOpenDriverFailed

ErrorDeviceIoctl

Advertising