Gx5642GetChannelTTLPort

Purpose

Returns the specified channel TTL Port value.

Syntax

Gx5642GetChannelTTLPort (nHandle, nChannel, pbData, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5642 board.
nChannel
SHORT
Channel range is: GX5642_FIRST_CHANNEL (0) to GX5642_LAST_CHANNEL (63).
pbData
PBOOL
TTL Port value:
0. Logic low
1. Logic high
pnStatus

 

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

Comments

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 channel 0 TTL Port value:

 

BOOL bData;

Gx5642GetChannelTTLPort (nHandle, 0, &bData, &nStatus);

 

See Also

Gx5642SetChannelTTLPort, GxPioGetErrorString