GX5701, GX5702, GX5704
Sets the Module’s Handshake output mode.
Gx5731ModuleSetHandshakeOutputMode (nHandle, nPort, nMode, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5733 board. |
nPort |
SHORT |
Specified Module's port number:0. GX5731_PORT0: Module port 01. GX5731_PORT1: Module port 12. GX5731_PORT2: Module port 2. |
nMade |
SHORT |
Handshake output mode:0. GX5731_MODULE_HANDSHAKE_OUTPUT_DISABLE: Handshake output mode disabled.1. GX5731_MODULE_HANDSHAKE_OUTPUT_ENABLE: Handshake output mode enabled. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The GX5731 can have up to three Modules installed. Each installed module can use 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 Gx5731MoudleSetExtStrobeEnablePolarity.
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;
Gx5731ModuleSetHandshakeOutputMode (nHandle, GX5731_PORT0, GX5731_MODULE_HANDSHAKE_OUTPUT_ENABLE,
&nStatus);
Gx5731ModuleGetHandshakeOutputMode, Gx5731ModuleSetExtStrobeEnablePolarity, Gx5731ModuleSetStrobeSource, Gx5731ModuleSetInternalStrobeSource