GX5701, GX5702, GX5704
Sets the Module’s Handshake output mode.
Gx5733ModuleSetHandshakeOutputMode (nHandle, nPort, nMode, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5733 board. |
nPort |
SHORT |
Module port 0 (GX5733_PORT0) only. |
nMade |
SHORT |
Handshake output mode:0. GX5733_MODULE_HANDSHAKE_OUTPUT_DISABLE: Handshake output mode disabled.1. GX5733_MODULE_HANDSHAKE_OUTPUT_ENABLE: Handshake output mode inabled. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The GX5733 can have one Module installed. The 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 GxModuleSetExtStrobeEnablePolarity.
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 enable modules port 0 Handshake Output:
SHORT nStatus;
Gx5733ModuleSetHandshakeOutputMode (nHandle, GX5733_PORT0, GX5733_MODULE_HANDSHAKE_OUTPUT_ENABLE,
&nStatus);
Gx5733ModuleGetHandshakeOutputMode, Gx5733ModuleSetExtStrobeEnablePolarity, Gx5733ModuleSetStrobeSource, Gx5733ModuleSetInternalStrobeSource