GX5709, GX5711, GX5712
Returns the Module termination mode.
Gx5733ModuleGetTermination (nHandle, nPort, pnTermination, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5733 board. |
nPort |
SHORT |
Module port 0 (GX5733_PORT0) only. |
pnTermination |
PSHORT |
GX5709 module:Module bytes Terminations where bit 0 corresponds to byte 0, bit 1 to byte 1, bit 2 byte 2 and bit 3 to byte 3. A bit is set to hi ’1’ for Termination On and low ‘0’ for Termination Off.GX5711 and GX5712 modules:Module Terminations, bit 0 is set to hi ’1’ for Termination On and low ‘0’ for Termination Off. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Settings the terminators to be On will only be active only when outputting data through the differential lines.
The following example returns Module port 0 terminators mode:
SHORT nTermination, nStatus;
Gx5733ModuleGetTermination (nHandle, GX5733_PORT0, &nTermination, &nStatus);