The function disconnects the specified bus from all groups and changes its mode to 'Not Used'.
Gx6264ResetBus (nHandle , nBus, pnStatus)
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. |
Calling this function is equivalent to calling the Gx6264RemoveBus functions for all groups where the Gx6264SetBusMode function is in mode 0 (Not Active).
The following example resets the X and Y buses:
Gx6264ResetBus(nHandle, 0, &nStatus);
Gx6264ResetBus(nHandle, 1, &nStatus);
GxSWGetErrorString, Gx6264ConnectBus, Gx6264Initialize, Gx6264RemoveBus, Gx6264Reset.