GX5711, GX5712
Returns the Module’s channels direction.
Gx5733ModuleGetDirection (nHandle, nPort, nGroup, pnDirection, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5733 board. |
nPort |
SHORT |
Module port 0 (GX5733_PORT0) only. |
nGroup |
SHORT |
Specified Module’s port group number:0. GX5733_MODULE_GROUP0: Module port group 0.1. GX5733_MODULE_GROUP1: Module port group 1. |
pnDirection |
PSHORT |
Returns Module’s channels direction mode:0. GX5733_MODULE_DIRECTION_DIFFERENTIAL_TO_TTL: Module’s channels direction is from differential to TTL.1. GX5733_MODULE_DIRECTION_TTL_TO_DIFFERENTIAL: Module’s channels direction is from TTL to differential. |
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 returns the module’s port 0 group 0 direction:
SHORT nDirection, nStatus;
Gx5733ModuleGetDirection (nHandle, GX5733_PORT0, GX5733_MODULE_GROUP0,&nDirection, &nStatus)
Gx5733ModuleSetDirection, Gx5733ModuleSetDirectionSource, Gx5733GetPort, Gx5733ModuleSetInternalStrobeSource