Gx6264GetBusMode

Purpose

Returns the status of the specified bus.

Syntax

Gx6264GetBus (nHandle , nBus, pnMode, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to the board.
nBus
SHORT
Universal Bus number
0. GX6264_BUS_X0
1. GX6264_BUS_Y0
2. GX6264_BUS_X1
3. GX6264_BUS_Y1
pnBusStatus
LPSHORT
Returns the bus status.
pnStatus
LPSHORT
Returned status: 0 on success, negative number on failure.

Comments

Returns the status of the specified bus where:

The nMode can be:

  1. GX6264_BUS_NOT_IN_USE: the bus is disconnected from all other buses and groups.

  2. GX6264_BUS_DIFFERENTIAL: The high and low inputs of any group can be connected to corresponding high and low of the specified bus.

  3. 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.

  4. 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.

  5. 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.

Example

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”);

 

See Also

Gx6264ResetBus, Gx6264SetBusMode.