Gx5731ModuleGetTermination

Applies To

GX5709, GX5711, GX5712

Purpose

Returns the Module termination mode.

Syntax

Gx5731ModuleGetTermination (nHandle, nPort, pnTermination, 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.   
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.

Comments

Settings the terminators to be On will only be active only when outputting data through the differential lines.

Example

The following example returns Module port 0 terminators mode:

 

SHORT nTermination, nStatus;

Gx5731ModuleGetTermination (nHandle, GX5731_PORT0, &nTermination, &nStatus);

 

See Also

Gx5731ModuleSetTermination, Gx5731ModuleGetType