Gx5642GetGroupTTLPort

Purpose

Returns the specified group TTL Ports values.

Syntax

Gx5642GetGroupTTLPort (nHandle, pdwPortData, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5642 board.
nGroup
SHORT
Group value is as follows:
0. GX5642_GROUP0 (channels 0 to 31)
1. GX5642_GROUP1(channels 32 to 63)
pdwPortData
PDWORD
Group’s differential ports values.
Each of the 32 bits represents a channel in the group. Bit 0 is the first channel in the group and bit 31 is the last channel in the group.
Bit low - differential channel port is logic low.
Bit high - differential channel port is logic high.
pnStatus

 

PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The function returns the TTL Ports values for all the channels in the specified group.

For protection, by default all channels are disabled after power-up and reset. The channels can be enabled and or disabled by calling Gx5642SetChannelOutputState.

Example

The following example returns group 0 TTL Ports values:

 

DWORD dwData;

Gx5642GetGroupTTLPort (nHandle, GX5641_GROUP0, &dwData, &nStatus);

 

See Also

Gx5642SetGroupTTLPort, GxPioGetErrorString