Gx6264ResetBus

Purpose

The function disconnects the specified bus from all groups and changes its mode to 'Not Used'.

Syntax

Gx6264ResetBus (nHandle , nBus, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to the board.
nBus
SHORT
Bus number 0-3; X0=0, Y0=1, X1=2, Y1=3.
pnStatus
LPSHORT
Returned status: 0 on success, negative number on failure.

Comments

Calling this function is equivalent to calling the Gx6264RemoveBus functions for all groups where the Gx6264SetBusMode function is in mode 0 (Not Active).

Example

The following example resets the X and Y buses:

 

Gx6264ResetBus(nHandle, 0, &nStatus);

Gx6264ResetBus(nHandle, 1, &nStatus);

 

See Also

GxSWGetErrorString, Gx6264ConnectBus, Gx6264Initialize, Gx6264RemoveBus, Gx6264Reset.