Gx3722DiffTTLSetOutputsEnable

Purpose

Sets the 4 differential TTL output enable states.

Syntax

Gx3722DiffTTLSetOutputsEnable (nHandle, nOutputsEnable, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX3722 board.
pnOutputsEnable
PSHORT
Sets the 4 differential TTL output enable settings. There are 4 differential TTL output channels, each bit represents a channel, e.g. channel 0 = bit 0 etc.
Bit low: channel’s output is disabled.
Bit high: channel’s output is enabled.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Returns the 4 differential TTL output level settings.

Example

The following example sets differential TTL channels 0 and 3 to high and differential TTL channels 1 and 2 to low, returns the settings, enabled all 4 channels, and returns the enables settings:

 

SHORT nOutputs;

SHORT nOutputsEnable;

 

Gx3722DiffTTLSetOutputs (nHandle, 0x9, &nStatus);

Gx3722DiffTTLGetOutputs (nHandle, &nOutputs, &nStatus);

Gx3722DiffTTLSetOutputsEnable (nHandle, 0xF, &nStatus);

Gx3722DiffTTLGetOutputsEnable (nHandle, &nOutputsEnable, &nStatus);

 

See Also

Gx3722DiffTTLSetOutputs, Gx3722DiffTTLGetOutputsEnable, Gx3722DiffTTLReadInputs, GxFpgaGetErrorString