GX5711, GX5712
Gx5733ModuleSetDirectionSource (nHandle, nPort, nSource, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5733 board. |
nPort |
SHORT |
Module port 0 (GX5733_PORT0) only. |
nSource |
SHORT |
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. |
The data that flows through the Module can be monitor by calling Gx5733GetPort.
The following example sets module’s port 0 direction source to External:
SHORT nStatus;
Gx5733ModuleSetDirectionSource (nHandle, GX5733_PORT0, GX5733_MODULE_DIRECTION_SOURCE_INTERNAL, &nStatus)
Gx5733ModuleGetDirectionSource, Gx5733ModuleGetDirection, Gx5733GetPort, Gx5733ModuleSetInternalStrobeSource