Gx5733ModuleGetDirectionSource

Applies To

GX5711, GX5712

Purpose

Returns the Module’s channels direction source.

Syntax

Gx5733ModuleGetDirectionSource (nHandle, nPort, pnSource, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5733 board.
nPort
SHORT
Module port 0 (GX5733_PORT0) only.
pnSource
PSHORT
Returned Module’s channels direction source:
0. GX5733_MODULE_DIRECTION_SOURCE_INTERNAL: Module’s channels direction is set internally (software).
1. GX5733_MODULE_DIRECTION_SOURCE_EXTERNAL: Module’s channels direction is set externally.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The data that flows through the Module can be monitor by calling Gx5733GetPort.

Example

The following example returns module’s port 0 direction source:

 

SHORT nSource, nStatus;

Gx5733ModuleGetDirectionSource (nHandle, GX5733_PORT0, &nSource, &nStatus)

 

See Also

Gx5733ModuleSetDirectionSource, Gx5733ModuleGetDirection, Gx5733GetPort, Gx5733ModuleSetInternalStrobeSource