GX3501, GX3509, GX3510, GX3511, GX3540
Sets the specified PIO expansion board group’s channel values.
GxFpgaPioSetGroup (nHandle , nGroup, dwData, 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. |
dwData |
DWORD |
Group’s logic level 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 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.
The following example sets the values of all the Flex I/O Bank A’s channels to logic high:
GxFpgaPioSetGroup (nHandle, GXFPGA_PIO_GROUP_A, 0xFFFFF, &nStatus);
GxFpgaPioGetGroup, GxFpgaPioSetGroupDirection, GxFpgaGetErrorString