GX5701, GX5702, GX5704
Returns the Module’s Handshake output mode.
Gx5733ModuleGetHandshakeOutputMode (nHandle, nPort, , pnMode, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5733 board. |
nPort |
SHORT |
Module port 0 (GX5733_PORT0) only. |
pnMode |
PSHORT |
Handshake output mode:0. GX5733_MODULE_HANDSHAKE_OUTPUT_DISABLE: Handshake output mode disabled.1. GX5733_MODULE_HANDSHAKE_OUTPUT_ENABLE: Handshake output mode enabled. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The GX5733 can have one Module installed. The installed module can use either Direct Output/Input or Strobed Output/Input with handshaking.
When using Direct Output/Input on each strobe signal transition, the user is responsible for setting polarity via Gx5733ModuleSetExtStrobeEnablePolarity.When using Strobed Output/Input with handshaking the hardware controls the Output/Input sequences. The handshaking mechanism is implemented using input and output control and strobe signals. See Module Strobed Output Input Handshaking section for typical handshaking events in order to output a single double word of data.
The following example returns modules port 0 Handshake Output mode:
SHORT nMode nStatus;
Gx5733ModuleGetHandshakeOutputMode (nHandle, GX5733_PORT0, &nMode, &nStatus);
Gx5733ModuleSetHandshakeOutputMode, Gx5733ModuleSetExtStrobeEnablePolarity, Gx5733ModuleSetStrobeSource, Gx5733ModuleSetInternalStrobeSource