Returns the status of the specified bus.
Gx6264GetBus (nHandle , nBus, pnMode, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to the board. |
nBus |
SHORT |
Universal Bus number0. GX6264_BUS_X01. GX6264_BUS_Y02. GX6264_BUS_X13. GX6264_BUS_Y1 |
pnBusStatus |
LPSHORT |
Returns the bus status. |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
Returns the status of the specified bus where:
The nMode can be:
GX6264_BUS_NOT_IN_USE: the bus is disconnected from all other buses and groups.
GX6264_BUS_DIFFERENTIAL: The high and low inputs of any group can be connected to corresponding high and low of the specified bus.
GX6264_BUS_SINGLE_ENDED_HI: The high rail of the Universal Bus X0, X1, Y0, Y1 connects to the high rail of the connected group.
GX6264_BUS_SINGLE_ENDED_LO: The high rail of the Universal Bus X0, X1, Y0, Y1 connects to the low rail of the connected group.
GX6264_BUS_SINGLE_ENDED_LO_TO_GROUP_LO: The low rail of the Universal Bus X0, X1, Y0, Y1 connects to the low rail of the connected group.
The following example checks if X0 bus is in single ended high mode:
Gx6264GetBusMode(nHandle, GX6264_BUS_X0, &nMode, &nStatus);
if (nMode==GX6264_BUS_SINGLE_ENDED_HI)
printf(“Bus X0 in single ended mode connected to Hi
inputs”);
Gx6264ResetBus, Gx6264SetBusMode.