A.1.6 dio_getcoslatchdata32, A.1.6, Dio_getcoslatchdata32 – ADLINK EOS-1200 User Manual

Page 75

Advertising
background image

Function Library

63

EOS-1200

Port

Channel number on which COS detection capability is to be
enabled/disabled. Valid port numbers: PCMe-1432 0

ctl

Control value for the port defined by argument port. Each bit
of the value of ctrl controls one DI channel. The '0' value of
the bit value disables the COS function of the corresponding
line, and the '1' value of the bit value enables the COS func-
tion of the corresponding line. The valid values for ctrl are 0
to 4294967295 (0xFFFFFFFF)

hEvent

(Win32 only)

Returned COS interrupt event handle.

ManualReset

(Win32 only)

Specifies whether the event is:

Z

(1) manual-reset by ResetEvent function in active

application, or

Z

(0) autoreset by driver.

Return Code(s)

NoError
ErrorInvalidCardNumber
ErrorCardNotRegistered
ErrorFuncNotSupport

A.1.6

DIO_GetCOSLatchData32

Description

Acquires 32-bit width DI data latched in the COS Latch reg-
ister when Change-of-State (COS) interrupt occurs.

Syntax

C/C++

I16 DIO_GetCOSLatchData32(U16 CardNumber, U8
Port, U32 *CosLData)

Advertising