GX3501, GX3509, GX3510
Returns the specified PIO expansion board group’s channel direction.
GxFpgaPioGetGroupDirection (nHandle, nGroup, pdwDirection, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX3500 board. |
nGroup |
SHORT |
Group value is as follows:0. GXFPGA_PIO_GROUP_A.1. GXFPGA_PIO_GROUP_B.2. GXFPGA_PIO_GROUP_C.3. GXFPGA_PIO_GROUP_D. |
pdwData |
PDWORD |
Group’s direction values.Each of the low 20 bits represents a channel in the group. Bit 0 is the first channel in the group and bit 19 is the last channel in the group. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
This function will return the direction of all the channels in the specified group.
The following example reads the direction of Flex I/O group A into the dwDirection variable:
DWORD dwDirection;
GxFpgaPioGetGroupDirection (nHandle, GXFPGA_PIO_GROUP_A, &dwDirection, &nStatus);