Gx5731ModuleGetHandshakeOutputMode

Applies To

GX5701, GX5702, GX5704

Purpose

Returns the Module’s Handshake output mode.

Syntax

Gx5731ModuleGetHandshakeOutputMode (nHandle, nPort, , pnMode, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5731 board.
nPort
SHORT
Specified Module's port number:
0. GX5731_PORT0: Module port 0
1. GX5731_PORT1: Module port 1
2. GX5731_PORT2: Module port 2.  
pnMode
PSHORT
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.

Comments

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 via Gx5731ModuleSetExtStrobeEnablePolarity.

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 Chapter 2: Module Strobed Output/Input Handshaking section for typical handshaking events in order to output a single double word of data.

Example

The following example returns modules port 0 Handshake Output mode:

 

SHORT nMode nStatus;

Gx5731ModuleGetHandshakeOutputMode (nHandle, GX5731_PORT0, &nMode, &nStatus);

 

See Also

Gx5731ModuleSetHandshakeOutputMode, Gx5731ModuleSetExtStrobeEnablePolarity, Gx5731ModuleSetStrobeSource, Gx5731ModuleSetInternalStrobeSource