GX3501, GX3509, GX3510, GX3511
Sets the specified PIO expansion board group’s channel direction.
GxFpgaPioSetGroupDirection (nHandle, nGroup, 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. |
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. |
This function will return the logic level of all the channels in the specified group. When programming the GX3540, this function is limited to setting values to GXFPGA_PIO_GROUP_D. Attempting to set values to any other group will result in an error. This function will set the logic level of all the channels in the specified group.
This function will set the direction of all channels in the specified group.
GxFpgaPioGetGroupDirection (nHandle, GXFPGA_PIO_GROUP_A, GXFPGA_PIO_DIRECTION_INPUT, &nStatus);