Returns the specified group TTL Port Direction.
Gx5642GetGroupTTLPortDirection (nHandle, nGroup, pdwDirection, pnStatus)
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) |
pdwDirection |
PDWORD |
Group’s TTL Port Direction.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 - channel differential Port TTL is input.Bit high - channel differential Port TTL is output. |
pnStatus
|
PSHORT |
Returned status: 0 on success, negative number on failure. |
The function returns the TTL Port Direction for all the channels in the specified group.
Note: Only channels in the group that were set to Static I/O mode prior calling this function by calling Gx5642SetGroupMode will be set.
The following example returns group 0 TTL Port Direction:
DWORD dwDirection;
Gx5642GetGroupTTLPortDirection (nHandle, GX5642_GROUP0, &dwDirection, &nStatus);
Gx5642SetChannelTTLPortDirection, Gx5642SetChannelTTLPort, Gx5642SetGroupMode, GxPioGetErrorString