GX3501, GX3509, GX3510, GX3511.
Sets the specified PIO expansion board channel direction.
GxFpgaPioSetChannelDirection (nHandle , nGroup, nChannel, nDirection, 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. |
nChannel |
SHORT |
Channel range is 0 to 19. |
nDirection |
SHORT |
The channel direction can be as follows:0. GXFPGA_PIO_DIRECTION_INPUT.1. GXFPGA_PIO_DIRECTION_OUTPUT. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The following example sets the direction of channel 4 of Flex I/O group A to output:
GxFpgaPioSetChannelDirection (nHandle, GXFPGA_PIO_GROUP_A, 0x4, GXFPGA_PIO_DIRECTION_OUTPUT, &nStatus);